Class KnowledgeConnectorSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<KnowledgeConnectorSettings.Builder>
com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessage.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.v3beta1.KnowledgeConnectorSettings-
Method Summary
Modifier and TypeMethodDescriptionaddAllDataStoreConnections(Iterable<? extends DataStoreConnection> values) Optional.addDataStoreConnections(int index, DataStoreConnection value) Optional.addDataStoreConnections(int index, DataStoreConnection.Builder builderForValue) Optional.Optional.addDataStoreConnections(DataStoreConnection.Builder builderForValue) Optional.Optional.addDataStoreConnectionsBuilder(int index) Optional.build()clear()Optional.Whether Knowledge Connector is enabled or not.The target flow to transition to.The target page to transition to.The fulfillment to be triggered.getDataStoreConnections(int index) Optional.getDataStoreConnectionsBuilder(int index) Optional.Optional.intOptional.Optional.getDataStoreConnectionsOrBuilder(int index) Optional.List<? extends DataStoreConnectionOrBuilder>Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether Knowledge Connector is enabled or not.The target flow to transition to.com.google.protobuf.ByteStringThe target flow to transition to.The target page to transition to.com.google.protobuf.ByteStringThe target page to transition to.The fulfillment to be triggered.The fulfillment to be triggered.The fulfillment to be triggered.booleanThe target flow to transition to.booleanThe target page to transition to.booleanThe fulfillment to be triggered.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The fulfillment to be triggered.removeDataStoreConnections(int index) Optional.setDataStoreConnections(int index, DataStoreConnection value) Optional.setDataStoreConnections(int index, DataStoreConnection.Builder builderForValue) Optional.setEnabled(boolean value) Whether Knowledge Connector is enabled or not.setTargetFlow(String value) The target flow to transition to.setTargetFlowBytes(com.google.protobuf.ByteString value) The target flow to transition to.setTargetPage(String value) The target page to transition to.setTargetPageBytes(com.google.protobuf.ByteString value) The target page to transition to.setTriggerFulfillment(Fulfillment value) The fulfillment to be triggered.setTriggerFulfillment(Fulfillment.Builder builderForValue) The fulfillment to be triggered.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<KnowledgeConnectorSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<KnowledgeConnectorSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<KnowledgeConnectorSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KnowledgeConnectorSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<KnowledgeConnectorSettings.Builder>
-
mergeFrom
public KnowledgeConnectorSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<KnowledgeConnectorSettings.Builder>- Throws:
IOException
-
getTargetCase
- Specified by:
getTargetCasein interfaceKnowledgeConnectorSettingsOrBuilder
-
clearTarget
-
getEnabled
public boolean getEnabled()Whether Knowledge Connector is enabled or not.
bool enabled = 1;- Specified by:
getEnabledin interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- The enabled.
-
setEnabled
Whether Knowledge Connector is enabled or not.
bool enabled = 1;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
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.v3beta1.Fulfillment trigger_fulfillment = 3;- Specified by:
hasTriggerFulfillmentin interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- Whether the triggerFulfillment field is set.
-
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.v3beta1.Fulfillment trigger_fulfillment = 3;- Specified by:
getTriggerFulfillmentin interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- The triggerFulfillment.
-
setTriggerFulfillment
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.v3beta1.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.v3beta1.Fulfillment trigger_fulfillment = 3; -
mergeTriggerFulfillment
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.v3beta1.Fulfillment trigger_fulfillment = 3; -
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.v3beta1.Fulfillment trigger_fulfillment = 3; -
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.v3beta1.Fulfillment trigger_fulfillment = 3; -
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.v3beta1.Fulfillment trigger_fulfillment = 3;- Specified by:
getTriggerFulfillmentOrBuilderin interfaceKnowledgeConnectorSettingsOrBuilder
-
hasTargetPage
public boolean hasTargetPage()The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetPagein interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- Whether the targetPage field is set.
-
getTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetPagein interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- The targetPage.
-
getTargetPageBytes
public com.google.protobuf.ByteString getTargetPageBytes()The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetPageBytesin interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- The bytes for targetPage.
-
setTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Parameters:
value- The targetPage to set.- Returns:
- This builder for chaining.
-
clearTargetPage
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
string target_page = 4 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTargetPageBytes
The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Specified by:
hasTargetFlowin interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- Whether the targetFlow field is set.
-
getTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetFlowin interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- The targetFlow.
-
getTargetFlowBytes
public com.google.protobuf.ByteString getTargetFlowBytes()The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetFlowBytesin interfaceKnowledgeConnectorSettingsOrBuilder- Returns:
- The bytes for targetFlow.
-
setTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The targetFlow to set.- Returns:
- This builder for chaining.
-
clearTargetFlow
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTargetFlowBytes
The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string target_flow = 5 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for targetFlow to set.- Returns:
- This builder for chaining.
-
getDataStoreConnectionsList
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreConnectionsListin interfaceKnowledgeConnectorSettingsOrBuilder
-
getDataStoreConnectionsCount
public int getDataStoreConnectionsCount()Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreConnectionsCountin interfaceKnowledgeConnectorSettingsOrBuilder
-
getDataStoreConnections
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreConnectionsin interfaceKnowledgeConnectorSettingsOrBuilder
-
setDataStoreConnections
public KnowledgeConnectorSettings.Builder setDataStoreConnections(int index, DataStoreConnection value) Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addDataStoreConnections
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.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.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearDataStoreConnections
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL]; -
removeDataStoreConnections
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getDataStoreConnectionsBuilder
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getDataStoreConnectionsOrBuilder
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreConnectionsOrBuilderin interfaceKnowledgeConnectorSettingsOrBuilder
-
getDataStoreConnectionsOrBuilderList
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataStoreConnectionsOrBuilderListin interfaceKnowledgeConnectorSettingsOrBuilder
-
addDataStoreConnectionsBuilder
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addDataStoreConnectionsBuilder
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getDataStoreConnectionsBuilderList
Optional. List of related data store connections.
repeated .google.cloud.dialogflow.cx.v3beta1.DataStoreConnection data_store_connections = 6 [(.google.api.field_behavior) = OPTIONAL];
-