
org.yamcs.protobuf.activities.ActivityInfo 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/activities/activities.proto
package org.yamcs.protobuf.activities;
/**
* Protobuf type {@code yamcs.protobuf.activities.ActivityInfo}
*/
public final class ActivityInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.activities.ActivityInfo)
ActivityInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActivityInfo.newBuilder() to construct.
private ActivityInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ActivityInfo() {
id_ = "";
status_ = 1;
startedBy_ = "";
type_ = "";
detail_ = "";
stoppedBy_ = "";
failureReason_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActivityInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ActivityInfo(
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.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = start_.toBuilder();
}
start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(start_);
start_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
seq_ = input.readUInt32();
break;
}
case 32: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.activities.ActivityStatus value = org.yamcs.protobuf.activities.ActivityStatus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
status_ = rawValue;
}
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
startedBy_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
type_ = bs;
break;
}
case 58: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = args_.toBuilder();
}
args_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(args_);
args_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
detail_ = bs;
break;
}
case 74: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) != 0)) {
subBuilder = stop_.toBuilder();
}
stop_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stop_);
stop_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
stoppedBy_ = bs;
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
failureReason_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.activities.ActivitiesProto.internal_static_yamcs_protobuf_activities_ActivityInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.activities.ActivitiesProto.internal_static_yamcs_protobuf_activities_ActivityInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.activities.ActivityInfo.class, org.yamcs.protobuf.activities.ActivityInfo.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* Activity identifier
*
*
* optional string id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Activity identifier
*
*
* 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;
}
}
/**
*
* Activity identifier
*
*
* 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 START_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp start_;
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
* @return The start.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStart() {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
public static final int SEQ_FIELD_NUMBER = 3;
private int seq_;
/**
*
* Differentiator in case of multiple activities
* with the same start time
*
*
* optional uint32 seq = 3;
* @return Whether the seq field is set.
*/
@java.lang.Override
public boolean hasSeq() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Differentiator in case of multiple activities
* with the same start time
*
*
* optional uint32 seq = 3;
* @return The seq.
*/
@java.lang.Override
public int getSeq() {
return seq_;
}
public static final int STATUS_FIELD_NUMBER = 4;
private int status_;
/**
*
* Activity status
*
*
* optional .yamcs.protobuf.activities.ActivityStatus status = 4;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Activity status
*
*
* optional .yamcs.protobuf.activities.ActivityStatus status = 4;
* @return The status.
*/
@java.lang.Override public org.yamcs.protobuf.activities.ActivityStatus getStatus() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.activities.ActivityStatus result = org.yamcs.protobuf.activities.ActivityStatus.valueOf(status_);
return result == null ? org.yamcs.protobuf.activities.ActivityStatus.RUNNING : result;
}
public static final int STARTEDBY_FIELD_NUMBER = 5;
private volatile java.lang.Object startedBy_;
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @return Whether the startedBy field is set.
*/
@java.lang.Override
public boolean hasStartedBy() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @return The startedBy.
*/
@java.lang.Override
public java.lang.String getStartedBy() {
java.lang.Object ref = startedBy_;
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()) {
startedBy_ = s;
}
return s;
}
}
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @return The bytes for startedBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStartedByBytes() {
java.lang.Object ref = startedBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 6;
private volatile java.lang.Object type_;
/**
*
* Activity type
*
*
* optional string type = 6;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Activity type
*
*
* optional string type = 6;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
}
}
/**
*
* Activity type
*
*
* optional string type = 6;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARGS_FIELD_NUMBER = 7;
private com.google.protobuf.Struct args_;
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
* @return Whether the args field is set.
*/
@java.lang.Override
public boolean hasArgs() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
* @return The args.
*/
@java.lang.Override
public com.google.protobuf.Struct getArgs() {
return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_;
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_;
}
public static final int DETAIL_FIELD_NUMBER = 8;
private volatile java.lang.Object detail_;
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @return Whether the detail field is set.
*/
@java.lang.Override
public boolean hasDetail() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @return The detail.
*/
@java.lang.Override
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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()) {
detail_ = s;
}
return s;
}
}
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @return The bytes for detail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STOP_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp stop_;
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
* @return Whether the stop field is set.
*/
@java.lang.Override
public boolean hasStop() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
* @return The stop.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStop() {
return stop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStopOrBuilder() {
return stop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
}
public static final int STOPPEDBY_FIELD_NUMBER = 10;
private volatile java.lang.Object stoppedBy_;
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @return Whether the stoppedBy field is set.
*/
@java.lang.Override
public boolean hasStoppedBy() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @return The stoppedBy.
*/
@java.lang.Override
public java.lang.String getStoppedBy() {
java.lang.Object ref = stoppedBy_;
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()) {
stoppedBy_ = s;
}
return s;
}
}
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @return The bytes for stoppedBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStoppedByBytes() {
java.lang.Object ref = stoppedBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stoppedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FAILUREREASON_FIELD_NUMBER = 11;
private volatile java.lang.Object failureReason_;
/**
*
* If set, the activity is stopped, but failed
*
*
* optional string failureReason = 11;
* @return Whether the failureReason field is set.
*/
@java.lang.Override
public boolean hasFailureReason() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* If set, the activity is stopped, but failed
*
*
* 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;
}
}
/**
*
* If set, the activity is stopped, but failed
*
*
* 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;
}
}
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)) {
output.writeMessage(2, getStart());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, seq_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(4, status_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, startedBy_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getArgs());
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, detail_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(9, getStop());
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, stoppedBy_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, failureReason_);
}
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.CodedOutputStream
.computeMessageSize(2, getStart());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, seq_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, status_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, startedBy_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getArgs());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, detail_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getStop());
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, stoppedBy_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, failureReason_);
}
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.activities.ActivityInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.activities.ActivityInfo other = (org.yamcs.protobuf.activities.ActivityInfo) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (!getId()
.equals(other.getId())) return false;
}
if (hasStart() != other.hasStart()) return false;
if (hasStart()) {
if (!getStart()
.equals(other.getStart())) return false;
}
if (hasSeq() != other.hasSeq()) return false;
if (hasSeq()) {
if (getSeq()
!= other.getSeq()) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (status_ != other.status_) return false;
}
if (hasStartedBy() != other.hasStartedBy()) return false;
if (hasStartedBy()) {
if (!getStartedBy()
.equals(other.getStartedBy())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasArgs() != other.hasArgs()) return false;
if (hasArgs()) {
if (!getArgs()
.equals(other.getArgs())) return false;
}
if (hasDetail() != other.hasDetail()) return false;
if (hasDetail()) {
if (!getDetail()
.equals(other.getDetail())) return false;
}
if (hasStop() != other.hasStop()) return false;
if (hasStop()) {
if (!getStop()
.equals(other.getStop())) return false;
}
if (hasStoppedBy() != other.hasStoppedBy()) return false;
if (hasStoppedBy()) {
if (!getStoppedBy()
.equals(other.getStoppedBy())) return false;
}
if (hasFailureReason() != other.hasFailureReason()) return false;
if (hasFailureReason()) {
if (!getFailureReason()
.equals(other.getFailureReason())) 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 (hasStart()) {
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + getStart().hashCode();
}
if (hasSeq()) {
hash = (37 * hash) + SEQ_FIELD_NUMBER;
hash = (53 * hash) + getSeq();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
}
if (hasStartedBy()) {
hash = (37 * hash) + STARTEDBY_FIELD_NUMBER;
hash = (53 * hash) + getStartedBy().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasArgs()) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgs().hashCode();
}
if (hasDetail()) {
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
}
if (hasStop()) {
hash = (37 * hash) + STOP_FIELD_NUMBER;
hash = (53 * hash) + getStop().hashCode();
}
if (hasStoppedBy()) {
hash = (37 * hash) + STOPPEDBY_FIELD_NUMBER;
hash = (53 * hash) + getStoppedBy().hashCode();
}
if (hasFailureReason()) {
hash = (37 * hash) + FAILUREREASON_FIELD_NUMBER;
hash = (53 * hash) + getFailureReason().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.activities.ActivityInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.activities.ActivityInfo 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.activities.ActivityInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.activities.ActivityInfo 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.activities.ActivityInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.activities.ActivityInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.activities.ActivityInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.activities.ActivityInfo 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.activities.ActivityInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.activities.ActivityInfo 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.activities.ActivityInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.activities.ActivityInfo 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.activities.ActivityInfo 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.activities.ActivityInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.activities.ActivityInfo)
org.yamcs.protobuf.activities.ActivityInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.activities.ActivitiesProto.internal_static_yamcs_protobuf_activities_ActivityInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.activities.ActivitiesProto.internal_static_yamcs_protobuf_activities_ActivityInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.activities.ActivityInfo.class, org.yamcs.protobuf.activities.ActivityInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.activities.ActivityInfo.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();
getArgsFieldBuilder();
getStopFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (startBuilder_ == null) {
start_ = null;
} else {
startBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
seq_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 1;
bitField0_ = (bitField0_ & ~0x00000008);
startedBy_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
type_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
if (argsBuilder_ == null) {
args_ = null;
} else {
argsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
detail_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
if (stopBuilder_ == null) {
stop_ = null;
} else {
stopBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
stoppedBy_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
failureReason_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.activities.ActivitiesProto.internal_static_yamcs_protobuf_activities_ActivityInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.activities.ActivityInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.activities.ActivityInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.activities.ActivityInfo build() {
org.yamcs.protobuf.activities.ActivityInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.activities.ActivityInfo buildPartial() {
org.yamcs.protobuf.activities.ActivityInfo result = new org.yamcs.protobuf.activities.ActivityInfo(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)) {
if (startBuilder_ == null) {
result.start_ = start_;
} else {
result.start_ = startBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.seq_ = seq_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.startedBy_ = startedBy_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000040) != 0)) {
if (argsBuilder_ == null) {
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.detail_ = detail_;
if (((from_bitField0_ & 0x00000100) != 0)) {
if (stopBuilder_ == null) {
result.stop_ = stop_;
} else {
result.stop_ = stopBuilder_.build();
}
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.stoppedBy_ = stoppedBy_;
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000400;
}
result.failureReason_ = failureReason_;
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.activities.ActivityInfo) {
return mergeFrom((org.yamcs.protobuf.activities.ActivityInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.activities.ActivityInfo other) {
if (other == org.yamcs.protobuf.activities.ActivityInfo.getDefaultInstance()) return this;
if (other.hasId()) {
bitField0_ |= 0x00000001;
id_ = other.id_;
onChanged();
}
if (other.hasStart()) {
mergeStart(other.getStart());
}
if (other.hasSeq()) {
setSeq(other.getSeq());
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasStartedBy()) {
bitField0_ |= 0x00000010;
startedBy_ = other.startedBy_;
onChanged();
}
if (other.hasType()) {
bitField0_ |= 0x00000020;
type_ = other.type_;
onChanged();
}
if (other.hasArgs()) {
mergeArgs(other.getArgs());
}
if (other.hasDetail()) {
bitField0_ |= 0x00000080;
detail_ = other.detail_;
onChanged();
}
if (other.hasStop()) {
mergeStop(other.getStop());
}
if (other.hasStoppedBy()) {
bitField0_ |= 0x00000200;
stoppedBy_ = other.stoppedBy_;
onChanged();
}
if (other.hasFailureReason()) {
bitField0_ |= 0x00000400;
failureReason_ = other.failureReason_;
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.activities.ActivityInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.activities.ActivityInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object id_ = "";
/**
*
* Activity identifier
*
*
* optional string id = 1;
* @return Whether the id field is set.
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Activity identifier
*
*
* 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;
}
}
/**
*
* Activity identifier
*
*
* 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;
}
}
/**
*
* Activity identifier
*
*
* 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;
}
/**
*
* Activity identifier
*
*
* optional string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Activity identifier
*
*
* 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 com.google.protobuf.Timestamp start_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_;
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
* @return Whether the start field is set.
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
* @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();
}
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
*/
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_ |= 0x00000002;
return this;
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
*/
public Builder setStart(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startBuilder_ == null) {
start_ = builderForValue.build();
onChanged();
} else {
startBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
*/
public Builder mergeStart(com.google.protobuf.Timestamp value) {
if (startBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 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_ |= 0x00000002;
return this;
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
*/
public Builder clearStart() {
if (startBuilder_ == null) {
start_ = null;
onChanged();
} else {
startBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
*/
public com.google.protobuf.Timestamp.Builder getStartBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStartFieldBuilder().getBuilder();
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
*/
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
if (startBuilder_ != null) {
return startBuilder_.getMessageOrBuilder();
} else {
return start_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
}
/**
*
* Start time of the activity
*
*
* optional .google.protobuf.Timestamp start = 2;
*/
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 int seq_ ;
/**
*
* Differentiator in case of multiple activities
* with the same start time
*
*
* optional uint32 seq = 3;
* @return Whether the seq field is set.
*/
@java.lang.Override
public boolean hasSeq() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Differentiator in case of multiple activities
* with the same start time
*
*
* optional uint32 seq = 3;
* @return The seq.
*/
@java.lang.Override
public int getSeq() {
return seq_;
}
/**
*
* Differentiator in case of multiple activities
* with the same start time
*
*
* optional uint32 seq = 3;
* @param value The seq to set.
* @return This builder for chaining.
*/
public Builder setSeq(int value) {
bitField0_ |= 0x00000004;
seq_ = value;
onChanged();
return this;
}
/**
*
* Differentiator in case of multiple activities
* with the same start time
*
*
* optional uint32 seq = 3;
* @return This builder for chaining.
*/
public Builder clearSeq() {
bitField0_ = (bitField0_ & ~0x00000004);
seq_ = 0;
onChanged();
return this;
}
private int status_ = 1;
/**
*
* Activity status
*
*
* optional .yamcs.protobuf.activities.ActivityStatus status = 4;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Activity status
*
*
* optional .yamcs.protobuf.activities.ActivityStatus status = 4;
* @return The status.
*/
@java.lang.Override
public org.yamcs.protobuf.activities.ActivityStatus getStatus() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.activities.ActivityStatus result = org.yamcs.protobuf.activities.ActivityStatus.valueOf(status_);
return result == null ? org.yamcs.protobuf.activities.ActivityStatus.RUNNING : result;
}
/**
*
* Activity status
*
*
* optional .yamcs.protobuf.activities.ActivityStatus status = 4;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.yamcs.protobuf.activities.ActivityStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
status_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Activity status
*
*
* optional .yamcs.protobuf.activities.ActivityStatus status = 4;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000008);
status_ = 1;
onChanged();
return this;
}
private java.lang.Object startedBy_ = "";
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @return Whether the startedBy field is set.
*/
public boolean hasStartedBy() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @return The startedBy.
*/
public java.lang.String getStartedBy() {
java.lang.Object ref = startedBy_;
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()) {
startedBy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @return The bytes for startedBy.
*/
public com.google.protobuf.ByteString
getStartedByBytes() {
java.lang.Object ref = startedBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
startedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @param value The startedBy to set.
* @return This builder for chaining.
*/
public Builder setStartedBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
startedBy_ = value;
onChanged();
return this;
}
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @return This builder for chaining.
*/
public Builder clearStartedBy() {
bitField0_ = (bitField0_ & ~0x00000010);
startedBy_ = getDefaultInstance().getStartedBy();
onChanged();
return this;
}
/**
*
* User who started the run
*
*
* optional string startedBy = 5;
* @param value The bytes for startedBy to set.
* @return This builder for chaining.
*/
public Builder setStartedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
startedBy_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* Activity type
*
*
* optional string type = 6;
* @return Whether the type field is set.
*/
public boolean hasType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Activity type
*
*
* optional string type = 6;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Activity type
*
*
* optional string type = 6;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Activity type
*
*
* optional string type = 6;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
type_ = value;
onChanged();
return this;
}
/**
*
* Activity type
*
*
* optional string type = 6;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000020);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* Activity type
*
*
* optional string type = 6;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
type_ = value;
onChanged();
return this;
}
private com.google.protobuf.Struct args_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> argsBuilder_;
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
* @return Whether the args field is set.
*/
public boolean hasArgs() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
* @return The args.
*/
public com.google.protobuf.Struct getArgs() {
if (argsBuilder_ == null) {
return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_;
} else {
return argsBuilder_.getMessage();
}
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
*/
public Builder setArgs(com.google.protobuf.Struct value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
args_ = value;
onChanged();
} else {
argsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
*/
public Builder setArgs(
com.google.protobuf.Struct.Builder builderForValue) {
if (argsBuilder_ == null) {
args_ = builderForValue.build();
onChanged();
} else {
argsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
*/
public Builder mergeArgs(com.google.protobuf.Struct value) {
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
args_ != null &&
args_ != com.google.protobuf.Struct.getDefaultInstance()) {
args_ =
com.google.protobuf.Struct.newBuilder(args_).mergeFrom(value).buildPartial();
} else {
args_ = value;
}
onChanged();
} else {
argsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
*/
public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = null;
onChanged();
} else {
argsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
*/
public com.google.protobuf.Struct.Builder getArgsBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getArgsFieldBuilder().getBuilder();
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
*/
public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilder();
} else {
return args_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : args_;
}
}
/**
*
* Activity arguments
*
*
* optional .google.protobuf.Struct args = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getArgs(),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
private java.lang.Object detail_ = "";
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @return Whether the detail field is set.
*/
public boolean hasDetail() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @return The detail.
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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()) {
detail_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @return The bytes for detail.
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @param value The detail to set.
* @return This builder for chaining.
*/
public Builder setDetail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
detail_ = value;
onChanged();
return this;
}
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @return This builder for chaining.
*/
public Builder clearDetail() {
bitField0_ = (bitField0_ & ~0x00000080);
detail_ = getDefaultInstance().getDetail();
onChanged();
return this;
}
/**
*
* Activity detail (short descriptive)
*
*
* optional string detail = 8;
* @param value The bytes for detail to set.
* @return This builder for chaining.
*/
public Builder setDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
detail_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp stop_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stopBuilder_;
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
* @return Whether the stop field is set.
*/
public boolean hasStop() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
* @return The stop.
*/
public com.google.protobuf.Timestamp getStop() {
if (stopBuilder_ == null) {
return stop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
} else {
return stopBuilder_.getMessage();
}
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
*/
public Builder setStop(com.google.protobuf.Timestamp value) {
if (stopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stop_ = value;
onChanged();
} else {
stopBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
*/
public Builder setStop(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (stopBuilder_ == null) {
stop_ = builderForValue.build();
onChanged();
} else {
stopBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
*/
public Builder mergeStop(com.google.protobuf.Timestamp value) {
if (stopBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
stop_ != null &&
stop_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
stop_ =
com.google.protobuf.Timestamp.newBuilder(stop_).mergeFrom(value).buildPartial();
} else {
stop_ = value;
}
onChanged();
} else {
stopBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
*/
public Builder clearStop() {
if (stopBuilder_ == null) {
stop_ = null;
onChanged();
} else {
stopBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
*/
public com.google.protobuf.Timestamp.Builder getStopBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getStopFieldBuilder().getBuilder();
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
*/
public com.google.protobuf.TimestampOrBuilder getStopOrBuilder() {
if (stopBuilder_ != null) {
return stopBuilder_.getMessageOrBuilder();
} else {
return stop_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
}
}
/**
*
* Stop time of the activity run
*
*
* optional .google.protobuf.Timestamp stop = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStopFieldBuilder() {
if (stopBuilder_ == null) {
stopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStop(),
getParentForChildren(),
isClean());
stop_ = null;
}
return stopBuilder_;
}
private java.lang.Object stoppedBy_ = "";
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @return Whether the stoppedBy field is set.
*/
public boolean hasStoppedBy() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @return The stoppedBy.
*/
public java.lang.String getStoppedBy() {
java.lang.Object ref = stoppedBy_;
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()) {
stoppedBy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @return The bytes for stoppedBy.
*/
public com.google.protobuf.ByteString
getStoppedByBytes() {
java.lang.Object ref = stoppedBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stoppedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @param value The stoppedBy to set.
* @return This builder for chaining.
*/
public Builder setStoppedBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
stoppedBy_ = value;
onChanged();
return this;
}
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @return This builder for chaining.
*/
public Builder clearStoppedBy() {
bitField0_ = (bitField0_ & ~0x00000200);
stoppedBy_ = getDefaultInstance().getStoppedBy();
onChanged();
return this;
}
/**
*
* User who stopped the run. Only set if the activity
* was manually stopped
*
*
* optional string stoppedBy = 10;
* @param value The bytes for stoppedBy to set.
* @return This builder for chaining.
*/
public Builder setStoppedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
stoppedBy_ = value;
onChanged();
return this;
}
private java.lang.Object failureReason_ = "";
/**
*
* If set, the activity is stopped, but failed
*
*
* optional string failureReason = 11;
* @return Whether the failureReason field is set.
*/
public boolean hasFailureReason() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* If set, the activity is stopped, but failed
*
*
* 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;
}
}
/**
*
* If set, the activity is stopped, but failed
*
*
* 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;
}
}
/**
*
* If set, the activity is stopped, but failed
*
*
* 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_ |= 0x00000400;
failureReason_ = value;
onChanged();
return this;
}
/**
*
* If set, the activity is stopped, but failed
*
*
* optional string failureReason = 11;
* @return This builder for chaining.
*/
public Builder clearFailureReason() {
bitField0_ = (bitField0_ & ~0x00000400);
failureReason_ = getDefaultInstance().getFailureReason();
onChanged();
return this;
}
/**
*
* If set, the activity is stopped, but failed
*
*
* 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_ |= 0x00000400;
failureReason_ = 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.activities.ActivityInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.activities.ActivityInfo)
private static final org.yamcs.protobuf.activities.ActivityInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.activities.ActivityInfo();
}
public static org.yamcs.protobuf.activities.ActivityInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActivityInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ActivityInfo(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.activities.ActivityInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy