Class ReceiveEventsControlResponse.Builder (0.10.0)

public static final class ReceiveEventsControlResponse.Builder extends GeneratedMessageV3.Builder<ReceiveEventsControlResponse.Builder> implements ReceiveEventsControlResponseOrBuilder

Control message for a ReceiveEventsResponse.

Protobuf type google.cloud.visionai.v1.ReceiveEventsControlResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReceiveEventsControlResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReceiveEventsControlResponse.Builder
Overrides

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
Overrides

clearControl()

public ReceiveEventsControlResponse.Builder clearControl()
Returns
Type Description
ReceiveEventsControlResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ReceiveEventsControlResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReceiveEventsControlResponse.Builder
Overrides

clearHeartbeat()

public ReceiveEventsControlResponse.Builder clearHeartbeat()

A server heartbeat.

bool heartbeat = 1;

Returns
Type Description
ReceiveEventsControlResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReceiveEventsControlResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReceiveEventsControlResponse.Builder
Overrides

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.

clone()

public ReceiveEventsControlResponse.Builder clone()
Returns
Type Description
ReceiveEventsControlResponse.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReceiveEventsControlResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReceiveEventsControlResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ReceiveEventsControlResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReceiveEventsControlResponse.Builder
Overrides

setHeartbeat(boolean value)

public ReceiveEventsControlResponse.Builder setHeartbeat(boolean value)

A server heartbeat.

bool heartbeat = 1;

Parameter
Name Description
value boolean

The heartbeat to set.

Returns
Type Description
ReceiveEventsControlResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReceiveEventsControlResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReceiveEventsControlResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReceiveEventsControlResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReceiveEventsControlResponse.Builder
Overrides

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 boolean

The writesDoneRequest to set.

Returns
Type Description
ReceiveEventsControlResponse.Builder

This builder for chaining.