
org.yamcs.protobuf.TimelineItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/timeline/timeline.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.timeline.TimelineItem}
*/
public final class TimelineItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.timeline.TimelineItem)
TimelineItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use TimelineItem.newBuilder() to construct.
private TimelineItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TimelineItem() {
id_ = "";
name_ = "";
type_ = 1;
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
groupId_ = "";
description_ = "";
status_ = 1;
failureReason_ = "";
runs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TimelineItem();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TimelineItem(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
id_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
name_ = bs;
break;
}
case 24: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TimelineItemType value = org.yamcs.protobuf.TimelineItemType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
type_ = rawValue;
}
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = start_.toBuilder();
}
start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(start_);
start_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
com.google.protobuf.Duration.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = duration_.toBuilder();
}
duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(duration_);
duration_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
tags_.add(bs);
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
groupId_ = bs;
break;
}
case 66: {
org.yamcs.protobuf.RelativeTime.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = relativeTime_.toBuilder();
}
relativeTime_ = input.readMessage(org.yamcs.protobuf.RelativeTime.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(relativeTime_);
relativeTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
description_ = bs;
break;
}
case 80: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.ExecutionStatus value = org.yamcs.protobuf.ExecutionStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(10, rawValue);
} else {
bitField0_ |= 0x00000100;
status_ = rawValue;
}
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
failureReason_ = bs;
break;
}
case 106: {
org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) != 0)) {
subBuilder = activityDefinition_.toBuilder();
}
activityDefinition_ = input.readMessage(org.yamcs.protobuf.activities.ActivityDefinitionInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(activityDefinition_);
activityDefinition_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
properties_ = com.google.protobuf.MapField.newMapField(
PropertiesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000200;
}
com.google.protobuf.MapEntry
properties__ = input.readMessage(
PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
properties_.getMutableMap().put(
properties__.getKey(), properties__.getValue());
break;
}
case 122: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00002000) != 0)) {
runs_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00002000;
}
runs_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) != 0)) {
tags_ = tags_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00002000) != 0)) {
runs_ = runs_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineItem_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 14:
return internalGetProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.TimelineItem.class, org.yamcs.protobuf.TimelineItem.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
}
}
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Item name
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Item name
*
*
* optional string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Item name
*
*
* optional string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
* optional .yamcs.protobuf.timeline.TimelineItemType type = 3;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.timeline.TimelineItemType type = 3;
* @return The type.
*/
@java.lang.Override public org.yamcs.protobuf.TimelineItemType getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TimelineItemType result = org.yamcs.protobuf.TimelineItemType.valueOf(type_);
return result == null ? org.yamcs.protobuf.TimelineItemType.EVENT : result;
}
public static final int START_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp start_;
/**
* optional .google.protobuf.Timestamp start = 4;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .google.protobuf.Timestamp start = 4;
* @return The start.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStart() {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
/**
* optional .google.protobuf.Timestamp start = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
public static final int DURATION_FIELD_NUMBER = 5;
private com.google.protobuf.Duration duration_;
/**
* optional .google.protobuf.Duration duration = 5;
* @return Whether the duration field is set.
*/
@java.lang.Override
public boolean hasDuration() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .google.protobuf.Duration duration = 5;
* @return The duration.
*/
@java.lang.Override
public com.google.protobuf.Duration getDuration() {
return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
}
/**
* optional .google.protobuf.Duration duration = 5;
*/
@java.lang.Override
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
}
public static final int TAGS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList tags_;
/**
* repeated string tags = 6;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
* repeated string tags = 6;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
* repeated string tags = 6;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* repeated string tags = 6;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
public static final int GROUPID_FIELD_NUMBER = 7;
private volatile java.lang.Object groupId_;
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @return Whether the groupId field is set.
*/
@java.lang.Override
public boolean hasGroupId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @return The groupId.
*/
@java.lang.Override
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
groupId_ = s;
}
return s;
}
}
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @return The bytes for groupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RELATIVETIME_FIELD_NUMBER = 8;
private org.yamcs.protobuf.RelativeTime relativeTime_;
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
* @return Whether the relativeTime field is set.
*/
@java.lang.Override
public boolean hasRelativeTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
* @return The relativeTime.
*/
@java.lang.Override
public org.yamcs.protobuf.RelativeTime getRelativeTime() {
return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_;
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.RelativeTimeOrBuilder getRelativeTimeOrBuilder() {
return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_;
}
public static final int DESCRIPTION_FIELD_NUMBER = 9;
private volatile java.lang.Object description_;
/**
*
* Item description
*
*
* optional string description = 9;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Item description
*
*
* optional string description = 9;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
}
}
/**
*
* Item description
*
*
* optional string description = 9;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROPERTIES_FIELD_NUMBER = 14;
private static final class PropertiesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineItem_PropertiesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> properties_;
private com.google.protobuf.MapField
internalGetProperties() {
if (properties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
return properties_;
}
public int getPropertiesCount() {
return internalGetProperties().getMap().size();
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
@java.lang.Override
public boolean containsProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetProperties().getMap().containsKey(key);
}
/**
* Use {@link #getPropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getProperties() {
return getPropertiesMap();
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
@java.lang.Override
public java.util.Map getPropertiesMap() {
return internalGetProperties().getMap();
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
@java.lang.Override
public java.lang.String getPropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
@java.lang.Override
public java.lang.String getPropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int STATUS_FIELD_NUMBER = 10;
private int status_;
/**
*
* For activities: execution status
*
*
* optional .yamcs.protobuf.timeline.ExecutionStatus status = 10;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* For activities: execution status
*
*
* optional .yamcs.protobuf.timeline.ExecutionStatus status = 10;
* @return The status.
*/
@java.lang.Override public org.yamcs.protobuf.ExecutionStatus getStatus() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.ExecutionStatus result = org.yamcs.protobuf.ExecutionStatus.valueOf(status_);
return result == null ? org.yamcs.protobuf.ExecutionStatus.PLANNED : result;
}
public static final int FAILUREREASON_FIELD_NUMBER = 11;
private volatile java.lang.Object failureReason_;
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @return Whether the failureReason field is set.
*/
@java.lang.Override
public boolean hasFailureReason() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @return The failureReason.
*/
@java.lang.Override
public java.lang.String getFailureReason() {
java.lang.Object ref = failureReason_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
failureReason_ = s;
}
return s;
}
}
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @return The bytes for failureReason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFailureReasonBytes() {
java.lang.Object ref = failureReason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIVITYDEFINITION_FIELD_NUMBER = 13;
private org.yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition_;
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
* @return Whether the activityDefinition field is set.
*/
@java.lang.Override
public boolean hasActivityDefinition() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
* @return The activityDefinition.
*/
@java.lang.Override
public org.yamcs.protobuf.activities.ActivityDefinitionInfo getActivityDefinition() {
return activityDefinition_ == null ? org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance() : activityDefinition_;
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
*/
@java.lang.Override
public org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder getActivityDefinitionOrBuilder() {
return activityDefinition_ == null ? org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance() : activityDefinition_;
}
public static final int RUNS_FIELD_NUMBER = 15;
private com.google.protobuf.LazyStringList runs_;
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @return A list containing the runs.
*/
public com.google.protobuf.ProtocolStringList
getRunsList() {
return runs_;
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @return The count of runs.
*/
public int getRunsCount() {
return runs_.size();
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @param index The index of the element to return.
* @return The runs at the given index.
*/
public java.lang.String getRuns(int index) {
return runs_.get(index);
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @param index The index of the value to return.
* @return The bytes of the runs at the given index.
*/
public com.google.protobuf.ByteString
getRunsBytes(int index) {
return runs_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, type_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getStart());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getDuration());
}
for (int i = 0; i < tags_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tags_.getRaw(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, groupId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(8, getRelativeTime());
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, description_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeEnum(10, status_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, failureReason_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(13, getActivityDefinition());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetProperties(),
PropertiesDefaultEntryHolder.defaultEntry,
14);
for (int i = 0; i < runs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, runs_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, type_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getStart());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDuration());
}
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
dataSize += computeStringSizeNoTag(tags_.getRaw(i));
}
size += dataSize;
size += 1 * getTagsList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, groupId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getRelativeTime());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, description_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, status_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, failureReason_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getActivityDefinition());
}
for (java.util.Map.Entry entry
: internalGetProperties().getMap().entrySet()) {
com.google.protobuf.MapEntry
properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, properties__);
}
{
int dataSize = 0;
for (int i = 0; i < runs_.size(); i++) {
dataSize += computeStringSizeNoTag(runs_.getRaw(i));
}
size += dataSize;
size += 1 * getRunsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.yamcs.protobuf.TimelineItem)) {
return super.equals(obj);
}
org.yamcs.protobuf.TimelineItem other = (org.yamcs.protobuf.TimelineItem) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (!getId()
.equals(other.getId())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (hasStart() != other.hasStart()) return false;
if (hasStart()) {
if (!getStart()
.equals(other.getStart())) return false;
}
if (hasDuration() != other.hasDuration()) return false;
if (hasDuration()) {
if (!getDuration()
.equals(other.getDuration())) return false;
}
if (!getTagsList()
.equals(other.getTagsList())) return false;
if (hasGroupId() != other.hasGroupId()) return false;
if (hasGroupId()) {
if (!getGroupId()
.equals(other.getGroupId())) return false;
}
if (hasRelativeTime() != other.hasRelativeTime()) return false;
if (hasRelativeTime()) {
if (!getRelativeTime()
.equals(other.getRelativeTime())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (!internalGetProperties().equals(
other.internalGetProperties())) return false;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (status_ != other.status_) return false;
}
if (hasFailureReason() != other.hasFailureReason()) return false;
if (hasFailureReason()) {
if (!getFailureReason()
.equals(other.getFailureReason())) return false;
}
if (hasActivityDefinition() != other.hasActivityDefinition()) return false;
if (hasActivityDefinition()) {
if (!getActivityDefinition()
.equals(other.getActivityDefinition())) return false;
}
if (!getRunsList()
.equals(other.getRunsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasStart()) {
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + getStart().hashCode();
}
if (hasDuration()) {
hash = (37 * hash) + DURATION_FIELD_NUMBER;
hash = (53 * hash) + getDuration().hashCode();
}
if (getTagsCount() > 0) {
hash = (37 * hash) + TAGS_FIELD_NUMBER;
hash = (53 * hash) + getTagsList().hashCode();
}
if (hasGroupId()) {
hash = (37 * hash) + GROUPID_FIELD_NUMBER;
hash = (53 * hash) + getGroupId().hashCode();
}
if (hasRelativeTime()) {
hash = (37 * hash) + RELATIVETIME_FIELD_NUMBER;
hash = (53 * hash) + getRelativeTime().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (!internalGetProperties().getMap().isEmpty()) {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetProperties().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
}
if (hasFailureReason()) {
hash = (37 * hash) + FAILUREREASON_FIELD_NUMBER;
hash = (53 * hash) + getFailureReason().hashCode();
}
if (hasActivityDefinition()) {
hash = (37 * hash) + ACTIVITYDEFINITION_FIELD_NUMBER;
hash = (53 * hash) + getActivityDefinition().hashCode();
}
if (getRunsCount() > 0) {
hash = (37 * hash) + RUNS_FIELD_NUMBER;
hash = (53 * hash) + getRunsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.TimelineItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.TimelineItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TimelineItem parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TimelineItem parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.yamcs.protobuf.TimelineItem prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.timeline.TimelineItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.timeline.TimelineItem)
org.yamcs.protobuf.TimelineItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineItem_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 14:
return internalGetProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 14:
return internalGetMutableProperties();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.TimelineItem.class, org.yamcs.protobuf.TimelineItem.Builder.class);
}
// Construct using org.yamcs.protobuf.TimelineItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStartFieldBuilder();
getDurationFieldBuilder();
getRelativeTimeFieldBuilder();
getActivityDefinitionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 1;
bitField0_ = (bitField0_ & ~0x00000004);
if (startBuilder_ == null) {
start_ = null;
} else {
startBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (durationBuilder_ == null) {
duration_ = null;
} else {
durationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
groupId_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
if (relativeTimeBuilder_ == null) {
relativeTime_ = null;
} else {
relativeTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
internalGetMutableProperties().clear();
status_ = 1;
bitField0_ = (bitField0_ & ~0x00000400);
failureReason_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
if (activityDefinitionBuilder_ == null) {
activityDefinition_ = null;
} else {
activityDefinitionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
runs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineItem_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.TimelineItem getDefaultInstanceForType() {
return org.yamcs.protobuf.TimelineItem.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.TimelineItem build() {
org.yamcs.protobuf.TimelineItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.TimelineItem buildPartial() {
org.yamcs.protobuf.TimelineItem result = new org.yamcs.protobuf.TimelineItem(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000008) != 0)) {
if (startBuilder_ == null) {
result.start_ = start_;
} else {
result.start_ = startBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (durationBuilder_ == null) {
result.duration_ = duration_;
} else {
result.duration_ = durationBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((bitField0_ & 0x00000020) != 0)) {
tags_ = tags_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.tags_ = tags_;
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.groupId_ = groupId_;
if (((from_bitField0_ & 0x00000080) != 0)) {
if (relativeTimeBuilder_ == null) {
result.relativeTime_ = relativeTime_;
} else {
result.relativeTime_ = relativeTimeBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.description_ = description_;
result.properties_ = internalGetProperties();
result.properties_.makeImmutable();
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000800) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.failureReason_ = failureReason_;
if (((from_bitField0_ & 0x00001000) != 0)) {
if (activityDefinitionBuilder_ == null) {
result.activityDefinition_ = activityDefinition_;
} else {
result.activityDefinition_ = activityDefinitionBuilder_.build();
}
to_bitField0_ |= 0x00000400;
}
if (((bitField0_ & 0x00002000) != 0)) {
runs_ = runs_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00002000);
}
result.runs_ = runs_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.TimelineItem) {
return mergeFrom((org.yamcs.protobuf.TimelineItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.TimelineItem other) {
if (other == org.yamcs.protobuf.TimelineItem.getDefaultInstance()) return this;
if (other.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasStart()) {
mergeStart(other.getStart());
}
if (other.hasDuration()) {
mergeDuration(other.getDuration());
}
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
if (other.hasGroupId()) {
bitField0_ |= 0x00000040;
groupId_ = other.groupId_;
onChanged();
}
if (other.hasRelativeTime()) {
mergeRelativeTime(other.getRelativeTime());
}
if (other.hasDescription()) {
bitField0_ |= 0x00000100;
description_ = other.description_;
onChanged();
}
internalGetMutableProperties().mergeFrom(
other.internalGetProperties());
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasFailureReason()) {
bitField0_ |= 0x00000800;
failureReason_ = other.failureReason_;
onChanged();
}
if (other.hasActivityDefinition()) {
mergeActivityDefinition(other.getActivityDefinition());
}
if (!other.runs_.isEmpty()) {
if (runs_.isEmpty()) {
runs_ = other.runs_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureRunsIsMutable();
runs_.addAll(other.runs_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.TimelineItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.TimelineItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @return Whether the id field is set.
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
id_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @return The bytes for id.
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Item identifier.
* The identifier is set and recognized by the source.
* It is possible but unlikely that two items coming from two different sources will have the same id.
* The rdb source sets the id to a UUID.
* The commands source sets the id to the command id
*
*
* optional string id = 1;
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Item name
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Item name
*
*
* optional string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Item name
*
*
* optional string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Item name
*
*
* optional string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
*
* Item name
*
*
* optional string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Item name
*
*
* optional string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private int type_ = 1;
/**
* optional .yamcs.protobuf.timeline.TimelineItemType type = 3;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.timeline.TimelineItemType type = 3;
* @return The type.
*/
@java.lang.Override
public org.yamcs.protobuf.TimelineItemType getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TimelineItemType result = org.yamcs.protobuf.TimelineItemType.valueOf(type_);
return result == null ? org.yamcs.protobuf.TimelineItemType.EVENT : result;
}
/**
* optional .yamcs.protobuf.timeline.TimelineItemType type = 3;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.yamcs.protobuf.TimelineItemType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.timeline.TimelineItemType type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 1;
onChanged();
return this;
}
private com.google.protobuf.Timestamp start_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_;
/**
* optional .google.protobuf.Timestamp start = 4;
* @return Whether the start field is set.
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .google.protobuf.Timestamp start = 4;
* @return The start.
*/
public com.google.protobuf.Timestamp getStart() {
if (startBuilder_ == null) {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
} else {
return startBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp start = 4;
*/
public Builder setStart(com.google.protobuf.Timestamp value) {
if (startBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
start_ = value;
onChanged();
} else {
startBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 4;
*/
public Builder setStart(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startBuilder_ == null) {
start_ = builderForValue.build();
onChanged();
} else {
startBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 4;
*/
public Builder mergeStart(com.google.protobuf.Timestamp value) {
if (startBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
start_ != null &&
start_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
start_ =
com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial();
} else {
start_ = value;
}
onChanged();
} else {
startBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 4;
*/
public Builder clearStart() {
if (startBuilder_ == null) {
start_ = null;
onChanged();
} else {
startBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .google.protobuf.Timestamp start = 4;
*/
public com.google.protobuf.Timestamp.Builder getStartBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getStartFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp start = 4;
*/
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
if (startBuilder_ != null) {
return startBuilder_.getMessageOrBuilder();
} else {
return start_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
}
/**
* optional .google.protobuf.Timestamp start = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStartFieldBuilder() {
if (startBuilder_ == null) {
startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStart(),
getParentForChildren(),
isClean());
start_ = null;
}
return startBuilder_;
}
private com.google.protobuf.Duration duration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_;
/**
* optional .google.protobuf.Duration duration = 5;
* @return Whether the duration field is set.
*/
public boolean hasDuration() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .google.protobuf.Duration duration = 5;
* @return The duration.
*/
public com.google.protobuf.Duration getDuration() {
if (durationBuilder_ == null) {
return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_;
} else {
return durationBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Duration duration = 5;
*/
public Builder setDuration(com.google.protobuf.Duration value) {
if (durationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
duration_ = value;
onChanged();
} else {
durationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Duration duration = 5;
*/
public Builder setDuration(
com.google.protobuf.Duration.Builder builderForValue) {
if (durationBuilder_ == null) {
duration_ = builderForValue.build();
onChanged();
} else {
durationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Duration duration = 5;
*/
public Builder mergeDuration(com.google.protobuf.Duration value) {
if (durationBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
duration_ != null &&
duration_ != com.google.protobuf.Duration.getDefaultInstance()) {
duration_ =
com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial();
} else {
duration_ = value;
}
onChanged();
} else {
durationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Duration duration = 5;
*/
public Builder clearDuration() {
if (durationBuilder_ == null) {
duration_ = null;
onChanged();
} else {
durationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .google.protobuf.Duration duration = 5;
*/
public com.google.protobuf.Duration.Builder getDurationBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getDurationFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Duration duration = 5;
*/
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
if (durationBuilder_ != null) {
return durationBuilder_.getMessageOrBuilder();
} else {
return duration_ == null ?
com.google.protobuf.Duration.getDefaultInstance() : duration_;
}
}
/**
* optional .google.protobuf.Duration duration = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
getDurationFieldBuilder() {
if (durationBuilder_ == null) {
durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
getDuration(),
getParentForChildren(),
isClean());
duration_ = null;
}
return durationBuilder_;
}
private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
bitField0_ |= 0x00000020;
}
}
/**
* repeated string tags = 6;
* @return A list containing the tags.
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
* repeated string tags = 6;
* @return The count of tags.
*/
public int getTagsCount() {
return tags_.size();
}
/**
* repeated string tags = 6;
* @param index The index of the element to return.
* @return The tags at the given index.
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
* repeated string tags = 6;
* @param index The index of the value to return.
* @return The bytes of the tags at the given index.
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
* repeated string tags = 6;
* @param index The index to set the value at.
* @param value The tags to set.
* @return This builder for chaining.
*/
public Builder setTags(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.set(index, value);
onChanged();
return this;
}
/**
* repeated string tags = 6;
* @param value The tags to add.
* @return This builder for chaining.
*/
public Builder addTags(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
/**
* repeated string tags = 6;
* @param values The tags to add.
* @return This builder for chaining.
*/
public Builder addAllTags(
java.lang.Iterable values) {
ensureTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tags_);
onChanged();
return this;
}
/**
* repeated string tags = 6;
* @return This builder for chaining.
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* repeated string tags = 6;
* @param value The bytes of the tags to add.
* @return This builder for chaining.
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTagsIsMutable();
tags_.add(value);
onChanged();
return this;
}
private java.lang.Object groupId_ = "";
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @return Whether the groupId field is set.
*/
public boolean hasGroupId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @return The groupId.
*/
public java.lang.String getGroupId() {
java.lang.Object ref = groupId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
groupId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @return The bytes for groupId.
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
java.lang.Object ref = groupId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
groupId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @param value The groupId to set.
* @return This builder for chaining.
*/
public Builder setGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
groupId_ = value;
onChanged();
return this;
}
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @return This builder for chaining.
*/
public Builder clearGroupId() {
bitField0_ = (bitField0_ & ~0x00000040);
groupId_ = getDefaultInstance().getGroupId();
onChanged();
return this;
}
/**
*
* If this item is part of a group, this is the group identifier
*
*
* optional string groupId = 7;
* @param value The bytes for groupId to set.
* @return This builder for chaining.
*/
public Builder setGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
groupId_ = value;
onChanged();
return this;
}
private org.yamcs.protobuf.RelativeTime relativeTime_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.RelativeTime, org.yamcs.protobuf.RelativeTime.Builder, org.yamcs.protobuf.RelativeTimeOrBuilder> relativeTimeBuilder_;
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
* @return Whether the relativeTime field is set.
*/
public boolean hasRelativeTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
* @return The relativeTime.
*/
public org.yamcs.protobuf.RelativeTime getRelativeTime() {
if (relativeTimeBuilder_ == null) {
return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_;
} else {
return relativeTimeBuilder_.getMessage();
}
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
*/
public Builder setRelativeTime(org.yamcs.protobuf.RelativeTime value) {
if (relativeTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
relativeTime_ = value;
onChanged();
} else {
relativeTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
*/
public Builder setRelativeTime(
org.yamcs.protobuf.RelativeTime.Builder builderForValue) {
if (relativeTimeBuilder_ == null) {
relativeTime_ = builderForValue.build();
onChanged();
} else {
relativeTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
*/
public Builder mergeRelativeTime(org.yamcs.protobuf.RelativeTime value) {
if (relativeTimeBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
relativeTime_ != null &&
relativeTime_ != org.yamcs.protobuf.RelativeTime.getDefaultInstance()) {
relativeTime_ =
org.yamcs.protobuf.RelativeTime.newBuilder(relativeTime_).mergeFrom(value).buildPartial();
} else {
relativeTime_ = value;
}
onChanged();
} else {
relativeTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
*/
public Builder clearRelativeTime() {
if (relativeTimeBuilder_ == null) {
relativeTime_ = null;
onChanged();
} else {
relativeTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
*/
public org.yamcs.protobuf.RelativeTime.Builder getRelativeTimeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getRelativeTimeFieldBuilder().getBuilder();
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
*/
public org.yamcs.protobuf.RelativeTimeOrBuilder getRelativeTimeOrBuilder() {
if (relativeTimeBuilder_ != null) {
return relativeTimeBuilder_.getMessageOrBuilder();
} else {
return relativeTime_ == null ?
org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_;
}
}
/**
*
* If this item time specification is relative to another item, ``relativeTime``
* contains a reference to that item as well as the relative start (the duration
* is the same as the ``duration`` field).
* Note that start of the item is computed by the server based on the
* ``relativeTime`` before sending the item to the client.
*
*
* optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.RelativeTime, org.yamcs.protobuf.RelativeTime.Builder, org.yamcs.protobuf.RelativeTimeOrBuilder>
getRelativeTimeFieldBuilder() {
if (relativeTimeBuilder_ == null) {
relativeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.RelativeTime, org.yamcs.protobuf.RelativeTime.Builder, org.yamcs.protobuf.RelativeTimeOrBuilder>(
getRelativeTime(),
getParentForChildren(),
isClean());
relativeTime_ = null;
}
return relativeTimeBuilder_;
}
private java.lang.Object description_ = "";
/**
*
* Item description
*
*
* optional string description = 9;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Item description
*
*
* optional string description = 9;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Item description
*
*
* optional string description = 9;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Item description
*
*
* optional string description = 9;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
description_ = value;
onChanged();
return this;
}
/**
*
* Item description
*
*
* optional string description = 9;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000100);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Item description
*
*
* optional string description = 9;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
description_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> properties_;
private com.google.protobuf.MapField
internalGetProperties() {
if (properties_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
return properties_;
}
private com.google.protobuf.MapField
internalGetMutableProperties() {
onChanged();;
if (properties_ == null) {
properties_ = com.google.protobuf.MapField.newMapField(
PropertiesDefaultEntryHolder.defaultEntry);
}
if (!properties_.isMutable()) {
properties_ = properties_.copy();
}
return properties_;
}
public int getPropertiesCount() {
return internalGetProperties().getMap().size();
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
@java.lang.Override
public boolean containsProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetProperties().getMap().containsKey(key);
}
/**
* Use {@link #getPropertiesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getProperties() {
return getPropertiesMap();
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
@java.lang.Override
public java.util.Map getPropertiesMap() {
return internalGetProperties().getMap();
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
@java.lang.Override
public java.lang.String getPropertiesOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
@java.lang.Override
public java.lang.String getPropertiesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetProperties().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearProperties() {
internalGetMutableProperties().getMutableMap()
.clear();
return this;
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
public Builder removeProperties(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableProperties().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableProperties() {
return internalGetMutableProperties().getMutableMap();
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
public Builder putProperties(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableProperties().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Additional properties used by yamcs-web to render this item
*
*
* map<string, string> properties = 14;
*/
public Builder putAllProperties(
java.util.Map values) {
internalGetMutableProperties().getMutableMap()
.putAll(values);
return this;
}
private int status_ = 1;
/**
*
* For activities: execution status
*
*
* optional .yamcs.protobuf.timeline.ExecutionStatus status = 10;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* For activities: execution status
*
*
* optional .yamcs.protobuf.timeline.ExecutionStatus status = 10;
* @return The status.
*/
@java.lang.Override
public org.yamcs.protobuf.ExecutionStatus getStatus() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.ExecutionStatus result = org.yamcs.protobuf.ExecutionStatus.valueOf(status_);
return result == null ? org.yamcs.protobuf.ExecutionStatus.PLANNED : result;
}
/**
*
* For activities: execution status
*
*
* optional .yamcs.protobuf.timeline.ExecutionStatus status = 10;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.yamcs.protobuf.ExecutionStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* For activities: execution status
*
*
* optional .yamcs.protobuf.timeline.ExecutionStatus status = 10;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000400);
status_ = 1;
onChanged();
return this;
}
private java.lang.Object failureReason_ = "";
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @return Whether the failureReason field is set.
*/
public boolean hasFailureReason() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @return The failureReason.
*/
public java.lang.String getFailureReason() {
java.lang.Object ref = failureReason_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
failureReason_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @return The bytes for failureReason.
*/
public com.google.protobuf.ByteString
getFailureReasonBytes() {
java.lang.Object ref = failureReason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @param value The failureReason to set.
* @return This builder for chaining.
*/
public Builder setFailureReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
failureReason_ = value;
onChanged();
return this;
}
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @return This builder for chaining.
*/
public Builder clearFailureReason() {
bitField0_ = (bitField0_ & ~0x00000800);
failureReason_ = getDefaultInstance().getFailureReason();
onChanged();
return this;
}
/**
*
* For activities: if the status is FAILED or ABORTED, this may indicate the reason
* some information may also be available in the item log
*
*
* optional string failureReason = 11;
* @param value The bytes for failureReason to set.
* @return This builder for chaining.
*/
public Builder setFailureReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
failureReason_ = value;
onChanged();
return this;
}
private org.yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.activities.ActivityDefinitionInfo, org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder, org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder> activityDefinitionBuilder_;
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
* @return Whether the activityDefinition field is set.
*/
public boolean hasActivityDefinition() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
* @return The activityDefinition.
*/
public org.yamcs.protobuf.activities.ActivityDefinitionInfo getActivityDefinition() {
if (activityDefinitionBuilder_ == null) {
return activityDefinition_ == null ? org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance() : activityDefinition_;
} else {
return activityDefinitionBuilder_.getMessage();
}
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
*/
public Builder setActivityDefinition(org.yamcs.protobuf.activities.ActivityDefinitionInfo value) {
if (activityDefinitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
activityDefinition_ = value;
onChanged();
} else {
activityDefinitionBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
*/
public Builder setActivityDefinition(
org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder builderForValue) {
if (activityDefinitionBuilder_ == null) {
activityDefinition_ = builderForValue.build();
onChanged();
} else {
activityDefinitionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
*/
public Builder mergeActivityDefinition(org.yamcs.protobuf.activities.ActivityDefinitionInfo value) {
if (activityDefinitionBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
activityDefinition_ != null &&
activityDefinition_ != org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance()) {
activityDefinition_ =
org.yamcs.protobuf.activities.ActivityDefinitionInfo.newBuilder(activityDefinition_).mergeFrom(value).buildPartial();
} else {
activityDefinition_ = value;
}
onChanged();
} else {
activityDefinitionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
*/
public Builder clearActivityDefinition() {
if (activityDefinitionBuilder_ == null) {
activityDefinition_ = null;
onChanged();
} else {
activityDefinitionBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
*/
public org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder getActivityDefinitionBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getActivityDefinitionFieldBuilder().getBuilder();
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
*/
public org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder getActivityDefinitionOrBuilder() {
if (activityDefinitionBuilder_ != null) {
return activityDefinitionBuilder_.getMessageOrBuilder();
} else {
return activityDefinition_ == null ?
org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance() : activityDefinition_;
}
}
/**
*
* Activity definition associated to this item.
* Set if ``type`` is ACTIVITY.
*
*
* optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.activities.ActivityDefinitionInfo, org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder, org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder>
getActivityDefinitionFieldBuilder() {
if (activityDefinitionBuilder_ == null) {
activityDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.activities.ActivityDefinitionInfo, org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder, org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder>(
getActivityDefinition(),
getParentForChildren(),
isClean());
activityDefinition_ = null;
}
return activityDefinitionBuilder_;
}
private com.google.protobuf.LazyStringList runs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRunsIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
runs_ = new com.google.protobuf.LazyStringArrayList(runs_);
bitField0_ |= 0x00002000;
}
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @return A list containing the runs.
*/
public com.google.protobuf.ProtocolStringList
getRunsList() {
return runs_.getUnmodifiableView();
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @return The count of runs.
*/
public int getRunsCount() {
return runs_.size();
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @param index The index of the element to return.
* @return The runs at the given index.
*/
public java.lang.String getRuns(int index) {
return runs_.get(index);
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @param index The index of the value to return.
* @return The bytes of the runs at the given index.
*/
public com.google.protobuf.ByteString
getRunsBytes(int index) {
return runs_.getByteString(index);
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @param index The index to set the value at.
* @param value The runs to set.
* @return This builder for chaining.
*/
public Builder setRuns(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRunsIsMutable();
runs_.set(index, value);
onChanged();
return this;
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @param value The runs to add.
* @return This builder for chaining.
*/
public Builder addRuns(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRunsIsMutable();
runs_.add(value);
onChanged();
return this;
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @param values The runs to add.
* @return This builder for chaining.
*/
public Builder addAllRuns(
java.lang.Iterable values) {
ensureRunsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, runs_);
onChanged();
return this;
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @return This builder for chaining.
*/
public Builder clearRuns() {
runs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
*
* Identifiers of activity runs matching this item.
* Set if ``type`` is ACTIVITY.
*
*
* repeated string runs = 15;
* @param value The bytes of the runs to add.
* @return This builder for chaining.
*/
public Builder addRunsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRunsIsMutable();
runs_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.timeline.TimelineItem)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.timeline.TimelineItem)
private static final org.yamcs.protobuf.TimelineItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.TimelineItem();
}
public static org.yamcs.protobuf.TimelineItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TimelineItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TimelineItem(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.yamcs.protobuf.TimelineItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy