Class ReceivePacketsRequest.SetupRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest
All Implemented Interfaces:
ReceivePacketsRequest.SetupRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
ReceivePacketsRequest

public static final class ReceivePacketsRequest.SetupRequest extends com.google.protobuf.GeneratedMessage implements ReceivePacketsRequest.SetupRequestOrBuilder
 The message specifying the initial settings for the ReceivePackets session.
 
Protobuf type google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest
See Also:
  • Field Details

    • EAGER_RECEIVE_MODE_FIELD_NUMBER

      public static final int EAGER_RECEIVE_MODE_FIELD_NUMBER
      See Also:
    • CONTROLLED_RECEIVE_MODE_FIELD_NUMBER

      public static final int CONTROLLED_RECEIVE_MODE_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
    • RECEIVER_FIELD_NUMBER

      public static final int RECEIVER_FIELD_NUMBER
      See Also:
    • HEARTBEAT_INTERVAL_FIELD_NUMBER

      public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER
      See Also:
    • WRITES_DONE_GRACE_PERIOD_FIELD_NUMBER

      public static final int WRITES_DONE_GRACE_PERIOD_FIELD_NUMBER
      See Also:
  • 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
    • getConsumerModeCase

      Specified by:
      getConsumerModeCase in interface ReceivePacketsRequest.SetupRequestOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ReceivePacketsRequest.SetupRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ReceivePacketsRequest.SetupRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ReceivePacketsRequest.SetupRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ReceivePacketsRequest.SetupRequest.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ReceivePacketsRequest.SetupRequest.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ReceivePacketsRequest.SetupRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ReceivePacketsRequest.SetupRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ReceivePacketsRequest.SetupRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<ReceivePacketsRequest.SetupRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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