
org.yamcs.protobuf.links.LinkInfo 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/links/links.proto
package org.yamcs.protobuf.links;
/**
* Protobuf type {@code yamcs.protobuf.links.LinkInfo}
*/
public final class LinkInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.links.LinkInfo)
LinkInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use LinkInfo.newBuilder() to construct.
private LinkInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LinkInfo() {
instance_ = "";
name_ = "";
type_ = "";
spec_ = "";
status_ = "";
detailedStatus_ = "";
parentName_ = "";
actions_ = java.util.Collections.emptyList();
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LinkInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LinkInfo(
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;
instance_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
name_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
type_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
spec_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000010;
disabled_ = input.readBool();
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
status_ = bs;
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
detailedStatus_ = bs;
break;
}
case 80: {
bitField0_ |= 0x00000040;
dataInCount_ = input.readInt64();
break;
}
case 88: {
bitField0_ |= 0x00000080;
dataOutCount_ = input.readInt64();
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
parentName_ = bs;
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000400) != 0)) {
actions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000400;
}
actions_.add(
input.readMessage(org.yamcs.protobuf.actions.ActionInfo.PARSER, extensionRegistry));
break;
}
case 114: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) != 0)) {
subBuilder = extra_.toBuilder();
}
extra_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(extra_);
extra_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 122: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00001000) != 0)) {
parameters_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00001000;
}
parameters_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000400) != 0)) {
actions_ = java.util.Collections.unmodifiableList(actions_);
}
if (((mutable_bitField0_ & 0x00001000) != 0)) {
parameters_ = parameters_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.links.LinksServiceProto.internal_static_yamcs_protobuf_links_LinkInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.links.LinksServiceProto.internal_static_yamcs_protobuf_links_LinkInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.links.LinkInfo.class, org.yamcs.protobuf.links.LinkInfo.Builder.class);
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object instance_;
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
@java.lang.Override
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The instance.
*/
@java.lang.Override
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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()) {
instance_ = s;
}
return s;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
* Link name
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Link name
*
*
* optional string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Link name
*
*
* optional string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private volatile java.lang.Object type_;
/**
*
* Java class name
*
*
* optional string type = 3;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Java class name
*
*
* optional string type = 3;
* @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;
}
}
/**
*
* Java class name
*
*
* optional string type = 3;
* @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 SPEC_FIELD_NUMBER = 4;
private volatile java.lang.Object spec_;
/**
*
* Configuration
*
*
* optional string spec = 4;
* @return Whether the spec field is set.
*/
@java.lang.Override
public boolean hasSpec() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Configuration
*
*
* optional string spec = 4;
* @return The spec.
*/
@java.lang.Override
public java.lang.String getSpec() {
java.lang.Object ref = spec_;
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()) {
spec_ = s;
}
return s;
}
}
/**
*
* Configuration
*
*
* optional string spec = 4;
* @return The bytes for spec.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSpecBytes() {
java.lang.Object ref = spec_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
spec_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISABLED_FIELD_NUMBER = 6;
private boolean disabled_;
/**
*
* Whether this link is currently disabled.
*
*
* optional bool disabled = 6;
* @return Whether the disabled field is set.
*/
@java.lang.Override
public boolean hasDisabled() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Whether this link is currently disabled.
*
*
* optional bool disabled = 6;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
public static final int STATUS_FIELD_NUMBER = 7;
private volatile java.lang.Object status_;
/**
* optional string status = 7;
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string status = 7;
* @return The status.
*/
@java.lang.Override
public java.lang.String getStatus() {
java.lang.Object ref = status_;
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()) {
status_ = s;
}
return s;
}
}
/**
* optional string status = 7;
* @return The bytes for status.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATAINCOUNT_FIELD_NUMBER = 10;
private long dataInCount_;
/**
*
* Counter of inbound (received) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataInCount = 10;
* @return Whether the dataInCount field is set.
*/
@java.lang.Override
public boolean hasDataInCount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Counter of inbound (received) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataInCount = 10;
* @return The dataInCount.
*/
@java.lang.Override
public long getDataInCount() {
return dataInCount_;
}
public static final int DATAOUTCOUNT_FIELD_NUMBER = 11;
private long dataOutCount_;
/**
*
* Counter of outbound (transmitted) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataOutCount = 11;
* @return Whether the dataOutCount field is set.
*/
@java.lang.Override
public boolean hasDataOutCount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Counter of outbound (transmitted) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataOutCount = 11;
* @return The dataOutCount.
*/
@java.lang.Override
public long getDataOutCount() {
return dataOutCount_;
}
public static final int DETAILEDSTATUS_FIELD_NUMBER = 9;
private volatile java.lang.Object detailedStatus_;
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @return Whether the detailedStatus field is set.
*/
@java.lang.Override
public boolean hasDetailedStatus() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @return The detailedStatus.
*/
@java.lang.Override
public java.lang.String getDetailedStatus() {
java.lang.Object ref = detailedStatus_;
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()) {
detailedStatus_ = s;
}
return s;
}
}
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @return The bytes for detailedStatus.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDetailedStatusBytes() {
java.lang.Object ref = detailedStatus_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detailedStatus_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PARENTNAME_FIELD_NUMBER = 12;
private volatile java.lang.Object parentName_;
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @return Whether the parentName field is set.
*/
@java.lang.Override
public boolean hasParentName() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @return The parentName.
*/
@java.lang.Override
public java.lang.String getParentName() {
java.lang.Object ref = parentName_;
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()) {
parentName_ = s;
}
return s;
}
}
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @return The bytes for parentName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParentNameBytes() {
java.lang.Object ref = parentName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTIONS_FIELD_NUMBER = 13;
private java.util.List actions_;
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
@java.lang.Override
public java.util.List getActionsList() {
return actions_;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.actions.ActionInfoOrBuilder>
getActionsOrBuilderList() {
return actions_;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
@java.lang.Override
public int getActionsCount() {
return actions_.size();
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
@java.lang.Override
public org.yamcs.protobuf.actions.ActionInfo getActions(int index) {
return actions_.get(index);
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
@java.lang.Override
public org.yamcs.protobuf.actions.ActionInfoOrBuilder getActionsOrBuilder(
int index) {
return actions_.get(index);
}
public static final int EXTRA_FIELD_NUMBER = 14;
private com.google.protobuf.Struct extra_;
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
* @return Whether the extra field is set.
*/
@java.lang.Override
public boolean hasExtra() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
* @return The extra.
*/
@java.lang.Override
public com.google.protobuf.Struct getExtra() {
return extra_ == null ? com.google.protobuf.Struct.getDefaultInstance() : extra_;
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getExtraOrBuilder() {
return extra_ == null ? com.google.protobuf.Struct.getDefaultInstance() : extra_;
}
public static final int PARAMETERS_FIELD_NUMBER = 15;
private com.google.protobuf.LazyStringList parameters_;
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @return A list containing the parameters.
*/
public com.google.protobuf.ProtocolStringList
getParametersList() {
return parameters_;
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @return The count of parameters.
*/
public int getParametersCount() {
return parameters_.size();
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @param index The index of the element to return.
* @return The parameters at the given index.
*/
public java.lang.String getParameters(int index) {
return parameters_.get(index);
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @param index The index of the value to return.
* @return The bytes of the parameters at the given index.
*/
public com.google.protobuf.ByteString
getParametersBytes(int index) {
return parameters_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, spec_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(6, disabled_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, status_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, detailedStatus_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(10, dataInCount_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(11, dataOutCount_);
}
if (((bitField0_ & 0x00000200) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, parentName_);
}
for (int i = 0; i < actions_.size(); i++) {
output.writeMessage(13, actions_.get(i));
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(14, getExtra());
}
for (int i = 0; i < parameters_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, parameters_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, spec_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, disabled_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, status_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, detailedStatus_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, dataInCount_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(11, dataOutCount_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, parentName_);
}
for (int i = 0; i < actions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, actions_.get(i));
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getExtra());
}
{
int dataSize = 0;
for (int i = 0; i < parameters_.size(); i++) {
dataSize += computeStringSizeNoTag(parameters_.getRaw(i));
}
size += dataSize;
size += 1 * getParametersList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.yamcs.protobuf.links.LinkInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.links.LinkInfo other = (org.yamcs.protobuf.links.LinkInfo) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasSpec() != other.hasSpec()) return false;
if (hasSpec()) {
if (!getSpec()
.equals(other.getSpec())) return false;
}
if (hasDisabled() != other.hasDisabled()) return false;
if (hasDisabled()) {
if (getDisabled()
!= other.getDisabled()) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (hasDataInCount() != other.hasDataInCount()) return false;
if (hasDataInCount()) {
if (getDataInCount()
!= other.getDataInCount()) return false;
}
if (hasDataOutCount() != other.hasDataOutCount()) return false;
if (hasDataOutCount()) {
if (getDataOutCount()
!= other.getDataOutCount()) return false;
}
if (hasDetailedStatus() != other.hasDetailedStatus()) return false;
if (hasDetailedStatus()) {
if (!getDetailedStatus()
.equals(other.getDetailedStatus())) return false;
}
if (hasParentName() != other.hasParentName()) return false;
if (hasParentName()) {
if (!getParentName()
.equals(other.getParentName())) return false;
}
if (!getActionsList()
.equals(other.getActionsList())) return false;
if (hasExtra() != other.hasExtra()) return false;
if (hasExtra()) {
if (!getExtra()
.equals(other.getExtra())) return false;
}
if (!getParametersList()
.equals(other.getParametersList())) 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 (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasDisabled()) {
hash = (37 * hash) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisabled());
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasDataInCount()) {
hash = (37 * hash) + DATAINCOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataInCount());
}
if (hasDataOutCount()) {
hash = (37 * hash) + DATAOUTCOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataOutCount());
}
if (hasDetailedStatus()) {
hash = (37 * hash) + DETAILEDSTATUS_FIELD_NUMBER;
hash = (53 * hash) + getDetailedStatus().hashCode();
}
if (hasParentName()) {
hash = (37 * hash) + PARENTNAME_FIELD_NUMBER;
hash = (53 * hash) + getParentName().hashCode();
}
if (getActionsCount() > 0) {
hash = (37 * hash) + ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getActionsList().hashCode();
}
if (hasExtra()) {
hash = (37 * hash) + EXTRA_FIELD_NUMBER;
hash = (53 * hash) + getExtra().hashCode();
}
if (getParametersCount() > 0) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParametersList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.links.LinkInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.links.LinkInfo 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.links.LinkInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.links.LinkInfo 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.links.LinkInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.links.LinkInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.links.LinkInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.links.LinkInfo 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.links.LinkInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.links.LinkInfo 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.links.LinkInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.links.LinkInfo 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.links.LinkInfo 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.links.LinkInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.links.LinkInfo)
org.yamcs.protobuf.links.LinkInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.links.LinksServiceProto.internal_static_yamcs_protobuf_links_LinkInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.links.LinksServiceProto.internal_static_yamcs_protobuf_links_LinkInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.links.LinkInfo.class, org.yamcs.protobuf.links.LinkInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.links.LinkInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getActionsFieldBuilder();
getExtraFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
type_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
spec_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
disabled_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
status_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
dataInCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
dataOutCount_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
detailedStatus_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
parentName_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
if (actionsBuilder_ == null) {
actions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
} else {
actionsBuilder_.clear();
}
if (extraBuilder_ == null) {
extra_ = null;
} else {
extraBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.links.LinksServiceProto.internal_static_yamcs_protobuf_links_LinkInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.links.LinkInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.links.LinkInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.links.LinkInfo build() {
org.yamcs.protobuf.links.LinkInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.links.LinkInfo buildPartial() {
org.yamcs.protobuf.links.LinkInfo result = new org.yamcs.protobuf.links.LinkInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.spec_ = spec_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.disabled_ = disabled_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.status_ = status_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.dataInCount_ = dataInCount_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.dataOutCount_ = dataOutCount_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.detailedStatus_ = detailedStatus_;
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.parentName_ = parentName_;
if (actionsBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0)) {
actions_ = java.util.Collections.unmodifiableList(actions_);
bitField0_ = (bitField0_ & ~0x00000400);
}
result.actions_ = actions_;
} else {
result.actions_ = actionsBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) != 0)) {
if (extraBuilder_ == null) {
result.extra_ = extra_;
} else {
result.extra_ = extraBuilder_.build();
}
to_bitField0_ |= 0x00000400;
}
if (((bitField0_ & 0x00001000) != 0)) {
parameters_ = parameters_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00001000);
}
result.parameters_ = parameters_;
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.links.LinkInfo) {
return mergeFrom((org.yamcs.protobuf.links.LinkInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.links.LinkInfo other) {
if (other == org.yamcs.protobuf.links.LinkInfo.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasType()) {
bitField0_ |= 0x00000004;
type_ = other.type_;
onChanged();
}
if (other.hasSpec()) {
bitField0_ |= 0x00000008;
spec_ = other.spec_;
onChanged();
}
if (other.hasDisabled()) {
setDisabled(other.getDisabled());
}
if (other.hasStatus()) {
bitField0_ |= 0x00000020;
status_ = other.status_;
onChanged();
}
if (other.hasDataInCount()) {
setDataInCount(other.getDataInCount());
}
if (other.hasDataOutCount()) {
setDataOutCount(other.getDataOutCount());
}
if (other.hasDetailedStatus()) {
bitField0_ |= 0x00000100;
detailedStatus_ = other.detailedStatus_;
onChanged();
}
if (other.hasParentName()) {
bitField0_ |= 0x00000200;
parentName_ = other.parentName_;
onChanged();
}
if (actionsBuilder_ == null) {
if (!other.actions_.isEmpty()) {
if (actions_.isEmpty()) {
actions_ = other.actions_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureActionsIsMutable();
actions_.addAll(other.actions_);
}
onChanged();
}
} else {
if (!other.actions_.isEmpty()) {
if (actionsBuilder_.isEmpty()) {
actionsBuilder_.dispose();
actionsBuilder_ = null;
actions_ = other.actions_;
bitField0_ = (bitField0_ & ~0x00000400);
actionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getActionsFieldBuilder() : null;
} else {
actionsBuilder_.addAllMessages(other.actions_);
}
}
}
if (other.hasExtra()) {
mergeExtra(other.getExtra());
}
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
}
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.links.LinkInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.links.LinkInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The instance.
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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()) {
instance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @param value The instance to set.
* @return This builder for chaining.
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @return This builder for chaining.
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 1;
* @param value The bytes for instance to set.
* @return This builder for chaining.
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Link name
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Link name
*
*
* optional string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Link name
*
*
* optional string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Link name
*
*
* optional string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
*
* Link name
*
*
* optional string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Link name
*
*
* optional string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* Java class name
*
*
* optional string type = 3;
* @return Whether the type field is set.
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Java class name
*
*
* optional string type = 3;
* @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;
}
}
/**
*
* Java class name
*
*
* optional string type = 3;
* @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;
}
}
/**
*
* Java class name
*
*
* optional string type = 3;
* @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_ |= 0x00000004;
type_ = value;
onChanged();
return this;
}
/**
*
* Java class name
*
*
* optional string type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* Java class name
*
*
* optional string type = 3;
* @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_ |= 0x00000004;
type_ = value;
onChanged();
return this;
}
private java.lang.Object spec_ = "";
/**
*
* Configuration
*
*
* optional string spec = 4;
* @return Whether the spec field is set.
*/
public boolean hasSpec() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Configuration
*
*
* optional string spec = 4;
* @return The spec.
*/
public java.lang.String getSpec() {
java.lang.Object ref = spec_;
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()) {
spec_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Configuration
*
*
* optional string spec = 4;
* @return The bytes for spec.
*/
public com.google.protobuf.ByteString
getSpecBytes() {
java.lang.Object ref = spec_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
spec_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Configuration
*
*
* optional string spec = 4;
* @param value The spec to set.
* @return This builder for chaining.
*/
public Builder setSpec(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
spec_ = value;
onChanged();
return this;
}
/**
*
* Configuration
*
*
* optional string spec = 4;
* @return This builder for chaining.
*/
public Builder clearSpec() {
bitField0_ = (bitField0_ & ~0x00000008);
spec_ = getDefaultInstance().getSpec();
onChanged();
return this;
}
/**
*
* Configuration
*
*
* optional string spec = 4;
* @param value The bytes for spec to set.
* @return This builder for chaining.
*/
public Builder setSpecBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
spec_ = value;
onChanged();
return this;
}
private boolean disabled_ ;
/**
*
* Whether this link is currently disabled.
*
*
* optional bool disabled = 6;
* @return Whether the disabled field is set.
*/
@java.lang.Override
public boolean hasDisabled() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Whether this link is currently disabled.
*
*
* optional bool disabled = 6;
* @return The disabled.
*/
@java.lang.Override
public boolean getDisabled() {
return disabled_;
}
/**
*
* Whether this link is currently disabled.
*
*
* optional bool disabled = 6;
* @param value The disabled to set.
* @return This builder for chaining.
*/
public Builder setDisabled(boolean value) {
bitField0_ |= 0x00000010;
disabled_ = value;
onChanged();
return this;
}
/**
*
* Whether this link is currently disabled.
*
*
* optional bool disabled = 6;
* @return This builder for chaining.
*/
public Builder clearDisabled() {
bitField0_ = (bitField0_ & ~0x00000010);
disabled_ = false;
onChanged();
return this;
}
private java.lang.Object status_ = "";
/**
* optional string status = 7;
* @return Whether the status field is set.
*/
public boolean hasStatus() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string status = 7;
* @return The status.
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
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()) {
status_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string status = 7;
* @return The bytes for status.
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string status = 7;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
status_ = value;
onChanged();
return this;
}
/**
* optional string status = 7;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000020);
status_ = getDefaultInstance().getStatus();
onChanged();
return this;
}
/**
* optional string status = 7;
* @param value The bytes for status to set.
* @return This builder for chaining.
*/
public Builder setStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
status_ = value;
onChanged();
return this;
}
private long dataInCount_ ;
/**
*
* Counter of inbound (received) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataInCount = 10;
* @return Whether the dataInCount field is set.
*/
@java.lang.Override
public boolean hasDataInCount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Counter of inbound (received) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataInCount = 10;
* @return The dataInCount.
*/
@java.lang.Override
public long getDataInCount() {
return dataInCount_;
}
/**
*
* Counter of inbound (received) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataInCount = 10;
* @param value The dataInCount to set.
* @return This builder for chaining.
*/
public Builder setDataInCount(long value) {
bitField0_ |= 0x00000040;
dataInCount_ = value;
onChanged();
return this;
}
/**
*
* Counter of inbound (received) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataInCount = 10;
* @return This builder for chaining.
*/
public Builder clearDataInCount() {
bitField0_ = (bitField0_ & ~0x00000040);
dataInCount_ = 0L;
onChanged();
return this;
}
private long dataOutCount_ ;
/**
*
* Counter of outbound (transmitted) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataOutCount = 11;
* @return Whether the dataOutCount field is set.
*/
@java.lang.Override
public boolean hasDataOutCount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Counter of outbound (transmitted) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataOutCount = 11;
* @return The dataOutCount.
*/
@java.lang.Override
public long getDataOutCount() {
return dataOutCount_;
}
/**
*
* Counter of outbound (transmitted) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataOutCount = 11;
* @param value The dataOutCount to set.
* @return This builder for chaining.
*/
public Builder setDataOutCount(long value) {
bitField0_ |= 0x00000080;
dataOutCount_ = value;
onChanged();
return this;
}
/**
*
* Counter of outbound (transmitted) data.
* The unit of this is specific to each link.
*
*
* optional int64 dataOutCount = 11;
* @return This builder for chaining.
*/
public Builder clearDataOutCount() {
bitField0_ = (bitField0_ & ~0x00000080);
dataOutCount_ = 0L;
onChanged();
return this;
}
private java.lang.Object detailedStatus_ = "";
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @return Whether the detailedStatus field is set.
*/
public boolean hasDetailedStatus() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @return The detailedStatus.
*/
public java.lang.String getDetailedStatus() {
java.lang.Object ref = detailedStatus_;
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()) {
detailedStatus_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @return The bytes for detailedStatus.
*/
public com.google.protobuf.ByteString
getDetailedStatusBytes() {
java.lang.Object ref = detailedStatus_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detailedStatus_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @param value The detailedStatus to set.
* @return This builder for chaining.
*/
public Builder setDetailedStatus(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
detailedStatus_ = value;
onChanged();
return this;
}
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @return This builder for chaining.
*/
public Builder clearDetailedStatus() {
bitField0_ = (bitField0_ & ~0x00000100);
detailedStatus_ = getDefaultInstance().getDetailedStatus();
onChanged();
return this;
}
/**
*
* Short status information
*
*
* optional string detailedStatus = 9;
* @param value The bytes for detailedStatus to set.
* @return This builder for chaining.
*/
public Builder setDetailedStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
detailedStatus_ = value;
onChanged();
return this;
}
private java.lang.Object parentName_ = "";
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @return Whether the parentName field is set.
*/
public boolean hasParentName() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @return The parentName.
*/
public java.lang.String getParentName() {
java.lang.Object ref = parentName_;
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()) {
parentName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @return The bytes for parentName.
*/
public com.google.protobuf.ByteString
getParentNameBytes() {
java.lang.Object ref = parentName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parentName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @param value The parentName to set.
* @return This builder for chaining.
*/
public Builder setParentName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
parentName_ = value;
onChanged();
return this;
}
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @return This builder for chaining.
*/
public Builder clearParentName() {
bitField0_ = (bitField0_ & ~0x00000200);
parentName_ = getDefaultInstance().getParentName();
onChanged();
return this;
}
/**
*
*if this is a sublink of an aggregated data link, this is the name of the parent
*
*
* optional string parentName = 12;
* @param value The bytes for parentName to set.
* @return This builder for chaining.
*/
public Builder setParentNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
parentName_ = value;
onChanged();
return this;
}
private java.util.List actions_ =
java.util.Collections.emptyList();
private void ensureActionsIsMutable() {
if (!((bitField0_ & 0x00000400) != 0)) {
actions_ = new java.util.ArrayList(actions_);
bitField0_ |= 0x00000400;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.actions.ActionInfo, org.yamcs.protobuf.actions.ActionInfo.Builder, org.yamcs.protobuf.actions.ActionInfoOrBuilder> actionsBuilder_;
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public java.util.List getActionsList() {
if (actionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(actions_);
} else {
return actionsBuilder_.getMessageList();
}
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public int getActionsCount() {
if (actionsBuilder_ == null) {
return actions_.size();
} else {
return actionsBuilder_.getCount();
}
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public org.yamcs.protobuf.actions.ActionInfo getActions(int index) {
if (actionsBuilder_ == null) {
return actions_.get(index);
} else {
return actionsBuilder_.getMessage(index);
}
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder setActions(
int index, org.yamcs.protobuf.actions.ActionInfo value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.set(index, value);
onChanged();
} else {
actionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder setActions(
int index, org.yamcs.protobuf.actions.ActionInfo.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.set(index, builderForValue.build());
onChanged();
} else {
actionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder addActions(org.yamcs.protobuf.actions.ActionInfo value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.add(value);
onChanged();
} else {
actionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder addActions(
int index, org.yamcs.protobuf.actions.ActionInfo value) {
if (actionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureActionsIsMutable();
actions_.add(index, value);
onChanged();
} else {
actionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder addActions(
org.yamcs.protobuf.actions.ActionInfo.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(builderForValue.build());
onChanged();
} else {
actionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder addActions(
int index, org.yamcs.protobuf.actions.ActionInfo.Builder builderForValue) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.add(index, builderForValue.build());
onChanged();
} else {
actionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder addAllActions(
java.lang.Iterable extends org.yamcs.protobuf.actions.ActionInfo> values) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, actions_);
onChanged();
} else {
actionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder clearActions() {
if (actionsBuilder_ == null) {
actions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
} else {
actionsBuilder_.clear();
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public Builder removeActions(int index) {
if (actionsBuilder_ == null) {
ensureActionsIsMutable();
actions_.remove(index);
onChanged();
} else {
actionsBuilder_.remove(index);
}
return this;
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public org.yamcs.protobuf.actions.ActionInfo.Builder getActionsBuilder(
int index) {
return getActionsFieldBuilder().getBuilder(index);
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public org.yamcs.protobuf.actions.ActionInfoOrBuilder getActionsOrBuilder(
int index) {
if (actionsBuilder_ == null) {
return actions_.get(index); } else {
return actionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public java.util.List extends org.yamcs.protobuf.actions.ActionInfoOrBuilder>
getActionsOrBuilderList() {
if (actionsBuilder_ != null) {
return actionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(actions_);
}
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public org.yamcs.protobuf.actions.ActionInfo.Builder addActionsBuilder() {
return getActionsFieldBuilder().addBuilder(
org.yamcs.protobuf.actions.ActionInfo.getDefaultInstance());
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public org.yamcs.protobuf.actions.ActionInfo.Builder addActionsBuilder(
int index) {
return getActionsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.actions.ActionInfo.getDefaultInstance());
}
/**
*
* Custom actions
*
*
* repeated .yamcs.protobuf.actions.ActionInfo actions = 13;
*/
public java.util.List
getActionsBuilderList() {
return getActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.actions.ActionInfo, org.yamcs.protobuf.actions.ActionInfo.Builder, org.yamcs.protobuf.actions.ActionInfoOrBuilder>
getActionsFieldBuilder() {
if (actionsBuilder_ == null) {
actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.actions.ActionInfo, org.yamcs.protobuf.actions.ActionInfo.Builder, org.yamcs.protobuf.actions.ActionInfoOrBuilder>(
actions_,
((bitField0_ & 0x00000400) != 0),
getParentForChildren(),
isClean());
actions_ = null;
}
return actionsBuilder_;
}
private com.google.protobuf.Struct extra_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> extraBuilder_;
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
* @return Whether the extra field is set.
*/
public boolean hasExtra() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
* @return The extra.
*/
public com.google.protobuf.Struct getExtra() {
if (extraBuilder_ == null) {
return extra_ == null ? com.google.protobuf.Struct.getDefaultInstance() : extra_;
} else {
return extraBuilder_.getMessage();
}
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
*/
public Builder setExtra(com.google.protobuf.Struct value) {
if (extraBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
extra_ = value;
onChanged();
} else {
extraBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
*/
public Builder setExtra(
com.google.protobuf.Struct.Builder builderForValue) {
if (extraBuilder_ == null) {
extra_ = builderForValue.build();
onChanged();
} else {
extraBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
*/
public Builder mergeExtra(com.google.protobuf.Struct value) {
if (extraBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
extra_ != null &&
extra_ != com.google.protobuf.Struct.getDefaultInstance()) {
extra_ =
com.google.protobuf.Struct.newBuilder(extra_).mergeFrom(value).buildPartial();
} else {
extra_ = value;
}
onChanged();
} else {
extraBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
*/
public Builder clearExtra() {
if (extraBuilder_ == null) {
extra_ = null;
onChanged();
} else {
extraBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
*/
public com.google.protobuf.Struct.Builder getExtraBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getExtraFieldBuilder().getBuilder();
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
*/
public com.google.protobuf.StructOrBuilder getExtraOrBuilder() {
if (extraBuilder_ != null) {
return extraBuilder_.getMessageOrBuilder();
} else {
return extra_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : extra_;
}
}
/**
*
* Custom info fields
*
*
* optional .google.protobuf.Struct extra = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getExtraFieldBuilder() {
if (extraBuilder_ == null) {
extraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getExtra(),
getParentForChildren(),
isClean());
extra_ = null;
}
return extraBuilder_;
}
private com.google.protobuf.LazyStringList parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureParametersIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
parameters_ = new com.google.protobuf.LazyStringArrayList(parameters_);
bitField0_ |= 0x00001000;
}
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @return A list containing the parameters.
*/
public com.google.protobuf.ProtocolStringList
getParametersList() {
return parameters_.getUnmodifiableView();
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @return The count of parameters.
*/
public int getParametersCount() {
return parameters_.size();
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @param index The index of the element to return.
* @return The parameters at the given index.
*/
public java.lang.String getParameters(int index) {
return parameters_.get(index);
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @param index The index of the value to return.
* @return The bytes of the parameters at the given index.
*/
public com.google.protobuf.ByteString
getParametersBytes(int index) {
return parameters_.getByteString(index);
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @param index The index to set the value at.
* @param value The parameters to set.
* @return This builder for chaining.
*/
public Builder setParameters(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.set(index, value);
onChanged();
return this;
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @param value The parameters to add.
* @return This builder for chaining.
*/
public Builder addParameters(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
return this;
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @param values The parameters to add.
* @return This builder for chaining.
*/
public Builder addAllParameters(
java.lang.Iterable values) {
ensureParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameters_);
onChanged();
return this;
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @return This builder for chaining.
*/
public Builder clearParameters() {
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
* System parameters generated by this link
*
*
* repeated string parameters = 15;
* @param value The bytes of the parameters to add.
* @return This builder for chaining.
*/
public Builder addParametersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.links.LinkInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.links.LinkInfo)
private static final org.yamcs.protobuf.links.LinkInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.links.LinkInfo();
}
public static org.yamcs.protobuf.links.LinkInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LinkInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LinkInfo(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.links.LinkInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy