
org.yamcs.protobuf.ShelveInfo 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/alarms/alarms.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.alarms.ShelveInfo}
*/
public final class ShelveInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.alarms.ShelveInfo)
ShelveInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShelveInfo.newBuilder() to construct.
private ShelveInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShelveInfo() {
shelvedBy_ = "";
shelveMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ShelveInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ShelveInfo(
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;
shelvedBy_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
shelveMessage_ = bs;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = shelveTime_.toBuilder();
}
shelveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shelveTime_);
shelveTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = shelveExpiration_.toBuilder();
}
shelveExpiration_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shelveExpiration_);
shelveExpiration_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
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.AlarmsProto.internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_ShelveInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ShelveInfo.class, org.yamcs.protobuf.ShelveInfo.Builder.class);
}
private int bitField0_;
public static final int SHELVEDBY_FIELD_NUMBER = 1;
private volatile java.lang.Object shelvedBy_;
/**
* optional string shelvedBy = 1;
* @return Whether the shelvedBy field is set.
*/
@java.lang.Override
public boolean hasShelvedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string shelvedBy = 1;
* @return The shelvedBy.
*/
@java.lang.Override
public java.lang.String getShelvedBy() {
java.lang.Object ref = shelvedBy_;
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()) {
shelvedBy_ = s;
}
return s;
}
}
/**
* optional string shelvedBy = 1;
* @return The bytes for shelvedBy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getShelvedByBytes() {
java.lang.Object ref = shelvedBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shelvedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHELVEMESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object shelveMessage_;
/**
* optional string shelveMessage = 2;
* @return Whether the shelveMessage field is set.
*/
@java.lang.Override
public boolean hasShelveMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string shelveMessage = 2;
* @return The shelveMessage.
*/
@java.lang.Override
public java.lang.String getShelveMessage() {
java.lang.Object ref = shelveMessage_;
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()) {
shelveMessage_ = s;
}
return s;
}
}
/**
* optional string shelveMessage = 2;
* @return The bytes for shelveMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getShelveMessageBytes() {
java.lang.Object ref = shelveMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shelveMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHELVETIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp shelveTime_;
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
* @return Whether the shelveTime field is set.
*/
@java.lang.Override
public boolean hasShelveTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
* @return The shelveTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getShelveTime() {
return shelveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveTime_;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getShelveTimeOrBuilder() {
return shelveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveTime_;
}
public static final int SHELVEEXPIRATION_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp shelveExpiration_;
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
* @return Whether the shelveExpiration field is set.
*/
@java.lang.Override
public boolean hasShelveExpiration() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
* @return The shelveExpiration.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getShelveExpiration() {
return shelveExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveExpiration_;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getShelveExpirationOrBuilder() {
return shelveExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveExpiration_;
}
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, shelvedBy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shelveMessage_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getShelveTime());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getShelveExpiration());
}
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, shelvedBy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shelveMessage_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getShelveTime());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getShelveExpiration());
}
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.ShelveInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.ShelveInfo other = (org.yamcs.protobuf.ShelveInfo) obj;
if (hasShelvedBy() != other.hasShelvedBy()) return false;
if (hasShelvedBy()) {
if (!getShelvedBy()
.equals(other.getShelvedBy())) return false;
}
if (hasShelveMessage() != other.hasShelveMessage()) return false;
if (hasShelveMessage()) {
if (!getShelveMessage()
.equals(other.getShelveMessage())) return false;
}
if (hasShelveTime() != other.hasShelveTime()) return false;
if (hasShelveTime()) {
if (!getShelveTime()
.equals(other.getShelveTime())) return false;
}
if (hasShelveExpiration() != other.hasShelveExpiration()) return false;
if (hasShelveExpiration()) {
if (!getShelveExpiration()
.equals(other.getShelveExpiration())) 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 (hasShelvedBy()) {
hash = (37 * hash) + SHELVEDBY_FIELD_NUMBER;
hash = (53 * hash) + getShelvedBy().hashCode();
}
if (hasShelveMessage()) {
hash = (37 * hash) + SHELVEMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getShelveMessage().hashCode();
}
if (hasShelveTime()) {
hash = (37 * hash) + SHELVETIME_FIELD_NUMBER;
hash = (53 * hash) + getShelveTime().hashCode();
}
if (hasShelveExpiration()) {
hash = (37 * hash) + SHELVEEXPIRATION_FIELD_NUMBER;
hash = (53 * hash) + getShelveExpiration().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.ShelveInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ShelveInfo 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.ShelveInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ShelveInfo 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.ShelveInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ShelveInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ShelveInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ShelveInfo 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.ShelveInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ShelveInfo 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.ShelveInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ShelveInfo 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.ShelveInfo 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.alarms.ShelveInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.alarms.ShelveInfo)
org.yamcs.protobuf.ShelveInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_ShelveInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ShelveInfo.class, org.yamcs.protobuf.ShelveInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.ShelveInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getShelveTimeFieldBuilder();
getShelveExpirationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
shelvedBy_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
shelveMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (shelveTimeBuilder_ == null) {
shelveTime_ = null;
} else {
shelveTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (shelveExpirationBuilder_ == null) {
shelveExpiration_ = null;
} else {
shelveExpirationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.ShelveInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.ShelveInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.ShelveInfo build() {
org.yamcs.protobuf.ShelveInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.ShelveInfo buildPartial() {
org.yamcs.protobuf.ShelveInfo result = new org.yamcs.protobuf.ShelveInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.shelvedBy_ = shelvedBy_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.shelveMessage_ = shelveMessage_;
if (((from_bitField0_ & 0x00000004) != 0)) {
if (shelveTimeBuilder_ == null) {
result.shelveTime_ = shelveTime_;
} else {
result.shelveTime_ = shelveTimeBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (shelveExpirationBuilder_ == null) {
result.shelveExpiration_ = shelveExpiration_;
} else {
result.shelveExpiration_ = shelveExpirationBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
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.ShelveInfo) {
return mergeFrom((org.yamcs.protobuf.ShelveInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.ShelveInfo other) {
if (other == org.yamcs.protobuf.ShelveInfo.getDefaultInstance()) return this;
if (other.hasShelvedBy()) {
bitField0_ |= 0x00000001;
shelvedBy_ = other.shelvedBy_;
onChanged();
}
if (other.hasShelveMessage()) {
bitField0_ |= 0x00000002;
shelveMessage_ = other.shelveMessage_;
onChanged();
}
if (other.hasShelveTime()) {
mergeShelveTime(other.getShelveTime());
}
if (other.hasShelveExpiration()) {
mergeShelveExpiration(other.getShelveExpiration());
}
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.ShelveInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.ShelveInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object shelvedBy_ = "";
/**
* optional string shelvedBy = 1;
* @return Whether the shelvedBy field is set.
*/
public boolean hasShelvedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string shelvedBy = 1;
* @return The shelvedBy.
*/
public java.lang.String getShelvedBy() {
java.lang.Object ref = shelvedBy_;
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()) {
shelvedBy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string shelvedBy = 1;
* @return The bytes for shelvedBy.
*/
public com.google.protobuf.ByteString
getShelvedByBytes() {
java.lang.Object ref = shelvedBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shelvedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string shelvedBy = 1;
* @param value The shelvedBy to set.
* @return This builder for chaining.
*/
public Builder setShelvedBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
shelvedBy_ = value;
onChanged();
return this;
}
/**
* optional string shelvedBy = 1;
* @return This builder for chaining.
*/
public Builder clearShelvedBy() {
bitField0_ = (bitField0_ & ~0x00000001);
shelvedBy_ = getDefaultInstance().getShelvedBy();
onChanged();
return this;
}
/**
* optional string shelvedBy = 1;
* @param value The bytes for shelvedBy to set.
* @return This builder for chaining.
*/
public Builder setShelvedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
shelvedBy_ = value;
onChanged();
return this;
}
private java.lang.Object shelveMessage_ = "";
/**
* optional string shelveMessage = 2;
* @return Whether the shelveMessage field is set.
*/
public boolean hasShelveMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string shelveMessage = 2;
* @return The shelveMessage.
*/
public java.lang.String getShelveMessage() {
java.lang.Object ref = shelveMessage_;
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()) {
shelveMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string shelveMessage = 2;
* @return The bytes for shelveMessage.
*/
public com.google.protobuf.ByteString
getShelveMessageBytes() {
java.lang.Object ref = shelveMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shelveMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string shelveMessage = 2;
* @param value The shelveMessage to set.
* @return This builder for chaining.
*/
public Builder setShelveMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
shelveMessage_ = value;
onChanged();
return this;
}
/**
* optional string shelveMessage = 2;
* @return This builder for chaining.
*/
public Builder clearShelveMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
shelveMessage_ = getDefaultInstance().getShelveMessage();
onChanged();
return this;
}
/**
* optional string shelveMessage = 2;
* @param value The bytes for shelveMessage to set.
* @return This builder for chaining.
*/
public Builder setShelveMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
shelveMessage_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp shelveTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> shelveTimeBuilder_;
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
* @return Whether the shelveTime field is set.
*/
public boolean hasShelveTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
* @return The shelveTime.
*/
public com.google.protobuf.Timestamp getShelveTime() {
if (shelveTimeBuilder_ == null) {
return shelveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveTime_;
} else {
return shelveTimeBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public Builder setShelveTime(com.google.protobuf.Timestamp value) {
if (shelveTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shelveTime_ = value;
onChanged();
} else {
shelveTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public Builder setShelveTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (shelveTimeBuilder_ == null) {
shelveTime_ = builderForValue.build();
onChanged();
} else {
shelveTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public Builder mergeShelveTime(com.google.protobuf.Timestamp value) {
if (shelveTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
shelveTime_ != null &&
shelveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
shelveTime_ =
com.google.protobuf.Timestamp.newBuilder(shelveTime_).mergeFrom(value).buildPartial();
} else {
shelveTime_ = value;
}
onChanged();
} else {
shelveTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public Builder clearShelveTime() {
if (shelveTimeBuilder_ == null) {
shelveTime_ = null;
onChanged();
} else {
shelveTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public com.google.protobuf.Timestamp.Builder getShelveTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getShelveTimeFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public com.google.protobuf.TimestampOrBuilder getShelveTimeOrBuilder() {
if (shelveTimeBuilder_ != null) {
return shelveTimeBuilder_.getMessageOrBuilder();
} else {
return shelveTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : shelveTime_;
}
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getShelveTimeFieldBuilder() {
if (shelveTimeBuilder_ == null) {
shelveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getShelveTime(),
getParentForChildren(),
isClean());
shelveTime_ = null;
}
return shelveTimeBuilder_;
}
private com.google.protobuf.Timestamp shelveExpiration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> shelveExpirationBuilder_;
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
* @return Whether the shelveExpiration field is set.
*/
public boolean hasShelveExpiration() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
* @return The shelveExpiration.
*/
public com.google.protobuf.Timestamp getShelveExpiration() {
if (shelveExpirationBuilder_ == null) {
return shelveExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveExpiration_;
} else {
return shelveExpirationBuilder_.getMessage();
}
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public Builder setShelveExpiration(com.google.protobuf.Timestamp value) {
if (shelveExpirationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shelveExpiration_ = value;
onChanged();
} else {
shelveExpirationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public Builder setShelveExpiration(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (shelveExpirationBuilder_ == null) {
shelveExpiration_ = builderForValue.build();
onChanged();
} else {
shelveExpirationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public Builder mergeShelveExpiration(com.google.protobuf.Timestamp value) {
if (shelveExpirationBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
shelveExpiration_ != null &&
shelveExpiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
shelveExpiration_ =
com.google.protobuf.Timestamp.newBuilder(shelveExpiration_).mergeFrom(value).buildPartial();
} else {
shelveExpiration_ = value;
}
onChanged();
} else {
shelveExpirationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public Builder clearShelveExpiration() {
if (shelveExpirationBuilder_ == null) {
shelveExpiration_ = null;
onChanged();
} else {
shelveExpirationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public com.google.protobuf.Timestamp.Builder getShelveExpirationBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getShelveExpirationFieldBuilder().getBuilder();
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public com.google.protobuf.TimestampOrBuilder getShelveExpirationOrBuilder() {
if (shelveExpirationBuilder_ != null) {
return shelveExpirationBuilder_.getMessageOrBuilder();
} else {
return shelveExpiration_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : shelveExpiration_;
}
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getShelveExpirationFieldBuilder() {
if (shelveExpirationBuilder_ == null) {
shelveExpirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getShelveExpiration(),
getParentForChildren(),
isClean());
shelveExpiration_ = null;
}
return shelveExpirationBuilder_;
}
@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.alarms.ShelveInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.alarms.ShelveInfo)
private static final org.yamcs.protobuf.ShelveInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.ShelveInfo();
}
public static org.yamcs.protobuf.ShelveInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShelveInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ShelveInfo(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.ShelveInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy