Package com.google.cloud.visionai.v1
Interface CreateAssetRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CreateAssetRequest,CreateAssetRequest.Builder
@Generated
public interface CreateAssetRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getParent
String getParent()Required. The parent resource where this asset will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The parent.
-
getParentBytes
com.google.protobuf.ByteString getParentBytes()Required. The parent resource where this asset will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for parent.
-
hasAsset
boolean hasAsset()Required. The asset to create.
.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the asset field is set.
-
getAsset
Asset getAsset()Required. The asset to create.
.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The asset.
-
getAssetOrBuilder
AssetOrBuilder getAssetOrBuilder()Required. The asset to create.
.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED]; -
hasAssetId
boolean hasAssetId()Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
optional string asset_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the assetId field is set.
-
getAssetId
String getAssetId()Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
optional string asset_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The assetId.
-
getAssetIdBytes
com.google.protobuf.ByteString getAssetIdBytes()Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
optional string asset_id = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for assetId.
-