Class ReceivePacketsControlResponse.Builder (0.12.0)

public static final class ReceivePacketsControlResponse.Builder extends GeneratedMessageV3.Builder<ReceivePacketsControlResponse.Builder> implements ReceivePacketsControlResponseOrBuilder

Control message for a ReceivePacketsResponse.

Protobuf type google.cloud.visionai.v1.ReceivePacketsControlResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReceivePacketsControlResponse build()
Returns
Type Description
ReceivePacketsControlResponse

buildPartial()

public ReceivePacketsControlResponse buildPartial()
Returns
Type Description
ReceivePacketsControlResponse

clear()

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

clearControl()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHeartbeat()

public ReceivePacketsControlResponse.Builder clearHeartbeat()

A server heartbeat.

bool heartbeat = 1;

Returns
Type Description
ReceivePacketsControlResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWritesDoneRequest()

public ReceivePacketsControlResponse.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
ReceivePacketsControlResponse.Builder

This builder for chaining.

clone()

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

getControlCase()

public ReceivePacketsControlResponse.ControlCase getControlCase()
Returns
Type Description
ReceivePacketsControlResponse.ControlCase

getDefaultInstanceForType()

public ReceivePacketsControlResponse getDefaultInstanceForType()
Returns
Type Description
ReceivePacketsControlResponse

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(ReceivePacketsControlResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHeartbeat(boolean value)

public ReceivePacketsControlResponse.Builder setHeartbeat(boolean value)

A server heartbeat.

bool heartbeat = 1;

Parameter
Name Description
value boolean

The heartbeat to set.

Returns
Type Description
ReceivePacketsControlResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWritesDoneRequest(boolean value)

public ReceivePacketsControlResponse.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
ReceivePacketsControlResponse.Builder

This builder for chaining.