Class KnowledgeConnectorSettings.Builder

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

    public static final class KnowledgeConnectorSettings.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<KnowledgeConnectorSettings.Builder>
    implements KnowledgeConnectorSettingsOrBuilder
     The Knowledge Connector settings for this page or flow.
     This includes information such as the attached Knowledge Bases, and the way
     to execute fulfillment.
     
    Protobuf type google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings
    • 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<KnowledgeConnectorSettings.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<KnowledgeConnectorSettings.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public KnowledgeConnectorSettings.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<KnowledgeConnectorSettings.Builder>
        Throws:
        IOException
      • setEnabled

        public KnowledgeConnectorSettings.Builder setEnabled​(boolean value)
         Whether Knowledge Connector is enabled or not.
         
        bool enabled = 1;
        Parameters:
        value - The enabled to set.
        Returns:
        This builder for chaining.
      • clearEnabled

        public KnowledgeConnectorSettings.Builder clearEnabled()
         Whether Knowledge Connector is enabled or not.
         
        bool enabled = 1;
        Returns:
        This builder for chaining.
      • hasTriggerFulfillment

        public boolean hasTriggerFulfillment()
         The fulfillment to be triggered.
        
         When the answers from the Knowledge Connector are selected by Dialogflow,
         you can utitlize the request scoped parameter `$request.knowledge.answers`
         (contains up to the 5 highest confidence answers) and
         `$request.knowledge.questions` (contains the corresponding questions) to
         construct the fulfillment.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
        Specified by:
        hasTriggerFulfillment in interface KnowledgeConnectorSettingsOrBuilder
        Returns:
        Whether the triggerFulfillment field is set.
      • getTriggerFulfillment

        public Fulfillment getTriggerFulfillment()
         The fulfillment to be triggered.
        
         When the answers from the Knowledge Connector are selected by Dialogflow,
         you can utitlize the request scoped parameter `$request.knowledge.answers`
         (contains up to the 5 highest confidence answers) and
         `$request.knowledge.questions` (contains the corresponding questions) to
         construct the fulfillment.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
        Specified by:
        getTriggerFulfillment in interface KnowledgeConnectorSettingsOrBuilder
        Returns:
        The triggerFulfillment.
      • setTriggerFulfillment

        public KnowledgeConnectorSettings.Builder setTriggerFulfillment​(Fulfillment value)
         The fulfillment to be triggered.
        
         When the answers from the Knowledge Connector are selected by Dialogflow,
         you can utitlize the request scoped parameter `$request.knowledge.answers`
         (contains up to the 5 highest confidence answers) and
         `$request.knowledge.questions` (contains the corresponding questions) to
         construct the fulfillment.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • setTriggerFulfillment

        public KnowledgeConnectorSettings.Builder setTriggerFulfillment​(Fulfillment.Builder builderForValue)
         The fulfillment to be triggered.
        
         When the answers from the Knowledge Connector are selected by Dialogflow,
         you can utitlize the request scoped parameter `$request.knowledge.answers`
         (contains up to the 5 highest confidence answers) and
         `$request.knowledge.questions` (contains the corresponding questions) to
         construct the fulfillment.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • mergeTriggerFulfillment

        public KnowledgeConnectorSettings.Builder mergeTriggerFulfillment​(Fulfillment value)
         The fulfillment to be triggered.
        
         When the answers from the Knowledge Connector are selected by Dialogflow,
         you can utitlize the request scoped parameter `$request.knowledge.answers`
         (contains up to the 5 highest confidence answers) and
         `$request.knowledge.questions` (contains the corresponding questions) to
         construct the fulfillment.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • clearTriggerFulfillment

        public KnowledgeConnectorSettings.Builder clearTriggerFulfillment()
         The fulfillment to be triggered.
        
         When the answers from the Knowledge Connector are selected by Dialogflow,
         you can utitlize the request scoped parameter `$request.knowledge.answers`
         (contains up to the 5 highest confidence answers) and
         `$request.knowledge.questions` (contains the corresponding questions) to
         construct the fulfillment.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • getTriggerFulfillmentBuilder

        public Fulfillment.Builder getTriggerFulfillmentBuilder()
         The fulfillment to be triggered.
        
         When the answers from the Knowledge Connector are selected by Dialogflow,
         you can utitlize the request scoped parameter `$request.knowledge.answers`
         (contains up to the 5 highest confidence answers) and
         `$request.knowledge.questions` (contains the corresponding questions) to
         construct the fulfillment.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      • getTriggerFulfillmentOrBuilder

        public FulfillmentOrBuilder getTriggerFulfillmentOrBuilder()
         The fulfillment to be triggered.
        
         When the answers from the Knowledge Connector are selected by Dialogflow,
         you can utitlize the request scoped parameter `$request.knowledge.answers`
         (contains up to the 5 highest confidence answers) and
         `$request.knowledge.questions` (contains the corresponding questions) to
         construct the fulfillment.
         
        .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
        Specified by:
        getTriggerFulfillmentOrBuilder in interface KnowledgeConnectorSettingsOrBuilder
      • hasTargetPage

        public boolean hasTargetPage()
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        hasTargetPage in interface KnowledgeConnectorSettingsOrBuilder
        Returns:
        Whether the targetPage field is set.
      • getTargetPage

        public String getTargetPage()
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTargetPage in interface KnowledgeConnectorSettingsOrBuilder
        Returns:
        The targetPage.
      • getTargetPageBytes

        public com.google.protobuf.ByteString getTargetPageBytes()
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTargetPageBytes in interface KnowledgeConnectorSettingsOrBuilder
        Returns:
        The bytes for targetPage.
      • setTargetPage

        public KnowledgeConnectorSettings.Builder setTargetPage​(String value)
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The targetPage to set.
        Returns:
        This builder for chaining.
      • clearTargetPage

        public KnowledgeConnectorSettings.Builder clearTargetPage()
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setTargetPageBytes

        public KnowledgeConnectorSettings.Builder setTargetPageBytes​(com.google.protobuf.ByteString value)
         The target page to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>/pages/<Page ID>`.
         
        string target_page = 4 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for targetPage to set.
        Returns:
        This builder for chaining.
      • hasTargetFlow

        public boolean hasTargetFlow()
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Specified by:
        hasTargetFlow in interface KnowledgeConnectorSettingsOrBuilder
        Returns:
        Whether the targetFlow field is set.
      • getTargetFlow

        public String getTargetFlow()
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTargetFlow in interface KnowledgeConnectorSettingsOrBuilder
        Returns:
        The targetFlow.
      • getTargetFlowBytes

        public com.google.protobuf.ByteString getTargetFlowBytes()
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTargetFlowBytes in interface KnowledgeConnectorSettingsOrBuilder
        Returns:
        The bytes for targetFlow.
      • setTargetFlow

        public KnowledgeConnectorSettings.Builder setTargetFlow​(String value)
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The targetFlow to set.
        Returns:
        This builder for chaining.
      • clearTargetFlow

        public KnowledgeConnectorSettings.Builder clearTargetFlow()
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setTargetFlowBytes

        public KnowledgeConnectorSettings.Builder setTargetFlowBytes​(com.google.protobuf.ByteString value)
         The target flow to transition to.
         Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/flows/<Flow ID>`.
         
        string target_flow = 5 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for targetFlow to set.
        Returns:
        This builder for chaining.
      • getDataStoreConnectionsCount

        public int getDataStoreConnectionsCount()
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDataStoreConnectionsCount in interface KnowledgeConnectorSettingsOrBuilder
      • setDataStoreConnections

        public KnowledgeConnectorSettings.Builder setDataStoreConnections​(int index,
                                                                          DataStoreConnection value)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setDataStoreConnections

        public KnowledgeConnectorSettings.Builder setDataStoreConnections​(int index,
                                                                          DataStoreConnection.Builder builderForValue)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDataStoreConnections

        public KnowledgeConnectorSettings.Builder addDataStoreConnections​(DataStoreConnection value)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDataStoreConnections

        public KnowledgeConnectorSettings.Builder addDataStoreConnections​(int index,
                                                                          DataStoreConnection value)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDataStoreConnections

        public KnowledgeConnectorSettings.Builder addDataStoreConnections​(DataStoreConnection.Builder builderForValue)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDataStoreConnections

        public KnowledgeConnectorSettings.Builder addDataStoreConnections​(int index,
                                                                          DataStoreConnection.Builder builderForValue)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addAllDataStoreConnections

        public KnowledgeConnectorSettings.Builder addAllDataStoreConnections​(Iterable<? extends DataStoreConnection> values)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • clearDataStoreConnections

        public KnowledgeConnectorSettings.Builder clearDataStoreConnections()
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • removeDataStoreConnections

        public KnowledgeConnectorSettings.Builder removeDataStoreConnections​(int index)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getDataStoreConnectionsBuilder

        public DataStoreConnection.Builder getDataStoreConnectionsBuilder​(int index)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDataStoreConnectionsBuilder

        public DataStoreConnection.Builder addDataStoreConnectionsBuilder()
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • addDataStoreConnectionsBuilder

        public DataStoreConnection.Builder addDataStoreConnectionsBuilder​(int index)
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getDataStoreConnectionsBuilderList

        public List<DataStoreConnection.Builder> getDataStoreConnectionsBuilderList()
         Optional. List of related data store connections.
         
        repeated .google.cloud.dialogflow.cx.v3.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

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

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