Class BatchAnnotateFilesRequest.Builder

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

public static final class BatchAnnotateFilesRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchAnnotateFilesRequest.Builder> implements BatchAnnotateFilesRequestOrBuilder
 A list of requests to annotate files using the BatchAnnotateFiles API.
 
Protobuf type google.cloud.vision.v1.BatchAnnotateFilesRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchAnnotateFilesRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchAnnotateFilesRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchAnnotateFilesRequest.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<BatchAnnotateFilesRequest.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<BatchAnnotateFilesRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public BatchAnnotateFilesRequest.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<BatchAnnotateFilesRequest.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<BatchAnnotateFilesRequest.Builder>
    • mergeFrom

      public BatchAnnotateFilesRequest.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<BatchAnnotateFilesRequest.Builder>
      Throws:
      IOException
    • getRequestsList

      public List<AnnotateFileRequest> getRequestsList()
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsList in interface BatchAnnotateFilesRequestOrBuilder
    • getRequestsCount

      public int getRequestsCount()
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsCount in interface BatchAnnotateFilesRequestOrBuilder
    • getRequests

      public AnnotateFileRequest getRequests(int index)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequests in interface BatchAnnotateFilesRequestOrBuilder
    • setRequests

      public BatchAnnotateFilesRequest.Builder setRequests(int index, AnnotateFileRequest value)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • setRequests

      public BatchAnnotateFilesRequest.Builder setRequests(int index, AnnotateFileRequest.Builder builderForValue)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchAnnotateFilesRequest.Builder addRequests(int index, AnnotateFileRequest value)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchAnnotateFilesRequest.Builder addRequests(AnnotateFileRequest.Builder builderForValue)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • addRequests

      public BatchAnnotateFilesRequest.Builder addRequests(int index, AnnotateFileRequest.Builder builderForValue)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • addAllRequests

      public BatchAnnotateFilesRequest.Builder addAllRequests(Iterable<? extends AnnotateFileRequest> values)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearRequests

      public BatchAnnotateFilesRequest.Builder clearRequests()
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • removeRequests

      public BatchAnnotateFilesRequest.Builder removeRequests(int index)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilder

      public AnnotateFileRequest.Builder getRequestsBuilder(int index)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsOrBuilder

      public AnnotateFileRequestOrBuilder getRequestsOrBuilder(int index)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilder in interface BatchAnnotateFilesRequestOrBuilder
    • getRequestsOrBuilderList

      public List<? extends AnnotateFileRequestOrBuilder> getRequestsOrBuilderList()
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestsOrBuilderList in interface BatchAnnotateFilesRequestOrBuilder
    • addRequestsBuilder

      public AnnotateFileRequest.Builder addRequestsBuilder()
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • addRequestsBuilder

      public AnnotateFileRequest.Builder addRequestsBuilder(int index)
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRequestsBuilderList

      public List<AnnotateFileRequest.Builder> getRequestsBuilderList()
       Required. The list of file annotation requests. Right now we support only
       one AnnotateFileRequest in BatchAnnotateFilesRequest.
       
      repeated .google.cloud.vision.v1.AnnotateFileRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
    • getParent

      public String getParent()
       Optional. Target project and location to make a call.
      
       Format: `projects/{project-id}/locations/{location-id}`.
      
       If no parent is specified, a region will be chosen automatically.
      
       Supported location-ids:
       `us`: USA country only,
       `asia`: East asia areas, like Japan, Taiwan,
       `eu`: The European Union.
      
       Example: `projects/project-A/locations/eu`.
       
      string parent = 3;
      Specified by:
      getParent in interface BatchAnnotateFilesRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Optional. Target project and location to make a call.
      
       Format: `projects/{project-id}/locations/{location-id}`.
      
       If no parent is specified, a region will be chosen automatically.
      
       Supported location-ids:
       `us`: USA country only,
       `asia`: East asia areas, like Japan, Taiwan,
       `eu`: The European Union.
      
       Example: `projects/project-A/locations/eu`.
       
      string parent = 3;
      Specified by:
      getParentBytes in interface BatchAnnotateFilesRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public BatchAnnotateFilesRequest.Builder setParent(String value)
       Optional. Target project and location to make a call.
      
       Format: `projects/{project-id}/locations/{location-id}`.
      
       If no parent is specified, a region will be chosen automatically.
      
       Supported location-ids:
       `us`: USA country only,
       `asia`: East asia areas, like Japan, Taiwan,
       `eu`: The European Union.
      
       Example: `projects/project-A/locations/eu`.
       
      string parent = 3;
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public BatchAnnotateFilesRequest.Builder clearParent()
       Optional. Target project and location to make a call.
      
       Format: `projects/{project-id}/locations/{location-id}`.
      
       If no parent is specified, a region will be chosen automatically.
      
       Supported location-ids:
       `us`: USA country only,
       `asia`: East asia areas, like Japan, Taiwan,
       `eu`: The European Union.
      
       Example: `projects/project-A/locations/eu`.
       
      string parent = 3;
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchAnnotateFilesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Optional. Target project and location to make a call.
      
       Format: `projects/{project-id}/locations/{location-id}`.
      
       If no parent is specified, a region will be chosen automatically.
      
       Supported location-ids:
       `us`: USA country only,
       `asia`: East asia areas, like Japan, Taiwan,
       `eu`: The European Union.
      
       Example: `projects/project-A/locations/eu`.
       
      string parent = 3;
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: BatchAnnotateFilesRequestOrBuilder
       Optional. The labels with user-defined metadata for the request.
      
       Label keys and values can be no longer than 63 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface BatchAnnotateFilesRequestOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. The labels with user-defined metadata for the request.
      
       Label keys and values can be no longer than 63 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface BatchAnnotateFilesRequestOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface BatchAnnotateFilesRequestOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. The labels with user-defined metadata for the request.
      
       Label keys and values can be no longer than 63 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface BatchAnnotateFilesRequestOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. The labels with user-defined metadata for the request.
      
       Label keys and values can be no longer than 63 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface BatchAnnotateFilesRequestOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. The labels with user-defined metadata for the request.
      
       Label keys and values can be no longer than 63 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface BatchAnnotateFilesRequestOrBuilder
    • clearLabels

      public BatchAnnotateFilesRequest.Builder clearLabels()
    • removeLabels

      public BatchAnnotateFilesRequest.Builder removeLabels(String key)
       Optional. The labels with user-defined metadata for the request.
      
       Label keys and values can be no longer than 63 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public BatchAnnotateFilesRequest.Builder putLabels(String key, String value)
       Optional. The labels with user-defined metadata for the request.
      
       Label keys and values can be no longer than 63 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    • putAllLabels

      public BatchAnnotateFilesRequest.Builder putAllLabels(Map<String,String> values)
       Optional. The labels with user-defined metadata for the request.
      
       Label keys and values can be no longer than 63 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
       Label values are optional. Label keys must start with a letter.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];