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.Builder
addAllSupportedLanguageCodes(Iterable<String> values)
Optional.Agent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Agent.Builder
addSupportedLanguageCodes(String value)
Optional.Agent.Builder
addSupportedLanguageCodesBytes(com.google.protobuf.ByteString value)
Optional.Agent
build()
Agent
buildPartial()
Agent.Builder
clear()
Agent.Builder
clearApiVersion()
Optional.Agent.Builder
clearAvatarUri()
Optional.Agent.Builder
clearClassificationThreshold()
Optional.Agent.Builder
clearDefaultLanguageCode()
Required.Agent.Builder
clearDescription()
Optional.Agent.Builder
clearDisplayName()
Required.Agent.Builder
clearEnableLogging()
Optional.Agent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Agent.Builder
clearMatchMode()
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Agent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Agent.Builder
clearParent()
Required.Agent.Builder
clearSupportedLanguageCodes()
Optional.Agent.Builder
clearTier()
Optional.Agent.Builder
clearTimeZone()
Required.Agent.Builder
clone()
Agent.ApiVersion
getApiVersion()
Optional.int
getApiVersionValue()
Optional.String
getAvatarUri()
Optional.com.google.protobuf.ByteString
getAvatarUriBytes()
Optional.float
getClassificationThreshold()
Optional.Agent
getDefaultInstanceForType()
String
getDefaultLanguageCode()
Required.com.google.protobuf.ByteString
getDefaultLanguageCodeBytes()
Required.String
getDescription()
Optional.com.google.protobuf.ByteString
getDescriptionBytes()
Optional.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.boolean
getEnableLogging()
Optional.Agent.MatchMode
getMatchMode()
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.int
getMatchModeValue()
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.String
getParent()
Required.com.google.protobuf.ByteString
getParentBytes()
Required.String
getSupportedLanguageCodes(int index)
Optional.com.google.protobuf.ByteString
getSupportedLanguageCodesBytes(int index)
Optional.int
getSupportedLanguageCodesCount()
Optional.com.google.protobuf.ProtocolStringList
getSupportedLanguageCodesList()
Optional.Agent.Tier
getTier()
Optional.int
getTierValue()
Optional.String
getTimeZone()
Required.com.google.protobuf.ByteString
getTimeZoneBytes()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Agent.Builder
mergeFrom(Agent other)
Agent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Agent.Builder
mergeFrom(com.google.protobuf.Message other)
Agent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Agent.Builder
setApiVersion(Agent.ApiVersion value)
Optional.Agent.Builder
setApiVersionValue(int value)
Optional.Agent.Builder
setAvatarUri(String value)
Optional.Agent.Builder
setAvatarUriBytes(com.google.protobuf.ByteString value)
Optional.Agent.Builder
setClassificationThreshold(float value)
Optional.Agent.Builder
setDefaultLanguageCode(String value)
Required.Agent.Builder
setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value)
Required.Agent.Builder
setDescription(String value)
Optional.Agent.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Optional.Agent.Builder
setDisplayName(String value)
Required.Agent.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Required.Agent.Builder
setEnableLogging(boolean value)
Optional.Agent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Agent.Builder
setMatchMode(Agent.MatchMode value)
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Agent.Builder
setMatchModeValue(int value)
Deprecated.google.cloud.dialogflow.v2.Agent.match_mode is deprecated.Agent.Builder
setParent(String value)
Required.Agent.Builder
setParentBytes(com.google.protobuf.ByteString value)
Required.Agent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Agent.Builder
setSupportedLanguageCodes(int index, String value)
Optional.Agent.Builder
setTier(Agent.Tier value)
Optional.Agent.Builder
setTierValue(int value)
Optional.Agent.Builder
setTimeZone(String value)
Required.Agent.Builder
setTimeZoneBytes(com.google.protobuf.ByteString value)
Required.Agent.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
clear
public Agent.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
getDefaultInstanceForType
public Agent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Agent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Agent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Agent.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
setField
public Agent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
clearField
public Agent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
clearOneof
public Agent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
setRepeatedField
public Agent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
addRepeatedField
public Agent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
mergeFrom
public Agent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Agent.Builder>
-
mergeFrom
public Agent.Builder mergeFrom(Agent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getParent
in 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:
getParentBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
getDefaultLanguageCode
in 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:
getDefaultLanguageCodeBytes
in 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:
getSupportedLanguageCodesList
in 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:
getSupportedLanguageCodesCount
in 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:
getSupportedLanguageCodes
in 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:
getSupportedLanguageCodesBytes
in 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:
getTimeZone
in 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:
getTimeZoneBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in 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:
getAvatarUri
in 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:
getAvatarUriBytes
in 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:
getEnableLogging
in 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:
getMatchModeValue
in 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:
getMatchMode
in 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:
getClassificationThreshold
in 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:
getApiVersionValue
in 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:
getApiVersion
in 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:
getTierValue
in 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:
getTier
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
mergeUnknownFields
public final Agent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Agent.Builder>
-
-