Package org.yamcs.protobuf.activities
Class ActivityInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ActivityInfo.Builder>
org.yamcs.protobuf.activities.ActivityInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ActivityInfoOrBuilder
- Enclosing class:
- ActivityInfo
public static final class ActivityInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ActivityInfo.Builder>
implements ActivityInfoOrBuilder
Protobuf type
yamcs.protobuf.activities.ActivityInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Activity argumentsActivity detail (short descriptive)If set, the activity is stopped, but failedclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()
Activity identifierclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearSeq()
Differentiator in case of multiple activities with the same start timeStart time of the activityUser who started the runActivity statusStop time of the activity runUser who stopped the run.Activity typeclone()
com.google.protobuf.Struct
getArgs()
Activity argumentscom.google.protobuf.Struct.Builder
Activity argumentscom.google.protobuf.StructOrBuilder
Activity argumentsstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Activity detail (short descriptive)com.google.protobuf.ByteString
Activity detail (short descriptive)If set, the activity is stopped, but failedcom.google.protobuf.ByteString
If set, the activity is stopped, but failedgetId()
Activity identifiercom.google.protobuf.ByteString
Activity identifierint
getSeq()
Differentiator in case of multiple activities with the same start timecom.google.protobuf.Timestamp
getStart()
Start time of the activitycom.google.protobuf.Timestamp.Builder
Start time of the activityUser who started the runcom.google.protobuf.ByteString
User who started the runcom.google.protobuf.TimestampOrBuilder
Start time of the activityActivity statuscom.google.protobuf.Timestamp
getStop()
Stop time of the activity runcom.google.protobuf.Timestamp.Builder
Stop time of the activity runcom.google.protobuf.TimestampOrBuilder
Stop time of the activity runUser who stopped the run.com.google.protobuf.ByteString
User who stopped the run.getType()
Activity typecom.google.protobuf.ByteString
Activity typeboolean
hasArgs()
Activity argumentsboolean
Activity detail (short descriptive)boolean
If set, the activity is stopped, but failedboolean
hasId()
Activity identifierboolean
hasSeq()
Differentiator in case of multiple activities with the same start timeboolean
hasStart()
Start time of the activityboolean
User who started the runboolean
Activity statusboolean
hasStop()
Stop time of the activity runboolean
User who stopped the run.boolean
hasType()
Activity typeprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeArgs
(com.google.protobuf.Struct value) Activity argumentsmergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(ActivityInfo other) mergeStart
(com.google.protobuf.Timestamp value) Start time of the activitymergeStop
(com.google.protobuf.Timestamp value) Stop time of the activity runfinal ActivityInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setArgs
(com.google.protobuf.Struct value) Activity argumentssetArgs
(com.google.protobuf.Struct.Builder builderForValue) Activity argumentsActivity detail (short descriptive)setDetailBytes
(com.google.protobuf.ByteString value) Activity detail (short descriptive)setFailureReason
(String value) If set, the activity is stopped, but failedsetFailureReasonBytes
(com.google.protobuf.ByteString value) If set, the activity is stopped, but failedActivity identifiersetIdBytes
(com.google.protobuf.ByteString value) Activity identifiersetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSeq
(int value) Differentiator in case of multiple activities with the same start timesetStart
(com.google.protobuf.Timestamp value) Start time of the activitysetStart
(com.google.protobuf.Timestamp.Builder builderForValue) Start time of the activitysetStartedBy
(String value) User who started the runsetStartedByBytes
(com.google.protobuf.ByteString value) User who started the runsetStatus
(ActivityStatus value) Activity statussetStop
(com.google.protobuf.Timestamp value) Stop time of the activity runsetStop
(com.google.protobuf.Timestamp.Builder builderForValue) Stop time of the activity runsetStoppedBy
(String value) User who stopped the run.setStoppedByBytes
(com.google.protobuf.ByteString value) User who stopped the run.Activity typesetTypeBytes
(com.google.protobuf.ByteString value) Activity typefinal ActivityInfo.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<ActivityInfo.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<ActivityInfo.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<ActivityInfo.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<ActivityInfo.Builder>
-
setField
public ActivityInfo.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<ActivityInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityInfo.Builder>
-
setRepeatedField
public ActivityInfo.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<ActivityInfo.Builder>
-
addRepeatedField
public ActivityInfo.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<ActivityInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ActivityInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityInfo.Builder>
-
mergeFrom
public ActivityInfo.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<ActivityInfo.Builder>
- Throws:
IOException
-
hasId
public boolean hasId()Activity identifier
optional string id = 1;
- Specified by:
hasId
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the id field is set.
-
getId
Activity identifier
optional string id = 1;
- Specified by:
getId
in interfaceActivityInfoOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Activity identifier
optional string id = 1;
- Specified by:
getIdBytes
in interfaceActivityInfoOrBuilder
- Returns:
- The bytes for id.
-
setId
Activity identifier
optional string id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
Activity identifier
optional string id = 1;
- Returns:
- This builder for chaining.
-
setIdBytes
Activity identifier
optional string id = 1;
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasStart
public boolean hasStart()Start time of the activity
optional .google.protobuf.Timestamp start = 2;
- Specified by:
hasStart
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the start field is set.
-
getStart
public com.google.protobuf.Timestamp getStart()Start time of the activity
optional .google.protobuf.Timestamp start = 2;
- Specified by:
getStart
in interfaceActivityInfoOrBuilder
- Returns:
- The start.
-
setStart
Start time of the activity
optional .google.protobuf.Timestamp start = 2;
-
setStart
Start time of the activity
optional .google.protobuf.Timestamp start = 2;
-
mergeStart
Start time of the activity
optional .google.protobuf.Timestamp start = 2;
-
clearStart
Start time of the activity
optional .google.protobuf.Timestamp start = 2;
-
getStartBuilder
public com.google.protobuf.Timestamp.Builder getStartBuilder()Start time of the activity
optional .google.protobuf.Timestamp start = 2;
-
getStartOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder()Start time of the activity
optional .google.protobuf.Timestamp start = 2;
- Specified by:
getStartOrBuilder
in interfaceActivityInfoOrBuilder
-
hasSeq
public boolean hasSeq()Differentiator in case of multiple activities with the same start time
optional uint32 seq = 3;
- Specified by:
hasSeq
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the seq field is set.
-
getSeq
public int getSeq()Differentiator in case of multiple activities with the same start time
optional uint32 seq = 3;
- Specified by:
getSeq
in interfaceActivityInfoOrBuilder
- Returns:
- The seq.
-
setSeq
Differentiator in case of multiple activities with the same start time
optional uint32 seq = 3;
- Parameters:
value
- The seq to set.- Returns:
- This builder for chaining.
-
clearSeq
Differentiator in case of multiple activities with the same start time
optional uint32 seq = 3;
- Returns:
- This builder for chaining.
-
hasStatus
public boolean hasStatus()Activity status
optional .yamcs.protobuf.activities.ActivityStatus status = 4;
- Specified by:
hasStatus
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the status field is set.
-
getStatus
Activity status
optional .yamcs.protobuf.activities.ActivityStatus status = 4;
- Specified by:
getStatus
in interfaceActivityInfoOrBuilder
- Returns:
- The status.
-
setStatus
Activity status
optional .yamcs.protobuf.activities.ActivityStatus status = 4;
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
Activity status
optional .yamcs.protobuf.activities.ActivityStatus status = 4;
- Returns:
- This builder for chaining.
-
hasStartedBy
public boolean hasStartedBy()User who started the run
optional string startedBy = 5;
- Specified by:
hasStartedBy
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the startedBy field is set.
-
getStartedBy
User who started the run
optional string startedBy = 5;
- Specified by:
getStartedBy
in interfaceActivityInfoOrBuilder
- Returns:
- The startedBy.
-
getStartedByBytes
public com.google.protobuf.ByteString getStartedByBytes()User who started the run
optional string startedBy = 5;
- Specified by:
getStartedByBytes
in interfaceActivityInfoOrBuilder
- Returns:
- The bytes for startedBy.
-
setStartedBy
User who started the run
optional string startedBy = 5;
- Parameters:
value
- The startedBy to set.- Returns:
- This builder for chaining.
-
clearStartedBy
User who started the run
optional string startedBy = 5;
- Returns:
- This builder for chaining.
-
setStartedByBytes
User who started the run
optional string startedBy = 5;
- Parameters:
value
- The bytes for startedBy to set.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()Activity type
optional string type = 6;
- Specified by:
hasType
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the type field is set.
-
getType
Activity type
optional string type = 6;
- Specified by:
getType
in interfaceActivityInfoOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()Activity type
optional string type = 6;
- Specified by:
getTypeBytes
in interfaceActivityInfoOrBuilder
- Returns:
- The bytes for type.
-
setType
Activity type
optional string type = 6;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
Activity type
optional string type = 6;
- Returns:
- This builder for chaining.
-
setTypeBytes
Activity type
optional string type = 6;
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasArgs
public boolean hasArgs()Activity arguments
optional .google.protobuf.Struct args = 7;
- Specified by:
hasArgs
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the args field is set.
-
getArgs
public com.google.protobuf.Struct getArgs()Activity arguments
optional .google.protobuf.Struct args = 7;
- Specified by:
getArgs
in interfaceActivityInfoOrBuilder
- Returns:
- The args.
-
setArgs
Activity arguments
optional .google.protobuf.Struct args = 7;
-
setArgs
Activity arguments
optional .google.protobuf.Struct args = 7;
-
mergeArgs
Activity arguments
optional .google.protobuf.Struct args = 7;
-
clearArgs
Activity arguments
optional .google.protobuf.Struct args = 7;
-
getArgsBuilder
public com.google.protobuf.Struct.Builder getArgsBuilder()Activity arguments
optional .google.protobuf.Struct args = 7;
-
getArgsOrBuilder
public com.google.protobuf.StructOrBuilder getArgsOrBuilder()Activity arguments
optional .google.protobuf.Struct args = 7;
- Specified by:
getArgsOrBuilder
in interfaceActivityInfoOrBuilder
-
hasDetail
public boolean hasDetail()Activity detail (short descriptive)
optional string detail = 8;
- Specified by:
hasDetail
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the detail field is set.
-
getDetail
Activity detail (short descriptive)
optional string detail = 8;
- Specified by:
getDetail
in interfaceActivityInfoOrBuilder
- Returns:
- The detail.
-
getDetailBytes
public com.google.protobuf.ByteString getDetailBytes()Activity detail (short descriptive)
optional string detail = 8;
- Specified by:
getDetailBytes
in interfaceActivityInfoOrBuilder
- Returns:
- The bytes for detail.
-
setDetail
Activity detail (short descriptive)
optional string detail = 8;
- Parameters:
value
- The detail to set.- Returns:
- This builder for chaining.
-
clearDetail
Activity detail (short descriptive)
optional string detail = 8;
- Returns:
- This builder for chaining.
-
setDetailBytes
Activity detail (short descriptive)
optional string detail = 8;
- Parameters:
value
- The bytes for detail to set.- Returns:
- This builder for chaining.
-
hasStop
public boolean hasStop()Stop time of the activity run
optional .google.protobuf.Timestamp stop = 9;
- Specified by:
hasStop
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the stop field is set.
-
getStop
public com.google.protobuf.Timestamp getStop()Stop time of the activity run
optional .google.protobuf.Timestamp stop = 9;
- Specified by:
getStop
in interfaceActivityInfoOrBuilder
- Returns:
- The stop.
-
setStop
Stop time of the activity run
optional .google.protobuf.Timestamp stop = 9;
-
setStop
Stop time of the activity run
optional .google.protobuf.Timestamp stop = 9;
-
mergeStop
Stop time of the activity run
optional .google.protobuf.Timestamp stop = 9;
-
clearStop
Stop time of the activity run
optional .google.protobuf.Timestamp stop = 9;
-
getStopBuilder
public com.google.protobuf.Timestamp.Builder getStopBuilder()Stop time of the activity run
optional .google.protobuf.Timestamp stop = 9;
-
getStopOrBuilder
public com.google.protobuf.TimestampOrBuilder getStopOrBuilder()Stop time of the activity run
optional .google.protobuf.Timestamp stop = 9;
- Specified by:
getStopOrBuilder
in interfaceActivityInfoOrBuilder
-
hasStoppedBy
public boolean hasStoppedBy()User who stopped the run. Only set if the activity was manually stopped
optional string stoppedBy = 10;
- Specified by:
hasStoppedBy
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the stoppedBy field is set.
-
getStoppedBy
User who stopped the run. Only set if the activity was manually stopped
optional string stoppedBy = 10;
- Specified by:
getStoppedBy
in interfaceActivityInfoOrBuilder
- Returns:
- The stoppedBy.
-
getStoppedByBytes
public com.google.protobuf.ByteString getStoppedByBytes()User who stopped the run. Only set if the activity was manually stopped
optional string stoppedBy = 10;
- Specified by:
getStoppedByBytes
in interfaceActivityInfoOrBuilder
- Returns:
- The bytes for stoppedBy.
-
setStoppedBy
User who stopped the run. Only set if the activity was manually stopped
optional string stoppedBy = 10;
- Parameters:
value
- The stoppedBy to set.- Returns:
- This builder for chaining.
-
clearStoppedBy
User who stopped the run. Only set if the activity was manually stopped
optional string stoppedBy = 10;
- Returns:
- This builder for chaining.
-
setStoppedByBytes
User who stopped the run. Only set if the activity was manually stopped
optional string stoppedBy = 10;
- Parameters:
value
- The bytes for stoppedBy to set.- Returns:
- This builder for chaining.
-
hasFailureReason
public boolean hasFailureReason()If set, the activity is stopped, but failed
optional string failureReason = 11;
- Specified by:
hasFailureReason
in interfaceActivityInfoOrBuilder
- Returns:
- Whether the failureReason field is set.
-
getFailureReason
If set, the activity is stopped, but failed
optional string failureReason = 11;
- Specified by:
getFailureReason
in interfaceActivityInfoOrBuilder
- Returns:
- The failureReason.
-
getFailureReasonBytes
public com.google.protobuf.ByteString getFailureReasonBytes()If set, the activity is stopped, but failed
optional string failureReason = 11;
- Specified by:
getFailureReasonBytes
in interfaceActivityInfoOrBuilder
- Returns:
- The bytes for failureReason.
-
setFailureReason
If set, the activity is stopped, but failed
optional string failureReason = 11;
- Parameters:
value
- The failureReason to set.- Returns:
- This builder for chaining.
-
clearFailureReason
If set, the activity is stopped, but failed
optional string failureReason = 11;
- Returns:
- This builder for chaining.
-
setFailureReasonBytes
If set, the activity is stopped, but failed
optional string failureReason = 11;
- Parameters:
value
- The bytes for failureReason to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ActivityInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityInfo.Builder>
-
mergeUnknownFields
public final ActivityInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ActivityInfo.Builder>
-