public final class AutomatedAgentReply extends com.google.protobuf.GeneratedMessageV3 implements AutomatedAgentReplyOrBuilder
Represents a response from an automated agent.Protobuf type
google.cloud.dialogflow.v2beta1.AutomatedAgentReply| Modifier and Type | Class and Description |
|---|---|
static class |
AutomatedAgentReply.AutomatedAgentReplyType
Represents different automated agent reply types.
|
static class |
AutomatedAgentReply.Builder
Represents a response from an automated agent.
|
static class |
AutomatedAgentReply.MatchCase |
static class |
AutomatedAgentReply.ResponseCase |
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| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_CANCELLATION_FIELD_NUMBER |
static int |
AUTOMATED_AGENT_REPLY_TYPE_FIELD_NUMBER |
static int |
CX_CURRENT_PAGE_FIELD_NUMBER |
static int |
CX_SESSION_PARAMETERS_FIELD_NUMBER |
static int |
DETECT_INTENT_RESPONSE_FIELD_NUMBER |
static int |
EVENT_FIELD_NUMBER |
static int |
INTENT_FIELD_NUMBER |
static int |
MATCH_CONFIDENCE_FIELD_NUMBER |
static int |
PARAMETERS_FIELD_NUMBER |
static int |
RESPONSE_MESSAGES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAllowCancellation()
Indicates whether the partial automated agent reply is interruptible when a
later reply message arrives.
|
AutomatedAgentReply.AutomatedAgentReplyType |
getAutomatedAgentReplyType()
AutomatedAgentReply type.
|
int |
getAutomatedAgentReplyTypeValue()
AutomatedAgentReply type.
|
String |
getCxCurrentPage()
The unique identifier of the current Dialogflow CX conversation page.
|
com.google.protobuf.ByteString |
getCxCurrentPageBytes()
The unique identifier of the current Dialogflow CX conversation page.
|
com.google.protobuf.Struct |
getCxSessionParameters()
Deprecated.
google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=524
|
com.google.protobuf.StructOrBuilder |
getCxSessionParametersOrBuilder()
Deprecated.
|
static AutomatedAgentReply |
getDefaultInstance() |
AutomatedAgentReply |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DetectIntentResponse |
getDetectIntentResponse()
Response of the Dialogflow
[Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent]
call.
|
DetectIntentResponseOrBuilder |
getDetectIntentResponseOrBuilder()
Response of the Dialogflow
[Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent]
call.
|
String |
getEvent()
Event name if an event is triggered for the query.
|
com.google.protobuf.ByteString |
getEventBytes()
Event name if an event is triggered for the query.
|
String |
getIntent()
Name of the intent if an intent is matched for the query.
|
com.google.protobuf.ByteString |
getIntentBytes()
Name of the intent if an intent is matched for the query.
|
AutomatedAgentReply.MatchCase |
getMatchCase() |
float |
getMatchConfidence()
The confidence of the match.
|
com.google.protobuf.Struct |
getParameters()
The collection of current parameters at the time of this response.
|
com.google.protobuf.StructOrBuilder |
getParametersOrBuilder()
The collection of current parameters at the time of this response.
|
com.google.protobuf.Parser<AutomatedAgentReply> |
getParserForType() |
AutomatedAgentReply.ResponseCase |
getResponseCase() |
ResponseMessage |
getResponseMessages(int index)
Response messages from the automated agent.
|
int |
getResponseMessagesCount()
Response messages from the automated agent.
|
List<ResponseMessage> |
getResponseMessagesList()
Response messages from the automated agent.
|
ResponseMessageOrBuilder |
getResponseMessagesOrBuilder(int index)
Response messages from the automated agent.
|
List<? extends ResponseMessageOrBuilder> |
getResponseMessagesOrBuilderList()
Response messages from the automated agent.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCxSessionParameters()
Deprecated.
google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=524
|
boolean |
hasDetectIntentResponse()
Response of the Dialogflow
[Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent]
call.
|
boolean |
hasEvent()
Event name if an event is triggered for the query.
|
int |
hashCode() |
boolean |
hasIntent()
Name of the intent if an intent is matched for the query.
|
boolean |
hasParameters()
The collection of current parameters at the time of this response.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AutomatedAgentReply.Builder |
newBuilder() |
static AutomatedAgentReply.Builder |
newBuilder(AutomatedAgentReply prototype) |
AutomatedAgentReply.Builder |
newBuilderForType() |
protected AutomatedAgentReply.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AutomatedAgentReply |
parseDelimitedFrom(InputStream input) |
static AutomatedAgentReply |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(byte[] data) |
static AutomatedAgentReply |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(ByteBuffer data) |
static AutomatedAgentReply |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(com.google.protobuf.ByteString data) |
static AutomatedAgentReply |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AutomatedAgentReply |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(InputStream input) |
static AutomatedAgentReply |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AutomatedAgentReply> |
parser() |
AutomatedAgentReply.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DETECT_INTENT_RESPONSE_FIELD_NUMBER
public static final int RESPONSE_MESSAGES_FIELD_NUMBER
public static final int INTENT_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER
public static final int MATCH_CONFIDENCE_FIELD_NUMBER
public static final int PARAMETERS_FIELD_NUMBER
public static final int CX_SESSION_PARAMETERS_FIELD_NUMBER
public static final int AUTOMATED_AGENT_REPLY_TYPE_FIELD_NUMBER
public static final int ALLOW_CANCELLATION_FIELD_NUMBER
public static final int CX_CURRENT_PAGE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public AutomatedAgentReply.ResponseCase getResponseCase()
getResponseCase in interface AutomatedAgentReplyOrBuilderpublic AutomatedAgentReply.MatchCase getMatchCase()
getMatchCase in interface AutomatedAgentReplyOrBuilderpublic boolean hasDetectIntentResponse()
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;hasDetectIntentResponse in interface AutomatedAgentReplyOrBuilderpublic DetectIntentResponse getDetectIntentResponse()
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;getDetectIntentResponse in interface AutomatedAgentReplyOrBuilderpublic DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call.
.google.cloud.dialogflow.v2beta1.DetectIntentResponse detect_intent_response = 1;getDetectIntentResponseOrBuilder in interface AutomatedAgentReplyOrBuilderpublic List<ResponseMessage> getResponseMessagesList()
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;getResponseMessagesList in interface AutomatedAgentReplyOrBuilderpublic List<? extends ResponseMessageOrBuilder> getResponseMessagesOrBuilderList()
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;getResponseMessagesOrBuilderList in interface AutomatedAgentReplyOrBuilderpublic int getResponseMessagesCount()
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;getResponseMessagesCount in interface AutomatedAgentReplyOrBuilderpublic ResponseMessage getResponseMessages(int index)
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;getResponseMessages in interface AutomatedAgentReplyOrBuilderpublic ResponseMessageOrBuilder getResponseMessagesOrBuilder(int index)
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;getResponseMessagesOrBuilder in interface AutomatedAgentReplyOrBuilderpublic 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) = { ... }hasIntent in interface AutomatedAgentReplyOrBuilderpublic String 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) = { ... }getIntent in interface AutomatedAgentReplyOrBuilderpublic 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) = { ... }getIntentBytes in interface AutomatedAgentReplyOrBuilderpublic boolean hasEvent()
Event name if an event is triggered for the query.
string event = 5;hasEvent in interface AutomatedAgentReplyOrBuilderpublic String getEvent()
Event name if an event is triggered for the query.
string event = 5;getEvent in interface AutomatedAgentReplyOrBuilderpublic com.google.protobuf.ByteString getEventBytes()
Event name if an event is triggered for the query.
string event = 5;getEventBytes in interface AutomatedAgentReplyOrBuilderpublic 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;getMatchConfidence in interface AutomatedAgentReplyOrBuilderpublic boolean hasParameters()
The collection of current parameters at the time of this response.
.google.protobuf.Struct parameters = 10;hasParameters in interface AutomatedAgentReplyOrBuilderpublic com.google.protobuf.Struct getParameters()
The collection of current parameters at the time of this response.
.google.protobuf.Struct parameters = 10;getParameters in interface AutomatedAgentReplyOrBuilderpublic com.google.protobuf.StructOrBuilder getParametersOrBuilder()
The collection of current parameters at the time of this response.
.google.protobuf.Struct parameters = 10;getParametersOrBuilder in interface AutomatedAgentReplyOrBuilder@Deprecated public boolean hasCxSessionParameters()
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];hasCxSessionParameters in interface AutomatedAgentReplyOrBuilder@Deprecated public com.google.protobuf.Struct getCxSessionParameters()
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];getCxSessionParameters in interface AutomatedAgentReplyOrBuilder@Deprecated public com.google.protobuf.StructOrBuilder getCxSessionParametersOrBuilder()
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];getCxSessionParametersOrBuilder in interface AutomatedAgentReplyOrBuilderpublic int getAutomatedAgentReplyTypeValue()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
getAutomatedAgentReplyTypeValue in interface AutomatedAgentReplyOrBuilderpublic AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
getAutomatedAgentReplyType in interface AutomatedAgentReplyOrBuilderpublic 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;getAllowCancellation in interface AutomatedAgentReplyOrBuilderpublic String 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;getCxCurrentPage in interface AutomatedAgentReplyOrBuilderpublic 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;getCxCurrentPageBytes in interface AutomatedAgentReplyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AutomatedAgentReply parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutomatedAgentReply parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutomatedAgentReply parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutomatedAgentReply parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutomatedAgentReply parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutomatedAgentReply parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutomatedAgentReply parseFrom(InputStream input) throws IOException
IOExceptionpublic static AutomatedAgentReply parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AutomatedAgentReply parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AutomatedAgentReply parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AutomatedAgentReply parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AutomatedAgentReply parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AutomatedAgentReply.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AutomatedAgentReply.Builder newBuilder()
public static AutomatedAgentReply.Builder newBuilder(AutomatedAgentReply prototype)
public AutomatedAgentReply.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AutomatedAgentReply.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AutomatedAgentReply getDefaultInstance()
public static com.google.protobuf.Parser<AutomatedAgentReply> parser()
public com.google.protobuf.Parser<AutomatedAgentReply> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AutomatedAgentReply getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.