public static final class ReceiveEventsControlResponse.Builder extends GeneratedMessage.Builder<ReceiveEventsControlResponse.Builder> implements ReceiveEventsControlResponseOrBuilderControl message for a ReceiveEventsResponse.
Protobuf type google.cloud.visionai.v1.ReceiveEventsControlResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ReceiveEventsControlResponse.BuilderImplements
ReceiveEventsControlResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ReceiveEventsControlResponse build()| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse |
|
buildPartial()
public ReceiveEventsControlResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse |
|
clear()
public ReceiveEventsControlResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
|
clearControl()
public ReceiveEventsControlResponse.Builder clearControl()| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
|
clearHeartbeat()
public ReceiveEventsControlResponse.Builder clearHeartbeat()A server heartbeat.
bool heartbeat = 1;
| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
This builder for chaining. |
clearWritesDoneRequest()
public ReceiveEventsControlResponse.Builder clearWritesDoneRequest() A request to the receiver to complete any final writes followed by a
WritesDone; e.g. issue any final CommitRequests.
May be ignored if WritesDone has already been issued at any point
prior to receiving this message.
If WritesDone does not get issued, then the server will forcefully
cancel the connection, and the receiver will likely receive an
uninformative after Read returns false and Finish is called.
bool writes_done_request = 2;
| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
This builder for chaining. |
getControlCase()
public ReceiveEventsControlResponse.ControlCase getControlCase()| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.ControlCase |
|
getDefaultInstanceForType()
public ReceiveEventsControlResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHeartbeat()
public boolean getHeartbeat()A server heartbeat.
bool heartbeat = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The heartbeat. |
getWritesDoneRequest()
public boolean getWritesDoneRequest() A request to the receiver to complete any final writes followed by a
WritesDone; e.g. issue any final CommitRequests.
May be ignored if WritesDone has already been issued at any point
prior to receiving this message.
If WritesDone does not get issued, then the server will forcefully
cancel the connection, and the receiver will likely receive an
uninformative after Read returns false and Finish is called.
bool writes_done_request = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
The writesDoneRequest. |
hasHeartbeat()
public boolean hasHeartbeat()A server heartbeat.
bool heartbeat = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the heartbeat field is set. |
hasWritesDoneRequest()
public boolean hasWritesDoneRequest() A request to the receiver to complete any final writes followed by a
WritesDone; e.g. issue any final CommitRequests.
May be ignored if WritesDone has already been issued at any point
prior to receiving this message.
If WritesDone does not get issued, then the server will forcefully
cancel the connection, and the receiver will likely receive an
uninformative after Read returns false and Finish is called.
bool writes_done_request = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the writesDoneRequest field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ReceiveEventsControlResponse other)
public ReceiveEventsControlResponse.Builder mergeFrom(ReceiveEventsControlResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ReceiveEventsControlResponse |
| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReceiveEventsControlResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ReceiveEventsControlResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
|
setHeartbeat(boolean value)
public ReceiveEventsControlResponse.Builder setHeartbeat(boolean value)A server heartbeat.
bool heartbeat = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe heartbeat to set. |
| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
This builder for chaining. |
setWritesDoneRequest(boolean value)
public ReceiveEventsControlResponse.Builder setWritesDoneRequest(boolean value) A request to the receiver to complete any final writes followed by a
WritesDone; e.g. issue any final CommitRequests.
May be ignored if WritesDone has already been issued at any point
prior to receiving this message.
If WritesDone does not get issued, then the server will forcefully
cancel the connection, and the receiver will likely receive an
uninformative after Read returns false and Finish is called.
bool writes_done_request = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe writesDoneRequest to set. |
| Returns | |
|---|---|
| Type | Description |
ReceiveEventsControlResponse.Builder |
This builder for chaining. |