public static final class Asset.Builder extends GeneratedMessageV3.Builder<Asset.Builder> implements AssetOrBuilder
An asset is a resource in corpus. It represents a media object inside corpus,
contains metadata and another resource annotation. Different feature could be
applied to the asset to generate annotations. User could specified annotation
related to the target asset.
Protobuf type google.cloud.visionai.v1.Asset
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Asset.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
Returns |
Type |
Description |
Asset |
|
buildPartial()
public Asset buildPartial()
Returns |
Type |
Description |
Asset |
|
clear()
public Asset.Builder clear()
Overrides
clearAssetGcsSource()
public Asset.Builder clearAssetGcsSource()
Output only. The original cloud storage source uri that is associated with
this asset.
.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearField(Descriptors.FieldDescriptor field)
public Asset.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public Asset.Builder clearName()
Resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1;
Returns |
Type |
Description |
Asset.Builder |
This builder for chaining.
|
clearOneof(Descriptors.OneofDescriptor oneof)
public Asset.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTtl()
public Asset.Builder clearTtl()
The duration for which all media assets, associated metadata, and search
documents can exist. If not set, then it will using the default ttl in the
parent corpus resource.
.google.protobuf.Duration ttl = 2;
clone()
public Asset.Builder clone()
Overrides
getAssetGcsSource()
public AssetSource.AssetGcsSource getAssetGcsSource()
Output only. The original cloud storage source uri that is associated with
this asset.
.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAssetGcsSourceBuilder()
public AssetSource.AssetGcsSource.Builder getAssetGcsSourceBuilder()
Output only. The original cloud storage source uri that is associated with
this asset.
.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAssetGcsSourceOrBuilder()
public AssetSource.AssetGcsSourceOrBuilder getAssetGcsSourceOrBuilder()
Output only. The original cloud storage source uri that is associated with
this asset.
.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Asset getDefaultInstanceForType()
Returns |
Type |
Description |
Asset |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getName()
Resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getTtl()
The duration for which all media assets, associated metadata, and search
documents can exist. If not set, then it will using the default ttl in the
parent corpus resource.
.google.protobuf.Duration ttl = 2;
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. If not set, then it will using the default ttl in the
parent corpus resource.
.google.protobuf.Duration ttl = 2;
getTtlOrBuilder()
public DurationOrBuilder getTtlOrBuilder()
The duration for which all media assets, associated metadata, and search
documents can exist. If not set, then it will using the default ttl in the
parent corpus resource.
.google.protobuf.Duration ttl = 2;
hasAssetGcsSource()
public boolean hasAssetGcsSource()
Output only. The original cloud storage source uri that is associated with
this asset.
.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
boolean |
Whether the assetGcsSource field is set.
|
hasTtl()
The duration for which all media assets, associated metadata, and search
documents can exist. If not set, then it will using the default ttl in the
parent corpus resource.
.google.protobuf.Duration ttl = 2;
Returns |
Type |
Description |
boolean |
Whether the ttl field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAssetGcsSource(AssetSource.AssetGcsSource value)
public Asset.Builder mergeAssetGcsSource(AssetSource.AssetGcsSource value)
Output only. The original cloud storage source uri that is associated with
this asset.
.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
mergeFrom(Asset other)
public Asset.Builder mergeFrom(Asset other)
Parameter |
Name |
Description |
other |
Asset
|
public Asset.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Asset.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeTtl(Duration value)
public Asset.Builder mergeTtl(Duration value)
The duration for which all media assets, associated metadata, and search
documents can exist. If not set, then it will using the default ttl in the
parent corpus resource.
.google.protobuf.Duration ttl = 2;
Parameter |
Name |
Description |
value |
Duration
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Asset.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAssetGcsSource(AssetSource.AssetGcsSource value)
public Asset.Builder setAssetGcsSource(AssetSource.AssetGcsSource value)
Output only. The original cloud storage source uri that is associated with
this asset.
.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
setAssetGcsSource(AssetSource.AssetGcsSource.Builder builderForValue)
public Asset.Builder setAssetGcsSource(AssetSource.AssetGcsSource.Builder builderForValue)
Output only. The original cloud storage source uri that is associated with
this asset.
.google.cloud.visionai.v1.AssetSource.AssetGcsSource asset_gcs_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
setField(Descriptors.FieldDescriptor field, Object value)
public Asset.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setName(String value)
public Asset.Builder setName(String value)
Resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1;
Parameter |
Name |
Description |
value |
String
The name to set.
|
Returns |
Type |
Description |
Asset.Builder |
This builder for chaining.
|
setNameBytes(ByteString value)
public Asset.Builder setNameBytes(ByteString value)
Resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string name = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for name to set.
|
Returns |
Type |
Description |
Asset.Builder |
This builder for chaining.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Asset.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTtl(Duration value)
public Asset.Builder setTtl(Duration value)
The duration for which all media assets, associated metadata, and search
documents can exist. If not set, then it will using the default ttl in the
parent corpus resource.
.google.protobuf.Duration ttl = 2;
Parameter |
Name |
Description |
value |
Duration
|
setTtl(Duration.Builder builderForValue)
public Asset.Builder setTtl(Duration.Builder builderForValue)
The duration for which all media assets, associated metadata, and search
documents can exist. If not set, then it will using the default ttl in the
parent corpus resource.
.google.protobuf.Duration ttl = 2;
Parameter |
Name |
Description |
builderForValue |
Builder
|
setUnknownFields(UnknownFieldSet unknownFields)
public final Asset.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides