Class ServerMessage.Builder

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

public static final class ServerMessage.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ServerMessage.Builder> implements ServerMessageOrBuilder
Protobuf type yamcs.api.ServerMessage
  • 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<ServerMessage.Builder>
    • clear

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

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

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

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

      public ServerMessage.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<ServerMessage.Builder>
    • setField

      public ServerMessage.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<ServerMessage.Builder>
    • clearField

      public ServerMessage.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<ServerMessage.Builder>
    • clearOneof

      public ServerMessage.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<ServerMessage.Builder>
    • setRepeatedField

      public ServerMessage.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<ServerMessage.Builder>
    • addRepeatedField

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

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

      public ServerMessage.Builder mergeFrom(ServerMessage other)
    • isInitialized

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

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

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

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

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

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

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

      public int getCall()
       If applicable, the call associated with this message
       
      int32 call = 2;
      Specified by:
      getCall in interface ServerMessageOrBuilder
      Returns:
      The call.
    • setCall

      public ServerMessage.Builder setCall(int value)
       If applicable, the call associated with this message
       
      int32 call = 2;
      Parameters:
      value - The call to set.
      Returns:
      This builder for chaining.
    • clearCall

      public ServerMessage.Builder clearCall()
       If applicable, the call associated with this message
       
      int32 call = 2;
      Returns:
      This builder for chaining.
    • getSeq

      public int getSeq()
       Sequence counter (scoped to the call)
       
      int32 seq = 3;
      Specified by:
      getSeq in interface ServerMessageOrBuilder
      Returns:
      The seq.
    • setSeq

      public ServerMessage.Builder setSeq(int value)
       Sequence counter (scoped to the call)
       
      int32 seq = 3;
      Parameters:
      value - The seq to set.
      Returns:
      This builder for chaining.
    • clearSeq

      public ServerMessage.Builder clearSeq()
       Sequence counter (scoped to the call)
       
      int32 seq = 3;
      Returns:
      This builder for chaining.
    • hasData

      public boolean hasData()
      .google.protobuf.Any data = 4;
      Specified by:
      hasData in interface ServerMessageOrBuilder
      Returns:
      Whether the data field is set.
    • getData

      public com.google.protobuf.Any getData()
      .google.protobuf.Any data = 4;
      Specified by:
      getData in interface ServerMessageOrBuilder
      Returns:
      The data.
    • setData

      public ServerMessage.Builder setData(com.google.protobuf.Any value)
      .google.protobuf.Any data = 4;
    • setData

      public ServerMessage.Builder setData(com.google.protobuf.Any.Builder builderForValue)
      .google.protobuf.Any data = 4;
    • mergeData

      public ServerMessage.Builder mergeData(com.google.protobuf.Any value)
      .google.protobuf.Any data = 4;
    • clearData

      public ServerMessage.Builder clearData()
      .google.protobuf.Any data = 4;
    • getDataBuilder

      public com.google.protobuf.Any.Builder getDataBuilder()
      .google.protobuf.Any data = 4;
    • getDataOrBuilder

      public com.google.protobuf.AnyOrBuilder getDataOrBuilder()
      .google.protobuf.Any data = 4;
      Specified by:
      getDataOrBuilder in interface ServerMessageOrBuilder
    • setUnknownFields

      public final ServerMessage.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<ServerMessage.Builder>
    • mergeUnknownFields

      public final ServerMessage.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<ServerMessage.Builder>