Package com.google.cloud.visionai.v1
Class ReceivePacketsRequest.SetupRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReceivePacketsRequest.SetupRequest.Builder>
com.google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest.Builder
- All Implemented Interfaces:
ReceivePacketsRequest.SetupRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReceivePacketsRequest.SetupRequest
public static final class ReceivePacketsRequest.SetupRequest.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Options for configuring controlled mode.Options for configuring eager mode.The maximum duration of server silence before the client determines the server unreachable.The configurations that specify where packets are retrieved.A name for the receiver to self-identify.The grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.Options for configuring controlled mode.Options for configuring controlled mode.Options for configuring controlled mode.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptions for configuring eager mode.Options for configuring eager mode.Options for configuring eager mode.com.google.protobuf.DurationThe maximum duration of server silence before the client determines the server unreachable.com.google.protobuf.Duration.BuilderThe maximum duration of server silence before the client determines the server unreachable.com.google.protobuf.DurationOrBuilderThe maximum duration of server silence before the client determines the server unreachable.The configurations that specify where packets are retrieved.The configurations that specify where packets are retrieved.The configurations that specify where packets are retrieved.A name for the receiver to self-identify.com.google.protobuf.ByteStringA name for the receiver to self-identify.com.google.protobuf.DurationThe grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.com.google.protobuf.Duration.BuilderThe grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.com.google.protobuf.DurationOrBuilderThe grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.booleanOptions for configuring controlled mode.booleanOptions for configuring eager mode.booleanThe maximum duration of server silence before the client determines the server unreachable.booleanThe configurations that specify where packets are retrieved.booleanThe grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptions for configuring controlled mode.mergeEagerReceiveMode(EagerMode value) Options for configuring eager mode.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeHeartbeatInterval(com.google.protobuf.Duration value) The maximum duration of server silence before the client determines the server unreachable.mergeMetadata(RequestMetadata value) The configurations that specify where packets are retrieved.mergeWritesDoneGracePeriod(com.google.protobuf.Duration value) The grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.Options for configuring controlled mode.setControlledReceiveMode(ControlledMode.Builder builderForValue) Options for configuring controlled mode.setEagerReceiveMode(EagerMode value) Options for configuring eager mode.setEagerReceiveMode(EagerMode.Builder builderForValue) Options for configuring eager mode.setHeartbeatInterval(com.google.protobuf.Duration value) The maximum duration of server silence before the client determines the server unreachable.setHeartbeatInterval(com.google.protobuf.Duration.Builder builderForValue) The maximum duration of server silence before the client determines the server unreachable.setMetadata(RequestMetadata value) The configurations that specify where packets are retrieved.setMetadata(RequestMetadata.Builder builderForValue) The configurations that specify where packets are retrieved.setReceiver(String value) A name for the receiver to self-identify.setReceiverBytes(com.google.protobuf.ByteString value) A name for the receiver to self-identify.setWritesDoneGracePeriod(com.google.protobuf.Duration value) The grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.setWritesDoneGracePeriod(com.google.protobuf.Duration.Builder builderForValue) The grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReceivePacketsRequest.SetupRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReceivePacketsRequest.SetupRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ReceivePacketsRequest.SetupRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReceivePacketsRequest.SetupRequest.Builder>
-
mergeFrom
public ReceivePacketsRequest.SetupRequest.Builder mergeFrom(ReceivePacketsRequest.SetupRequest other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReceivePacketsRequest.SetupRequest.Builder>
-
mergeFrom
public ReceivePacketsRequest.SetupRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReceivePacketsRequest.SetupRequest.Builder>- Throws:
IOException
-
getConsumerModeCase
- Specified by:
getConsumerModeCasein interfaceReceivePacketsRequest.SetupRequestOrBuilder
-
clearConsumerMode
-
hasEagerReceiveMode
public boolean hasEagerReceiveMode()Options for configuring eager mode.
.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;- Specified by:
hasEagerReceiveModein interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- Whether the eagerReceiveMode field is set.
-
getEagerReceiveMode
Options for configuring eager mode.
.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;- Specified by:
getEagerReceiveModein interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- The eagerReceiveMode.
-
setEagerReceiveMode
Options for configuring eager mode.
.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3; -
setEagerReceiveMode
public ReceivePacketsRequest.SetupRequest.Builder setEagerReceiveMode(EagerMode.Builder builderForValue) Options for configuring eager mode.
.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3; -
mergeEagerReceiveMode
Options for configuring eager mode.
.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3; -
clearEagerReceiveMode
Options for configuring eager mode.
.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3; -
getEagerReceiveModeBuilder
Options for configuring eager mode.
.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3; -
getEagerReceiveModeOrBuilder
Options for configuring eager mode.
.google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;- Specified by:
getEagerReceiveModeOrBuilderin interfaceReceivePacketsRequest.SetupRequestOrBuilder
-
hasControlledReceiveMode
public boolean hasControlledReceiveMode()Options for configuring controlled mode.
.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;- Specified by:
hasControlledReceiveModein interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- Whether the controlledReceiveMode field is set.
-
getControlledReceiveMode
Options for configuring controlled mode.
.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;- Specified by:
getControlledReceiveModein interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- The controlledReceiveMode.
-
setControlledReceiveMode
Options for configuring controlled mode.
.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4; -
setControlledReceiveMode
public ReceivePacketsRequest.SetupRequest.Builder setControlledReceiveMode(ControlledMode.Builder builderForValue) Options for configuring controlled mode.
.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4; -
mergeControlledReceiveMode
Options for configuring controlled mode.
.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4; -
clearControlledReceiveMode
Options for configuring controlled mode.
.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4; -
getControlledReceiveModeBuilder
Options for configuring controlled mode.
.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4; -
getControlledReceiveModeOrBuilder
Options for configuring controlled mode.
.google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;- Specified by:
getControlledReceiveModeOrBuilderin interfaceReceivePacketsRequest.SetupRequestOrBuilder
-
hasMetadata
public boolean hasMetadata()The configurations that specify where packets are retrieved.
.google.cloud.visionai.v1.RequestMetadata metadata = 1;- Specified by:
hasMetadatain interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
The configurations that specify where packets are retrieved.
.google.cloud.visionai.v1.RequestMetadata metadata = 1;- Specified by:
getMetadatain interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- The metadata.
-
setMetadata
The configurations that specify where packets are retrieved.
.google.cloud.visionai.v1.RequestMetadata metadata = 1; -
setMetadata
public ReceivePacketsRequest.SetupRequest.Builder setMetadata(RequestMetadata.Builder builderForValue) The configurations that specify where packets are retrieved.
.google.cloud.visionai.v1.RequestMetadata metadata = 1; -
mergeMetadata
The configurations that specify where packets are retrieved.
.google.cloud.visionai.v1.RequestMetadata metadata = 1; -
clearMetadata
The configurations that specify where packets are retrieved.
.google.cloud.visionai.v1.RequestMetadata metadata = 1; -
getMetadataBuilder
The configurations that specify where packets are retrieved.
.google.cloud.visionai.v1.RequestMetadata metadata = 1; -
getMetadataOrBuilder
The configurations that specify where packets are retrieved.
.google.cloud.visionai.v1.RequestMetadata metadata = 1;- Specified by:
getMetadataOrBuilderin interfaceReceivePacketsRequest.SetupRequestOrBuilder
-
getReceiver
A name for the receiver to self-identify. This is used to keep track of a receiver's read progress.
string receiver = 2;- Specified by:
getReceiverin interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- The receiver.
-
getReceiverBytes
public com.google.protobuf.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;- Specified by:
getReceiverBytesin interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- The bytes for receiver.
-
setReceiver
A name for the receiver to self-identify. This is used to keep track of a receiver's read progress.
string receiver = 2;- Parameters:
value- The receiver to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setReceiverBytes
public ReceivePacketsRequest.SetupRequest.Builder setReceiverBytes(com.google.protobuf.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;- Parameters:
value- The bytes for receiver to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasHeartbeatIntervalin interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- Whether the heartbeatInterval field is set.
-
getHeartbeatInterval
public com.google.protobuf.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;- Specified by:
getHeartbeatIntervalin interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- The heartbeatInterval.
-
setHeartbeatInterval
public ReceivePacketsRequest.SetupRequest.Builder setHeartbeatInterval(com.google.protobuf.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; -
setHeartbeatInterval
public ReceivePacketsRequest.SetupRequest.Builder setHeartbeatInterval(com.google.protobuf.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; -
mergeHeartbeatInterval
public ReceivePacketsRequest.SetupRequest.Builder mergeHeartbeatInterval(com.google.protobuf.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; -
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; -
getHeartbeatIntervalBuilder
public com.google.protobuf.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; -
getHeartbeatIntervalOrBuilder
public com.google.protobuf.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;- Specified by:
getHeartbeatIntervalOrBuilderin interfaceReceivePacketsRequest.SetupRequestOrBuilder
-
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;- Specified by:
hasWritesDoneGracePeriodin interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- Whether the writesDoneGracePeriod field is set.
-
getWritesDoneGracePeriod
public com.google.protobuf.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;- Specified by:
getWritesDoneGracePeriodin interfaceReceivePacketsRequest.SetupRequestOrBuilder- Returns:
- The writesDoneGracePeriod.
-
setWritesDoneGracePeriod
public ReceivePacketsRequest.SetupRequest.Builder setWritesDoneGracePeriod(com.google.protobuf.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; -
setWritesDoneGracePeriod
public ReceivePacketsRequest.SetupRequest.Builder setWritesDoneGracePeriod(com.google.protobuf.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; -
mergeWritesDoneGracePeriod
public ReceivePacketsRequest.SetupRequest.Builder mergeWritesDoneGracePeriod(com.google.protobuf.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; -
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; -
getWritesDoneGracePeriodBuilder
public com.google.protobuf.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; -
getWritesDoneGracePeriodOrBuilder
public com.google.protobuf.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;- Specified by:
getWritesDoneGracePeriodOrBuilderin interfaceReceivePacketsRequest.SetupRequestOrBuilder
-