Class AssistantConfirmationResponse.Builder (0.19.0)

public static final class AssistantConfirmationResponse.Builder extends GeneratedMessage.Builder<AssistantConfirmationResponse.Builder> implements AssistantConfirmationResponseOrBuilder

The 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AssistantConfirmationResponse build()
Returns
Type Description
AssistantConfirmationResponse

buildPartial()

public AssistantConfirmationResponse buildPartial()
Returns
Type Description
AssistantConfirmationResponse

clear()

public AssistantConfirmationResponse.Builder clear()
Returns
Type Description
AssistantConfirmationResponse.Builder
Overrides

clearAnswerText()

public AssistantConfirmationResponse.Builder clearAnswerText()

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
AssistantConfirmationResponse.Builder

This builder for chaining.

clearConfirmationId()

public AssistantConfirmationResponse.Builder clearConfirmationId()

The AssistantConfirmationRequest.confirmation_id being answered.

string confirmation_id = 1;

Returns
Type Description
AssistantConfirmationResponse.Builder

This builder for chaining.

clearConfirmed()

public AssistantConfirmationResponse.Builder clearConfirmed()

Binary answer: true approves the paused action, false declines it.

bool confirmed = 2;

Returns
Type Description
AssistantConfirmationResponse.Builder

This builder for chaining.

clearResponse()

public AssistantConfirmationResponse.Builder clearResponse()
Returns
Type Description
AssistantConfirmationResponse.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResponseCase()

public AssistantConfirmationResponse.ResponseCase getResponseCase()
Returns
Type Description
AssistantConfirmationResponse.ResponseCase

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.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssistantConfirmationResponse other)

public AssistantConfirmationResponse.Builder mergeFrom(AssistantConfirmationResponse other)
Parameter
Name Description
other AssistantConfirmationResponse
Returns
Type Description
AssistantConfirmationResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AssistantConfirmationResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AssistantConfirmationResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AssistantConfirmationResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssistantConfirmationResponse.Builder
Overrides

setAnswerText(String value)

public AssistantConfirmationResponse.Builder setAnswerText(String value)

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;

Parameter
Name Description
value String

The answerText to set.

Returns
Type Description
AssistantConfirmationResponse.Builder

This builder for chaining.

setAnswerTextBytes(ByteString value)

public AssistantConfirmationResponse.Builder setAnswerTextBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for answerText to set.

Returns
Type Description
AssistantConfirmationResponse.Builder

This builder for chaining.

setConfirmationId(String value)

public AssistantConfirmationResponse.Builder setConfirmationId(String value)

The AssistantConfirmationRequest.confirmation_id being answered.

string confirmation_id = 1;

Parameter
Name Description
value String

The confirmationId to set.

Returns
Type Description
AssistantConfirmationResponse.Builder

This builder for chaining.

setConfirmationIdBytes(ByteString value)

public AssistantConfirmationResponse.Builder setConfirmationIdBytes(ByteString value)

The AssistantConfirmationRequest.confirmation_id being answered.

string confirmation_id = 1;

Parameter
Name Description
value ByteString

The bytes for confirmationId to set.

Returns
Type Description
AssistantConfirmationResponse.Builder

This builder for chaining.

setConfirmed(boolean value)

public AssistantConfirmationResponse.Builder setConfirmed(boolean value)

Binary answer: true approves the paused action, false declines it.

bool confirmed = 2;

Parameter
Name Description
value boolean

The confirmed to set.

Returns
Type Description
AssistantConfirmationResponse.Builder

This builder for chaining.