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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.cloud.dialogflow.v2.Agent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Agent.BuilderaddAllSupportedLanguageCodes(Iterable<String> values)Optional.Agent.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Agent.BuilderaddSupportedLanguageCodes(String value)Optional.Agent.BuilderaddSupportedLanguageCodesBytes(com.google.protobuf.ByteString value)Optional.Agentbuild()AgentbuildPartial()Agent.Builderclear()Agent.BuilderclearApiVersion()Optional.Agent.BuilderclearAvatarUri()Optional.Agent.BuilderclearClassificationThreshold()Optional.Agent.BuilderclearDefaultLanguageCode()Required.Agent.BuilderclearDescription()Optional.Agent.BuilderclearDisplayName()Required.Agent.BuilderclearEnableLogging()Optional.Agent.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Agent.BuilderclearMatchMode()Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Agent.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Agent.BuilderclearParent()Required.Agent.BuilderclearSupportedLanguageCodes()Optional.Agent.BuilderclearTier()Optional.Agent.BuilderclearTimeZone()Required.Agent.Builderclone()Agent.ApiVersiongetApiVersion()Optional.intgetApiVersionValue()Optional.StringgetAvatarUri()Optional.com.google.protobuf.ByteStringgetAvatarUriBytes()Optional.floatgetClassificationThreshold()Optional.AgentgetDefaultInstanceForType()StringgetDefaultLanguageCode()Required.com.google.protobuf.ByteStringgetDefaultLanguageCodeBytes()Required.StringgetDescription()Optional.com.google.protobuf.ByteStringgetDescriptionBytes()Optional.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.booleangetEnableLogging()Optional.Agent.MatchModegetMatchMode()Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.intgetMatchModeValue()Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.StringgetSupportedLanguageCodes(int index)Optional.com.google.protobuf.ByteStringgetSupportedLanguageCodesBytes(int index)Optional.intgetSupportedLanguageCodesCount()Optional.com.google.protobuf.ProtocolStringListgetSupportedLanguageCodesList()Optional.Agent.TiergetTier()Optional.intgetTierValue()Optional.StringgetTimeZone()Required.com.google.protobuf.ByteStringgetTimeZoneBytes()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Agent.BuildermergeFrom(Agent other)Agent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Agent.BuildermergeFrom(com.google.protobuf.Message other)Agent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Agent.BuildersetApiVersion(Agent.ApiVersion value)Optional.Agent.BuildersetApiVersionValue(int value)Optional.Agent.BuildersetAvatarUri(String value)Optional.Agent.BuildersetAvatarUriBytes(com.google.protobuf.ByteString value)Optional.Agent.BuildersetClassificationThreshold(float value)Optional.Agent.BuildersetDefaultLanguageCode(String value)Required.Agent.BuildersetDefaultLanguageCodeBytes(com.google.protobuf.ByteString value)Required.Agent.BuildersetDescription(String value)Optional.Agent.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Optional.Agent.BuildersetDisplayName(String value)Required.Agent.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Required.Agent.BuildersetEnableLogging(boolean value)Optional.Agent.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Agent.BuildersetMatchMode(Agent.MatchMode value)Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Agent.BuildersetMatchModeValue(int value)Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Agent.BuildersetParent(String value)Required.Agent.BuildersetParentBytes(com.google.protobuf.ByteString value)Required.Agent.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Agent.BuildersetSupportedLanguageCodes(int index, String value)Optional.Agent.BuildersetTier(Agent.Tier value)Optional.Agent.BuildersetTierValue(int value)Optional.Agent.BuildersetTimeZone(String value)Required.Agent.BuildersetTimeZoneBytes(com.google.protobuf.ByteString value)Required.Agent.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
clear
public Agent.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Agent.Builder>
-
getDefaultInstanceForType
public Agent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Agent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Agent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Agent.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
setField
public Agent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
clearField
public Agent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
clearOneof
public Agent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
setRepeatedField
public Agent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
addRepeatedField
public Agent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
mergeFrom
public Agent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Agent.Builder>
-
mergeFrom
public Agent.Builder mergeFrom(Agent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String 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
public Agent.Builder setParent(String value)
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
public Agent.Builder 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
public Agent.Builder setParentBytes(com.google.protobuf.ByteString value)
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
public String 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
public Agent.Builder setDisplayName(String value)
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
public Agent.Builder clearDisplayName()
Required. The name of this agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Agent.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
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
public String 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
public Agent.Builder setDefaultLanguageCode(String value)
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
public Agent.Builder 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
public Agent.Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value)
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
public String getSupportedLanguageCodes(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:
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
public Agent.Builder setSupportedLanguageCodes(int index, String value)
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
public Agent.Builder addSupportedLanguageCodes(String value)
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
public Agent.Builder addAllSupportedLanguageCodes(Iterable<String> values)
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
public Agent.Builder 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
public Agent.Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value)
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
public String 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
public Agent.Builder setTimeZone(String value)
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
public Agent.Builder 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
public Agent.Builder setTimeZoneBytes(com.google.protobuf.ByteString value)
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
public String 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
public Agent.Builder setDescription(String value)
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
public Agent.Builder 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
public Agent.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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
public String 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
public Agent.Builder setAvatarUri(String value)
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
public Agent.Builder 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
public Agent.Builder setAvatarUriBytes(com.google.protobuf.ByteString value)
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
public Agent.Builder setEnableLogging(boolean value)
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
public Agent.Builder 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 public int getMatchModeValue()
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=354Optional. 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 public Agent.Builder setMatchModeValue(int value)
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=354Optional. 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 public Agent.MatchMode getMatchMode()
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=354Optional. 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 public Agent.Builder setMatchMode(Agent.MatchMode value)
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=354Optional. 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 public Agent.Builder clearMatchMode()
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2/agent.proto;l=354Optional. 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
public Agent.Builder setClassificationThreshold(float value)
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
public Agent.Builder 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
public Agent.Builder setApiVersionValue(int value)
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
public Agent.ApiVersion 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
public Agent.Builder setApiVersion(Agent.ApiVersion value)
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
public Agent.Builder 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
public Agent.Builder setTierValue(int value)
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
public Agent.Tier 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
public Agent.Builder setTier(Agent.Tier value)
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
public Agent.Builder 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.
-
setUnknownFields
public final Agent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
mergeUnknownFields
public final Agent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
-