public static final class TurnResumeSnapshot.Builder extends GeneratedMessage.Builder<TurnResumeSnapshot.Builder> implements TurnResumeSnapshotOrBuilderA compacted replay of an in-flight turn: everything needed to render the turn's visible output so far, plus the position live events continue from.
Protobuf type google.cloud.ces.v1beta.TurnResumeSnapshot
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TurnResumeSnapshot.BuilderImplements
TurnResumeSnapshotOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllEvents(Iterable<? extends StreamChatAiAssistantResponse> values)
public TurnResumeSnapshot.Builder addAllEvents(Iterable<? extends StreamChatAiAssistantResponse> values)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
addEvents(StreamChatAiAssistantResponse value)
public TurnResumeSnapshot.Builder addEvents(StreamChatAiAssistantResponse value)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StreamChatAiAssistantResponse |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
addEvents(StreamChatAiAssistantResponse.Builder builderForValue)
public TurnResumeSnapshot.Builder addEvents(StreamChatAiAssistantResponse.Builder builderForValue)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
StreamChatAiAssistantResponse.Builder |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
addEvents(int index, StreamChatAiAssistantResponse value)
public TurnResumeSnapshot.Builder addEvents(int index, StreamChatAiAssistantResponse value)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
StreamChatAiAssistantResponse |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
addEvents(int index, StreamChatAiAssistantResponse.Builder builderForValue)
public TurnResumeSnapshot.Builder addEvents(int index, StreamChatAiAssistantResponse.Builder builderForValue)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
StreamChatAiAssistantResponse.Builder |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
addEventsBuilder()
public StreamChatAiAssistantResponse.Builder addEventsBuilder()Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Returns | |
|---|---|
| Type | Description |
StreamChatAiAssistantResponse.Builder |
|
addEventsBuilder(int index)
public StreamChatAiAssistantResponse.Builder addEventsBuilder(int index)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StreamChatAiAssistantResponse.Builder |
|
build()
public TurnResumeSnapshot build()| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot |
|
buildPartial()
public TurnResumeSnapshot buildPartial()| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot |
|
clear()
public TurnResumeSnapshot.Builder clear()| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
clearEvents()
public TurnResumeSnapshot.Builder clearEvents()Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
clearOrphanDeadlineTime()
public TurnResumeSnapshot.Builder clearOrphanDeadlineTime()When the turn will be wound down if no client remains attached.
.google.protobuf.Timestamp orphan_deadline_time = 4;
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
clearResolvedSequenceNumber()
public TurnResumeSnapshot.Builder clearResolvedSequenceNumber()The position this snapshot represents. Live events follow with sequence_number strictly greater than this. When lower than the resume_from_sequence_number the client requested, flushed progress lags what the client already rendered: the client must discard its rendered content of this turn beyond this position before applying the snapshot.
int64 resolved_sequence_number = 2;
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
This builder for chaining. |
clearTurnId()
public TurnResumeSnapshot.Builder clearTurnId()Identifies the turn being attached to.
string turn_id = 1;
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public TurnResumeSnapshot getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEvents(int index)
public StreamChatAiAssistantResponse getEvents(int index)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StreamChatAiAssistantResponse |
|
getEventsBuilder(int index)
public StreamChatAiAssistantResponse.Builder getEventsBuilder(int index)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StreamChatAiAssistantResponse.Builder |
|
getEventsBuilderList()
public List<StreamChatAiAssistantResponse.Builder> getEventsBuilderList()Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getEventsCount()
public int getEventsCount()Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getEventsList()
public List<StreamChatAiAssistantResponse> getEventsList()Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Returns | |
|---|---|
| Type | Description |
List<StreamChatAiAssistantResponse> |
|
getEventsOrBuilder(int index)
public StreamChatAiAssistantResponseOrBuilder getEventsOrBuilder(int index)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
StreamChatAiAssistantResponseOrBuilder |
|
getEventsOrBuilderList()
public List<? extends StreamChatAiAssistantResponseOrBuilder> getEventsOrBuilderList()Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.ces.v1beta.StreamChatAiAssistantResponseOrBuilder> |
|
getOrphanDeadlineTime()
public Timestamp getOrphanDeadlineTime()When the turn will be wound down if no client remains attached.
.google.protobuf.Timestamp orphan_deadline_time = 4;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The orphanDeadlineTime. |
getOrphanDeadlineTimeBuilder()
public Timestamp.Builder getOrphanDeadlineTimeBuilder()When the turn will be wound down if no client remains attached.
.google.protobuf.Timestamp orphan_deadline_time = 4;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getOrphanDeadlineTimeOrBuilder()
public TimestampOrBuilder getOrphanDeadlineTimeOrBuilder()When the turn will be wound down if no client remains attached.
.google.protobuf.Timestamp orphan_deadline_time = 4;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getResolvedSequenceNumber()
public long getResolvedSequenceNumber()The position this snapshot represents. Live events follow with sequence_number strictly greater than this. When lower than the resume_from_sequence_number the client requested, flushed progress lags what the client already rendered: the client must discard its rendered content of this turn beyond this position before applying the snapshot.
int64 resolved_sequence_number = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The resolvedSequenceNumber. |
getTurnId()
public String getTurnId()Identifies the turn being attached to.
string turn_id = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The turnId. |
getTurnIdBytes()
public ByteString getTurnIdBytes()Identifies the turn being attached to.
string turn_id = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for turnId. |
hasOrphanDeadlineTime()
public boolean hasOrphanDeadlineTime()When the turn will be wound down if no client remains attached.
.google.protobuf.Timestamp orphan_deadline_time = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the orphanDeadlineTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TurnResumeSnapshot other)
public TurnResumeSnapshot.Builder mergeFrom(TurnResumeSnapshot other)| Parameter | |
|---|---|
| Name | Description |
other |
TurnResumeSnapshot |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TurnResumeSnapshot.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TurnResumeSnapshot.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
mergeOrphanDeadlineTime(Timestamp value)
public TurnResumeSnapshot.Builder mergeOrphanDeadlineTime(Timestamp value)When the turn will be wound down if no client remains attached.
.google.protobuf.Timestamp orphan_deadline_time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
removeEvents(int index)
public TurnResumeSnapshot.Builder removeEvents(int index)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
setEvents(int index, StreamChatAiAssistantResponse value)
public TurnResumeSnapshot.Builder setEvents(int index, StreamChatAiAssistantResponse value)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
StreamChatAiAssistantResponse |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
setEvents(int index, StreamChatAiAssistantResponse.Builder builderForValue)
public TurnResumeSnapshot.Builder setEvents(int index, StreamChatAiAssistantResponse.Builder builderForValue)Compacted events reconstructing the turn's visible output, in render order, using the same event shapes as live streaming.
repeated .google.cloud.ces.v1beta.StreamChatAiAssistantResponse events = 3;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
StreamChatAiAssistantResponse.Builder |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
setOrphanDeadlineTime(Timestamp value)
public TurnResumeSnapshot.Builder setOrphanDeadlineTime(Timestamp value)When the turn will be wound down if no client remains attached.
.google.protobuf.Timestamp orphan_deadline_time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
setOrphanDeadlineTime(Timestamp.Builder builderForValue)
public TurnResumeSnapshot.Builder setOrphanDeadlineTime(Timestamp.Builder builderForValue)When the turn will be wound down if no client remains attached.
.google.protobuf.Timestamp orphan_deadline_time = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
|
setResolvedSequenceNumber(long value)
public TurnResumeSnapshot.Builder setResolvedSequenceNumber(long value)The position this snapshot represents. Live events follow with sequence_number strictly greater than this. When lower than the resume_from_sequence_number the client requested, flushed progress lags what the client already rendered: the client must discard its rendered content of this turn beyond this position before applying the snapshot.
int64 resolved_sequence_number = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe resolvedSequenceNumber to set. |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
This builder for chaining. |
setTurnId(String value)
public TurnResumeSnapshot.Builder setTurnId(String value)Identifies the turn being attached to.
string turn_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe turnId to set. |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
This builder for chaining. |
setTurnIdBytes(ByteString value)
public TurnResumeSnapshot.Builder setTurnIdBytes(ByteString value)Identifies the turn being attached to.
string turn_id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for turnId to set. |
| Returns | |
|---|---|
| Type | Description |
TurnResumeSnapshot.Builder |
This builder for chaining. |