Class ReceivePacketsRequest.SetupRequest (0.6.0)

public static final class ReceivePacketsRequest.SetupRequest extends GeneratedMessageV3 implements ReceivePacketsRequest.SetupRequestOrBuilder

The message specifying the initial settings for the ReceivePackets session.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ReceivePacketsRequest.SetupRequest

Static Fields

CONTROLLED_RECEIVE_MODE_FIELD_NUMBER

public static final int CONTROLLED_RECEIVE_MODE_FIELD_NUMBER
Field Value
Type Description
int

EAGER_RECEIVE_MODE_FIELD_NUMBER

public static final int EAGER_RECEIVE_MODE_FIELD_NUMBER
Field Value
Type Description
int

HEARTBEAT_INTERVAL_FIELD_NUMBER

public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

RECEIVER_FIELD_NUMBER

public static final int RECEIVER_FIELD_NUMBER
Field Value
Type Description
int

WRITES_DONE_GRACE_PERIOD_FIELD_NUMBER

public static final int WRITES_DONE_GRACE_PERIOD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ReceivePacketsRequest.SetupRequest getDefaultInstance()
Returns
Type Description
ReceivePacketsRequest.SetupRequest

getDescriptor()

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

newBuilder()

public static ReceivePacketsRequest.SetupRequest.Builder newBuilder()
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

newBuilder(ReceivePacketsRequest.SetupRequest prototype)

public static ReceivePacketsRequest.SetupRequest.Builder newBuilder(ReceivePacketsRequest.SetupRequest prototype)
Parameter
Name Description
prototype ReceivePacketsRequest.SetupRequest
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder

parseDelimitedFrom(InputStream input)

public static ReceivePacketsRequest.SetupRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReceivePacketsRequest.SetupRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ReceivePacketsRequest.SetupRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReceivePacketsRequest.SetupRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReceivePacketsRequest.SetupRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReceivePacketsRequest.SetupRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReceivePacketsRequest.SetupRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReceivePacketsRequest.SetupRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ReceivePacketsRequest.SetupRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReceivePacketsRequest.SetupRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ReceivePacketsRequest.SetupRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReceivePacketsRequest.SetupRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReceivePacketsRequest.SetupRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ReceivePacketsRequest.SetupRequest> parser()
Returns
Type Description
Parser<SetupRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

getEagerReceiveMode()

public EagerMode getEagerReceiveMode()

Options for configuring eager mode.

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

Returns
Type Description
EagerMode

The eagerReceiveMode.

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.

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.

getMetadataOrBuilder()

public RequestMetadataOrBuilder getMetadataOrBuilder()

The configurations that specify where packets are retrieved.

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

Returns
Type Description
RequestMetadataOrBuilder

getParserForType()

public Parser<ReceivePacketsRequest.SetupRequest> getParserForType()
Returns
Type Description
Parser<SetupRequest>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReceivePacketsRequest.SetupRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ReceivePacketsRequest.SetupRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException