Package com.google.cloud.dialogflow.v2
Class Agent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Agent.Builder>
com.google.cloud.dialogflow.v2.Agent.Builder
- All Implemented Interfaces:
AgentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Agent
public static final class Agent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Agent.Builder>
implements AgentOrBuilder
A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system. For more information about agents, see the [Agent guide](https://cloud.google.com/dialogflow/docs/agents-overview).Protobuf type
google.cloud.dialogflow.v2.Agent-
Method Summary
Modifier and TypeMethodDescriptionaddAllSupportedLanguageCodes(Iterable<String> values) Optional.addSupportedLanguageCodes(String value) Optional.addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.Required.Optional.Required.Optional.Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Required.Optional.Optional.Required.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.floatOptional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.booleanOptional.Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.intDeprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Required.com.google.protobuf.ByteStringRequired.getSupportedLanguageCodes(int index) Optional.com.google.protobuf.ByteStringgetSupportedLanguageCodesBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getTier()Optional.intOptional.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setApiVersion(Agent.ApiVersion value) Optional.setApiVersionValue(int value) Optional.setAvatarUri(String value) Optional.setAvatarUriBytes(com.google.protobuf.ByteString value) Optional.setClassificationThreshold(float value) Optional.setDefaultLanguageCode(String value) Required.setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) Required.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.setEnableLogging(boolean value) Optional.setMatchMode(Agent.MatchMode value) Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.setMatchModeValue(int value) Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setSupportedLanguageCodes(int index, String value) Optional.setTier(Agent.Tier value) Optional.setTierValue(int value) Optional.setTimeZone(String value) Required.setTimeZoneBytes(com.google.protobuf.ByteString value) Required.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<Agent.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<Agent.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<Agent.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<Agent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Agent.Builder>
-
mergeFrom
public Agent.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<Agent.Builder>- Throws:
IOException
-
getParent
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceAgentOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceAgentOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
Required. The project of this agent. Format: `projects/<Project ID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. The name of this agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceAgentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The name of this agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNameBytesin interfaceAgentOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. The name of this agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The name of this agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The name of this agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDefaultLanguageCode
Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDefaultLanguageCodein interfaceAgentOrBuilder- Returns:
- The defaultLanguageCode.
-
getDefaultLanguageCodeBytes
public com.google.protobuf.ByteString getDefaultLanguageCodeBytes()Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDefaultLanguageCodeBytesin interfaceAgentOrBuilder- Returns:
- The bytes for defaultLanguageCode.
-
setDefaultLanguageCode
Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The defaultLanguageCode to set.- Returns:
- This builder for chaining.
-
clearDefaultLanguageCode
Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDefaultLanguageCodeBytes
Required. The default language of the agent as a language tag. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes. This field cannot be set by the `Update` method.
string default_language_code = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for defaultLanguageCode to set.- Returns:
- This builder for chaining.
-
getSupportedLanguageCodesList
public com.google.protobuf.ProtocolStringList getSupportedLanguageCodesList()Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSupportedLanguageCodesListin interfaceAgentOrBuilder- Returns:
- A list containing the supportedLanguageCodes.
-
getSupportedLanguageCodesCount
public int getSupportedLanguageCodesCount()Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSupportedLanguageCodesCountin interfaceAgentOrBuilder- Returns:
- The count of supportedLanguageCodes.
-
getSupportedLanguageCodes
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSupportedLanguageCodesin interfaceAgentOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The supportedLanguageCodes at the given index.
-
getSupportedLanguageCodesBytes
public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSupportedLanguageCodesBytesin interfaceAgentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the supportedLanguageCodes at the given index.
-
setSupportedLanguageCodes
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The supportedLanguageCodes to set.- Returns:
- This builder for chaining.
-
addSupportedLanguageCodes
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The supportedLanguageCodes to add.- Returns:
- This builder for chaining.
-
addAllSupportedLanguageCodes
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The supportedLanguageCodes to add.- Returns:
- This builder for chaining.
-
clearSupportedLanguageCodes
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addSupportedLanguageCodesBytes
Optional. The list of all languages supported by this agent (except for the `default_language_code`).
repeated string supported_language_codes = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the supportedLanguageCodes to add.- Returns:
- This builder for chaining.
-
getTimeZone
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeZonein interfaceAgentOrBuilder- Returns:
- The timeZone.
-
getTimeZoneBytes
public com.google.protobuf.ByteString getTimeZoneBytes()Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTimeZoneBytesin interfaceAgentOrBuilder- Returns:
- The bytes for timeZone.
-
setTimeZone
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The timeZone to set.- Returns:
- This builder for chaining.
-
clearTimeZone
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTimeZoneBytes
Required. The time zone of this agent from the [time zone database](https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
string time_zone = 5 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for timeZone to set.- Returns:
- This builder for chaining.
-
getDescription
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionin interfaceAgentOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDescriptionBytesin interfaceAgentOrBuilder- Returns:
- The bytes for description.
-
setDescription
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDescriptionBytes
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.
string description = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getAvatarUri
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAvatarUriin interfaceAgentOrBuilder- Returns:
- The avatarUri.
-
getAvatarUriBytes
public com.google.protobuf.ByteString getAvatarUriBytes()Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAvatarUriBytesin interfaceAgentOrBuilder- Returns:
- The bytes for avatarUri.
-
setAvatarUri
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The avatarUri to set.- Returns:
- This builder for chaining.
-
clearAvatarUri
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setAvatarUriBytes
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.
string avatar_uri = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for avatarUri to set.- Returns:
- This builder for chaining.
-
getEnableLogging
public boolean getEnableLogging()Optional. Determines whether this agent should log conversation queries.
bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableLoggingin interfaceAgentOrBuilder- Returns:
- The enableLogging.
-
setEnableLogging
Optional. Determines whether this agent should log conversation queries.
bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enableLogging to set.- Returns:
- This builder for chaining.
-
clearEnableLogging
Optional. Determines whether this agent should log conversation queries.
bool enable_logging = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getMatchModeValue
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getMatchModeValuein interfaceAgentOrBuilder- Returns:
- The enum numeric value on the wire for matchMode.
-
setMatchModeValue
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for matchMode to set.- Returns:
- This builder for chaining.
-
getMatchMode
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getMatchModein interfaceAgentOrBuilder- Returns:
- The matchMode.
-
setMatchMode
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The matchMode to set.- Returns:
- This builder for chaining.
-
clearMatchMode
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=353Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2.Agent.MatchMode match_mode = 9 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getClassificationThreshold
public float getClassificationThreshold()Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getClassificationThresholdin interfaceAgentOrBuilder- Returns:
- The classificationThreshold.
-
setClassificationThreshold
Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The classificationThreshold to set.- Returns:
- This builder for chaining.
-
clearClassificationThreshold
Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used.
float classification_threshold = 10 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getApiVersionValue
public int getApiVersionValue()Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.
.google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getApiVersionValuein interfaceAgentOrBuilder- Returns:
- The enum numeric value on the wire for apiVersion.
-
setApiVersionValue
Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.
.google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for apiVersion to set.- Returns:
- This builder for chaining.
-
getApiVersion
Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.
.google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getApiVersionin interfaceAgentOrBuilder- Returns:
- The apiVersion.
-
setApiVersion
Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.
.google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The apiVersion to set.- Returns:
- This builder for chaining.
-
clearApiVersion
Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.
.google.cloud.dialogflow.v2.Agent.ApiVersion api_version = 14 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getTierValue
public int getTierValue()Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
.google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTierValuein interfaceAgentOrBuilder- Returns:
- The enum numeric value on the wire for tier.
-
setTierValue
Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
.google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for tier to set.- Returns:
- This builder for chaining.
-
getTier
Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
.google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTierin interfaceAgentOrBuilder- Returns:
- The tier.
-
setTier
Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
.google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The tier to set.- Returns:
- This builder for chaining.
-
clearTier
Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
.google.cloud.dialogflow.v2.Agent.Tier tier = 15 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-