Class BatchAnnotateImagesResponse.Builder

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

public static final class BatchAnnotateImagesResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchAnnotateImagesResponse.Builder> implements BatchAnnotateImagesResponseOrBuilder
 Response to a batch image annotation request.
 
Protobuf type google.cloud.vision.v1.BatchAnnotateImagesResponse
  • 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<BatchAnnotateImagesResponse.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<BatchAnnotateImagesResponse.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<BatchAnnotateImagesResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public BatchAnnotateImagesResponse.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<BatchAnnotateImagesResponse.Builder>
      Throws:
      IOException
    • getResponsesList

      public List<AnnotateImageResponse> getResponsesList()
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
      Specified by:
      getResponsesList in interface BatchAnnotateImagesResponseOrBuilder
    • getResponsesCount

      public int getResponsesCount()
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
      Specified by:
      getResponsesCount in interface BatchAnnotateImagesResponseOrBuilder
    • getResponses

      public AnnotateImageResponse getResponses(int index)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
      Specified by:
      getResponses in interface BatchAnnotateImagesResponseOrBuilder
    • setResponses

      public BatchAnnotateImagesResponse.Builder setResponses(int index, AnnotateImageResponse value)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • setResponses

      public BatchAnnotateImagesResponse.Builder setResponses(int index, AnnotateImageResponse.Builder builderForValue)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • addResponses

       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • addResponses

      public BatchAnnotateImagesResponse.Builder addResponses(int index, AnnotateImageResponse value)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • addResponses

       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • addResponses

      public BatchAnnotateImagesResponse.Builder addResponses(int index, AnnotateImageResponse.Builder builderForValue)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • addAllResponses

      public BatchAnnotateImagesResponse.Builder addAllResponses(Iterable<? extends AnnotateImageResponse> values)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • clearResponses

      public BatchAnnotateImagesResponse.Builder clearResponses()
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • removeResponses

      public BatchAnnotateImagesResponse.Builder removeResponses(int index)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • getResponsesBuilder

      public AnnotateImageResponse.Builder getResponsesBuilder(int index)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • getResponsesOrBuilder

      public AnnotateImageResponseOrBuilder getResponsesOrBuilder(int index)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
      Specified by:
      getResponsesOrBuilder in interface BatchAnnotateImagesResponseOrBuilder
    • getResponsesOrBuilderList

      public List<? extends AnnotateImageResponseOrBuilder> getResponsesOrBuilderList()
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
      Specified by:
      getResponsesOrBuilderList in interface BatchAnnotateImagesResponseOrBuilder
    • addResponsesBuilder

      public AnnotateImageResponse.Builder addResponsesBuilder()
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • addResponsesBuilder

      public AnnotateImageResponse.Builder addResponsesBuilder(int index)
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;
    • getResponsesBuilderList

      public List<AnnotateImageResponse.Builder> getResponsesBuilderList()
       Individual responses to image annotation requests within the batch.
       
      repeated .google.cloud.vision.v1.AnnotateImageResponse responses = 1;