Class MediaWarehouseConfig.Builder (0.14.1)

public static final class MediaWarehouseConfig.Builder extends GeneratedMessageV3.Builder<MediaWarehouseConfig.Builder> implements MediaWarehouseConfigOrBuilder

Message describing MediaWarehouseConfig.

Protobuf type google.events.cloud.visionai.v1.MediaWarehouseConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MediaWarehouseConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

build()

public MediaWarehouseConfig build()
Returns
TypeDescription
MediaWarehouseConfig

buildPartial()

public MediaWarehouseConfig buildPartial()
Returns
TypeDescription
MediaWarehouseConfig

clear()

public MediaWarehouseConfig.Builder clear()
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

clearCorpus()

public MediaWarehouseConfig.Builder clearCorpus()

Resource name of the Media Warehouse corpus. Format: projects/${project_id}/locations/${location_id}/corpora/${corpus_id}

string corpus = 1;

Returns
TypeDescription
MediaWarehouseConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MediaWarehouseConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MediaWarehouseConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

clearRegion()

public MediaWarehouseConfig.Builder clearRegion()

Deprecated.

string region = 2;

Returns
TypeDescription
MediaWarehouseConfig.Builder

This builder for chaining.

clearTtl()

public MediaWarehouseConfig.Builder clearTtl()

The duration for which all media assets, associated metadata, and search documents can exist.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
MediaWarehouseConfig.Builder

clone()

public MediaWarehouseConfig.Builder clone()
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

getCorpus()

public String getCorpus()

Resource name of the Media Warehouse corpus. Format: projects/${project_id}/locations/${location_id}/corpora/${corpus_id}

string corpus = 1;

Returns
TypeDescription
String

The corpus.

getCorpusBytes()

public ByteString getCorpusBytes()

Resource name of the Media Warehouse corpus. Format: projects/${project_id}/locations/${location_id}/corpora/${corpus_id}

string corpus = 1;

Returns
TypeDescription
ByteString

The bytes for corpus.

getDefaultInstanceForType()

public MediaWarehouseConfig getDefaultInstanceForType()
Returns
TypeDescription
MediaWarehouseConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRegion()

public String getRegion()

Deprecated.

string region = 2;

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Deprecated.

string region = 2;

Returns
TypeDescription
ByteString

The bytes for region.

getTtl()

public Duration getTtl()

The duration for which all media assets, associated metadata, and search documents can exist.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

The duration for which all media assets, associated metadata, and search documents can exist.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

The duration for which all media assets, associated metadata, and search documents can exist.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
DurationOrBuilder

hasTtl()

public boolean hasTtl()

The duration for which all media assets, associated metadata, and search documents can exist.

.google.protobuf.Duration ttl = 3;

Returns
TypeDescription
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MediaWarehouseConfig other)

public MediaWarehouseConfig.Builder mergeFrom(MediaWarehouseConfig other)
Parameter
NameDescription
otherMediaWarehouseConfig
Returns
TypeDescription
MediaWarehouseConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MediaWarehouseConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MediaWarehouseConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

mergeTtl(Duration value)

public MediaWarehouseConfig.Builder mergeTtl(Duration value)

The duration for which all media assets, associated metadata, and search documents can exist.

.google.protobuf.Duration ttl = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
MediaWarehouseConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MediaWarehouseConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

setCorpus(String value)

public MediaWarehouseConfig.Builder setCorpus(String value)

Resource name of the Media Warehouse corpus. Format: projects/${project_id}/locations/${location_id}/corpora/${corpus_id}

string corpus = 1;

Parameter
NameDescription
valueString

The corpus to set.

Returns
TypeDescription
MediaWarehouseConfig.Builder

This builder for chaining.

setCorpusBytes(ByteString value)

public MediaWarehouseConfig.Builder setCorpusBytes(ByteString value)

Resource name of the Media Warehouse corpus. Format: projects/${project_id}/locations/${location_id}/corpora/${corpus_id}

string corpus = 1;

Parameter
NameDescription
valueByteString

The bytes for corpus to set.

Returns
TypeDescription
MediaWarehouseConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MediaWarehouseConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

setRegion(String value)

public MediaWarehouseConfig.Builder setRegion(String value)

Deprecated.

string region = 2;

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
MediaWarehouseConfig.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public MediaWarehouseConfig.Builder setRegionBytes(ByteString value)

Deprecated.

string region = 2;

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
MediaWarehouseConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MediaWarehouseConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides

setTtl(Duration value)

public MediaWarehouseConfig.Builder setTtl(Duration value)

The duration for which all media assets, associated metadata, and search documents can exist.

.google.protobuf.Duration ttl = 3;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
MediaWarehouseConfig.Builder

setTtl(Duration.Builder builderForValue)

public MediaWarehouseConfig.Builder setTtl(Duration.Builder builderForValue)

The duration for which all media assets, associated metadata, and search documents can exist.

.google.protobuf.Duration ttl = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
MediaWarehouseConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MediaWarehouseConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MediaWarehouseConfig.Builder
Overrides