Class BatchAnnotateImagesRequest.Builder

    • Method Detail

      • getDescriptor

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

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

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

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

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

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

        public BatchAnnotateImagesRequest.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<BatchAnnotateImagesRequest.Builder>
        Throws:
        IOException
      • getRequestsCount

        public int getRequestsCount()
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRequestsCount in interface BatchAnnotateImagesRequestOrBuilder
      • setRequests

        public BatchAnnotateImagesRequest.Builder setRequests​(int index,
                                                              AnnotateImageRequest value)
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • addRequests

        public BatchAnnotateImagesRequest.Builder addRequests​(AnnotateImageRequest value)
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • addRequests

        public BatchAnnotateImagesRequest.Builder addRequests​(int index,
                                                              AnnotateImageRequest value)
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • clearRequests

        public BatchAnnotateImagesRequest.Builder clearRequests()
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • removeRequests

        public BatchAnnotateImagesRequest.Builder removeRequests​(int index)
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • getRequestsBuilder

        public AnnotateImageRequest.Builder getRequestsBuilder​(int index)
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • addRequestsBuilder

        public AnnotateImageRequest.Builder addRequestsBuilder()
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • addRequestsBuilder

        public AnnotateImageRequest.Builder addRequestsBuilder​(int index)
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • getRequestsBuilderList

        public List<AnnotateImageRequest.Builder> getRequestsBuilderList()
         Required. Individual image annotation requests for this batch.
         
        repeated .google.cloud.vision.v1.AnnotateImageRequest 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 = 4;
        Specified by:
        getParent in interface BatchAnnotateImagesRequestOrBuilder
        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 = 4;
        Specified by:
        getParentBytes in interface BatchAnnotateImagesRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public BatchAnnotateImagesRequest.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 = 4;
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public BatchAnnotateImagesRequest.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 = 4;
        Returns:
        This builder for chaining.
      • setParentBytes

        public BatchAnnotateImagesRequest.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 = 4;
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final BatchAnnotateImagesRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchAnnotateImagesRequest.Builder>
      • mergeUnknownFields

        public final BatchAnnotateImagesRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchAnnotateImagesRequest.Builder>