Package com.google.cloud.visionai.v1
Class Asset.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
com.google.cloud.visionai.v1.Asset.Builder
- All Implemented Interfaces:
AssetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Asset
public static final class Asset.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Resource name of the asset.clearTtl()The duration for which all media assets, associated metadata, and search documents can exist.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Resource name of the asset.com.google.protobuf.ByteStringResource name of the asset.com.google.protobuf.DurationgetTtl()The duration for which all media assets, associated metadata, and search documents can exist.com.google.protobuf.Duration.BuilderThe duration for which all media assets, associated metadata, and search documents can exist.com.google.protobuf.DurationOrBuilderThe duration for which all media assets, associated metadata, and search documents can exist.booleanOutput only.booleanhasTtl()The duration for which all media assets, associated metadata, and search documents can exist.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTtl(com.google.protobuf.Duration value) The duration for which all media assets, associated metadata, and search documents can exist.Output only.setAssetGcsSource(AssetSource.AssetGcsSource.Builder builderForValue) Output only.Resource name of the asset.setNameBytes(com.google.protobuf.ByteString value) Resource name of the asset.setTtl(com.google.protobuf.Duration value) The duration for which all media assets, associated metadata, and search documents can exist.setTtl(com.google.protobuf.Duration.Builder builderForValue) The duration for which all media assets, associated metadata, and search documents can exist.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Asset.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Asset.Builder>
-
mergeFrom
public Asset.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Asset.Builder>- Throws:
IOException
-
getName
Resource name of the asset. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`string name = 1;- Specified by:
getNamein interfaceAssetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Resource name of the asset. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`string name = 1;- Specified by:
getNameBytesin interfaceAssetOrBuilder- Returns:
- The bytes for name.
-
setName
Resource name of the asset. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Resource name of the asset. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Resource name of the asset. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasTtl
public boolean 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;- Specified by:
hasTtlin interfaceAssetOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.Duration 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;- Specified by:
getTtlin interfaceAssetOrBuilder- Returns:
- The ttl.
-
setTtl
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; -
setTtl
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; -
mergeTtl
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; -
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; -
getTtlBuilder
public com.google.protobuf.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 com.google.protobuf.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;- Specified by:
getTtlOrBuilderin interfaceAssetOrBuilder
-
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];- Specified by:
hasAssetGcsSourcein interfaceAssetOrBuilder- Returns:
- Whether the assetGcsSource field is set.
-
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];- Specified by:
getAssetGcsSourcein interfaceAssetOrBuilder- Returns:
- The assetGcsSource.
-
setAssetGcsSource
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
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]; -
mergeAssetGcsSource
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]; -
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]; -
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
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];- Specified by:
getAssetGcsSourceOrBuilderin interfaceAssetOrBuilder
-