public static final class HumanAgentAssistantConfig.SuggestionQueryConfig.Builder extends GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder> implements HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
Config for suggestion query.Protobuf type
google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public HumanAgentAssistantConfig.SuggestionQueryConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder mergeFrom(HumanAgentAssistantConfig.SuggestionQueryConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
IOException
public HumanAgentAssistantConfig.SuggestionQueryConfig.QuerySourceCase getQuerySourceCase()
getQuerySourceCase
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearQuerySource()
public boolean hasKnowledgeBaseQuerySource()
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2.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.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
getKnowledgeBaseQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setKnowledgeBaseQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource value)
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setKnowledgeBaseQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder builderForValue)
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder mergeKnowledgeBaseQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource value)
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearKnowledgeBaseQuerySource()
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
public HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource.Builder getKnowledgeBaseQuerySourceBuilder()
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySource knowledge_base_query_source = 1;
public HumanAgentAssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceOrBuilder getKnowledgeBaseQuerySourceOrBuilder()
Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
.google.cloud.dialogflow.v2.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.v2.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.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
getDocumentQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setDocumentQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource value)
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setDocumentQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder builderForValue)
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder mergeDocumentQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource value)
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearDocumentQuerySource()
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
public HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource.Builder getDocumentQuerySourceBuilder()
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySource document_query_source = 2;
public HumanAgentAssistantConfig.SuggestionQueryConfig.DocumentQuerySourceOrBuilder getDocumentQuerySourceOrBuilder()
Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
.google.cloud.dialogflow.v2.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.v2.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.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
getDialogflowQuerySource
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setDialogflowQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource value)
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setDialogflowQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder builderForValue)
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder mergeDialogflowQuerySource(HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource value)
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearDialogflowQuerySource()
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
public HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource.Builder getDialogflowQuerySourceBuilder()
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySource dialogflow_query_source = 3;
public HumanAgentAssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceOrBuilder getDialogflowQuerySourceOrBuilder()
Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
.google.cloud.dialogflow.v2.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 HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setMaxResults(int value)
Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.
int32 max_results = 4;
value
- The maxResults to set.public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearMaxResults()
Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.
int32 max_results = 4;
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 defaults 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 HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setConfidenceThreshold(float value)
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 defaults to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
float confidence_threshold = 5;
value
- The confidenceThreshold to set.public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearConfidenceThreshold()
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 defaults to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
float confidence_threshold = 5;
public boolean hasContextFilterSettings()
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2.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.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
getContextFilterSettings
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setContextFilterSettings(HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings value)
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setContextFilterSettings(HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder builderForValue)
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder mergeContextFilterSettings(HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings value)
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
public HumanAgentAssistantConfig.SuggestionQueryConfig.Builder clearContextFilterSettings()
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
public HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings.Builder getContextFilterSettingsBuilder()
Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
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.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.ContextFilterSettings context_filter_settings = 7;
getContextFilterSettingsOrBuilder
in interface HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder
public final HumanAgentAssistantConfig.SuggestionQueryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
public final HumanAgentAssistantConfig.SuggestionQueryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<HumanAgentAssistantConfig.SuggestionQueryConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.