Package org.yamcs.protobuf.activities
Class ActivityLogInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ActivityLogInfo.Builder>
org.yamcs.protobuf.activities.ActivityLogInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ActivityLogInfoOrBuilder
- Enclosing class:
- ActivityLogInfo
public static final class ActivityLogInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ActivityLogInfo.Builder>
implements ActivityLogInfoOrBuilder
Protobuf type
yamcs.protobuf.activities.ActivityLogInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Log levelLog messageclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Source of this log message.Log timeclone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getLevel()
Log levelLog messagecom.google.protobuf.ByteString
Log messageSource of this log message.com.google.protobuf.ByteString
Source of this log message.com.google.protobuf.Timestamp
getTime()
Log timecom.google.protobuf.Timestamp.Builder
Log timecom.google.protobuf.TimestampOrBuilder
Log timeboolean
hasLevel()
Log levelboolean
Log messageboolean
Source of this log message.boolean
hasTime()
Log timeprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ActivityLogInfo other) mergeTime
(com.google.protobuf.Timestamp value) Log timefinal ActivityLogInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setLevel
(ActivityLogLevel value) Log levelsetMessage
(String value) Log messagesetMessageBytes
(com.google.protobuf.ByteString value) Log messagesetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Source of this log message.setSourceBytes
(com.google.protobuf.ByteString value) Source of this log message.setTime
(com.google.protobuf.Timestamp value) Log timesetTime
(com.google.protobuf.Timestamp.Builder builderForValue) Log timefinal ActivityLogInfo.Builder
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, internalGetMapField, internalGetMutableMapField, 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() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityLogInfo.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<ActivityLogInfo.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<ActivityLogInfo.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<ActivityLogInfo.Builder>
-
setField
public ActivityLogInfo.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<ActivityLogInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityLogInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityLogInfo.Builder>
-
setRepeatedField
public ActivityLogInfo.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<ActivityLogInfo.Builder>
-
addRepeatedField
public ActivityLogInfo.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<ActivityLogInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ActivityLogInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityLogInfo.Builder>
-
mergeFrom
public ActivityLogInfo.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<ActivityLogInfo.Builder>
- Throws:
IOException
-
hasTime
public boolean hasTime()Log time
optional .google.protobuf.Timestamp time = 1;
- Specified by:
hasTime
in interfaceActivityLogInfoOrBuilder
- Returns:
- Whether the time field is set.
-
getTime
public com.google.protobuf.Timestamp getTime()Log time
optional .google.protobuf.Timestamp time = 1;
- Specified by:
getTime
in interfaceActivityLogInfoOrBuilder
- Returns:
- The time.
-
setTime
Log time
optional .google.protobuf.Timestamp time = 1;
-
setTime
Log time
optional .google.protobuf.Timestamp time = 1;
-
mergeTime
Log time
optional .google.protobuf.Timestamp time = 1;
-
clearTime
Log time
optional .google.protobuf.Timestamp time = 1;
-
getTimeBuilder
public com.google.protobuf.Timestamp.Builder getTimeBuilder()Log time
optional .google.protobuf.Timestamp time = 1;
-
getTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()Log time
optional .google.protobuf.Timestamp time = 1;
- Specified by:
getTimeOrBuilder
in interfaceActivityLogInfoOrBuilder
-
hasSource
public boolean hasSource()Source of this log message. One of: - SERVICE: the log is generated by the activity service - ACTIVITY: the log is generated by the activity itself
optional string source = 2;
- Specified by:
hasSource
in interfaceActivityLogInfoOrBuilder
- Returns:
- Whether the source field is set.
-
getSource
Source of this log message. One of: - SERVICE: the log is generated by the activity service - ACTIVITY: the log is generated by the activity itself
optional string source = 2;
- Specified by:
getSource
in interfaceActivityLogInfoOrBuilder
- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()Source of this log message. One of: - SERVICE: the log is generated by the activity service - ACTIVITY: the log is generated by the activity itself
optional string source = 2;
- Specified by:
getSourceBytes
in interfaceActivityLogInfoOrBuilder
- Returns:
- The bytes for source.
-
setSource
Source of this log message. One of: - SERVICE: the log is generated by the activity service - ACTIVITY: the log is generated by the activity itself
optional string source = 2;
- Parameters:
value
- The source to set.- Returns:
- This builder for chaining.
-
clearSource
Source of this log message. One of: - SERVICE: the log is generated by the activity service - ACTIVITY: the log is generated by the activity itself
optional string source = 2;
- Returns:
- This builder for chaining.
-
setSourceBytes
Source of this log message. One of: - SERVICE: the log is generated by the activity service - ACTIVITY: the log is generated by the activity itself
optional string source = 2;
- Parameters:
value
- The bytes for source to set.- Returns:
- This builder for chaining.
-
hasLevel
public boolean hasLevel()Log level
optional .yamcs.protobuf.activities.ActivityLogLevel level = 3;
- Specified by:
hasLevel
in interfaceActivityLogInfoOrBuilder
- Returns:
- Whether the level field is set.
-
getLevel
Log level
optional .yamcs.protobuf.activities.ActivityLogLevel level = 3;
- Specified by:
getLevel
in interfaceActivityLogInfoOrBuilder
- Returns:
- The level.
-
setLevel
Log level
optional .yamcs.protobuf.activities.ActivityLogLevel level = 3;
- Parameters:
value
- The level to set.- Returns:
- This builder for chaining.
-
clearLevel
Log level
optional .yamcs.protobuf.activities.ActivityLogLevel level = 3;
- Returns:
- This builder for chaining.
-
hasMessage
public boolean hasMessage()Log message
optional string message = 4;
- Specified by:
hasMessage
in interfaceActivityLogInfoOrBuilder
- Returns:
- Whether the message field is set.
-
getMessage
Log message
optional string message = 4;
- Specified by:
getMessage
in interfaceActivityLogInfoOrBuilder
- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()Log message
optional string message = 4;
- Specified by:
getMessageBytes
in interfaceActivityLogInfoOrBuilder
- Returns:
- The bytes for message.
-
setMessage
Log message
optional string message = 4;
- Parameters:
value
- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
Log message
optional string message = 4;
- Returns:
- This builder for chaining.
-
setMessageBytes
Log message
optional string message = 4;
- Parameters:
value
- The bytes for message to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ActivityLogInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityLogInfo.Builder>
-
mergeUnknownFields
public final ActivityLogInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityLogInfo.Builder>
-