Class KnowledgeConnectorSettings
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings
-
- All Implemented Interfaces:
KnowledgeConnectorSettingsOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class KnowledgeConnectorSettings extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KnowledgeConnectorSettings.Builder
The Knowledge Connector settings for this page or flow.static class
KnowledgeConnectorSettings.TargetCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DATA_STORE_CONNECTIONS_FIELD_NUMBER
static int
ENABLED_FIELD_NUMBER
static int
TARGET_FLOW_FIELD_NUMBER
static int
TARGET_PAGE_FIELD_NUMBER
static int
TRIGGER_FULFILLMENT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
DataStoreConnection
getDataStoreConnections(int index)
Optional.int
getDataStoreConnectionsCount()
Optional.List<DataStoreConnection>
getDataStoreConnectionsList()
Optional.DataStoreConnectionOrBuilder
getDataStoreConnectionsOrBuilder(int index)
Optional.List<? extends DataStoreConnectionOrBuilder>
getDataStoreConnectionsOrBuilderList()
Optional.static KnowledgeConnectorSettings
getDefaultInstance()
KnowledgeConnectorSettings
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
boolean
getEnabled()
Whether Knowledge Connector is enabled or not.com.google.protobuf.Parser<KnowledgeConnectorSettings>
getParserForType()
int
getSerializedSize()
KnowledgeConnectorSettings.TargetCase
getTargetCase()
String
getTargetFlow()
The target flow to transition to.com.google.protobuf.ByteString
getTargetFlowBytes()
The target flow to transition to.String
getTargetPage()
The target page to transition to.com.google.protobuf.ByteString
getTargetPageBytes()
The target page to transition to.Fulfillment
getTriggerFulfillment()
The fulfillment to be triggered.FulfillmentOrBuilder
getTriggerFulfillmentOrBuilder()
The fulfillment to be triggered.int
hashCode()
boolean
hasTargetFlow()
The target flow to transition to.boolean
hasTargetPage()
The target page to transition to.boolean
hasTriggerFulfillment()
The fulfillment to be triggered.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static KnowledgeConnectorSettings.Builder
newBuilder()
static KnowledgeConnectorSettings.Builder
newBuilder(KnowledgeConnectorSettings prototype)
KnowledgeConnectorSettings.Builder
newBuilderForType()
protected KnowledgeConnectorSettings.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static KnowledgeConnectorSettings
parseDelimitedFrom(InputStream input)
static KnowledgeConnectorSettings
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KnowledgeConnectorSettings
parseFrom(byte[] data)
static KnowledgeConnectorSettings
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KnowledgeConnectorSettings
parseFrom(com.google.protobuf.ByteString data)
static KnowledgeConnectorSettings
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KnowledgeConnectorSettings
parseFrom(com.google.protobuf.CodedInputStream input)
static KnowledgeConnectorSettings
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KnowledgeConnectorSettings
parseFrom(InputStream input)
static KnowledgeConnectorSettings
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static KnowledgeConnectorSettings
parseFrom(ByteBuffer data)
static KnowledgeConnectorSettings
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<KnowledgeConnectorSettings>
parser()
KnowledgeConnectorSettings.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRIGGER_FULFILLMENT_FIELD_NUMBER
public static final int TRIGGER_FULFILLMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_PAGE_FIELD_NUMBER
public static final int TARGET_PAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGET_FLOW_FIELD_NUMBER
public static final int TARGET_FLOW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DATA_STORE_CONNECTIONS_FIELD_NUMBER
public static final int DATA_STORE_CONNECTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getTargetCase
public KnowledgeConnectorSettings.TargetCase getTargetCase()
- Specified by:
getTargetCase
in interfaceKnowledgeConnectorSettingsOrBuilder
-
getEnabled
public boolean getEnabled()
Whether Knowledge Connector is enabled or not.
bool enabled = 1;
- Specified by:
getEnabled
in interfaceKnowledgeConnectorSettingsOrBuilder
- Returns:
- The enabled.
-
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 interfaceKnowledgeConnectorSettingsOrBuilder
- 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 interfaceKnowledgeConnectorSettingsOrBuilder
- Returns:
- The triggerFulfillment.
-
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 interfaceKnowledgeConnectorSettingsOrBuilder
-
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 interfaceKnowledgeConnectorSettingsOrBuilder
- 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 interfaceKnowledgeConnectorSettingsOrBuilder
- 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 interfaceKnowledgeConnectorSettingsOrBuilder
- Returns:
- The bytes for targetPage.
-
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 interfaceKnowledgeConnectorSettingsOrBuilder
- 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 interfaceKnowledgeConnectorSettingsOrBuilder
- 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 interfaceKnowledgeConnectorSettingsOrBuilder
- Returns:
- The bytes for targetFlow.
-
getDataStoreConnectionsList
public List<DataStoreConnection> getDataStoreConnectionsList()
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:
getDataStoreConnectionsList
in interfaceKnowledgeConnectorSettingsOrBuilder
-
getDataStoreConnectionsOrBuilderList
public List<? extends DataStoreConnectionOrBuilder> getDataStoreConnectionsOrBuilderList()
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:
getDataStoreConnectionsOrBuilderList
in interfaceKnowledgeConnectorSettingsOrBuilder
-
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 interfaceKnowledgeConnectorSettingsOrBuilder
-
getDataStoreConnections
public DataStoreConnection getDataStoreConnections(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];
- Specified by:
getDataStoreConnections
in interfaceKnowledgeConnectorSettingsOrBuilder
-
getDataStoreConnectionsOrBuilder
public DataStoreConnectionOrBuilder getDataStoreConnectionsOrBuilder(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];
- Specified by:
getDataStoreConnectionsOrBuilder
in interfaceKnowledgeConnectorSettingsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static KnowledgeConnectorSettings parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static KnowledgeConnectorSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static KnowledgeConnectorSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public KnowledgeConnectorSettings.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static KnowledgeConnectorSettings.Builder newBuilder()
-
newBuilder
public static KnowledgeConnectorSettings.Builder newBuilder(KnowledgeConnectorSettings prototype)
-
toBuilder
public KnowledgeConnectorSettings.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected KnowledgeConnectorSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static KnowledgeConnectorSettings getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<KnowledgeConnectorSettings> parser()
-
getParserForType
public com.google.protobuf.Parser<KnowledgeConnectorSettings> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public KnowledgeConnectorSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-