Class AutomatedAgentReply
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2beta1.AutomatedAgentReply
- All Implemented Interfaces:
AutomatedAgentReplyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AutomatedAgentReply
extends com.google.protobuf.GeneratedMessage
implements AutomatedAgentReplyOrBuilder
Represents a response from an automated agent.Protobuf type
google.cloud.dialogflow.v2beta1.AutomatedAgentReply- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents different automated agent reply types.static final classRepresents a response from an automated agent.static enumstatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanIndicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.AutomatedAgentReply type.intAutomatedAgentReply type.com.google.protobuf.ByteStringThe auth code for accessing Call Companion UI.The unique identifier of the current Dialogflow CX conversation page.com.google.protobuf.ByteStringThe unique identifier of the current Dialogflow CX conversation page.com.google.protobuf.StructDeprecated.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is deprecated.com.google.protobuf.StructOrBuilderDeprecated.static AutomatedAgentReplystatic final com.google.protobuf.Descriptors.DescriptorResponse of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.getEvent()Event name if an event is triggered for the query.com.google.protobuf.ByteStringEvent name if an event is triggered for the query.Name of the intent if an intent is matched for the query.com.google.protobuf.ByteStringName of the intent if an intent is matched for the query.floatThe confidence of the match.com.google.protobuf.StructThe collection of current parameters at the time of this response.com.google.protobuf.StructOrBuilderThe collection of current parameters at the time of this response.com.google.protobuf.Parser<AutomatedAgentReply>getResponseMessages(int index) Response messages from the automated agent.intResponse messages from the automated agent.Response messages from the automated agent.getResponseMessagesOrBuilder(int index) Response messages from the automated agent.List<? extends ResponseMessageOrBuilder>Response messages from the automated agent.intbooleanDeprecated.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is deprecated.booleanResponse of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.booleanhasEvent()Event name if an event is triggered for the query.inthashCode()booleanName of the intent if an intent is matched for the query.booleanThe collection of current parameters at the time of this response.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic AutomatedAgentReply.Builderstatic AutomatedAgentReply.BuildernewBuilder(AutomatedAgentReply prototype) protected AutomatedAgentReply.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AutomatedAgentReplyparseDelimitedFrom(InputStream input) static AutomatedAgentReplyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedAgentReplyparseFrom(byte[] data) static AutomatedAgentReplyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedAgentReplyparseFrom(com.google.protobuf.ByteString data) static AutomatedAgentReplyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedAgentReplyparseFrom(com.google.protobuf.CodedInputStream input) static AutomatedAgentReplyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedAgentReplyparseFrom(InputStream input) static AutomatedAgentReplyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AutomatedAgentReplyparseFrom(ByteBuffer data) static AutomatedAgentReplyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AutomatedAgentReply>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DETECT_INTENT_RESPONSE_FIELD_NUMBER
public static final int DETECT_INTENT_RESPONSE_FIELD_NUMBER- See Also:
-
RESPONSE_MESSAGES_FIELD_NUMBER
public static final int RESPONSE_MESSAGES_FIELD_NUMBER- See Also:
-
INTENT_FIELD_NUMBER
public static final int INTENT_FIELD_NUMBER- See Also:
-
EVENT_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER- See Also:
-
MATCH_CONFIDENCE_FIELD_NUMBER
public static final int MATCH_CONFIDENCE_FIELD_NUMBER- See Also:
-
PARAMETERS_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER- See Also:
-
CX_SESSION_PARAMETERS_FIELD_NUMBER
public static final int CX_SESSION_PARAMETERS_FIELD_NUMBER- See Also:
-
AUTOMATED_AGENT_REPLY_TYPE_FIELD_NUMBER
public static final int AUTOMATED_AGENT_REPLY_TYPE_FIELD_NUMBER- See Also:
-
ALLOW_CANCELLATION_FIELD_NUMBER
public static final int ALLOW_CANCELLATION_FIELD_NUMBER- See Also:
-
CX_CURRENT_PAGE_FIELD_NUMBER
public static final int CX_CURRENT_PAGE_FIELD_NUMBER- See Also:
-
CALL_COMPANION_AUTH_CODE_FIELD_NUMBER
public static final int CALL_COMPANION_AUTH_CODE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getResponseCase
- Specified by:
getResponseCasein interfaceAutomatedAgentReplyOrBuilder
-
getMatchCase
- Specified by:
getMatchCasein interfaceAutomatedAgentReplyOrBuilder
-
hasDetectIntentResponse
public boolean hasDetectIntentResponse()Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;- Specified by:
hasDetectIntentResponsein interfaceAutomatedAgentReplyOrBuilder- Returns:
- Whether the detectIntentResponse field is set.
-
getDetectIntentResponse
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;- Specified by:
getDetectIntentResponsein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The detectIntentResponse.
-
getDetectIntentResponseOrBuilder
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;- Specified by:
getDetectIntentResponseOrBuilderin interfaceAutomatedAgentReplyOrBuilder
-
getResponseMessagesList
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;- Specified by:
getResponseMessagesListin interfaceAutomatedAgentReplyOrBuilder
-
getResponseMessagesOrBuilderList
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;- Specified by:
getResponseMessagesOrBuilderListin interfaceAutomatedAgentReplyOrBuilder
-
getResponseMessagesCount
public int getResponseMessagesCount()Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;- Specified by:
getResponseMessagesCountin interfaceAutomatedAgentReplyOrBuilder
-
getResponseMessages
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;- Specified by:
getResponseMessagesin interfaceAutomatedAgentReplyOrBuilder
-
getResponseMessagesOrBuilder
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;- Specified by:
getResponseMessagesOrBuilderin interfaceAutomatedAgentReplyOrBuilder
-
hasIntent
public boolean hasIntent()Name of the intent if an intent is matched for the query. For a V2 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>`. For a V3 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string intent = 4 [(.google.api.resource_reference) = { ... }- Specified by:
hasIntentin interfaceAutomatedAgentReplyOrBuilder- Returns:
- Whether the intent field is set.
-
getIntent
Name of the intent if an intent is matched for the query. For a V2 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>`. For a V3 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string intent = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getIntentin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The intent.
-
getIntentBytes
public com.google.protobuf.ByteString getIntentBytes()Name of the intent if an intent is matched for the query. For a V2 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>`. For a V3 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
string intent = 4 [(.google.api.resource_reference) = { ... }- Specified by:
getIntentBytesin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The bytes for intent.
-
hasEvent
public boolean hasEvent()Event name if an event is triggered for the query.
string event = 5;- Specified by:
hasEventin interfaceAutomatedAgentReplyOrBuilder- Returns:
- Whether the event field is set.
-
getEvent
Event name if an event is triggered for the query.
string event = 5;- Specified by:
getEventin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The event.
-
getEventBytes
public com.google.protobuf.ByteString getEventBytes()Event name if an event is triggered for the query.
string event = 5;- Specified by:
getEventBytesin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The bytes for event.
-
getMatchConfidence
public float getMatchConfidence()The confidence of the match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation.
float match_confidence = 9;- Specified by:
getMatchConfidencein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The matchConfidence.
-
hasParameters
public boolean hasParameters()The collection of current parameters at the time of this response.
.google.protobuf.Struct parameters = 10;- Specified by:
hasParametersin interfaceAutomatedAgentReplyOrBuilder- Returns:
- Whether the parameters field is set.
-
getParameters
public com.google.protobuf.Struct getParameters()The collection of current parameters at the time of this response.
.google.protobuf.Struct parameters = 10;- Specified by:
getParametersin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The parameters.
-
getParametersOrBuilder
public com.google.protobuf.StructOrBuilder getParametersOrBuilder()The collection of current parameters at the time of this response.
.google.protobuf.Struct parameters = 10;- Specified by:
getParametersOrBuilderin interfaceAutomatedAgentReplyOrBuilder
-
hasCxSessionParameters
Deprecated.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use `parameters` instead.
.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];- Specified by:
hasCxSessionParametersin interfaceAutomatedAgentReplyOrBuilder- Returns:
- Whether the cxSessionParameters field is set.
-
getCxSessionParameters
Deprecated.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use `parameters` instead.
.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];- Specified by:
getCxSessionParametersin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The cxSessionParameters.
-
getCxSessionParametersOrBuilder
Deprecated.The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use `parameters` instead.
.google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];- Specified by:
getCxSessionParametersOrBuilderin interfaceAutomatedAgentReplyOrBuilder
-
getAutomatedAgentReplyTypeValue
public int getAutomatedAgentReplyTypeValue()AutomatedAgentReply type.
.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;- Specified by:
getAutomatedAgentReplyTypeValuein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The enum numeric value on the wire for automatedAgentReplyType.
-
getAutomatedAgentReplyType
AutomatedAgentReply type.
.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;- Specified by:
getAutomatedAgentReplyTypein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The automatedAgentReplyType.
-
getAllowCancellation
public boolean getAllowCancellation()Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
bool allow_cancellation = 8;- Specified by:
getAllowCancellationin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The allowCancellation.
-
getCxCurrentPage
The unique identifier of the current Dialogflow CX conversation page. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.
string cx_current_page = 11;- Specified by:
getCxCurrentPagein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The cxCurrentPage.
-
getCxCurrentPageBytes
public com.google.protobuf.ByteString getCxCurrentPageBytes()The unique identifier of the current Dialogflow CX conversation page. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`.
string cx_current_page = 11;- Specified by:
getCxCurrentPageBytesin interfaceAutomatedAgentReplyOrBuilder- Returns:
- The bytes for cxCurrentPage.
-
getCallCompanionAuthCode
public com.google.protobuf.ByteString getCallCompanionAuthCode()The auth code for accessing Call Companion UI.
bytes call_companion_auth_code = 12;- Specified by:
getCallCompanionAuthCodein interfaceAutomatedAgentReplyOrBuilder- Returns:
- The callCompanionAuthCode.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 AutomatedAgentReply parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedAgentReply parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedAgentReply parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedAgentReply parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedAgentReply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AutomatedAgentReply parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AutomatedAgentReply parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AutomatedAgentReply parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AutomatedAgentReply parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AutomatedAgentReply parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AutomatedAgentReply.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-