public final class AssistantConfirmationRequest extends GeneratedMessage implements AssistantConfirmationRequestOrBuilder
A blocking question or confirmation the assistant needs answered before an
agent action can proceed. The requesting agent is paused and resumes only
when the answer arrives on a later
StreamChatAiAssistantRequest.confirmation_response.
Protobuf type google.cloud.ces.v1beta.AssistantConfirmationRequest
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
AGENT_NAME_FIELD_NUMBER
public static final int AGENT_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONFIRMATION_ID_FIELD_NUMBER
public static final int CONFIRMATION_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONTEXT_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXPIRE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NEGATIVE_LABEL_FIELD_NUMBER
public static final int NEGATIVE_LABEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
POSITIVE_LABEL_FIELD_NUMBER
public static final int POSITIVE_LABEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
QUESTIONS_FIELD_NUMBER
public static final int QUESTIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static AssistantConfirmationRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AssistantConfirmationRequest.Builder newBuilder()
newBuilder(AssistantConfirmationRequest prototype)
public static AssistantConfirmationRequest.Builder newBuilder(AssistantConfirmationRequest prototype)
public static AssistantConfirmationRequest parseDelimitedFrom(InputStream input)
public static AssistantConfirmationRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AssistantConfirmationRequest parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AssistantConfirmationRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationRequest parseFrom(CodedInputStream input)
public static AssistantConfirmationRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationRequest parseFrom(InputStream input)
public static AssistantConfirmationRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AssistantConfirmationRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AssistantConfirmationRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AssistantConfirmationRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAgentName()
public String getAgentName()
Display label of the agent that raised the confirmation (e.g.
"Contract Architect"), for the card header.
string agent_name = 7;
| Returns |
| Type |
Description |
String |
The agentName.
|
getAgentNameBytes()
public ByteString getAgentNameBytes()
Display label of the agent that raised the confirmation (e.g.
"Contract Architect"), for the card header.
string agent_name = 7;
| Returns |
| Type |
Description |
ByteString |
The bytes for agentName.
|
getConfirmationId()
public String getConfirmationId()
Identifier correlating this request with its response. Opaque to
clients; must be echoed verbatim on the answering request.
string confirmation_id = 1;
| Returns |
| Type |
Description |
String |
The confirmationId.
|
getConfirmationIdBytes()
public ByteString getConfirmationIdBytes()
Identifier correlating this request with its response. Opaque to
clients; must be echoed verbatim on the answering request.
string confirmation_id = 1;
| Returns |
| Type |
Description |
ByteString |
The bytes for confirmationId.
|
getContext()
public String getContext()
Context describing what is being confirmed (e.g. the action the agent
wants to take, or the question it needs answered). Rendered as plain
text, not Markdown.
string context = 2;
| Returns |
| Type |
Description |
String |
The context.
|
getContextBytes()
public ByteString getContextBytes()
Context describing what is being confirmed (e.g. the action the agent
wants to take, or the question it needs answered). Rendered as plain
text, not Markdown.
string context = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for context.
|
getDefaultInstanceForType()
public AssistantConfirmationRequest getDefaultInstanceForType()
getExpireTime()
public Timestamp getExpireTime()
Time after which this confirmation can no longer be answered. An expired
card renders as inactive, and the server declines the confirmation on the
next turn so the paused agent does not wait indefinitely.
.google.protobuf.Timestamp expire_time = 8;
| Returns |
| Type |
Description |
Timestamp |
The expireTime.
|
getExpireTimeOrBuilder()
public TimestampOrBuilder getExpireTimeOrBuilder()
Time after which this confirmation can no longer be answered. An expired
card renders as inactive, and the server declines the confirmation on the
next turn so the paused agent does not wait indefinitely.
.google.protobuf.Timestamp expire_time = 8;
getNegativeLabel()
public String getNegativeLabel()
Label for the declining action of a binary confirmation (e.g. "Not yet").
Unset when questions is populated.
string negative_label = 4;
| Returns |
| Type |
Description |
String |
The negativeLabel.
|
getNegativeLabelBytes()
public ByteString getNegativeLabelBytes()
Label for the declining action of a binary confirmation (e.g. "Not yet").
Unset when questions is populated.
string negative_label = 4;
| Returns |
| Type |
Description |
ByteString |
The bytes for negativeLabel.
|
getParserForType()
public Parser<AssistantConfirmationRequest> getParserForType()
Overrides
getPositiveLabel()
public String getPositiveLabel()
Label for the approving action of a binary confirmation (e.g. "Publish").
Unset when questions is populated.
string positive_label = 3;
| Returns |
| Type |
Description |
String |
The positiveLabel.
|
getPositiveLabelBytes()
public ByteString getPositiveLabelBytes()
Label for the approving action of a binary confirmation (e.g. "Publish").
Unset when questions is populated.
string positive_label = 3;
| Returns |
| Type |
Description |
ByteString |
The bytes for positiveLabel.
|
getQuestions(int index)
public OptionQuestionsChunk.Question getQuestions(int index)
Multi-choice form of the confirmation. When populated, the card renders
a selectable option list and the chosen option's submit_text (or
free-form user text) is returned as
AssistantConfirmationResponse.answer_text.
repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5;
| Parameter |
| Name |
Description |
index |
int
|
getQuestionsCount()
public int getQuestionsCount()
Multi-choice form of the confirmation. When populated, the card renders
a selectable option list and the chosen option's submit_text (or
free-form user text) is returned as
AssistantConfirmationResponse.answer_text.
repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5;
| Returns |
| Type |
Description |
int |
|
getQuestionsList()
public List<OptionQuestionsChunk.Question> getQuestionsList()
Multi-choice form of the confirmation. When populated, the card renders
a selectable option list and the chosen option's submit_text (or
free-form user text) is returned as
AssistantConfirmationResponse.answer_text.
repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5;
getQuestionsOrBuilder(int index)
public OptionQuestionsChunk.QuestionOrBuilder getQuestionsOrBuilder(int index)
Multi-choice form of the confirmation. When populated, the card renders
a selectable option list and the chosen option's submit_text (or
free-form user text) is returned as
AssistantConfirmationResponse.answer_text.
repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5;
| Parameter |
| Name |
Description |
index |
int
|
getQuestionsOrBuilderList()
public List<? extends OptionQuestionsChunk.QuestionOrBuilder> getQuestionsOrBuilderList()
Multi-choice form of the confirmation. When populated, the card renders
a selectable option list and the chosen option's submit_text (or
free-form user text) is returned as
AssistantConfirmationResponse.answer_text.
repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
Name of the tool call the agent paused on (e.g. "update_app"), for the
card header. Unset for pure questions.
string tool = 6;
| Returns |
| Type |
Description |
String |
The tool.
|
public ByteString getToolBytes()
Name of the tool call the agent paused on (e.g. "update_app"), for the
card header. Unset for pure questions.
string tool = 6;
| Returns |
| Type |
Description |
ByteString |
The bytes for tool.
|
hasExpireTime()
public boolean hasExpireTime()
Time after which this confirmation can no longer be answered. An expired
card renders as inactive, and the server declines the confirmation on the
next turn so the paused agent does not wait indefinitely.
.google.protobuf.Timestamp expire_time = 8;
| Returns |
| Type |
Description |
boolean |
Whether the expireTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AssistantConfirmationRequest.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AssistantConfirmationRequest.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public AssistantConfirmationRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides