Class BatchProcessDocumentsRequest.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<BatchProcessDocumentsRequest.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<BatchProcessDocumentsRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public int getRequestsCount()
         Required. Individual requests for each document.
         
        repeated .google.cloud.documentai.v1beta1.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getRequestsCount in interface BatchProcessDocumentsRequestOrBuilder
      • clearRequests

        public BatchProcessDocumentsRequest.Builder clearRequests()
         Required. Individual requests for each document.
         
        repeated .google.cloud.documentai.v1beta1.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • removeRequests

        public BatchProcessDocumentsRequest.Builder removeRequests​(int index)
         Required. Individual requests for each document.
         
        repeated .google.cloud.documentai.v1beta1.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • getRequestsBuilder

        public ProcessDocumentRequest.Builder getRequestsBuilder​(int index)
         Required. Individual requests for each document.
         
        repeated .google.cloud.documentai.v1beta1.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • addRequestsBuilder

        public ProcessDocumentRequest.Builder addRequestsBuilder()
         Required. Individual requests for each document.
         
        repeated .google.cloud.documentai.v1beta1.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • addRequestsBuilder

        public ProcessDocumentRequest.Builder addRequestsBuilder​(int index)
         Required. Individual requests for each document.
         
        repeated .google.cloud.documentai.v1beta1.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • getRequestsBuilderList

        public List<ProcessDocumentRequest.Builder> getRequestsBuilderList()
         Required. Individual requests for each document.
         
        repeated .google.cloud.documentai.v1beta1.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
      • getParent

        public String getParent()
         Target project and location to make a call.
        
         Format: `projects/{project-id}/locations/{location-id}`.
        
         If no location is specified, a region will be chosen automatically.
         
        string parent = 2;
        Specified by:
        getParent in interface BatchProcessDocumentsRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Target project and location to make a call.
        
         Format: `projects/{project-id}/locations/{location-id}`.
        
         If no location is specified, a region will be chosen automatically.
         
        string parent = 2;
        Specified by:
        getParentBytes in interface BatchProcessDocumentsRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public BatchProcessDocumentsRequest.Builder setParent​(String value)
         Target project and location to make a call.
        
         Format: `projects/{project-id}/locations/{location-id}`.
        
         If no location is specified, a region will be chosen automatically.
         
        string parent = 2;
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public BatchProcessDocumentsRequest.Builder clearParent()
         Target project and location to make a call.
        
         Format: `projects/{project-id}/locations/{location-id}`.
        
         If no location is specified, a region will be chosen automatically.
         
        string parent = 2;
        Returns:
        This builder for chaining.
      • setParentBytes

        public BatchProcessDocumentsRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Target project and location to make a call.
        
         Format: `projects/{project-id}/locations/{location-id}`.
        
         If no location is specified, a region will be chosen automatically.
         
        string parent = 2;
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.