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.v2beta1.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.v2beta1.Documents.ReloadDocument].
 
Protobuf type google.cloud.dialogflow.v2beta1.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.
    • hasGcsSource

      public boolean hasGcsSource()
       The path for a Cloud Storage source file for reloading document content.
       If not provided, the Document's existing source will be reloaded.
       
      .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3;
      Specified by:
      hasGcsSource in interface ReloadDocumentRequestOrBuilder
      Returns:
      Whether the gcsSource field is set.
    • getGcsSource

      public GcsSource getGcsSource()
       The path for a Cloud Storage source file for reloading document content.
       If not provided, the Document's existing source will be reloaded.
       
      .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3;
      Specified by:
      getGcsSource in interface ReloadDocumentRequestOrBuilder
      Returns:
      The gcsSource.
    • setGcsSource

      public ReloadDocumentRequest.Builder setGcsSource(GcsSource value)
       The path for a Cloud Storage source file for reloading document content.
       If not provided, the Document's existing source will be reloaded.
       
      .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3;
    • setGcsSource

      public ReloadDocumentRequest.Builder setGcsSource(GcsSource.Builder builderForValue)
       The path for a Cloud Storage source file for reloading document content.
       If not provided, the Document's existing source will be reloaded.
       
      .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3;
    • mergeGcsSource

      public ReloadDocumentRequest.Builder mergeGcsSource(GcsSource value)
       The path for a Cloud Storage source file for reloading document content.
       If not provided, the Document's existing source will be reloaded.
       
      .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3;
    • clearGcsSource

      public ReloadDocumentRequest.Builder clearGcsSource()
       The path for a Cloud Storage source file for reloading document content.
       If not provided, the Document's existing source will be reloaded.
       
      .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3;
    • getGcsSourceBuilder

      public GcsSource.Builder getGcsSourceBuilder()
       The path for a Cloud Storage source file for reloading document content.
       If not provided, the Document's existing source will be reloaded.
       
      .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3;
    • getGcsSourceOrBuilder

      public GcsSourceOrBuilder getGcsSourceOrBuilder()
       The path for a Cloud Storage source file for reloading document content.
       If not provided, the Document's existing source will be reloaded.
       
      .google.cloud.dialogflow.v2beta1.GcsSource gcs_source = 3;
      Specified by:
      getGcsSourceOrBuilder in interface ReloadDocumentRequestOrBuilder
    • getImportGcsCustomMetadata

      public boolean getImportGcsCustomMetadata()
       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;
      Specified by:
      getImportGcsCustomMetadata in interface ReloadDocumentRequestOrBuilder
      Returns:
      The importGcsCustomMetadata.
    • setImportGcsCustomMetadata

      public ReloadDocumentRequest.Builder setImportGcsCustomMetadata(boolean value)
       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;
      Parameters:
      value - The importGcsCustomMetadata to set.
      Returns:
      This builder for chaining.
    • clearImportGcsCustomMetadata

      public ReloadDocumentRequest.Builder clearImportGcsCustomMetadata()
       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;
      Returns:
      This builder for chaining.