Class ReloadDocumentRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReloadDocumentRequest.Builder>
com.google.cloud.dialogflow.v2.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.GeneratedMessage.Builder<ReloadDocumentRequest.Builder> implements ReloadDocumentRequestOrBuilder
 Request message for
 [Documents.ReloadDocument][google.cloud.dialogflow.v2.Documents.ReloadDocument].
 
Protobuf type google.cloud.dialogflow.v2.ReloadDocumentRequest
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

      public ReloadDocumentRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface ReloadDocumentRequestOrBuilder
    • clearSource

      public ReloadDocumentRequest.Builder clearSource()
    • 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.