Class ReceivePacketsRequest.SetupRequest.Builder (0.11.0)

public static final class ReceivePacketsRequest.SetupRequest.Builder extends GeneratedMessageV3.Builder<ReceivePacketsRequest.SetupRequest.Builder> implements ReceivePacketsRequest.SetupRequestOrBuilder

The message specifying the initial settings for the ReceivePackets session.

Protobuf type google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReceivePacketsRequest.SetupRequest build()
Returns
Type Description
ReceivePacketsRequest.SetupRequest

buildPartial()

public ReceivePacketsRequest.SetupRequest buildPartial()
Returns
Type Description
ReceivePacketsRequest.SetupRequest

clear()

public ReceivePacketsRequest.SetupRequest.Builder clear()
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder
Overrides

clearConsumerMode()

public ReceivePacketsRequest.SetupRequest.Builder clearConsumerMode()
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

clearControlledReceiveMode()

public ReceivePacketsRequest.SetupRequest.Builder clearControlledReceiveMode()

Options for configuring controlled mode.

.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;

Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

clearEagerReceiveMode()

public ReceivePacketsRequest.SetupRequest.Builder clearEagerReceiveMode()

Options for configuring eager mode.

.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;

Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHeartbeatInterval()

public ReceivePacketsRequest.SetupRequest.Builder clearHeartbeatInterval()

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a Packet or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

.google.protobuf.Duration heartbeat_interval = 5;

Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

clearMetadata()

public ReceivePacketsRequest.SetupRequest.Builder clearMetadata()

The configurations that specify where packets are retrieved.

.google.cloud.visionai.v1.RequestMetadata metadata = 1;

Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReceiver()

public ReceivePacketsRequest.SetupRequest.Builder clearReceiver()

A name for the receiver to self-identify.

This is used to keep track of a receiver's read progress.

string receiver = 2;

Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

This builder for chaining.

clearWritesDoneGracePeriod()

public ReceivePacketsRequest.SetupRequest.Builder clearWritesDoneGracePeriod()

The grace period after which a writes_done_request is issued, that a WritesDone is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

.google.protobuf.Duration writes_done_grace_period = 6;

Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

clone()

public ReceivePacketsRequest.SetupRequest.Builder clone()
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder
Overrides

getConsumerModeCase()

public ReceivePacketsRequest.SetupRequest.ConsumerModeCase getConsumerModeCase()
Returns
Type Description
ReceivePacketsRequest.SetupRequest.ConsumerModeCase

getControlledReceiveMode()

public ControlledMode getControlledReceiveMode()

Options for configuring controlled mode.

.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;

Returns
Type Description
ControlledMode

The controlledReceiveMode.

getControlledReceiveModeBuilder()

public ControlledMode.Builder getControlledReceiveModeBuilder()

Options for configuring controlled mode.

.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;

Returns
Type Description
ControlledMode.Builder

getControlledReceiveModeOrBuilder()

public ControlledModeOrBuilder getControlledReceiveModeOrBuilder()

Options for configuring controlled mode.

.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;

Returns
Type Description
ControlledModeOrBuilder

getDefaultInstanceForType()

public ReceivePacketsRequest.SetupRequest getDefaultInstanceForType()
Returns
Type Description
ReceivePacketsRequest.SetupRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEagerReceiveMode()

public EagerMode getEagerReceiveMode()

Options for configuring eager mode.

.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;

Returns
Type Description
EagerMode

The eagerReceiveMode.

getEagerReceiveModeBuilder()

public EagerMode.Builder getEagerReceiveModeBuilder()

Options for configuring eager mode.

.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;

Returns
Type Description
EagerMode.Builder

getEagerReceiveModeOrBuilder()

public EagerModeOrBuilder getEagerReceiveModeOrBuilder()

Options for configuring eager mode.

.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;

Returns
Type Description
EagerModeOrBuilder

getHeartbeatInterval()

public Duration getHeartbeatInterval()

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a Packet or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

.google.protobuf.Duration heartbeat_interval = 5;

Returns
Type Description
Duration

The heartbeatInterval.

getHeartbeatIntervalBuilder()

public Duration.Builder getHeartbeatIntervalBuilder()

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a Packet or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

.google.protobuf.Duration heartbeat_interval = 5;

Returns
Type Description
Builder

getHeartbeatIntervalOrBuilder()

public DurationOrBuilder getHeartbeatIntervalOrBuilder()

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a Packet or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

.google.protobuf.Duration heartbeat_interval = 5;

Returns
Type Description
DurationOrBuilder

getMetadata()

public RequestMetadata getMetadata()

The configurations that specify where packets are retrieved.

.google.cloud.visionai.v1.RequestMetadata metadata = 1;

Returns
Type Description
RequestMetadata

The metadata.

getMetadataBuilder()

public RequestMetadata.Builder getMetadataBuilder()

The configurations that specify where packets are retrieved.

.google.cloud.visionai.v1.RequestMetadata metadata = 1;

Returns
Type Description
RequestMetadata.Builder

getMetadataOrBuilder()

public RequestMetadataOrBuilder getMetadataOrBuilder()

The configurations that specify where packets are retrieved.

.google.cloud.visionai.v1.RequestMetadata metadata = 1;

Returns
Type Description
RequestMetadataOrBuilder

getReceiver()

public String getReceiver()

A name for the receiver to self-identify.

This is used to keep track of a receiver's read progress.

string receiver = 2;

Returns
Type Description
String

The receiver.

getReceiverBytes()

public ByteString getReceiverBytes()

A name for the receiver to self-identify.

This is used to keep track of a receiver's read progress.

string receiver = 2;

Returns
Type Description
ByteString

The bytes for receiver.

getWritesDoneGracePeriod()

public Duration getWritesDoneGracePeriod()

The grace period after which a writes_done_request is issued, that a WritesDone is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

.google.protobuf.Duration writes_done_grace_period = 6;

Returns
Type Description
Duration

The writesDoneGracePeriod.

getWritesDoneGracePeriodBuilder()

public Duration.Builder getWritesDoneGracePeriodBuilder()

The grace period after which a writes_done_request is issued, that a WritesDone is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

.google.protobuf.Duration writes_done_grace_period = 6;

Returns
Type Description
Builder

getWritesDoneGracePeriodOrBuilder()

public DurationOrBuilder getWritesDoneGracePeriodOrBuilder()

The grace period after which a writes_done_request is issued, that a WritesDone is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

.google.protobuf.Duration writes_done_grace_period = 6;

Returns
Type Description
DurationOrBuilder

hasControlledReceiveMode()

public boolean hasControlledReceiveMode()

Options for configuring controlled mode.

.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;

Returns
Type Description
boolean

Whether the controlledReceiveMode field is set.

hasEagerReceiveMode()

public boolean hasEagerReceiveMode()

Options for configuring eager mode.

.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;

Returns
Type Description
boolean

Whether the eagerReceiveMode field is set.

hasHeartbeatInterval()

public boolean hasHeartbeatInterval()

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a Packet or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

.google.protobuf.Duration heartbeat_interval = 5;

Returns
Type Description
boolean

Whether the heartbeatInterval field is set.

hasMetadata()

public boolean hasMetadata()

The configurations that specify where packets are retrieved.

.google.cloud.visionai.v1.RequestMetadata metadata = 1;

Returns
Type Description
boolean

Whether the metadata field is set.

hasWritesDoneGracePeriod()

public boolean hasWritesDoneGracePeriod()

The grace period after which a writes_done_request is issued, that a WritesDone is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

.google.protobuf.Duration writes_done_grace_period = 6;

Returns
Type Description
boolean

Whether the writesDoneGracePeriod field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeControlledReceiveMode(ControlledMode value)

public ReceivePacketsRequest.SetupRequest.Builder mergeControlledReceiveMode(ControlledMode value)

Options for configuring controlled mode.

.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;

Parameter
Name Description
value ControlledMode
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

mergeEagerReceiveMode(EagerMode value)

public ReceivePacketsRequest.SetupRequest.Builder mergeEagerReceiveMode(EagerMode value)

Options for configuring eager mode.

.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;

Parameter
Name Description
value EagerMode
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

mergeFrom(ReceivePacketsRequest.SetupRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHeartbeatInterval(Duration value)

public ReceivePacketsRequest.SetupRequest.Builder mergeHeartbeatInterval(Duration value)

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a Packet or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

.google.protobuf.Duration heartbeat_interval = 5;

Parameter
Name Description
value Duration
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

mergeMetadata(RequestMetadata value)

public ReceivePacketsRequest.SetupRequest.Builder mergeMetadata(RequestMetadata value)

The configurations that specify where packets are retrieved.

.google.cloud.visionai.v1.RequestMetadata metadata = 1;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWritesDoneGracePeriod(Duration value)

public ReceivePacketsRequest.SetupRequest.Builder mergeWritesDoneGracePeriod(Duration value)

The grace period after which a writes_done_request is issued, that a WritesDone is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

.google.protobuf.Duration writes_done_grace_period = 6;

Parameter
Name Description
value Duration
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setControlledReceiveMode(ControlledMode value)

public ReceivePacketsRequest.SetupRequest.Builder setControlledReceiveMode(ControlledMode value)

Options for configuring controlled mode.

.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;

Parameter
Name Description
value ControlledMode
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setControlledReceiveMode(ControlledMode.Builder builderForValue)

public ReceivePacketsRequest.SetupRequest.Builder setControlledReceiveMode(ControlledMode.Builder builderForValue)

Options for configuring controlled mode.

.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;

Parameter
Name Description
builderForValue ControlledMode.Builder
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setEagerReceiveMode(EagerMode value)

public ReceivePacketsRequest.SetupRequest.Builder setEagerReceiveMode(EagerMode value)

Options for configuring eager mode.

.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;

Parameter
Name Description
value EagerMode
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setEagerReceiveMode(EagerMode.Builder builderForValue)

public ReceivePacketsRequest.SetupRequest.Builder setEagerReceiveMode(EagerMode.Builder builderForValue)

Options for configuring eager mode.

.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;

Parameter
Name Description
builderForValue EagerMode.Builder
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHeartbeatInterval(Duration value)

public ReceivePacketsRequest.SetupRequest.Builder setHeartbeatInterval(Duration value)

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a Packet or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

.google.protobuf.Duration heartbeat_interval = 5;

Parameter
Name Description
value Duration
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setHeartbeatInterval(Duration.Builder builderForValue)

public ReceivePacketsRequest.SetupRequest.Builder setHeartbeatInterval(Duration.Builder builderForValue)

The maximum duration of server silence before the client determines the server unreachable.

The client must either receive a Packet or a heart beat message before this duration expires; otherwise, the client will automatically cancel the current connection and retry.

.google.protobuf.Duration heartbeat_interval = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setMetadata(RequestMetadata value)

public ReceivePacketsRequest.SetupRequest.Builder setMetadata(RequestMetadata value)

The configurations that specify where packets are retrieved.

.google.cloud.visionai.v1.RequestMetadata metadata = 1;

Parameter
Name Description
value RequestMetadata
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setMetadata(RequestMetadata.Builder builderForValue)

public ReceivePacketsRequest.SetupRequest.Builder setMetadata(RequestMetadata.Builder builderForValue)

The configurations that specify where packets are retrieved.

.google.cloud.visionai.v1.RequestMetadata metadata = 1;

Parameter
Name Description
builderForValue RequestMetadata.Builder
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setReceiver(String value)

public ReceivePacketsRequest.SetupRequest.Builder setReceiver(String value)

A name for the receiver to self-identify.

This is used to keep track of a receiver's read progress.

string receiver = 2;

Parameter
Name Description
value String

The receiver to set.

Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

This builder for chaining.

setReceiverBytes(ByteString value)

public ReceivePacketsRequest.SetupRequest.Builder setReceiverBytes(ByteString value)

A name for the receiver to self-identify.

This is used to keep track of a receiver's read progress.

string receiver = 2;

Parameter
Name Description
value ByteString

The bytes for receiver to set.

Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWritesDoneGracePeriod(Duration value)

public ReceivePacketsRequest.SetupRequest.Builder setWritesDoneGracePeriod(Duration value)

The grace period after which a writes_done_request is issued, that a WritesDone is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

.google.protobuf.Duration writes_done_grace_period = 6;

Parameter
Name Description
value Duration
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

setWritesDoneGracePeriod(Duration.Builder builderForValue)

public ReceivePacketsRequest.SetupRequest.Builder setWritesDoneGracePeriod(Duration.Builder builderForValue)

The grace period after which a writes_done_request is issued, that a WritesDone is expected from the client.

The server is free to cancel the RPC should this expire.

A system default will be chosen if unset.

.google.protobuf.Duration writes_done_grace_period = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder