public final class AutomatedAgentReply extends 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 |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ALLOW_CANCELLATION_FIELD_NUMBER |
static int |
AUTOMATED_AGENT_REPLY_TYPE_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 |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
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.
|
Struct |
getCxSessionParameters()
Deprecated.
google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=487
|
StructOrBuilder |
getCxSessionParametersOrBuilder()
Deprecated.
|
static AutomatedAgentReply |
getDefaultInstance() |
AutomatedAgentReply |
getDefaultInstanceForType() |
static 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.
|
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.
|
ByteString |
getIntentBytes()
Name of the intent if an intent is matched for the query.
|
AutomatedAgentReply.MatchCase |
getMatchCase() |
float |
getMatchConfidence()
The confidence of the match.
|
Struct |
getParameters()
The collection of current parameters at the time of this response.
|
StructOrBuilder |
getParametersOrBuilder()
The collection of current parameters at the time of this response.
|
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() |
UnknownFieldSet |
getUnknownFields() |
boolean |
hasCxSessionParameters()
Deprecated.
google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=487
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AutomatedAgentReply.Builder |
newBuilder() |
static AutomatedAgentReply.Builder |
newBuilder(AutomatedAgentReply prototype) |
AutomatedAgentReply.Builder |
newBuilderForType() |
protected AutomatedAgentReply.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static AutomatedAgentReply |
parseDelimitedFrom(InputStream input) |
static AutomatedAgentReply |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(byte[] data) |
static AutomatedAgentReply |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(ByteBuffer data) |
static AutomatedAgentReply |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(ByteString data) |
static AutomatedAgentReply |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(CodedInputStream input) |
static AutomatedAgentReply |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static AutomatedAgentReply |
parseFrom(InputStream input) |
static AutomatedAgentReply |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<AutomatedAgentReply> |
parser() |
AutomatedAgentReply.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public AutomatedAgentReply.ResponseCase getResponseCase()
getResponseCase
in interface AutomatedAgentReplyOrBuilder
public AutomatedAgentReply.MatchCase getMatchCase()
getMatchCase
in interface AutomatedAgentReplyOrBuilder
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;
hasDetectIntentResponse
in interface AutomatedAgentReplyOrBuilder
public 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 AutomatedAgentReplyOrBuilder
public 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 AutomatedAgentReplyOrBuilder
public List<ResponseMessage> getResponseMessagesList()
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;
getResponseMessagesList
in interface AutomatedAgentReplyOrBuilder
public List<? extends ResponseMessageOrBuilder> getResponseMessagesOrBuilderList()
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;
getResponseMessagesOrBuilderList
in interface AutomatedAgentReplyOrBuilder
public int getResponseMessagesCount()
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;
getResponseMessagesCount
in interface AutomatedAgentReplyOrBuilder
public ResponseMessage getResponseMessages(int index)
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;
getResponseMessages
in interface AutomatedAgentReplyOrBuilder
public ResponseMessageOrBuilder getResponseMessagesOrBuilder(int index)
Response messages from the automated agent.
repeated .google.cloud.dialogflow.v2beta1.ResponseMessage response_messages = 3;
getResponseMessagesOrBuilder
in interface AutomatedAgentReplyOrBuilder
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) = { ... }
hasIntent
in interface AutomatedAgentReplyOrBuilder
public 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 AutomatedAgentReplyOrBuilder
public 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 AutomatedAgentReplyOrBuilder
public boolean hasEvent()
Event name if an event is triggered for the query.
string event = 5;
hasEvent
in interface AutomatedAgentReplyOrBuilder
public String getEvent()
Event name if an event is triggered for the query.
string event = 5;
getEvent
in interface AutomatedAgentReplyOrBuilder
public ByteString getEventBytes()
Event name if an event is triggered for the query.
string event = 5;
getEventBytes
in interface AutomatedAgentReplyOrBuilder
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;
getMatchConfidence
in interface AutomatedAgentReplyOrBuilder
public boolean hasParameters()
The collection of current parameters at the time of this response.
.google.protobuf.Struct parameters = 10;
hasParameters
in interface AutomatedAgentReplyOrBuilder
public Struct getParameters()
The collection of current parameters at the time of this response.
.google.protobuf.Struct parameters = 10;
getParameters
in interface AutomatedAgentReplyOrBuilder
public 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 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 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 AutomatedAgentReplyOrBuilder
public int getAutomatedAgentReplyTypeValue()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
getAutomatedAgentReplyTypeValue
in interface AutomatedAgentReplyOrBuilder
public AutomatedAgentReply.AutomatedAgentReplyType getAutomatedAgentReplyType()
AutomatedAgentReply type.
.google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType automated_agent_reply_type = 7;
getAutomatedAgentReplyType
in interface AutomatedAgentReplyOrBuilder
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;
getAllowCancellation
in interface AutomatedAgentReplyOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static AutomatedAgentReply parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AutomatedAgentReply parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AutomatedAgentReply parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AutomatedAgentReply parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AutomatedAgentReply parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AutomatedAgentReply parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static AutomatedAgentReply parseFrom(InputStream input) throws IOException
IOException
public static AutomatedAgentReply parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AutomatedAgentReply parseDelimitedFrom(InputStream input) throws IOException
IOException
public static AutomatedAgentReply parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static AutomatedAgentReply parseFrom(CodedInputStream input) throws IOException
IOException
public static AutomatedAgentReply parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public AutomatedAgentReply.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static AutomatedAgentReply.Builder newBuilder()
public static AutomatedAgentReply.Builder newBuilder(AutomatedAgentReply prototype)
public AutomatedAgentReply.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected AutomatedAgentReply.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static AutomatedAgentReply getDefaultInstance()
public static Parser<AutomatedAgentReply> parser()
public Parser<AutomatedAgentReply> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public AutomatedAgentReply getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.