Class IndexedAsset.Builder (0.1.0)

public static final class IndexedAsset.Builder extends GeneratedMessageV3.Builder<IndexedAsset.Builder> implements IndexedAssetOrBuilder

An IndexedAsset is an asset that the index is built upon.

Protobuf type google.cloud.visionai.v1.IndexedAsset

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IndexedAsset build()
Returns
Type Description
IndexedAsset

buildPartial()

public IndexedAsset buildPartial()
Returns
Type Description
IndexedAsset

clear()

public IndexedAsset.Builder clear()
Returns
Type Description
IndexedAsset.Builder
Overrides

clearAsset()

public IndexedAsset.Builder clearAsset()

Required. The resource name of the asset. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

string asset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
IndexedAsset.Builder

This builder for chaining.

clearCreateTime()

public IndexedAsset.Builder clearCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IndexedAsset.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearIndex()

public IndexedAsset.Builder clearIndex()

Required. The index that this indexed asset belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}

string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
IndexedAsset.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public IndexedAsset.Builder clearUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IndexedAsset.Builder

clone()

public IndexedAsset.Builder clone()
Returns
Type Description
IndexedAsset.Builder
Overrides

getAsset()

public String getAsset()

Required. The resource name of the asset. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

string asset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The asset.

getAssetBytes()

public ByteString getAssetBytes()

Required. The resource name of the asset. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

string asset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for asset.

getCreateTime()

public Timestamp getCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public IndexedAsset getDefaultInstanceForType()
Returns
Type Description
IndexedAsset

getDescriptorForType()

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

getIndex()

public String getIndex()

Required. The index that this indexed asset belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}

string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The index.

getIndexBytes()

public ByteString getIndexBytes()

Required. The index that this indexed asset belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}

string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for index.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public IndexedAsset.Builder mergeCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
IndexedAsset.Builder

mergeFrom(IndexedAsset other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public IndexedAsset.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IndexedAsset.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IndexedAsset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IndexedAsset.Builder
Overrides

mergeUpdateTime(Timestamp value)

public IndexedAsset.Builder mergeUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
IndexedAsset.Builder

setAsset(String value)

public IndexedAsset.Builder setAsset(String value)

Required. The resource name of the asset. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

string asset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The asset to set.

Returns
Type Description
IndexedAsset.Builder

This builder for chaining.

setAssetBytes(ByteString value)

public IndexedAsset.Builder setAssetBytes(ByteString value)

Required. The resource name of the asset. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}

string asset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for asset to set.

Returns
Type Description
IndexedAsset.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public IndexedAsset.Builder setCreateTime(Timestamp value)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
IndexedAsset.Builder

setCreateTime(Timestamp.Builder builderForValue)

public IndexedAsset.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The create timestamp.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
IndexedAsset.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setIndex(String value)

public IndexedAsset.Builder setIndex(String value)

Required. The index that this indexed asset belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}

string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The index to set.

Returns
Type Description
IndexedAsset.Builder

This builder for chaining.

setIndexBytes(ByteString value)

public IndexedAsset.Builder setIndexBytes(ByteString value)

Required. The index that this indexed asset belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}

string index = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for index to set.

Returns
Type Description
IndexedAsset.Builder

This builder for chaining.

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

public IndexedAsset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
IndexedAsset.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public IndexedAsset.Builder setUpdateTime(Timestamp value)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
IndexedAsset.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public IndexedAsset.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The update timestamp.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
IndexedAsset.Builder