Package com.google.cloud.visionai.v1
Class ReceiveEventsRequest.SetupRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReceiveEventsRequest.SetupRequest.Builder>
com.google.cloud.visionai.v1.ReceiveEventsRequest.SetupRequest.Builder
- All Implemented Interfaces:
ReceiveEventsRequest.SetupRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReceiveEventsRequest.SetupRequest
public static final class ReceiveEventsRequest.SetupRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ReceiveEventsRequest.SetupRequest.Builder>
implements ReceiveEventsRequest.SetupRequestOrBuilder
SetupRequest is the first message sent to the service to setup the RPC connection.Protobuf type
google.cloud.visionai.v1.ReceiveEventsRequest.SetupRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The cluster name.Controller mode configuration for receiving events from the server.The maximum duration of server silence before the client determines the server unreachable.A name for the receiver to self-identify.The stream name.The grace period after which a `writes_done_request` is issued, that a `WritesDone` is expected from the client.The cluster name.com.google.protobuf.ByteStringThe cluster name.Controller mode configuration for receiving events from the server.Controller mode configuration for receiving events from the server.Controller mode configuration for receiving events from the server.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.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.A name for the receiver to self-identify.com.google.protobuf.ByteStringA name for the receiver to self-identify.The stream name.com.google.protobuf.ByteStringThe stream name.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.booleanController mode configuration for receiving events from the server.booleanThe maximum duration of server silence before the client determines the server unreachable.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 booleanController mode configuration for receiving events from the server.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.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.setCluster(String value) The cluster name.setClusterBytes(com.google.protobuf.ByteString value) The cluster name.setControlledMode(ControlledMode value) Controller mode configuration for receiving events from the server.setControlledMode(ControlledMode.Builder builderForValue) Controller mode configuration for receiving events from the server.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.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.The stream name.setStreamBytes(com.google.protobuf.ByteString value) The stream name.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<ReceiveEventsRequest.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<ReceiveEventsRequest.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<ReceiveEventsRequest.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<ReceiveEventsRequest.SetupRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReceiveEventsRequest.SetupRequest.Builder>
-
mergeFrom
public ReceiveEventsRequest.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<ReceiveEventsRequest.SetupRequest.Builder>- Throws:
IOException
-
getCluster
The cluster name.
string cluster = 1;- Specified by:
getClusterin interfaceReceiveEventsRequest.SetupRequestOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()The cluster name.
string cluster = 1;- Specified by:
getClusterBytesin interfaceReceiveEventsRequest.SetupRequestOrBuilder- Returns:
- The bytes for cluster.
-
setCluster
The cluster name.
string cluster = 1;- Parameters:
value- The cluster to set.- Returns:
- This builder for chaining.
-
clearCluster
The cluster name.
string cluster = 1;- Returns:
- This builder for chaining.
-
setClusterBytes
public ReceiveEventsRequest.SetupRequest.Builder setClusterBytes(com.google.protobuf.ByteString value) The cluster name.
string cluster = 1;- Parameters:
value- The bytes for cluster to set.- Returns:
- This builder for chaining.
-
getStream
The stream name. The service will return the events for the given stream.
string stream = 2;- Specified by:
getStreamin interfaceReceiveEventsRequest.SetupRequestOrBuilder- Returns:
- The stream.
-
getStreamBytes
public com.google.protobuf.ByteString getStreamBytes()The stream name. The service will return the events for the given stream.
string stream = 2;- Specified by:
getStreamBytesin interfaceReceiveEventsRequest.SetupRequestOrBuilder- Returns:
- The bytes for stream.
-
setStream
The stream name. The service will return the events for the given stream.
string stream = 2;- Parameters:
value- The stream to set.- Returns:
- This builder for chaining.
-
clearStream
The stream name. The service will return the events for the given stream.
string stream = 2;- Returns:
- This builder for chaining.
-
setStreamBytes
public ReceiveEventsRequest.SetupRequest.Builder setStreamBytes(com.google.protobuf.ByteString value) The stream name. The service will return the events for the given stream.
string stream = 2;- Parameters:
value- The bytes for stream to set.- Returns:
- This builder for chaining.
-
getReceiver
A name for the receiver to self-identify. This is used to keep track of a receiver's read progress.
string receiver = 3;- Specified by:
getReceiverin interfaceReceiveEventsRequest.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 = 3;- Specified by:
getReceiverBytesin interfaceReceiveEventsRequest.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 = 3;- 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 = 3;- Returns:
- This builder for chaining.
-
setReceiverBytes
public ReceiveEventsRequest.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 = 3;- Parameters:
value- The bytes for receiver to set.- Returns:
- This builder for chaining.
-
hasControlledMode
public boolean hasControlledMode()Controller mode configuration for receiving events from the server.
.google.cloud.visionai.v1.ControlledMode controlled_mode = 4;- Specified by:
hasControlledModein interfaceReceiveEventsRequest.SetupRequestOrBuilder- Returns:
- Whether the controlledMode field is set.
-
getControlledMode
Controller mode configuration for receiving events from the server.
.google.cloud.visionai.v1.ControlledMode controlled_mode = 4;- Specified by:
getControlledModein interfaceReceiveEventsRequest.SetupRequestOrBuilder- Returns:
- The controlledMode.
-
setControlledMode
Controller mode configuration for receiving events from the server.
.google.cloud.visionai.v1.ControlledMode controlled_mode = 4; -
setControlledMode
public ReceiveEventsRequest.SetupRequest.Builder setControlledMode(ControlledMode.Builder builderForValue) Controller mode configuration for receiving events from the server.
.google.cloud.visionai.v1.ControlledMode controlled_mode = 4; -
mergeControlledMode
Controller mode configuration for receiving events from the server.
.google.cloud.visionai.v1.ControlledMode controlled_mode = 4; -
clearControlledMode
Controller mode configuration for receiving events from the server.
.google.cloud.visionai.v1.ControlledMode controlled_mode = 4; -
getControlledModeBuilder
Controller mode configuration for receiving events from the server.
.google.cloud.visionai.v1.ControlledMode controlled_mode = 4; -
getControlledModeOrBuilder
Controller mode configuration for receiving events from the server.
.google.cloud.visionai.v1.ControlledMode controlled_mode = 4;- Specified by:
getControlledModeOrBuilderin interfaceReceiveEventsRequest.SetupRequestOrBuilder
-
hasHeartbeatInterval
public boolean hasHeartbeatInterval()The maximum duration of server silence before the client determines the server unreachable. The client must either receive an `Event` update 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 interfaceReceiveEventsRequest.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 an `Event` update 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 interfaceReceiveEventsRequest.SetupRequestOrBuilder- Returns:
- The heartbeatInterval.
-
setHeartbeatInterval
public ReceiveEventsRequest.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 an `Event` update 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 ReceiveEventsRequest.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 an `Event` update 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 ReceiveEventsRequest.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 an `Event` update 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 an `Event` update 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 an `Event` update 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 an `Event` update 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 interfaceReceiveEventsRequest.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 interfaceReceiveEventsRequest.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 interfaceReceiveEventsRequest.SetupRequestOrBuilder- Returns:
- The writesDoneGracePeriod.
-
setWritesDoneGracePeriod
public ReceiveEventsRequest.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 ReceiveEventsRequest.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 ReceiveEventsRequest.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 interfaceReceiveEventsRequest.SetupRequestOrBuilder
-