Class Agent
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.v2beta1.Agent
-
- All Implemented Interfaces:
AgentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Agent extends com.google.protobuf.GeneratedMessageV3 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.v2beta1.Agent- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAgent.ApiVersionAPI version for the agent.static classAgent.BuilderA Dialogflow agent is a virtual agent that handles conversations with your end-users.static classAgent.MatchModeMatch mode determines how intents are detected from user queries.static classAgent.TierRepresents the agent tier.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAPI_VERSION_FIELD_NUMBERstatic intAVATAR_URI_FIELD_NUMBERstatic intCLASSIFICATION_THRESHOLD_FIELD_NUMBERstatic intDEFAULT_LANGUAGE_CODE_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intENABLE_LOGGING_FIELD_NUMBERstatic intMATCH_MODE_FIELD_NUMBERstatic intPARENT_FIELD_NUMBERstatic intSUPPORTED_LANGUAGE_CODES_FIELD_NUMBERstatic intTIER_FIELD_NUMBERstatic intTIME_ZONE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Agent.ApiVersiongetApiVersion()Optional.intgetApiVersionValue()Optional.StringgetAvatarUri()Optional.com.google.protobuf.ByteStringgetAvatarUriBytes()Optional.floatgetClassificationThreshold()Optional.static AgentgetDefaultInstance()AgentgetDefaultInstanceForType()StringgetDefaultLanguageCode()Required.com.google.protobuf.ByteStringgetDefaultLanguageCodeBytes()Required.StringgetDescription()Optional.com.google.protobuf.ByteStringgetDescriptionBytes()Optional.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.booleangetEnableLogging()Optional.Agent.MatchModegetMatchMode()Deprecated.google.cloud.dialogflow.v2beta1.Agent.match_mode is deprecated.intgetMatchModeValue()Deprecated.google.cloud.dialogflow.v2beta1.Agent.match_mode is deprecated.StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.com.google.protobuf.Parser<Agent>getParserForType()intgetSerializedSize()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.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Agent.BuildernewBuilder()static Agent.BuildernewBuilder(Agent prototype)Agent.BuildernewBuilderForType()protected Agent.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AgentparseDelimitedFrom(InputStream input)static AgentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AgentparseFrom(byte[] data)static AgentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AgentparseFrom(com.google.protobuf.ByteString data)static AgentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AgentparseFrom(com.google.protobuf.CodedInputStream input)static AgentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AgentparseFrom(InputStream input)static AgentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AgentparseFrom(ByteBuffer data)static AgentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Agent>parser()Agent.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEFAULT_LANGUAGE_CODE_FIELD_NUMBER
public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER
public static final int SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVATAR_URI_FIELD_NUMBER
public static final int AVATAR_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLE_LOGGING_FIELD_NUMBER
public static final int ENABLE_LOGGING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MATCH_MODE_FIELD_NUMBER
public static final int MATCH_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLASSIFICATION_THRESHOLD_FIELD_NUMBER
public static final int CLASSIFICATION_THRESHOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
API_VERSION_FIELD_NUMBER
public static final int API_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIER_FIELD_NUMBER
public static final int TIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getParent
public String getParent()
Required. The project of this agent. Format: `projects/<Project ID>` or `projects/<Project ID>/locations/<Location 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>` or `projects/<Project ID>/locations/<Location ID>`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceAgentOrBuilder- Returns:
- The bytes for parent.
-
getDisplayName
public String getDisplayName()
Required. The name of this agent.
string display_name = 2;- Specified by:
getDisplayNamein interfaceAgentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Required. The name of this agent.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceAgentOrBuilder- Returns:
- The bytes for displayName.
-
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;- 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;- Specified by:
getDefaultLanguageCodeBytesin interfaceAgentOrBuilder- Returns:
- The bytes for defaultLanguageCode.
-
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;- 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;- 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;- 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;- Specified by:
getSupportedLanguageCodesBytesin interfaceAgentOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the supportedLanguageCodes at the given index.
-
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;- 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;- Specified by:
getTimeZoneBytesin interfaceAgentOrBuilder- Returns:
- The bytes for timeZone.
-
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;- 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;- Specified by:
getDescriptionBytesin interfaceAgentOrBuilder- Returns:
- The bytes for description.
-
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;- 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;- Specified by:
getAvatarUriBytesin interfaceAgentOrBuilder- Returns:
- The bytes for avatarUri.
-
getEnableLogging
public boolean getEnableLogging()
Optional. Determines whether this agent should log conversation queries.
bool enable_logging = 8;- Specified by:
getEnableLoggingin interfaceAgentOrBuilder- Returns:
- The enableLogging.
-
getMatchModeValue
@Deprecated public int getMatchModeValue()
Deprecated.google.cloud.dialogflow.v2beta1.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2beta1/agent.proto;l=355Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2beta1.Agent.MatchMode match_mode = 9 [deprecated = true];- Specified by:
getMatchModeValuein interfaceAgentOrBuilder- Returns:
- The enum numeric value on the wire for matchMode.
-
getMatchMode
@Deprecated public Agent.MatchMode getMatchMode()
Deprecated.google.cloud.dialogflow.v2beta1.Agent.match_mode is deprecated. See google/cloud/dialogflow/v2beta1/agent.proto;l=355Optional. Determines how intents are detected from user queries.
.google.cloud.dialogflow.v2beta1.Agent.MatchMode match_mode = 9 [deprecated = true];- Specified by:
getMatchModein interfaceAgentOrBuilder- Returns:
- The matchMode.
-
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;- Specified by:
getClassificationThresholdin interfaceAgentOrBuilder- Returns:
- The classificationThreshold.
-
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.v2beta1.Agent.ApiVersion api_version = 14;- Specified by:
getApiVersionValuein interfaceAgentOrBuilder- Returns:
- The enum numeric value on the wire for apiVersion.
-
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.v2beta1.Agent.ApiVersion api_version = 14;- Specified by:
getApiVersionin interfaceAgentOrBuilder- Returns:
- The apiVersion.
-
getTierValue
public int getTierValue()
Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
.google.cloud.dialogflow.v2beta1.Agent.Tier tier = 15;- Specified by:
getTierValuein interfaceAgentOrBuilder- Returns:
- The enum numeric value on the wire for tier.
-
getTier
public Agent.Tier getTier()
Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
.google.cloud.dialogflow.v2beta1.Agent.Tier tier = 15;- Specified by:
getTierin interfaceAgentOrBuilder- Returns:
- The tier.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Agent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Agent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Agent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Agent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Agent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Agent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Agent parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Agent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Agent parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Agent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Agent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Agent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Agent.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Agent.Builder newBuilder()
-
newBuilder
public static Agent.Builder newBuilder(Agent prototype)
-
toBuilder
public Agent.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Agent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Agent getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Agent> parser()
-
getParserForType
public com.google.protobuf.Parser<Agent> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Agent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-