Class UpdateDocumentRequest.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<UpdateDocumentRequest.Builder>
      • clear

        public UpdateDocumentRequest.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.GeneratedMessageV3.Builder<UpdateDocumentRequest.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<UpdateDocumentRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public UpdateDocumentRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateDocumentRequest.Builder>
      • clearField

        public UpdateDocumentRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateDocumentRequest.Builder>
      • clearOneof

        public UpdateDocumentRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateDocumentRequest.Builder>
      • setRepeatedField

        public UpdateDocumentRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateDocumentRequest.Builder>
      • addRepeatedField

        public UpdateDocumentRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateDocumentRequest.Builder>
      • isInitialized

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

        public UpdateDocumentRequest.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<UpdateDocumentRequest.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The name of the document to update.
         Format:
         projects/{project_number}/locations/{location}/documents/{document_id}
         or
         projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface UpdateDocumentRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The name of the document to update.
         Format:
         projects/{project_number}/locations/{location}/documents/{document_id}
         or
         projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface UpdateDocumentRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public UpdateDocumentRequest.Builder setName​(String value)
         Required. The name of the document to update.
         Format:
         projects/{project_number}/locations/{location}/documents/{document_id}
         or
         projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public UpdateDocumentRequest.Builder clearName()
         Required. The name of the document to update.
         Format:
         projects/{project_number}/locations/{location}/documents/{document_id}
         or
         projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public UpdateDocumentRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The name of the document to update.
         Format:
         projects/{project_number}/locations/{location}/documents/{document_id}
         or
         projects/{project_number}/locations/{location}/documents/referenceId/{reference_id}.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasDocument

        public boolean hasDocument()
         Required. The document to update.
         
        .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDocument in interface UpdateDocumentRequestOrBuilder
        Returns:
        Whether the document field is set.
      • getDocument

        public Document getDocument()
         Required. The document to update.
         
        .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDocument in interface UpdateDocumentRequestOrBuilder
        Returns:
        The document.
      • setDocument

        public UpdateDocumentRequest.Builder setDocument​(Document value)
         Required. The document to update.
         
        .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
      • setDocument

        public UpdateDocumentRequest.Builder setDocument​(Document.Builder builderForValue)
         Required. The document to update.
         
        .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeDocument

        public UpdateDocumentRequest.Builder mergeDocument​(Document value)
         Required. The document to update.
         
        .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearDocument

        public UpdateDocumentRequest.Builder clearDocument()
         Required. The document to update.
         
        .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
      • getDocumentBuilder

        public Document.Builder getDocumentBuilder()
         Required. The document to update.
         
        .google.cloud.contentwarehouse.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED];
      • hasRequestMetadata

        public boolean hasRequestMetadata()
         The meta information collected about the end user, used to enforce access
         control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
        Specified by:
        hasRequestMetadata in interface UpdateDocumentRequestOrBuilder
        Returns:
        Whether the requestMetadata field is set.
      • getRequestMetadata

        public RequestMetadata getRequestMetadata()
         The meta information collected about the end user, used to enforce access
         control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
        Specified by:
        getRequestMetadata in interface UpdateDocumentRequestOrBuilder
        Returns:
        The requestMetadata.
      • setRequestMetadata

        public UpdateDocumentRequest.Builder setRequestMetadata​(RequestMetadata value)
         The meta information collected about the end user, used to enforce access
         control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • setRequestMetadata

        public UpdateDocumentRequest.Builder setRequestMetadata​(RequestMetadata.Builder builderForValue)
         The meta information collected about the end user, used to enforce access
         control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • mergeRequestMetadata

        public UpdateDocumentRequest.Builder mergeRequestMetadata​(RequestMetadata value)
         The meta information collected about the end user, used to enforce access
         control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • clearRequestMetadata

        public UpdateDocumentRequest.Builder clearRequestMetadata()
         The meta information collected about the end user, used to enforce access
         control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • getRequestMetadataBuilder

        public RequestMetadata.Builder getRequestMetadataBuilder()
         The meta information collected about the end user, used to enforce access
         control for the service.
         
        .google.cloud.contentwarehouse.v1.RequestMetadata request_metadata = 3;
      • hasCloudAiDocumentOption

        public boolean hasCloudAiDocumentOption()
         Request Option for processing Cloud AI Document in Document Warehouse.
         This field offers limited support for mapping entities from Cloud AI
         Document to Warehouse Document. Please consult with product team before
         using this field and other available options.
         
        .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;
        Specified by:
        hasCloudAiDocumentOption in interface UpdateDocumentRequestOrBuilder
        Returns:
        Whether the cloudAiDocumentOption field is set.
      • getCloudAiDocumentOption

        public CloudAIDocumentOption getCloudAiDocumentOption()
         Request Option for processing Cloud AI Document in Document Warehouse.
         This field offers limited support for mapping entities from Cloud AI
         Document to Warehouse Document. Please consult with product team before
         using this field and other available options.
         
        .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;
        Specified by:
        getCloudAiDocumentOption in interface UpdateDocumentRequestOrBuilder
        Returns:
        The cloudAiDocumentOption.
      • setCloudAiDocumentOption

        public UpdateDocumentRequest.Builder setCloudAiDocumentOption​(CloudAIDocumentOption value)
         Request Option for processing Cloud AI Document in Document Warehouse.
         This field offers limited support for mapping entities from Cloud AI
         Document to Warehouse Document. Please consult with product team before
         using this field and other available options.
         
        .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;
      • setCloudAiDocumentOption

        public UpdateDocumentRequest.Builder setCloudAiDocumentOption​(CloudAIDocumentOption.Builder builderForValue)
         Request Option for processing Cloud AI Document in Document Warehouse.
         This field offers limited support for mapping entities from Cloud AI
         Document to Warehouse Document. Please consult with product team before
         using this field and other available options.
         
        .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;
      • mergeCloudAiDocumentOption

        public UpdateDocumentRequest.Builder mergeCloudAiDocumentOption​(CloudAIDocumentOption value)
         Request Option for processing Cloud AI Document in Document Warehouse.
         This field offers limited support for mapping entities from Cloud AI
         Document to Warehouse Document. Please consult with product team before
         using this field and other available options.
         
        .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;
      • clearCloudAiDocumentOption

        public UpdateDocumentRequest.Builder clearCloudAiDocumentOption()
         Request Option for processing Cloud AI Document in Document Warehouse.
         This field offers limited support for mapping entities from Cloud AI
         Document to Warehouse Document. Please consult with product team before
         using this field and other available options.
         
        .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;
      • getCloudAiDocumentOptionBuilder

        public CloudAIDocumentOption.Builder getCloudAiDocumentOptionBuilder()
         Request Option for processing Cloud AI Document in Document Warehouse.
         This field offers limited support for mapping entities from Cloud AI
         Document to Warehouse Document. Please consult with product team before
         using this field and other available options.
         
        .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;
      • getCloudAiDocumentOptionOrBuilder

        public CloudAIDocumentOptionOrBuilder getCloudAiDocumentOptionOrBuilder()
         Request Option for processing Cloud AI Document in Document Warehouse.
         This field offers limited support for mapping entities from Cloud AI
         Document to Warehouse Document. Please consult with product team before
         using this field and other available options.
         
        .google.cloud.contentwarehouse.v1.CloudAIDocumentOption cloud_ai_document_option = 5;
        Specified by:
        getCloudAiDocumentOptionOrBuilder in interface UpdateDocumentRequestOrBuilder
      • hasUpdateOptions

        public boolean hasUpdateOptions()
         Options for the update operation.
         
        .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;
        Specified by:
        hasUpdateOptions in interface UpdateDocumentRequestOrBuilder
        Returns:
        Whether the updateOptions field is set.
      • clearUpdateOptions

        public UpdateDocumentRequest.Builder clearUpdateOptions()
         Options for the update operation.
         
        .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;
      • getUpdateOptionsBuilder

        public UpdateOptions.Builder getUpdateOptionsBuilder()
         Options for the update operation.
         
        .google.cloud.contentwarehouse.v1.UpdateOptions update_options = 6;
      • setUnknownFields

        public final UpdateDocumentRequest.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<UpdateDocumentRequest.Builder>
      • mergeUnknownFields

        public final UpdateDocumentRequest.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<UpdateDocumentRequest.Builder>