Class ReloadDocumentRequest.Builder

  • All Implemented Interfaces:
    ReloadDocumentRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ReloadDocumentRequest

    public static final class ReloadDocumentRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ReloadDocumentRequest.Builder>
    implements ReloadDocumentRequestOrBuilder
     Request message for
     [Documents.ReloadDocument][google.cloud.dialogflow.v2.Documents.ReloadDocument].
     
    Protobuf type google.cloud.dialogflow.v2.ReloadDocumentRequest
    • 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<ReloadDocumentRequest.Builder>
      • clear

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

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

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

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

        public ReloadDocumentRequest.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<ReloadDocumentRequest.Builder>
      • clearField

        public ReloadDocumentRequest.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<ReloadDocumentRequest.Builder>
      • clearOneof

        public ReloadDocumentRequest.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<ReloadDocumentRequest.Builder>
      • setRepeatedField

        public ReloadDocumentRequest.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<ReloadDocumentRequest.Builder>
      • addRepeatedField

        public ReloadDocumentRequest.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<ReloadDocumentRequest.Builder>
      • isInitialized

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

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

        public String getName()
         Required. The name of the document to reload.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface ReloadDocumentRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The name of the document to reload.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface ReloadDocumentRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ReloadDocumentRequest.Builder setName​(String value)
         Required. The name of the document to reload.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document 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 ReloadDocumentRequest.Builder clearName()
         Required. The name of the document to reload.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNameBytes

        public ReloadDocumentRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The name of the document to reload.
         Format: `projects/<Project ID>/locations/<Location
         ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document 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.
      • hasContentUri

        public boolean hasContentUri()
         Optional. The path of gcs source file for reloading document content. For
         now, only gcs uri is supported.
        
         For documents stored in Google Cloud Storage, these URIs must have
         the form `gs://<bucket-name>/<object-name>`.
         
        string content_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasContentUri in interface ReloadDocumentRequestOrBuilder
        Returns:
        Whether the contentUri field is set.
      • getContentUri

        public String getContentUri()
         Optional. The path of gcs source file for reloading document content. For
         now, only gcs uri is supported.
        
         For documents stored in Google Cloud Storage, these URIs must have
         the form `gs://<bucket-name>/<object-name>`.
         
        string content_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getContentUri in interface ReloadDocumentRequestOrBuilder
        Returns:
        The contentUri.
      • getContentUriBytes

        public com.google.protobuf.ByteString getContentUriBytes()
         Optional. The path of gcs source file for reloading document content. For
         now, only gcs uri is supported.
        
         For documents stored in Google Cloud Storage, these URIs must have
         the form `gs://<bucket-name>/<object-name>`.
         
        string content_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getContentUriBytes in interface ReloadDocumentRequestOrBuilder
        Returns:
        The bytes for contentUri.
      • setContentUri

        public ReloadDocumentRequest.Builder setContentUri​(String value)
         Optional. The path of gcs source file for reloading document content. For
         now, only gcs uri is supported.
        
         For documents stored in Google Cloud Storage, these URIs must have
         the form `gs://<bucket-name>/<object-name>`.
         
        string content_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The contentUri to set.
        Returns:
        This builder for chaining.
      • clearContentUri

        public ReloadDocumentRequest.Builder clearContentUri()
         Optional. The path of gcs source file for reloading document content. For
         now, only gcs uri is supported.
        
         For documents stored in Google Cloud Storage, these URIs must have
         the form `gs://<bucket-name>/<object-name>`.
         
        string content_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setContentUriBytes

        public ReloadDocumentRequest.Builder setContentUriBytes​(com.google.protobuf.ByteString value)
         Optional. The path of gcs source file for reloading document content. For
         now, only gcs uri is supported.
        
         For documents stored in Google Cloud Storage, these URIs must have
         the form `gs://<bucket-name>/<object-name>`.
         
        string content_uri = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for contentUri to set.
        Returns:
        This builder for chaining.
      • getImportGcsCustomMetadata

        public boolean getImportGcsCustomMetadata()
         Optional. Whether to import custom metadata from Google Cloud Storage.
         Only valid when the document source is Google Cloud Storage URI.
         
        bool import_gcs_custom_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getImportGcsCustomMetadata in interface ReloadDocumentRequestOrBuilder
        Returns:
        The importGcsCustomMetadata.
      • setImportGcsCustomMetadata

        public ReloadDocumentRequest.Builder setImportGcsCustomMetadata​(boolean value)
         Optional. Whether to import custom metadata from Google Cloud Storage.
         Only valid when the document source is Google Cloud Storage URI.
         
        bool import_gcs_custom_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The importGcsCustomMetadata to set.
        Returns:
        This builder for chaining.
      • clearImportGcsCustomMetadata

        public ReloadDocumentRequest.Builder clearImportGcsCustomMetadata()
         Optional. Whether to import custom metadata from Google Cloud Storage.
         Only valid when the document source is Google Cloud Storage URI.
         
        bool import_gcs_custom_metadata = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getSmartMessagingPartialUpdate

        public boolean getSmartMessagingPartialUpdate()
         Optional. When enabled, the reload request is to apply partial update to
         the smart messaging allowlist.
         
        bool smart_messaging_partial_update = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSmartMessagingPartialUpdate in interface ReloadDocumentRequestOrBuilder
        Returns:
        The smartMessagingPartialUpdate.
      • setSmartMessagingPartialUpdate

        public ReloadDocumentRequest.Builder setSmartMessagingPartialUpdate​(boolean value)
         Optional. When enabled, the reload request is to apply partial update to
         the smart messaging allowlist.
         
        bool smart_messaging_partial_update = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The smartMessagingPartialUpdate to set.
        Returns:
        This builder for chaining.
      • clearSmartMessagingPartialUpdate

        public ReloadDocumentRequest.Builder clearSmartMessagingPartialUpdate()
         Optional. When enabled, the reload request is to apply partial update to
         the smart messaging allowlist.
         
        bool smart_messaging_partial_update = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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