public static final class HumanAgentAssistantConfig.SuggestionQueryConfig extends GeneratedMessageV3 implements HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
Config for suggestion query.Protobuf type
google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CONFIDENCE_THRESHOLD_FIELD_NUMBER |
static int |
CONTEXT_FILTER_SETTINGS_FIELD_NUMBER |
static int |
DIALOGFLOW_QUERY_SOURCE_FIELD_NUMBER |
static int |
DOCUMENT_QUERY_SOURCE_FIELD_NUMBER |
static int |
KNOWLEDGE_BASE_QUERY_SOURCE_FIELD_NUMBER |
static int |
MAX_RESULTS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int KNOWLEDGE_BASE_QUERY_SOURCE_FIELD_NUMBER
public static final int DOCUMENT_QUERY_SOURCE_FIELD_NUMBER
public static final int DIALOGFLOW_QUERY_SOURCE_FIELD_NUMBER
public static final int MAX_RESULTS_FIELD_NUMBER
public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER
public static final int CONTEXT_FILTER_SETTINGS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public HumanAgentAssistantConfig.SuggestionQueryConfig.QuerySourceCase getQuerySourceCase()
getQuerySourceCase
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public boolean hasKnowledgeBaseQuerySource()
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
hasKnowledgeBaseQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource getKnowledgeBaseQuerySource()
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
getKnowledgeBaseQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder getKnowledgeBaseQuerySourceOrBuilder()
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
getKnowledgeBaseQuerySourceOrBuilder
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public boolean hasDocumentQuerySource()
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
hasDocumentQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource getDocumentQuerySource()
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
getDocumentQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder getDocumentQuerySourceOrBuilder()
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
getDocumentQuerySourceOrBuilder
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public boolean hasDialogflowQuerySource()
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
hasDialogflowQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource getDialogflowQuerySource()
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
getDialogflowQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder getDialogflowQuerySourceOrBuilder()
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
getDialogflowQuerySourceOrBuilder
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public int getMaxResults()
Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.
int32 max_results = 4;
getMaxResults
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public float getConfidenceThreshold()
Confidence threshold of query result. Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results. For a baseline model (the default), the recommended value is in the range [0.05, 0.1]. For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results. If this field is not set, it is default to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
float confidence_threshold = 5;
getConfidenceThreshold
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public boolean hasContextFilterSettings()
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
hasContextFilterSettings
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings getContextFilterSettings()
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
getContextFilterSettings
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettingsOrBuilder getContextFilterSettingsOrBuilder()
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
getContextFilterSettingsOrBuilder
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(InputStream input) throws IOException
IOException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static HumanAgentAssistantConfig.SuggestionQueryConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static HumanAgentAssistantConfig.SuggestionQueryConfig.Builder newBuilder()
public static HumanAgentAssistantConfig.SuggestionQueryConfig.Builder newBuilder(HumanAgentAssistantConfig.SuggestionQueryConfig prototype)
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected HumanAgentAssistantConfig.SuggestionQueryConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static HumanAgentAssistantConfig.SuggestionQueryConfig getDefaultInstance()
public static Parser<HumanAgentAssistantConfig.SuggestionQueryConfig> parser()
public Parser<HumanAgentAssistantConfig.SuggestionQueryConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public HumanAgentAssistantConfig.SuggestionQueryConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.