Class TurnHandoffEvent.Builder (0.19.0)

public static final class TurnHandoffEvent.Builder extends GeneratedMessage.Builder<TurnHandoffEvent.Builder> 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 Methods

getDescriptor()

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

Methods

build()

public TurnHandoffEvent build()
Returns
Type Description
TurnHandoffEvent

buildPartial()

public TurnHandoffEvent buildPartial()
Returns
Type Description
TurnHandoffEvent

clear()

public TurnHandoffEvent.Builder clear()
Returns
Type Description
TurnHandoffEvent.Builder
Overrides

clearReason()

public TurnHandoffEvent.Builder clearReason()

Why the stream is handing off.

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

Returns
Type Description
TurnHandoffEvent.Builder

This builder for chaining.

clearTurnId()

public TurnHandoffEvent.Builder clearTurnId()

Identifies the turn to resume.

string turn_id = 1;

Returns
Type Description
TurnHandoffEvent.Builder

This builder for chaining.

getDefaultInstanceForType()

public TurnHandoffEvent getDefaultInstanceForType()
Returns
Type Description
TurnHandoffEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TurnHandoffEvent other)

public TurnHandoffEvent.Builder mergeFrom(TurnHandoffEvent other)
Parameter
Name Description
other TurnHandoffEvent
Returns
Type Description
TurnHandoffEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TurnHandoffEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TurnHandoffEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TurnHandoffEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TurnHandoffEvent.Builder
Overrides

setReason(TurnHandoffEvent.Reason value)

public TurnHandoffEvent.Builder setReason(TurnHandoffEvent.Reason value)

Why the stream is handing off.

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

Parameter
Name Description
value TurnHandoffEvent.Reason

The reason to set.

Returns
Type Description
TurnHandoffEvent.Builder

This builder for chaining.

setReasonValue(int value)

public TurnHandoffEvent.Builder setReasonValue(int value)

Why the stream is handing off.

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

Parameter
Name Description
value int

The enum numeric value on the wire for reason to set.

Returns
Type Description
TurnHandoffEvent.Builder

This builder for chaining.

setTurnId(String value)

public TurnHandoffEvent.Builder setTurnId(String value)

Identifies the turn to resume.

string turn_id = 1;

Parameter
Name Description
value String

The turnId to set.

Returns
Type Description
TurnHandoffEvent.Builder

This builder for chaining.

setTurnIdBytes(ByteString value)

public TurnHandoffEvent.Builder setTurnIdBytes(ByteString value)

Identifies the turn to resume.

string turn_id = 1;

Parameter
Name Description
value ByteString

The bytes for turnId to set.

Returns
Type Description
TurnHandoffEvent.Builder

This builder for chaining.