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 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<ReceivePacketsRequest.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<ReceivePacketsRequest.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<ReceivePacketsRequest.SetupRequest.Builder>
    • getDefaultInstanceForType

      public ReceivePacketsRequest.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 ReceivePacketsRequest.SetupRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ReceivePacketsRequest.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<ReceivePacketsRequest.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<ReceivePacketsRequest.SetupRequest.Builder>
    • mergeFrom

      public ReceivePacketsRequest.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<ReceivePacketsRequest.SetupRequest.Builder>
      Throws:
      IOException
    • getConsumerModeCase

      Specified by:
      getConsumerModeCase in interface ReceivePacketsRequest.SetupRequestOrBuilder
    • clearConsumerMode

      public ReceivePacketsRequest.SetupRequest.Builder clearConsumerMode()
    • hasEagerReceiveMode

      public boolean hasEagerReceiveMode()
       Options for configuring eager mode.
       
      .google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;
      Specified by:
      hasEagerReceiveMode in interface ReceivePacketsRequest.SetupRequestOrBuilder
      Returns:
      Whether the eagerReceiveMode field is set.
    • getEagerReceiveMode

      public EagerMode getEagerReceiveMode()
       Options for configuring eager mode.
       
      .google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;
      Specified by:
      getEagerReceiveMode in interface ReceivePacketsRequest.SetupRequestOrBuilder
      Returns:
      The eagerReceiveMode.
    • setEagerReceiveMode

      public ReceivePacketsRequest.SetupRequest.Builder setEagerReceiveMode(EagerMode value)
       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

      public ReceivePacketsRequest.SetupRequest.Builder mergeEagerReceiveMode(EagerMode value)
       Options for configuring eager mode.
       
      .google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;
    • clearEagerReceiveMode

      public ReceivePacketsRequest.SetupRequest.Builder clearEagerReceiveMode()
       Options for configuring eager mode.
       
      .google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;
    • getEagerReceiveModeBuilder

      public EagerMode.Builder getEagerReceiveModeBuilder()
       Options for configuring eager mode.
       
      .google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;
    • getEagerReceiveModeOrBuilder

      public EagerModeOrBuilder getEagerReceiveModeOrBuilder()
       Options for configuring eager mode.
       
      .google.cloud.visionai.v1.EagerMode eager_receive_mode = 3;
      Specified by:
      getEagerReceiveModeOrBuilder in interface ReceivePacketsRequest.SetupRequestOrBuilder
    • hasControlledReceiveMode

      public boolean hasControlledReceiveMode()
       Options for configuring controlled mode.
       
      .google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;
      Specified by:
      hasControlledReceiveMode in interface ReceivePacketsRequest.SetupRequestOrBuilder
      Returns:
      Whether the controlledReceiveMode field is set.
    • getControlledReceiveMode

      public ControlledMode getControlledReceiveMode()
       Options for configuring controlled mode.
       
      .google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;
      Specified by:
      getControlledReceiveMode in interface ReceivePacketsRequest.SetupRequestOrBuilder
      Returns:
      The controlledReceiveMode.
    • setControlledReceiveMode

      public ReceivePacketsRequest.SetupRequest.Builder setControlledReceiveMode(ControlledMode value)
       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

      public ReceivePacketsRequest.SetupRequest.Builder mergeControlledReceiveMode(ControlledMode value)
       Options for configuring controlled mode.
       
      .google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;
    • clearControlledReceiveMode

      public ReceivePacketsRequest.SetupRequest.Builder clearControlledReceiveMode()
       Options for configuring controlled mode.
       
      .google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;
    • getControlledReceiveModeBuilder

      public ControlledMode.Builder getControlledReceiveModeBuilder()
       Options for configuring controlled mode.
       
      .google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;
    • getControlledReceiveModeOrBuilder

      public ControlledModeOrBuilder getControlledReceiveModeOrBuilder()
       Options for configuring controlled mode.
       
      .google.cloud.visionai.v1.ControlledMode controlled_receive_mode = 4;
      Specified by:
      getControlledReceiveModeOrBuilder in interface ReceivePacketsRequest.SetupRequestOrBuilder
    • hasMetadata

      public boolean hasMetadata()
       The configurations that specify where packets are retrieved.
       
      .google.cloud.visionai.v1.RequestMetadata metadata = 1;
      Specified by:
      hasMetadata in interface ReceivePacketsRequest.SetupRequestOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public RequestMetadata getMetadata()
       The configurations that specify where packets are retrieved.
       
      .google.cloud.visionai.v1.RequestMetadata metadata = 1;
      Specified by:
      getMetadata in interface ReceivePacketsRequest.SetupRequestOrBuilder
      Returns:
      The metadata.
    • setMetadata

       The configurations that specify where packets are retrieved.
       
      .google.cloud.visionai.v1.RequestMetadata metadata = 1;
    • setMetadata

       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

      public RequestMetadata.Builder getMetadataBuilder()
       The configurations that specify where packets are retrieved.
       
      .google.cloud.visionai.v1.RequestMetadata metadata = 1;
    • getMetadataOrBuilder

      public RequestMetadataOrBuilder getMetadataOrBuilder()
       The configurations that specify where packets are retrieved.
       
      .google.cloud.visionai.v1.RequestMetadata metadata = 1;
      Specified by:
      getMetadataOrBuilder in interface ReceivePacketsRequest.SetupRequestOrBuilder
    • 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;
      Specified by:
      getReceiver in interface ReceivePacketsRequest.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:
      getReceiverBytes in interface ReceivePacketsRequest.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:
      hasHeartbeatInterval in interface ReceivePacketsRequest.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:
      getHeartbeatInterval in interface ReceivePacketsRequest.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

      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;
    • 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:
      getHeartbeatIntervalOrBuilder in interface ReceivePacketsRequest.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 ReceivePacketsRequest.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 ReceivePacketsRequest.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

      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;
    • 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 ReceivePacketsRequest.SetupRequestOrBuilder