Interface CreateAssetRequestOrBuilder (0.2.0)

public interface CreateAssetRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAsset()

public abstract Asset getAsset()

Required. The asset to create.

.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Asset

The asset.

getAssetId()

public abstract 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-/. 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
Type Description
String

The assetId.

getAssetIdBytes()

public abstract 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-/. 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
Type Description
ByteString

The bytes for assetId.

getAssetOrBuilder()

public abstract AssetOrBuilder getAssetOrBuilder()

Required. The asset to create.

.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AssetOrBuilder

getParent()

public abstract 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
Type Description
String

The parent.

getParentBytes()

public abstract 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
Type Description
ByteString

The bytes for parent.

hasAsset()

public abstract boolean hasAsset()

Required. The asset to create.

.google.cloud.visionai.v1.Asset asset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the asset field is set.

hasAssetId()

public abstract 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-/. 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
Type Description
boolean

Whether the assetId field is set.