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 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<ActivityInfo.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ActivityInfo.Builder mergeFrom(ActivityInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 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<ActivityInfo.Builder>
      Throws:
      IOException
    • hasId

      public boolean hasId()
       Activity identifier
       
      optional string id = 1;
      Specified by:
      hasId in interface ActivityInfoOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       Activity identifier
       
      optional string id = 1;
      Specified by:
      getId in interface ActivityInfoOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Activity identifier
       
      optional string id = 1;
      Specified by:
      getIdBytes in interface ActivityInfoOrBuilder
      Returns:
      The bytes for id.
    • setId

      public ActivityInfo.Builder setId(String value)
       Activity identifier
       
      optional string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ActivityInfo.Builder clearId()
       Activity identifier
       
      optional string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public ActivityInfo.Builder setIdBytes(com.google.protobuf.ByteString value)
       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 interface ActivityInfoOrBuilder
      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 interface ActivityInfoOrBuilder
      Returns:
      The start.
    • setStart

      public ActivityInfo.Builder setStart(com.google.protobuf.Timestamp value)
       Start time of the activity
       
      optional .google.protobuf.Timestamp start = 2;
    • setStart

      public ActivityInfo.Builder setStart(com.google.protobuf.Timestamp.Builder builderForValue)
       Start time of the activity
       
      optional .google.protobuf.Timestamp start = 2;
    • mergeStart

      public ActivityInfo.Builder mergeStart(com.google.protobuf.Timestamp value)
       Start time of the activity
       
      optional .google.protobuf.Timestamp start = 2;
    • clearStart

      public ActivityInfo.Builder 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 interface ActivityInfoOrBuilder
    • hasSeq

      public boolean hasSeq()
       Differentiator in case of multiple activities
       with the same start time
       
      optional uint32 seq = 3;
      Specified by:
      hasSeq in interface ActivityInfoOrBuilder
      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 interface ActivityInfoOrBuilder
      Returns:
      The seq.
    • setSeq

      public ActivityInfo.Builder setSeq(int value)
       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

      public ActivityInfo.Builder 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 interface ActivityInfoOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public ActivityStatus getStatus()
       Activity status
       
      optional .yamcs.protobuf.activities.ActivityStatus status = 4;
      Specified by:
      getStatus in interface ActivityInfoOrBuilder
      Returns:
      The status.
    • setStatus

      public ActivityInfo.Builder setStatus(ActivityStatus value)
       Activity status
       
      optional .yamcs.protobuf.activities.ActivityStatus status = 4;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public ActivityInfo.Builder 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 interface ActivityInfoOrBuilder
      Returns:
      Whether the startedBy field is set.
    • getStartedBy

      public String getStartedBy()
       User who started the run
       
      optional string startedBy = 5;
      Specified by:
      getStartedBy in interface ActivityInfoOrBuilder
      Returns:
      The startedBy.
    • getStartedByBytes

      public com.google.protobuf.ByteString getStartedByBytes()
       User who started the run
       
      optional string startedBy = 5;
      Specified by:
      getStartedByBytes in interface ActivityInfoOrBuilder
      Returns:
      The bytes for startedBy.
    • setStartedBy

      public ActivityInfo.Builder setStartedBy(String value)
       User who started the run
       
      optional string startedBy = 5;
      Parameters:
      value - The startedBy to set.
      Returns:
      This builder for chaining.
    • clearStartedBy

      public ActivityInfo.Builder clearStartedBy()
       User who started the run
       
      optional string startedBy = 5;
      Returns:
      This builder for chaining.
    • setStartedByBytes

      public ActivityInfo.Builder setStartedByBytes(com.google.protobuf.ByteString value)
       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 interface ActivityInfoOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Activity type
       
      optional string type = 6;
      Specified by:
      getType in interface ActivityInfoOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Activity type
       
      optional string type = 6;
      Specified by:
      getTypeBytes in interface ActivityInfoOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ActivityInfo.Builder setType(String value)
       Activity type
       
      optional string type = 6;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ActivityInfo.Builder clearType()
       Activity type
       
      optional string type = 6;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ActivityInfo.Builder setTypeBytes(com.google.protobuf.ByteString value)
       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 interface ActivityInfoOrBuilder
      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 interface ActivityInfoOrBuilder
      Returns:
      The args.
    • setArgs

      public ActivityInfo.Builder setArgs(com.google.protobuf.Struct value)
       Activity arguments
       
      optional .google.protobuf.Struct args = 7;
    • setArgs

      public ActivityInfo.Builder setArgs(com.google.protobuf.Struct.Builder builderForValue)
       Activity arguments
       
      optional .google.protobuf.Struct args = 7;
    • mergeArgs

      public ActivityInfo.Builder mergeArgs(com.google.protobuf.Struct value)
       Activity arguments
       
      optional .google.protobuf.Struct args = 7;
    • clearArgs

      public ActivityInfo.Builder 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 interface ActivityInfoOrBuilder
    • hasDetail

      public boolean hasDetail()
       Activity detail (short descriptive)
       
      optional string detail = 8;
      Specified by:
      hasDetail in interface ActivityInfoOrBuilder
      Returns:
      Whether the detail field is set.
    • getDetail

      public String getDetail()
       Activity detail (short descriptive)
       
      optional string detail = 8;
      Specified by:
      getDetail in interface ActivityInfoOrBuilder
      Returns:
      The detail.
    • getDetailBytes

      public com.google.protobuf.ByteString getDetailBytes()
       Activity detail (short descriptive)
       
      optional string detail = 8;
      Specified by:
      getDetailBytes in interface ActivityInfoOrBuilder
      Returns:
      The bytes for detail.
    • setDetail

      public ActivityInfo.Builder setDetail(String value)
       Activity detail (short descriptive)
       
      optional string detail = 8;
      Parameters:
      value - The detail to set.
      Returns:
      This builder for chaining.
    • clearDetail

      public ActivityInfo.Builder clearDetail()
       Activity detail (short descriptive)
       
      optional string detail = 8;
      Returns:
      This builder for chaining.
    • setDetailBytes

      public ActivityInfo.Builder setDetailBytes(com.google.protobuf.ByteString value)
       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 interface ActivityInfoOrBuilder
      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 interface ActivityInfoOrBuilder
      Returns:
      The stop.
    • setStop

      public ActivityInfo.Builder setStop(com.google.protobuf.Timestamp value)
       Stop time of the activity run
       
      optional .google.protobuf.Timestamp stop = 9;
    • setStop

      public ActivityInfo.Builder setStop(com.google.protobuf.Timestamp.Builder builderForValue)
       Stop time of the activity run
       
      optional .google.protobuf.Timestamp stop = 9;
    • mergeStop

      public ActivityInfo.Builder mergeStop(com.google.protobuf.Timestamp value)
       Stop time of the activity run
       
      optional .google.protobuf.Timestamp stop = 9;
    • clearStop

      public ActivityInfo.Builder 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 interface ActivityInfoOrBuilder
    • 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 interface ActivityInfoOrBuilder
      Returns:
      Whether the stoppedBy field is set.
    • getStoppedBy

      public String getStoppedBy()
       User who stopped the run. Only set if the activity
       was manually stopped
       
      optional string stoppedBy = 10;
      Specified by:
      getStoppedBy in interface ActivityInfoOrBuilder
      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 interface ActivityInfoOrBuilder
      Returns:
      The bytes for stoppedBy.
    • setStoppedBy

      public ActivityInfo.Builder setStoppedBy(String value)
       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

      public ActivityInfo.Builder clearStoppedBy()
       User who stopped the run. Only set if the activity
       was manually stopped
       
      optional string stoppedBy = 10;
      Returns:
      This builder for chaining.
    • setStoppedByBytes

      public ActivityInfo.Builder setStoppedByBytes(com.google.protobuf.ByteString value)
       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 interface ActivityInfoOrBuilder
      Returns:
      Whether the failureReason field is set.
    • getFailureReason

      public String getFailureReason()
       If set, the activity is stopped, but failed
       
      optional string failureReason = 11;
      Specified by:
      getFailureReason in interface ActivityInfoOrBuilder
      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 interface ActivityInfoOrBuilder
      Returns:
      The bytes for failureReason.
    • setFailureReason

      public ActivityInfo.Builder setFailureReason(String value)
       If set, the activity is stopped, but failed
       
      optional string failureReason = 11;
      Parameters:
      value - The failureReason to set.
      Returns:
      This builder for chaining.
    • clearFailureReason

      public ActivityInfo.Builder clearFailureReason()
       If set, the activity is stopped, but failed
       
      optional string failureReason = 11;
      Returns:
      This builder for chaining.
    • setFailureReasonBytes

      public ActivityInfo.Builder setFailureReasonBytes(com.google.protobuf.ByteString value)
       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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ActivityInfo.Builder>
    • mergeUnknownFields

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