Class DataStoreConnection.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataStoreConnection.Builder>
com.google.cloud.dialogflow.cx.v3beta1.DataStoreConnection.Builder
All Implemented Interfaces:
DataStoreConnectionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DataStoreConnection

public static final class DataStoreConnection.Builder extends com.google.protobuf.GeneratedMessage.Builder<DataStoreConnection.Builder> implements DataStoreConnectionOrBuilder
 A data store connection. It represents a data store in Discovery Engine and
 the type of the contents it contains.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.DataStoreConnection
  • 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<DataStoreConnection.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<DataStoreConnection.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<DataStoreConnection.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DataStoreConnection.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<DataStoreConnection.Builder>
      Throws:
      IOException
    • getDataStoreTypeValue

      public int getDataStoreTypeValue()
       The type of the connected data store.
       
      .google.cloud.dialogflow.cx.v3beta1.DataStoreType data_store_type = 1;
      Specified by:
      getDataStoreTypeValue in interface DataStoreConnectionOrBuilder
      Returns:
      The enum numeric value on the wire for dataStoreType.
    • setDataStoreTypeValue

      public DataStoreConnection.Builder setDataStoreTypeValue(int value)
       The type of the connected data store.
       
      .google.cloud.dialogflow.cx.v3beta1.DataStoreType data_store_type = 1;
      Parameters:
      value - The enum numeric value on the wire for dataStoreType to set.
      Returns:
      This builder for chaining.
    • getDataStoreType

      public DataStoreType getDataStoreType()
       The type of the connected data store.
       
      .google.cloud.dialogflow.cx.v3beta1.DataStoreType data_store_type = 1;
      Specified by:
      getDataStoreType in interface DataStoreConnectionOrBuilder
      Returns:
      The dataStoreType.
    • setDataStoreType

      public DataStoreConnection.Builder setDataStoreType(DataStoreType value)
       The type of the connected data store.
       
      .google.cloud.dialogflow.cx.v3beta1.DataStoreType data_store_type = 1;
      Parameters:
      value - The dataStoreType to set.
      Returns:
      This builder for chaining.
    • clearDataStoreType

      public DataStoreConnection.Builder clearDataStoreType()
       The type of the connected data store.
       
      .google.cloud.dialogflow.cx.v3beta1.DataStoreType data_store_type = 1;
      Returns:
      This builder for chaining.
    • getDataStore

      public String getDataStore()
       The full name of the referenced data store.
       Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}`
       
      string data_store = 2;
      Specified by:
      getDataStore in interface DataStoreConnectionOrBuilder
      Returns:
      The dataStore.
    • getDataStoreBytes

      public com.google.protobuf.ByteString getDataStoreBytes()
       The full name of the referenced data store.
       Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}`
       
      string data_store = 2;
      Specified by:
      getDataStoreBytes in interface DataStoreConnectionOrBuilder
      Returns:
      The bytes for dataStore.
    • setDataStore

      public DataStoreConnection.Builder setDataStore(String value)
       The full name of the referenced data store.
       Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}`
       
      string data_store = 2;
      Parameters:
      value - The dataStore to set.
      Returns:
      This builder for chaining.
    • clearDataStore

      public DataStoreConnection.Builder clearDataStore()
       The full name of the referenced data store.
       Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}`
       
      string data_store = 2;
      Returns:
      This builder for chaining.
    • setDataStoreBytes

      public DataStoreConnection.Builder setDataStoreBytes(com.google.protobuf.ByteString value)
       The full name of the referenced data store.
       Formats:
       `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
       `projects/{project}/locations/{location}/dataStores/{data_store}`
       
      string data_store = 2;
      Parameters:
      value - The bytes for dataStore to set.
      Returns:
      This builder for chaining.
    • getDocumentProcessingModeValue

      public int getDocumentProcessingModeValue()
       The document processing mode for the data store connection. Should only be
       set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is
       considered as DOCUMENTS, as this is the legacy mode.
       
      .google.cloud.dialogflow.cx.v3beta1.DocumentProcessingMode document_processing_mode = 4;
      Specified by:
      getDocumentProcessingModeValue in interface DataStoreConnectionOrBuilder
      Returns:
      The enum numeric value on the wire for documentProcessingMode.
    • setDocumentProcessingModeValue

      public DataStoreConnection.Builder setDocumentProcessingModeValue(int value)
       The document processing mode for the data store connection. Should only be
       set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is
       considered as DOCUMENTS, as this is the legacy mode.
       
      .google.cloud.dialogflow.cx.v3beta1.DocumentProcessingMode document_processing_mode = 4;
      Parameters:
      value - The enum numeric value on the wire for documentProcessingMode to set.
      Returns:
      This builder for chaining.
    • getDocumentProcessingMode

      public DocumentProcessingMode getDocumentProcessingMode()
       The document processing mode for the data store connection. Should only be
       set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is
       considered as DOCUMENTS, as this is the legacy mode.
       
      .google.cloud.dialogflow.cx.v3beta1.DocumentProcessingMode document_processing_mode = 4;
      Specified by:
      getDocumentProcessingMode in interface DataStoreConnectionOrBuilder
      Returns:
      The documentProcessingMode.
    • setDocumentProcessingMode

      public DataStoreConnection.Builder setDocumentProcessingMode(DocumentProcessingMode value)
       The document processing mode for the data store connection. Should only be
       set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is
       considered as DOCUMENTS, as this is the legacy mode.
       
      .google.cloud.dialogflow.cx.v3beta1.DocumentProcessingMode document_processing_mode = 4;
      Parameters:
      value - The documentProcessingMode to set.
      Returns:
      This builder for chaining.
    • clearDocumentProcessingMode

      public DataStoreConnection.Builder clearDocumentProcessingMode()
       The document processing mode for the data store connection. Should only be
       set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is
       considered as DOCUMENTS, as this is the legacy mode.
       
      .google.cloud.dialogflow.cx.v3beta1.DocumentProcessingMode document_processing_mode = 4;
      Returns:
      This builder for chaining.