Class ChatAiAssistantResponse (0.19.0)

public final class ChatAiAssistantResponse extends GeneratedMessage implements ChatAiAssistantResponseOrBuilder

Response message for AssistantService.ChatAiAssistant.

Protobuf type google.cloud.ces.v1beta.ChatAiAssistantResponse

Static Fields

EVENT_ID_FIELD_NUMBER

public static final int EVENT_ID_FIELD_NUMBER
Field Value
Type Description
int

EVENT_TIME_FIELD_NUMBER

public static final int EVENT_TIME_FIELD_NUMBER
Field Value
Type Description
int

SESSION_CHECKPOINT_FIELD_NUMBER

public static final int SESSION_CHECKPOINT_FIELD_NUMBER
Field Value
Type Description
int

STATUS_MESSAGE_FIELD_NUMBER

public static final int STATUS_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

TEXT_CHUNK_FIELD_NUMBER

public static final int TEXT_CHUNK_FIELD_NUMBER
Field Value
Type Description
int

UI_EVENT_FIELD_NUMBER

public static final int UI_EVENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ChatAiAssistantResponse getDefaultInstance()
Returns
Type Description
ChatAiAssistantResponse

getDescriptor()

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

newBuilder()

public static ChatAiAssistantResponse.Builder newBuilder()
Returns
Type Description
ChatAiAssistantResponse.Builder

newBuilder(ChatAiAssistantResponse prototype)

public static ChatAiAssistantResponse.Builder newBuilder(ChatAiAssistantResponse prototype)
Parameter
Name Description
prototype ChatAiAssistantResponse
Returns
Type Description
ChatAiAssistantResponse.Builder

parseDelimitedFrom(InputStream input)

public static ChatAiAssistantResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChatAiAssistantResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ChatAiAssistantResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ChatAiAssistantResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ChatAiAssistantResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ChatAiAssistantResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ChatAiAssistantResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ChatAiAssistantResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ChatAiAssistantResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ChatAiAssistantResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ChatAiAssistantResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ChatAiAssistantResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChatAiAssistantResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ChatAiAssistantResponse> parser()
Returns
Type Description
Parser<ChatAiAssistantResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ChatAiAssistantResponse getDefaultInstanceForType()
Returns
Type Description
ChatAiAssistantResponse

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.

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 2;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<ChatAiAssistantResponse> getParserForType()
Returns
Type Description
Parser<ChatAiAssistantResponse>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ChatAiAssistantResponse.Builder newBuilderForType()
Returns
Type Description
ChatAiAssistantResponse.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ChatAiAssistantResponse.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ChatAiAssistantResponse.Builder
Overrides

toBuilder()

public ChatAiAssistantResponse.Builder toBuilder()
Returns
Type Description
ChatAiAssistantResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException