Class TurnHandoffEvent (0.19.0)

public final class TurnHandoffEvent extends GeneratedMessage implements TurnHandoffEventOrBuilder

Emitted before this task stops serving the stream mid-turn (e.g. a server restart). The turn's state is persisted; a reconnect carrying resume_from_sequence_number continues it on another task.

Protobuf type google.cloud.ces.v1beta.TurnHandoffEvent

Static Fields

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 TurnHandoffEvent getDefaultInstance()
Returns
Type Description
TurnHandoffEvent

getDescriptor()

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

newBuilder()

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

newBuilder(TurnHandoffEvent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public TurnHandoffEvent getDefaultInstanceForType()
Returns
Type Description
TurnHandoffEvent

getParserForType()

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

getReason()

public TurnHandoffEvent.Reason getReason()

Why the stream is handing off.

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

Returns
Type Description
TurnHandoffEvent.Reason

The reason.

getReasonValue()

public int getReasonValue()

Why the stream is handing off.

.google.cloud.ces.v1beta.TurnHandoffEvent.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()

Identifies the turn to resume.

string turn_id = 1;

Returns
Type Description
String

The turnId.

getTurnIdBytes()

public ByteString getTurnIdBytes()

Identifies the turn to resume.

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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