Interface UploadAssetRequestOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
UploadAssetRequest, UploadAssetRequest.Builder

@Generated public interface UploadAssetRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The source of the asset.
    The source of the asset.
    Required.
    com.google.protobuf.ByteString
    Required.
    boolean
    The source of the asset.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getName

      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:
      The name.
    • getNameBytes

      com.google.protobuf.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:
      The bytes for name.
    • hasAssetSource

      boolean hasAssetSource()
       The source of the asset.
       
      .google.cloud.visionai.v1.AssetSource asset_source = 2;
      Returns:
      Whether the assetSource field is set.
    • getAssetSource

      AssetSource getAssetSource()
       The source of the asset.
       
      .google.cloud.visionai.v1.AssetSource asset_source = 2;
      Returns:
      The assetSource.
    • getAssetSourceOrBuilder

      AssetSourceOrBuilder getAssetSourceOrBuilder()
       The source of the asset.
       
      .google.cloud.visionai.v1.AssetSource asset_source = 2;