Class 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.GeneratedMessageV3.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.v3.DataStoreConnection
    • 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<DataStoreConnection.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.v3.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.v3.DataStoreType data_store_type = 1;
        Parameters:
        value - The enum numeric value on the wire for dataStoreType to set.
        Returns:
        This builder for chaining.
      • setDataStoreType

        public DataStoreConnection.Builder setDataStoreType​(DataStoreType value)
         The type of the connected data store.
         
        .google.cloud.dialogflow.cx.v3.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.v3.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.
      • setUnknownFields

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

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