Interface UploadAssetRequestOrBuilder (0.11.0)

public interface UploadAssetRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAssetSource()

public abstract AssetSource getAssetSource()

The source of the asset.

.google.cloud.visionai.v1.AssetSource asset_source = 2;

Returns
Type Description
AssetSource

The assetSource.

getAssetSourceOrBuilder()

public abstract AssetSourceOrBuilder getAssetSourceOrBuilder()

The source of the asset.

.google.cloud.visionai.v1.AssetSource asset_source = 2;

Returns
Type Description
AssetSourceOrBuilder

getName()

public abstract String getName()

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

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

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

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

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

Returns
Type Description
ByteString

The bytes for name.

hasAssetSource()

public abstract boolean hasAssetSource()

The source of the asset.

.google.cloud.visionai.v1.AssetSource asset_source = 2;

Returns
Type Description
boolean

Whether the assetSource field is set.