Class ReceiveEventsRequest.SetupRequest

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

public static final class ReceiveEventsRequest.SetupRequest extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • CLUSTER_FIELD_NUMBER

      public static final int CLUSTER_FIELD_NUMBER
      See Also:
    • STREAM_FIELD_NUMBER

      public static final int STREAM_FIELD_NUMBER
      See Also:
    • RECEIVER_FIELD_NUMBER

      public static final int RECEIVER_FIELD_NUMBER
      See Also:
    • CONTROLLED_MODE_FIELD_NUMBER

      public static final int CONTROLLED_MODE_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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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 ReceiveEventsRequest.SetupRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static ReceiveEventsRequest.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 ReceiveEventsRequest.SetupRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static ReceiveEventsRequest.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 ReceiveEventsRequest.SetupRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ReceiveEventsRequest.SetupRequest getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ReceiveEventsRequest.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 ReceiveEventsRequest.SetupRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder