public static final class ChatAiAssistantResponse.Builder extends GeneratedMessage.Builder<ChatAiAssistantResponse.Builder> implements ChatAiAssistantResponseOrBuilderResponse message for AssistantService.ChatAiAssistant.
Protobuf type google.cloud.ces.v1beta.ChatAiAssistantResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ChatAiAssistantResponse.BuilderImplements
ChatAiAssistantResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ChatAiAssistantResponse build()| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse |
|
buildPartial()
public ChatAiAssistantResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse |
|
clear()
public ChatAiAssistantResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
clearEvent()
public ChatAiAssistantResponse.Builder clearEvent()| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
clearEventId()
public ChatAiAssistantResponse.Builder clearEventId()Unique identifier for the event.
string event_id = 1;
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
clearEventTime()
public ChatAiAssistantResponse.Builder clearEventTime()Timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 2;
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
clearSessionCheckpoint()
public ChatAiAssistantResponse.Builder clearSessionCheckpoint()Session checkpoint/compaction recap event containing user intent and rolling summary.
.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13;
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
clearStatusMessage()
public ChatAiAssistantResponse.Builder clearStatusMessage()Simple status update
string status_message = 4;
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
clearTextChunk()
public ChatAiAssistantResponse.Builder clearTextChunk()Text Token (for streaming Gemini responses word-by-word)
string text_chunk = 3;
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
clearUiEvent()
public ChatAiAssistantResponse.Builder clearUiEvent()Optional. UI event payload.
.google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
getDefaultInstanceForType()
public ChatAiAssistantResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEventCase()
public ChatAiAssistantResponse.EventCase getEventCase()| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.EventCase |
|
getEventId()
public String getEventId()Unique identifier for the event.
string event_id = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The eventId. |
getEventIdBytes()
public ByteString getEventIdBytes()Unique identifier for the event.
string event_id = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for eventId. |
getEventTime()
public Timestamp getEventTime()Timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 2;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The eventTime. |
getEventTimeBuilder()
public Timestamp.Builder getEventTimeBuilder()Timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEventTimeOrBuilder()
public TimestampOrBuilder getEventTimeOrBuilder()Timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 2;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getSessionCheckpoint()
public SessionCheckpoint getSessionCheckpoint()Session checkpoint/compaction recap event containing user intent and rolling summary.
.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13;
| Returns | |
|---|---|
| Type | Description |
SessionCheckpoint |
The sessionCheckpoint. |
getSessionCheckpointBuilder()
public SessionCheckpoint.Builder getSessionCheckpointBuilder()Session checkpoint/compaction recap event containing user intent and rolling summary.
.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13;
| Returns | |
|---|---|
| Type | Description |
SessionCheckpoint.Builder |
|
getSessionCheckpointOrBuilder()
public SessionCheckpointOrBuilder getSessionCheckpointOrBuilder()Session checkpoint/compaction recap event containing user intent and rolling summary.
.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13;
| Returns | |
|---|---|
| Type | Description |
SessionCheckpointOrBuilder |
|
getStatusMessage()
public String getStatusMessage()Simple status update
string status_message = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The statusMessage. |
getStatusMessageBytes()
public ByteString getStatusMessageBytes()Simple status update
string status_message = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for statusMessage. |
getTextChunk()
public String getTextChunk()Text Token (for streaming Gemini responses word-by-word)
string text_chunk = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The textChunk. |
getTextChunkBytes()
public ByteString getTextChunkBytes()Text Token (for streaming Gemini responses word-by-word)
string text_chunk = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for textChunk. |
getUiEvent()
public UiEvent getUiEvent()Optional. UI event payload.
.google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UiEvent |
The uiEvent. |
getUiEventBuilder()
public UiEvent.Builder getUiEventBuilder()Optional. UI event payload.
.google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UiEvent.Builder |
|
getUiEventOrBuilder()
public UiEventOrBuilder getUiEventOrBuilder()Optional. UI event payload.
.google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UiEventOrBuilder |
|
hasEventTime()
public boolean hasEventTime()Timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the eventTime field is set. |
hasSessionCheckpoint()
public boolean hasSessionCheckpoint()Session checkpoint/compaction recap event containing user intent and rolling summary.
.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sessionCheckpoint field is set. |
hasStatusMessage()
public boolean hasStatusMessage()Simple status update
string status_message = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the statusMessage field is set. |
hasTextChunk()
public boolean hasTextChunk()Text Token (for streaming Gemini responses word-by-word)
string text_chunk = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the textChunk field is set. |
hasUiEvent()
public boolean hasUiEvent()Optional. UI event payload.
.google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the uiEvent field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEventTime(Timestamp value)
public ChatAiAssistantResponse.Builder mergeEventTime(Timestamp value)Timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
mergeFrom(ChatAiAssistantResponse other)
public ChatAiAssistantResponse.Builder mergeFrom(ChatAiAssistantResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ChatAiAssistantResponse |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ChatAiAssistantResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ChatAiAssistantResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
mergeSessionCheckpoint(SessionCheckpoint value)
public ChatAiAssistantResponse.Builder mergeSessionCheckpoint(SessionCheckpoint value)Session checkpoint/compaction recap event containing user intent and rolling summary.
.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
SessionCheckpoint |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
mergeUiEvent(UiEvent value)
public ChatAiAssistantResponse.Builder mergeUiEvent(UiEvent value)Optional. UI event payload.
.google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
UiEvent |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
setEventId(String value)
public ChatAiAssistantResponse.Builder setEventId(String value)Unique identifier for the event.
string event_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe eventId to set. |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
setEventIdBytes(ByteString value)
public ChatAiAssistantResponse.Builder setEventIdBytes(ByteString value)Unique identifier for the event.
string event_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for eventId to set. |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
setEventTime(Timestamp value)
public ChatAiAssistantResponse.Builder setEventTime(Timestamp value)Timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
setEventTime(Timestamp.Builder builderForValue)
public ChatAiAssistantResponse.Builder setEventTime(Timestamp.Builder builderForValue)Timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
setSessionCheckpoint(SessionCheckpoint value)
public ChatAiAssistantResponse.Builder setSessionCheckpoint(SessionCheckpoint value)Session checkpoint/compaction recap event containing user intent and rolling summary.
.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13;
| Parameter | |
|---|---|
| Name | Description |
value |
SessionCheckpoint |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
setSessionCheckpoint(SessionCheckpoint.Builder builderForValue)
public ChatAiAssistantResponse.Builder setSessionCheckpoint(SessionCheckpoint.Builder builderForValue)Session checkpoint/compaction recap event containing user intent and rolling summary.
.google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
SessionCheckpoint.Builder |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
setStatusMessage(String value)
public ChatAiAssistantResponse.Builder setStatusMessage(String value)Simple status update
string status_message = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe statusMessage to set. |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
setStatusMessageBytes(ByteString value)
public ChatAiAssistantResponse.Builder setStatusMessageBytes(ByteString value)Simple status update
string status_message = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for statusMessage to set. |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
setTextChunk(String value)
public ChatAiAssistantResponse.Builder setTextChunk(String value)Text Token (for streaming Gemini responses word-by-word)
string text_chunk = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe textChunk to set. |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
setTextChunkBytes(ByteString value)
public ChatAiAssistantResponse.Builder setTextChunkBytes(ByteString value)Text Token (for streaming Gemini responses word-by-word)
string text_chunk = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for textChunk to set. |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
This builder for chaining. |
setUiEvent(UiEvent value)
public ChatAiAssistantResponse.Builder setUiEvent(UiEvent value)Optional. UI event payload.
.google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
UiEvent |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|
setUiEvent(UiEvent.Builder builderForValue)
public ChatAiAssistantResponse.Builder setUiEvent(UiEvent.Builder builderForValue)Optional. UI event payload.
.google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
UiEvent.Builder |
| Returns | |
|---|---|
| Type | Description |
ChatAiAssistantResponse.Builder |
|