Package org.yamcs.protobuf
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Yamcs instance name**Required.** Event message.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Sequence number of this event.The severity level of the event.Source of the event.Time associated with the event.Description of the type of the event.clone()
boolean
containsExtra
(String key) Additional propertiesstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getExtra()
Deprecated.int
Additional propertiesAdditional propertiesgetExtraOrDefault
(String key, String defaultValue) Additional propertiesgetExtraOrThrow
(String key) Additional propertiesYamcs instance namecom.google.protobuf.ByteString
Yamcs instance name**Required.** Event message.com.google.protobuf.ByteString
**Required.** Event message.Deprecated.int
Sequence number of this event.The severity level of the event.com.google.protobuf.ByteString
The severity level of the event.Source of the event.com.google.protobuf.ByteString
Source of the event.com.google.protobuf.Timestamp
getTime()
Time associated with the event.com.google.protobuf.Timestamp.Builder
Time associated with the event.com.google.protobuf.TimestampOrBuilder
Time associated with the event.getType()
Description of the type of the event.com.google.protobuf.ByteString
Description of the type of the event.boolean
Yamcs instance nameboolean
**Required.** Event message.boolean
Sequence number of this event.boolean
The severity level of the event.boolean
Source of the event.boolean
hasTime()
Time associated with the event.boolean
hasType()
Description of the type of the event.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(CreateEventRequest other) mergeTime
(com.google.protobuf.Timestamp value) Time associated with the event.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllExtra
(Map<String, String> values) Additional propertiesAdditional propertiesremoveExtra
(String key) Additional propertiessetInstance
(String value) Yamcs instance namesetInstanceBytes
(com.google.protobuf.ByteString value) Yamcs instance namesetMessage
(String value) **Required.** Event message.setMessageBytes
(com.google.protobuf.ByteString value) **Required.** Event message.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSequenceNumber
(int value) Sequence number of this event.setSeverity
(String value) The severity level of the event.setSeverityBytes
(com.google.protobuf.ByteString value) The severity level of the event.Source of the event.setSourceBytes
(com.google.protobuf.ByteString value) Source of the event.setTime
(com.google.protobuf.Timestamp value) Time associated with the event.setTime
(com.google.protobuf.Timestamp.Builder builderForValue) Time associated with the event.Description of the type of the event.setTypeBytes
(com.google.protobuf.ByteString value) Description of the type of the event.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
setField
public CreateEventRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
addRepeatedField
public CreateEventRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateEventRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateEventRequest.Builder>
- Throws:
IOException
-
hasInstance
public boolean hasInstance()Yamcs instance name
optional string instance = 1;
- Specified by:
hasInstance
in interfaceCreateEventRequestOrBuilder
- Returns:
- Whether the instance field is set.
-
getInstance
Yamcs instance name
optional string instance = 1;
- Specified by:
getInstance
in interfaceCreateEventRequestOrBuilder
- Returns:
- The instance.
-
getInstanceBytes
public com.google.protobuf.ByteString getInstanceBytes()Yamcs instance name
optional string instance = 1;
- Specified by:
getInstanceBytes
in interfaceCreateEventRequestOrBuilder
- Returns:
- The bytes for instance.
-
setInstance
Yamcs instance name
optional string instance = 1;
- Parameters:
value
- The instance to set.- Returns:
- This builder for chaining.
-
clearInstance
Yamcs instance name
optional string instance = 1;
- Returns:
- This builder for chaining.
-
setInstanceBytes
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 interfaceCreateEventRequestOrBuilder
- Returns:
- Whether the type field is set.
-
getType
Description of the type of the event. Useful for quick classification or filtering.
optional string type = 2;
- Specified by:
getType
in interfaceCreateEventRequestOrBuilder
- 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 interfaceCreateEventRequestOrBuilder
- Returns:
- The bytes for type.
-
setType
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
Description of the type of the event. Useful for quick classification or filtering.
optional string type = 2;
- Returns:
- This builder for chaining.
-
setTypeBytes
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 interfaceCreateEventRequestOrBuilder
- Returns:
- Whether the message field is set.
-
getMessage
**Required.** Event message.
optional string message = 3;
- Specified by:
getMessage
in interfaceCreateEventRequestOrBuilder
- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()**Required.** Event message.
optional string message = 3;
- Specified by:
getMessageBytes
in interfaceCreateEventRequestOrBuilder
- Returns:
- The bytes for message.
-
setMessage
**Required.** Event message.
optional string message = 3;
- Parameters:
value
- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
**Required.** Event message.
optional string message = 3;
- Returns:
- This builder for chaining.
-
setMessageBytes
**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 interfaceCreateEventRequestOrBuilder
- Returns:
- Whether the severity field is set.
-
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 interfaceCreateEventRequestOrBuilder
- 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 interfaceCreateEventRequestOrBuilder
- Returns:
- The bytes for severity.
-
setSeverity
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
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
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 interfaceCreateEventRequestOrBuilder
- 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 interfaceCreateEventRequestOrBuilder
- Returns:
- The time.
-
setTime
Time associated with the event. If unspecified, this will default to the current mission time.
optional .google.protobuf.Timestamp time = 5;
-
setTime
Time associated with the event. If unspecified, this will default to the current mission time.
optional .google.protobuf.Timestamp time = 5;
-
mergeTime
Time associated with the event. If unspecified, this will default to the current mission time.
optional .google.protobuf.Timestamp time = 5;
-
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 interfaceCreateEventRequestOrBuilder
-
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 interfaceCreateEventRequestOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
Source of the event. Useful for grouping events in the archive. Default is ``User``.
optional string source = 6;
- Specified by:
getSource
in interfaceCreateEventRequestOrBuilder
- 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 interfaceCreateEventRequestOrBuilder
- Returns:
- The bytes for source.
-
setSource
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
Source of the event. Useful for grouping events in the archive. Default is ``User``.
optional string source = 6;
- Returns:
- This builder for chaining.
-
setSourceBytes
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 interfaceCreateEventRequestOrBuilder
- 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 interfaceCreateEventRequestOrBuilder
- Returns:
- The sequenceNumber.
-
setSequenceNumber
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
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 interfaceCreateEventRequestOrBuilder
-
containsExtra
Additional properties
map<string, string> extra = 8;
- Specified by:
containsExtra
in interfaceCreateEventRequestOrBuilder
-
getExtra
Deprecated.UsegetExtraMap()
instead.- Specified by:
getExtra
in interfaceCreateEventRequestOrBuilder
-
getExtraMap
Additional properties
map<string, string> extra = 8;
- Specified by:
getExtraMap
in interfaceCreateEventRequestOrBuilder
-
getExtraOrDefault
Additional properties
map<string, string> extra = 8;
- Specified by:
getExtraOrDefault
in interfaceCreateEventRequestOrBuilder
-
getExtraOrThrow
Additional properties
map<string, string> extra = 8;
- Specified by:
getExtraOrThrow
in interfaceCreateEventRequestOrBuilder
-
clearExtra
-
removeExtra
Additional properties
map<string, string> extra = 8;
-
getMutableExtra
Deprecated.Use alternate mutation accessors instead. -
putExtra
Additional properties
map<string, string> extra = 8;
-
putAllExtra
Additional properties
map<string, string> extra = 8;
-
setUnknownFields
public final CreateEventRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-
mergeUnknownFields
public final CreateEventRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateEventRequest.Builder>
-