Class CreateEventRequest.Builder

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

public static final class CreateEventRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder> implements CreateEventRequestOrBuilder
Protobuf type yamcs.protobuf.events.CreateEventRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
    • internalGetMutableMapField

      protected com.google.protobuf.MapField internalGetMutableMapField(int number)
      Overrides:
      internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.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<CreateEventRequest.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<CreateEventRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

    • isInitialized

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

      public CreateEventRequest.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<CreateEventRequest.Builder>
      Throws:
      IOException
    • hasInstance

      public boolean hasInstance()
       Yamcs instance name.
       
      optional string instance = 1;
      Specified by:
      hasInstance in interface CreateEventRequestOrBuilder
      Returns:
      Whether the instance field is set.
    • getInstance

      public String getInstance()
       Yamcs instance name.
       
      optional string instance = 1;
      Specified by:
      getInstance in interface CreateEventRequestOrBuilder
      Returns:
      The instance.
    • getInstanceBytes

      public com.google.protobuf.ByteString getInstanceBytes()
       Yamcs instance name.
       
      optional string instance = 1;
      Specified by:
      getInstanceBytes in interface CreateEventRequestOrBuilder
      Returns:
      The bytes for instance.
    • setInstance

      public CreateEventRequest.Builder setInstance(String value)
       Yamcs instance name.
       
      optional string instance = 1;
      Parameters:
      value - The instance to set.
      Returns:
      This builder for chaining.
    • clearInstance

      public CreateEventRequest.Builder clearInstance()
       Yamcs instance name.
       
      optional string instance = 1;
      Returns:
      This builder for chaining.
    • setInstanceBytes

      public CreateEventRequest.Builder setInstanceBytes(com.google.protobuf.ByteString value)
       Yamcs instance name.
       
      optional string instance = 1;
      Parameters:
      value - The bytes for instance to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Description of the type of the event. Useful for quick classification or filtering.
       
      optional string type = 2;
      Specified by:
      hasType in interface CreateEventRequestOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Description of the type of the event. Useful for quick classification or filtering.
       
      optional string type = 2;
      Specified by:
      getType in interface CreateEventRequestOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Description of the type of the event. Useful for quick classification or filtering.
       
      optional string type = 2;
      Specified by:
      getTypeBytes in interface CreateEventRequestOrBuilder
      Returns:
      The bytes for type.
    • setType

      public CreateEventRequest.Builder setType(String value)
       Description of the type of the event. Useful for quick classification or filtering.
       
      optional string type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public CreateEventRequest.Builder clearType()
       Description of the type of the event. Useful for quick classification or filtering.
       
      optional string type = 2;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public CreateEventRequest.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Description of the type of the event. Useful for quick classification or filtering.
       
      optional string type = 2;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasMessage

      public boolean hasMessage()
       **Required.** Event message.
       
      optional string message = 3;
      Specified by:
      hasMessage in interface CreateEventRequestOrBuilder
      Returns:
      Whether the message field is set.
    • getMessage

      public String getMessage()
       **Required.** Event message.
       
      optional string message = 3;
      Specified by:
      getMessage in interface CreateEventRequestOrBuilder
      Returns:
      The message.
    • getMessageBytes

      public com.google.protobuf.ByteString getMessageBytes()
       **Required.** Event message.
       
      optional string message = 3;
      Specified by:
      getMessageBytes in interface CreateEventRequestOrBuilder
      Returns:
      The bytes for message.
    • setMessage

      public CreateEventRequest.Builder setMessage(String value)
       **Required.** Event message.
       
      optional string message = 3;
      Parameters:
      value - The message to set.
      Returns:
      This builder for chaining.
    • clearMessage

      public CreateEventRequest.Builder clearMessage()
       **Required.** Event message.
       
      optional string message = 3;
      Returns:
      This builder for chaining.
    • setMessageBytes

      public CreateEventRequest.Builder setMessageBytes(com.google.protobuf.ByteString value)
       **Required.** Event message.
       
      optional string message = 3;
      Parameters:
      value - The bytes for message to set.
      Returns:
      This builder for chaining.
    • hasSeverity

      public boolean hasSeverity()
       The severity level of the event. One of ``info``, ``watch``, ``warning``,
       ``distress``, ``critical`` or ``severe``. Default is ``info``
       
      optional string severity = 4;
      Specified by:
      hasSeverity in interface CreateEventRequestOrBuilder
      Returns:
      Whether the severity field is set.
    • getSeverity

      public String getSeverity()
       The severity level of the event. One of ``info``, ``watch``, ``warning``,
       ``distress``, ``critical`` or ``severe``. Default is ``info``
       
      optional string severity = 4;
      Specified by:
      getSeverity in interface CreateEventRequestOrBuilder
      Returns:
      The severity.
    • getSeverityBytes

      public com.google.protobuf.ByteString getSeverityBytes()
       The severity level of the event. One of ``info``, ``watch``, ``warning``,
       ``distress``, ``critical`` or ``severe``. Default is ``info``
       
      optional string severity = 4;
      Specified by:
      getSeverityBytes in interface CreateEventRequestOrBuilder
      Returns:
      The bytes for severity.
    • setSeverity

      public CreateEventRequest.Builder setSeverity(String value)
       The severity level of the event. One of ``info``, ``watch``, ``warning``,
       ``distress``, ``critical`` or ``severe``. Default is ``info``
       
      optional string severity = 4;
      Parameters:
      value - The severity to set.
      Returns:
      This builder for chaining.
    • clearSeverity

      public CreateEventRequest.Builder clearSeverity()
       The severity level of the event. One of ``info``, ``watch``, ``warning``,
       ``distress``, ``critical`` or ``severe``. Default is ``info``
       
      optional string severity = 4;
      Returns:
      This builder for chaining.
    • setSeverityBytes

      public CreateEventRequest.Builder setSeverityBytes(com.google.protobuf.ByteString value)
       The severity level of the event. One of ``info``, ``watch``, ``warning``,
       ``distress``, ``critical`` or ``severe``. Default is ``info``
       
      optional string severity = 4;
      Parameters:
      value - The bytes for severity to set.
      Returns:
      This builder for chaining.
    • hasTime

      public boolean hasTime()
       Time associated with the event.
       If unspecified, this will default to the current mission time.
       
      optional .google.protobuf.Timestamp time = 5;
      Specified by:
      hasTime in interface CreateEventRequestOrBuilder
      Returns:
      Whether the time field is set.
    • getTime

      public com.google.protobuf.Timestamp getTime()
       Time associated with the event.
       If unspecified, this will default to the current mission time.
       
      optional .google.protobuf.Timestamp time = 5;
      Specified by:
      getTime in interface CreateEventRequestOrBuilder
      Returns:
      The time.
    • setTime

      public CreateEventRequest.Builder setTime(com.google.protobuf.Timestamp value)
       Time associated with the event.
       If unspecified, this will default to the current mission time.
       
      optional .google.protobuf.Timestamp time = 5;
    • setTime

      public CreateEventRequest.Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time associated with the event.
       If unspecified, this will default to the current mission time.
       
      optional .google.protobuf.Timestamp time = 5;
    • mergeTime

      public CreateEventRequest.Builder mergeTime(com.google.protobuf.Timestamp value)
       Time associated with the event.
       If unspecified, this will default to the current mission time.
       
      optional .google.protobuf.Timestamp time = 5;
    • clearTime

      public CreateEventRequest.Builder clearTime()
       Time associated with the event.
       If unspecified, this will default to the current mission time.
       
      optional .google.protobuf.Timestamp time = 5;
    • getTimeBuilder

      public com.google.protobuf.Timestamp.Builder getTimeBuilder()
       Time associated with the event.
       If unspecified, this will default to the current mission time.
       
      optional .google.protobuf.Timestamp time = 5;
    • getTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
       Time associated with the event.
       If unspecified, this will default to the current mission time.
       
      optional .google.protobuf.Timestamp time = 5;
      Specified by:
      getTimeOrBuilder in interface CreateEventRequestOrBuilder
    • hasSource

      public boolean hasSource()
       Source of the event. Useful for grouping events in the archive. Default is
       ``User``.
       
      optional string source = 6;
      Specified by:
      hasSource in interface CreateEventRequestOrBuilder
      Returns:
      Whether the source field is set.
    • getSource

      public String getSource()
       Source of the event. Useful for grouping events in the archive. Default is
       ``User``.
       
      optional string source = 6;
      Specified by:
      getSource in interface CreateEventRequestOrBuilder
      Returns:
      The source.
    • getSourceBytes

      public com.google.protobuf.ByteString getSourceBytes()
       Source of the event. Useful for grouping events in the archive. Default is
       ``User``.
       
      optional string source = 6;
      Specified by:
      getSourceBytes in interface CreateEventRequestOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public CreateEventRequest.Builder setSource(String value)
       Source of the event. Useful for grouping events in the archive. Default is
       ``User``.
       
      optional string source = 6;
      Parameters:
      value - The source to set.
      Returns:
      This builder for chaining.
    • clearSource

      public CreateEventRequest.Builder clearSource()
       Source of the event. Useful for grouping events in the archive. Default is
       ``User``.
       
      optional string source = 6;
      Returns:
      This builder for chaining.
    • setSourceBytes

      public CreateEventRequest.Builder setSourceBytes(com.google.protobuf.ByteString value)
       Source of the event. Useful for grouping events in the archive. Default is
       ``User``.
       
      optional string source = 6;
      Parameters:
      value - The bytes for source to set.
      Returns:
      This builder for chaining.
    • hasSequenceNumber

      public boolean hasSequenceNumber()
       Sequence number of this event. This is primarily used to determine unicity of
       events coming from the same source. If not set Yamcs will automatically
       assign a sequential number as if every submitted event is unique.
       
      optional int32 sequenceNumber = 7;
      Specified by:
      hasSequenceNumber in interface CreateEventRequestOrBuilder
      Returns:
      Whether the sequenceNumber field is set.
    • getSequenceNumber

      public int getSequenceNumber()
       Sequence number of this event. This is primarily used to determine unicity of
       events coming from the same source. If not set Yamcs will automatically
       assign a sequential number as if every submitted event is unique.
       
      optional int32 sequenceNumber = 7;
      Specified by:
      getSequenceNumber in interface CreateEventRequestOrBuilder
      Returns:
      The sequenceNumber.
    • setSequenceNumber

      public CreateEventRequest.Builder setSequenceNumber(int value)
       Sequence number of this event. This is primarily used to determine unicity of
       events coming from the same source. If not set Yamcs will automatically
       assign a sequential number as if every submitted event is unique.
       
      optional int32 sequenceNumber = 7;
      Parameters:
      value - The sequenceNumber to set.
      Returns:
      This builder for chaining.
    • clearSequenceNumber

      public CreateEventRequest.Builder clearSequenceNumber()
       Sequence number of this event. This is primarily used to determine unicity of
       events coming from the same source. If not set Yamcs will automatically
       assign a sequential number as if every submitted event is unique.
       
      optional int32 sequenceNumber = 7;
      Returns:
      This builder for chaining.
    • getExtraCount

      public int getExtraCount()
      Description copied from interface: CreateEventRequestOrBuilder
       Additional properties
       
      map<string, string> extra = 8;
      Specified by:
      getExtraCount in interface CreateEventRequestOrBuilder
    • containsExtra

      public boolean containsExtra(String key)
       Additional properties
       
      map<string, string> extra = 8;
      Specified by:
      containsExtra in interface CreateEventRequestOrBuilder
    • getExtra

      @Deprecated public Map<String,String> getExtra()
      Deprecated.
      Use getExtraMap() instead.
      Specified by:
      getExtra in interface CreateEventRequestOrBuilder
    • getExtraMap

      public Map<String,String> getExtraMap()
       Additional properties
       
      map<string, string> extra = 8;
      Specified by:
      getExtraMap in interface CreateEventRequestOrBuilder
    • getExtraOrDefault

      public String getExtraOrDefault(String key, String defaultValue)
       Additional properties
       
      map<string, string> extra = 8;
      Specified by:
      getExtraOrDefault in interface CreateEventRequestOrBuilder
    • getExtraOrThrow

      public String getExtraOrThrow(String key)
       Additional properties
       
      map<string, string> extra = 8;
      Specified by:
      getExtraOrThrow in interface CreateEventRequestOrBuilder
    • clearExtra

      public CreateEventRequest.Builder clearExtra()
    • removeExtra

      public CreateEventRequest.Builder removeExtra(String key)
       Additional properties
       
      map<string, string> extra = 8;
    • getMutableExtra

      @Deprecated public Map<String,String> getMutableExtra()
      Deprecated.
      Use alternate mutation accessors instead.
    • putExtra

      public CreateEventRequest.Builder putExtra(String key, String value)
       Additional properties
       
      map<string, string> extra = 8;
    • putAllExtra

      public CreateEventRequest.Builder putAllExtra(Map<String,String> values)
       Additional properties
       
      map<string, string> extra = 8;
    • setUnknownFields

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

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