Class MediaWarehouseConfig.Builder (0.12.0)

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

Message describing MediaWarehouseConfig.

Protobuf type google.cloud.visionai.v1.MediaWarehouseConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MediaWarehouseConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MediaWarehouseConfig.Builder
Overrides

build()

public MediaWarehouseConfig build()
Returns
Type Description
MediaWarehouseConfig

buildPartial()

public MediaWarehouseConfig buildPartial()
Returns
Type Description
MediaWarehouseConfig

clear()

public MediaWarehouseConfig.Builder clear()
Returns
Type Description
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
Type Description
MediaWarehouseConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public MediaWarehouseConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MediaWarehouseConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public MediaWarehouseConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MediaWarehouseConfig.Builder
Overrides

clearRegion() (deprecated)

public MediaWarehouseConfig.Builder clearRegion()

Deprecated. google.cloud.visionai.v1.MediaWarehouseConfig.region is deprecated. See google/cloud/visionai/v1/platform.proto;l=2056

Deprecated.

string region = 2 [deprecated = true];

Returns
Type Description
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
Type Description
MediaWarehouseConfig.Builder

clone()

public MediaWarehouseConfig.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for corpus.

getDefaultInstanceForType()

public MediaWarehouseConfig getDefaultInstanceForType()
Returns
Type Description
MediaWarehouseConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRegion() (deprecated)

public String getRegion()

Deprecated. google.cloud.visionai.v1.MediaWarehouseConfig.region is deprecated. See google/cloud/visionai/v1/platform.proto;l=2056

Deprecated.

string region = 2 [deprecated = true];

Returns
Type Description
String

The region.

getRegionBytes() (deprecated)

public ByteString getRegionBytes()

Deprecated. google.cloud.visionai.v1.MediaWarehouseConfig.region is deprecated. See google/cloud/visionai/v1/platform.proto;l=2056

Deprecated.

string region = 2 [deprecated = true];

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the ttl field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MediaWarehouseConfig other)

public MediaWarehouseConfig.Builder mergeFrom(MediaWarehouseConfig other)
Parameter
Name Description
other MediaWarehouseConfig
Returns
Type Description
MediaWarehouseConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MediaWarehouseConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MediaWarehouseConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MediaWarehouseConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
MediaWarehouseConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MediaWarehouseConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The corpus to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for corpus to set.

Returns
Type Description
MediaWarehouseConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MediaWarehouseConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MediaWarehouseConfig.Builder
Overrides

setRegion(String value) (deprecated)

public MediaWarehouseConfig.Builder setRegion(String value)

Deprecated. google.cloud.visionai.v1.MediaWarehouseConfig.region is deprecated. See google/cloud/visionai/v1/platform.proto;l=2056

Deprecated.

string region = 2 [deprecated = true];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
MediaWarehouseConfig.Builder

This builder for chaining.

setRegionBytes(ByteString value) (deprecated)

public MediaWarehouseConfig.Builder setRegionBytes(ByteString value)

Deprecated. google.cloud.visionai.v1.MediaWarehouseConfig.region is deprecated. See google/cloud/visionai/v1/platform.proto;l=2056

Deprecated.

string region = 2 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
MediaWarehouseConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final MediaWarehouseConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MediaWarehouseConfig.Builder
Overrides