public static final class TurnHandoffEvent.Builder extends GeneratedMessage.Builder<TurnHandoffEvent.Builder> implements TurnHandoffEventOrBuilderEmitted 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
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TurnHandoffEvent.BuilderImplements
TurnHandoffEventOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TurnHandoffEvent.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TurnHandoffEvent.Builder |
|
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.ReasonThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for turnId to set. |
| Returns | |
|---|---|
| Type | Description |
TurnHandoffEvent.Builder |
This builder for chaining. |