Class TurnCompletedEvent (0.19.0)

public final class TurnCompletedEvent extends GeneratedMessage implements TurnCompletedEventOrBuilder

Terminal event of a turn (see StreamChatAiAssistantResponse.turn_completed).

Protobuf type google.cloud.ces.v1beta.TurnCompletedEvent

Static Fields

FINAL_SEQUENCE_NUMBER_FIELD_NUMBER

public static final int FINAL_SEQUENCE_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

REASON_FIELD_NUMBER

public static final int REASON_FIELD_NUMBER
Field Value
Type Description
int

TURN_ID_FIELD_NUMBER

public static final int TURN_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TurnCompletedEvent getDefaultInstance()
Returns
Type Description
TurnCompletedEvent

getDescriptor()

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

newBuilder()

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

newBuilder(TurnCompletedEvent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TurnCompletedEvent getDefaultInstanceForType()
Returns
Type Description
TurnCompletedEvent

getFinalSequenceNumber()

public long getFinalSequenceNumber()

Sequence number of the last event the turn produced. A client whose cursor is lower missed content and should reload the session to see it.

int64 final_sequence_number = 3;

Returns
Type Description
long

The finalSequenceNumber.

getParserForType()

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

getReason()

public TurnCompletedEvent.Reason getReason()

Why the turn ended.

.google.cloud.ces.v1beta.TurnCompletedEvent.Reason reason = 2;

Returns
Type Description
TurnCompletedEvent.Reason

The reason.

getReasonValue()

public int getReasonValue()

Why the turn ended.

.google.cloud.ces.v1beta.TurnCompletedEvent.Reason reason = 2;

Returns
Type Description
int

The enum numeric value on the wire for reason.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTurnId()

public String getTurnId()

Identifier of the turn that ended; matches TurnResumeSnapshot.turn_id and ActiveTurnInfo.turn_id.

string turn_id = 1;

Returns
Type Description
String

The turnId.

getTurnIdBytes()

public ByteString getTurnIdBytes()

Identifier of the turn that ended; matches TurnResumeSnapshot.turn_id and ActiveTurnInfo.turn_id.

string turn_id = 1;

Returns
Type Description
ByteString

The bytes for turnId.

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 TurnCompletedEvent.Builder newBuilderForType()
Returns
Type Description
TurnCompletedEvent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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