Class ClientMessage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
org.yamcs.protobuf.ClientMessage.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ClientMessageOrBuilder
Enclosing class:
ClientMessage

public static final class ClientMessage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder> implements ClientMessageOrBuilder
Protobuf type yamcs.api.ClientMessage
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • clear

      public ClientMessage.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.GeneratedMessageV3.Builder<ClientMessage.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.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • getDefaultInstanceForType

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

      public ClientMessage build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ClientMessage buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public ClientMessage.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • setField

      public ClientMessage.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • clearField

      public ClientMessage.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • clearOneof

      public ClientMessage.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • setRepeatedField

      public ClientMessage.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • addRepeatedField

      public ClientMessage.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • mergeFrom

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

      public ClientMessage.Builder mergeFrom(ClientMessage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • mergeFrom

      public ClientMessage.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<ClientMessage.Builder>
      Throws:
      IOException
    • getType

      public String getType()
       Message type. Typically the name of a topic to subscribe to, or a built-in like "cancel".
       
      string type = 1;
      Specified by:
      getType in interface ClientMessageOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Message type. Typically the name of a topic to subscribe to, or a built-in like "cancel".
       
      string type = 1;
      Specified by:
      getTypeBytes in interface ClientMessageOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ClientMessage.Builder setType(String value)
       Message type. Typically the name of a topic to subscribe to, or a built-in like "cancel".
       
      string type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ClientMessage.Builder clearType()
       Message type. Typically the name of a topic to subscribe to, or a built-in like "cancel".
       
      string type = 1;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ClientMessage.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Message type. Typically the name of a topic to subscribe to, or a built-in like "cancel".
       
      string type = 1;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasOptions

      public boolean hasOptions()
       Options specific to the type
       
      .google.protobuf.Any options = 2;
      Specified by:
      hasOptions in interface ClientMessageOrBuilder
      Returns:
      Whether the options field is set.
    • getOptions

      public com.google.protobuf.Any getOptions()
       Options specific to the type
       
      .google.protobuf.Any options = 2;
      Specified by:
      getOptions in interface ClientMessageOrBuilder
      Returns:
      The options.
    • setOptions

      public ClientMessage.Builder setOptions(com.google.protobuf.Any value)
       Options specific to the type
       
      .google.protobuf.Any options = 2;
    • setOptions

      public ClientMessage.Builder setOptions(com.google.protobuf.Any.Builder builderForValue)
       Options specific to the type
       
      .google.protobuf.Any options = 2;
    • mergeOptions

      public ClientMessage.Builder mergeOptions(com.google.protobuf.Any value)
       Options specific to the type
       
      .google.protobuf.Any options = 2;
    • clearOptions

      public ClientMessage.Builder clearOptions()
       Options specific to the type
       
      .google.protobuf.Any options = 2;
    • getOptionsBuilder

      public com.google.protobuf.Any.Builder getOptionsBuilder()
       Options specific to the type
       
      .google.protobuf.Any options = 2;
    • getOptionsOrBuilder

      public com.google.protobuf.AnyOrBuilder getOptionsOrBuilder()
       Options specific to the type
       
      .google.protobuf.Any options = 2;
      Specified by:
      getOptionsOrBuilder in interface ClientMessageOrBuilder
    • getId

      public int getId()
       Optional client-side message identifier, returned in reply messages.
       
      int32 id = 3;
      Specified by:
      getId in interface ClientMessageOrBuilder
      Returns:
      The id.
    • setId

      public ClientMessage.Builder setId(int value)
       Optional client-side message identifier, returned in reply messages.
       
      int32 id = 3;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ClientMessage.Builder clearId()
       Optional client-side message identifier, returned in reply messages.
       
      int32 id = 3;
      Returns:
      This builder for chaining.
    • getCall

      public int getCall()
       If applicable, the call associated with this message
       This should be used when the client is streaming multiple messages
       handled by the same call.
       
      int32 call = 4;
      Specified by:
      getCall in interface ClientMessageOrBuilder
      Returns:
      The call.
    • setCall

      public ClientMessage.Builder setCall(int value)
       If applicable, the call associated with this message
       This should be used when the client is streaming multiple messages
       handled by the same call.
       
      int32 call = 4;
      Parameters:
      value - The call to set.
      Returns:
      This builder for chaining.
    • clearCall

      public ClientMessage.Builder clearCall()
       If applicable, the call associated with this message
       This should be used when the client is streaming multiple messages
       handled by the same call.
       
      int32 call = 4;
      Returns:
      This builder for chaining.
    • getMaxDroppedWrites

      @Deprecated public int getMaxDroppedWrites()
      Deprecated.
       If set, permit the server to keep a WebSocket connection despite frame writes
       getting dropped (channel not open or not writable). If unset the default is 0,
       meaning that if the server can't write a frame, it will close the connection
       (impacting all calls on that connection).
       This attribute is only applied when it is set on the first message of a call.
       Since Yamcs 5.7.6 this option is deprecated in favour of lowPriority below.
       
      int32 maxDroppedWrites = 5 [deprecated = true];
      Specified by:
      getMaxDroppedWrites in interface ClientMessageOrBuilder
      Returns:
      The maxDroppedWrites.
    • setMaxDroppedWrites

      @Deprecated public ClientMessage.Builder setMaxDroppedWrites(int value)
      Deprecated.
       If set, permit the server to keep a WebSocket connection despite frame writes
       getting dropped (channel not open or not writable). If unset the default is 0,
       meaning that if the server can't write a frame, it will close the connection
       (impacting all calls on that connection).
       This attribute is only applied when it is set on the first message of a call.
       Since Yamcs 5.7.6 this option is deprecated in favour of lowPriority below.
       
      int32 maxDroppedWrites = 5 [deprecated = true];
      Parameters:
      value - The maxDroppedWrites to set.
      Returns:
      This builder for chaining.
    • clearMaxDroppedWrites

      @Deprecated public ClientMessage.Builder clearMaxDroppedWrites()
      Deprecated.
       If set, permit the server to keep a WebSocket connection despite frame writes
       getting dropped (channel not open or not writable). If unset the default is 0,
       meaning that if the server can't write a frame, it will close the connection
       (impacting all calls on that connection).
       This attribute is only applied when it is set on the first message of a call.
       Since Yamcs 5.7.6 this option is deprecated in favour of lowPriority below.
       
      int32 maxDroppedWrites = 5 [deprecated = true];
      Returns:
      This builder for chaining.
    • getLowPriority

      public boolean getLowPriority()
      If set to true, permit the server to drop messages if writing the message would cause the
       channel to exceed the highWaterMark
       (see https://docs.yamcs.org/yamcs-server-manual/services/global/http-server/)
       This attribute is only applied when it is set on the first message of a call.
       Note that if a message exceeds the highWaterMark, with this option set it will always be dropped.
       A warning will be printed in the Yamcs logs in this case.
       
      bool lowPriority = 6;
      Specified by:
      getLowPriority in interface ClientMessageOrBuilder
      Returns:
      The lowPriority.
    • setLowPriority

      public ClientMessage.Builder setLowPriority(boolean value)
      If set to true, permit the server to drop messages if writing the message would cause the
       channel to exceed the highWaterMark
       (see https://docs.yamcs.org/yamcs-server-manual/services/global/http-server/)
       This attribute is only applied when it is set on the first message of a call.
       Note that if a message exceeds the highWaterMark, with this option set it will always be dropped.
       A warning will be printed in the Yamcs logs in this case.
       
      bool lowPriority = 6;
      Parameters:
      value - The lowPriority to set.
      Returns:
      This builder for chaining.
    • clearLowPriority

      public ClientMessage.Builder clearLowPriority()
      If set to true, permit the server to drop messages if writing the message would cause the
       channel to exceed the highWaterMark
       (see https://docs.yamcs.org/yamcs-server-manual/services/global/http-server/)
       This attribute is only applied when it is set on the first message of a call.
       Note that if a message exceeds the highWaterMark, with this option set it will always be dropped.
       A warning will be printed in the Yamcs logs in this case.
       
      bool lowPriority = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ClientMessage.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>
    • mergeUnknownFields

      public final ClientMessage.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClientMessage.Builder>