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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ReceiveEventsRequest.SetupRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ReceiveEventsRequest.SetupRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ReceiveEventsRequest.SetupRequest.Builder>
    • getDefaultInstanceForType

      public ReceiveEventsRequest.SetupRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ReceiveEventsRequest.SetupRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ReceiveEventsRequest.SetupRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReceiveEventsRequest.SetupRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReceiveEventsRequest.SetupRequest.Builder>
      Throws:
      IOException
    • getCluster

      public String getCluster()
       The cluster name.
       
      string cluster = 1;
      Specified by:
      getCluster in interface ReceiveEventsRequest.SetupRequestOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       The cluster name.
       
      string cluster = 1;
      Specified by:
      getClusterBytes in interface ReceiveEventsRequest.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

      public String getStream()
       The stream name. The service will return the events for the given stream.
       
      string stream = 2;
      Specified by:
      getStream in interface ReceiveEventsRequest.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:
      getStreamBytes in interface ReceiveEventsRequest.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

      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 = 3;
      Specified by:
      getReceiver in interface ReceiveEventsRequest.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:
      getReceiverBytes in interface ReceiveEventsRequest.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:
      hasControlledMode in interface ReceiveEventsRequest.SetupRequestOrBuilder
      Returns:
      Whether the controlledMode field is set.
    • getControlledMode

      public ControlledMode getControlledMode()
       Controller mode configuration for receiving events from the server.
       
      .google.cloud.visionai.v1.ControlledMode controlled_mode = 4;
      Specified by:
      getControlledMode in interface ReceiveEventsRequest.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

      public ReceiveEventsRequest.SetupRequest.Builder mergeControlledMode(ControlledMode value)
       Controller mode configuration for receiving events from the server.
       
      .google.cloud.visionai.v1.ControlledMode controlled_mode = 4;
    • clearControlledMode

      public ReceiveEventsRequest.SetupRequest.Builder clearControlledMode()
       Controller mode configuration for receiving events from the server.
       
      .google.cloud.visionai.v1.ControlledMode controlled_mode = 4;
    • getControlledModeBuilder

      public ControlledMode.Builder getControlledModeBuilder()
       Controller mode configuration for receiving events from the server.
       
      .google.cloud.visionai.v1.ControlledMode controlled_mode = 4;
    • getControlledModeOrBuilder

      public ControlledModeOrBuilder getControlledModeOrBuilder()
       Controller mode configuration for receiving events from the server.
       
      .google.cloud.visionai.v1.ControlledMode controlled_mode = 4;
      Specified by:
      getControlledModeOrBuilder in interface ReceiveEventsRequest.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:
      hasHeartbeatInterval in interface ReceiveEventsRequest.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:
      getHeartbeatInterval in interface ReceiveEventsRequest.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

      public ReceiveEventsRequest.SetupRequest.Builder 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:
      getHeartbeatIntervalOrBuilder in interface ReceiveEventsRequest.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:
      hasWritesDoneGracePeriod in interface ReceiveEventsRequest.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:
      getWritesDoneGracePeriod in interface ReceiveEventsRequest.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

      public ReceiveEventsRequest.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;
    • 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:
      getWritesDoneGracePeriodOrBuilder in interface ReceiveEventsRequest.SetupRequestOrBuilder