public final class AssistantConfirmationResponse extends GeneratedMessage implements AssistantConfirmationResponseOrBuilderThe user's answer to an AssistantConfirmationRequest, sent on the next SessionService.StreamChatAiAssistant call to resume the paused agent.
Protobuf type google.cloud.ces.v1beta.AssistantConfirmationResponse
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AssistantConfirmationResponseImplements
AssistantConfirmationResponseOrBuilderStatic Fields
ANSWER_TEXT_FIELD_NUMBER
public static final int ANSWER_TEXT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CONFIRMATION_ID_FIELD_NUMBER
public static final int CONFIRMATION_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CONFIRMED_FIELD_NUMBER
public static final int CONFIRMED_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AssistantConfirmationResponse getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AssistantConfirmationResponse.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse.Builder |
|
newBuilder(AssistantConfirmationResponse prototype)
public static AssistantConfirmationResponse.Builder newBuilder(AssistantConfirmationResponse prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AssistantConfirmationResponse |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse.Builder |
|
parseDelimitedFrom(InputStream input)
public static AssistantConfirmationResponse parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AssistantConfirmationResponse parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AssistantConfirmationResponse parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AssistantConfirmationResponse parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AssistantConfirmationResponse parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AssistantConfirmationResponse parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AssistantConfirmationResponse> parser()| Returns | |
|---|---|
| Type | Description |
Parser<AssistantConfirmationResponse> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAnswerText()
public String getAnswerText()The chosen option's submit_text, or free-form user text. The paused action is cancelled and the text is handed to the agent to act on.
string answer_text = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The answerText. |
getAnswerTextBytes()
public ByteString getAnswerTextBytes()The chosen option's submit_text, or free-form user text. The paused action is cancelled and the text is handed to the agent to act on.
string answer_text = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for answerText. |
getConfirmationId()
public String getConfirmationId()The AssistantConfirmationRequest.confirmation_id being answered.
string confirmation_id = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The confirmationId. |
getConfirmationIdBytes()
public ByteString getConfirmationIdBytes()The AssistantConfirmationRequest.confirmation_id being answered.
string confirmation_id = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for confirmationId. |
getConfirmed()
public boolean getConfirmed()Binary answer: true approves the paused action, false declines it.
bool confirmed = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
The confirmed. |
getDefaultInstanceForType()
public AssistantConfirmationResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse |
|
getParserForType()
public Parser<AssistantConfirmationResponse> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<AssistantConfirmationResponse> |
|
getResponseCase()
public AssistantConfirmationResponse.ResponseCase getResponseCase()| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse.ResponseCase |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasAnswerText()
public boolean hasAnswerText()The chosen option's submit_text, or free-form user text. The paused action is cancelled and the text is handed to the agent to act on.
string answer_text = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the answerText field is set. |
hasConfirmed()
public boolean hasConfirmed()Binary answer: true approves the paused action, false declines it.
bool confirmed = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the confirmed field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public AssistantConfirmationResponse.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AssistantConfirmationResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse.Builder |
|
toBuilder()
public AssistantConfirmationResponse.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AssistantConfirmationResponse.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|