Class ImportAssetsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportAssetsRequest.Builder>
com.google.cloud.visionai.v1.ImportAssetsRequest.Builder
All Implemented Interfaces:
ImportAssetsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImportAssetsRequest

public static final class ImportAssetsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportAssetsRequest.Builder> implements ImportAssetsRequestOrBuilder
 The request message for ImportAssets.
 
Protobuf type google.cloud.visionai.v1.ImportAssetsRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ImportAssetsRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImportAssetsRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImportAssetsRequest.Builder>
    • getDefaultInstanceForType

      public ImportAssetsRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ImportAssetsRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ImportAssetsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ImportAssetsRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportAssetsRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImportAssetsRequest.Builder>
    • mergeFrom

      public ImportAssetsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportAssetsRequest.Builder>
      Throws:
      IOException
    • getSourceCase

      public ImportAssetsRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface ImportAssetsRequestOrBuilder
    • clearSource

      public ImportAssetsRequest.Builder clearSource()
    • hasAssetsGcsUri

      public boolean hasAssetsGcsUri()
       The file contains all assets information to be imported.
       * The file is in JSONL format.
       * Each line corresponding to one asset.
       * Each line will be converted into InputImageAsset proto.
       
      string assets_gcs_uri = 2;
      Specified by:
      hasAssetsGcsUri in interface ImportAssetsRequestOrBuilder
      Returns:
      Whether the assetsGcsUri field is set.
    • getAssetsGcsUri

      public String getAssetsGcsUri()
       The file contains all assets information to be imported.
       * The file is in JSONL format.
       * Each line corresponding to one asset.
       * Each line will be converted into InputImageAsset proto.
       
      string assets_gcs_uri = 2;
      Specified by:
      getAssetsGcsUri in interface ImportAssetsRequestOrBuilder
      Returns:
      The assetsGcsUri.
    • getAssetsGcsUriBytes

      public com.google.protobuf.ByteString getAssetsGcsUriBytes()
       The file contains all assets information to be imported.
       * The file is in JSONL format.
       * Each line corresponding to one asset.
       * Each line will be converted into InputImageAsset proto.
       
      string assets_gcs_uri = 2;
      Specified by:
      getAssetsGcsUriBytes in interface ImportAssetsRequestOrBuilder
      Returns:
      The bytes for assetsGcsUri.
    • setAssetsGcsUri

      public ImportAssetsRequest.Builder setAssetsGcsUri(String value)
       The file contains all assets information to be imported.
       * The file is in JSONL format.
       * Each line corresponding to one asset.
       * Each line will be converted into InputImageAsset proto.
       
      string assets_gcs_uri = 2;
      Parameters:
      value - The assetsGcsUri to set.
      Returns:
      This builder for chaining.
    • clearAssetsGcsUri

      public ImportAssetsRequest.Builder clearAssetsGcsUri()
       The file contains all assets information to be imported.
       * The file is in JSONL format.
       * Each line corresponding to one asset.
       * Each line will be converted into InputImageAsset proto.
       
      string assets_gcs_uri = 2;
      Returns:
      This builder for chaining.
    • setAssetsGcsUriBytes

      public ImportAssetsRequest.Builder setAssetsGcsUriBytes(com.google.protobuf.ByteString value)
       The file contains all assets information to be imported.
       * The file is in JSONL format.
       * Each line corresponding to one asset.
       * Each line will be converted into InputImageAsset proto.
       
      string assets_gcs_uri = 2;
      Parameters:
      value - The bytes for assetsGcsUri to set.
      Returns:
      This builder for chaining.
    • getParent

      public String getParent()
       Required. The parent corpus resource where the assets will be imported.
       Format:
       `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ImportAssetsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent corpus resource where the assets will be imported.
       Format:
       `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ImportAssetsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ImportAssetsRequest.Builder setParent(String value)
       Required. The parent corpus resource where the assets will be imported.
       Format:
       `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public ImportAssetsRequest.Builder clearParent()
       Required. The parent corpus resource where the assets will be imported.
       Format:
       `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ImportAssetsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent corpus resource where the assets will be imported.
       Format:
       `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.