
org.yamcs.protobuf.TmStatistics 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/yamcsManagement/yamcsManagement.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.yamcsManagement.TmStatistics}
*/
public final class TmStatistics extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.yamcsManagement.TmStatistics)
TmStatisticsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TmStatistics.newBuilder() to construct.
private TmStatistics(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TmStatistics() {
packetName_ = "";
qualifiedName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TmStatistics();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TmStatistics(
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;
packetName_ = bs;
break;
}
case 16: {
bitField0_ |= 0x00000004;
receivedPackets_ = input.readInt64();
break;
}
case 48: {
bitField0_ |= 0x00000008;
subscribedParameterCount_ = input.readInt32();
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
qualifiedName_ = bs;
break;
}
case 82: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = lastReceived_.toBuilder();
}
lastReceived_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastReceived_);
lastReceived_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 90: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) != 0)) {
subBuilder = lastPacketTime_.toBuilder();
}
lastPacketTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastPacketTime_);
lastPacketTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 96: {
bitField0_ |= 0x00000040;
packetRate_ = input.readInt64();
break;
}
case 104: {
bitField0_ |= 0x00000080;
dataRate_ = input.readInt64();
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.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_TmStatistics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_TmStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.TmStatistics.class, org.yamcs.protobuf.TmStatistics.Builder.class);
}
private int bitField0_;
public static final int PACKETNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object packetName_;
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @return Whether the packetName field is set.
*/
@java.lang.Override
public boolean hasPacketName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @return The packetName.
*/
@java.lang.Override
public java.lang.String getPacketName() {
java.lang.Object ref = packetName_;
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()) {
packetName_ = s;
}
return s;
}
}
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @return The bytes for packetName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPacketNameBytes() {
java.lang.Object ref = packetName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
packetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUALIFIEDNAME_FIELD_NUMBER = 9;
private volatile java.lang.Object qualifiedName_;
/**
* optional string qualifiedName = 9;
* @return Whether the qualifiedName field is set.
*/
@java.lang.Override
public boolean hasQualifiedName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string qualifiedName = 9;
* @return The qualifiedName.
*/
@java.lang.Override
public java.lang.String getQualifiedName() {
java.lang.Object ref = qualifiedName_;
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()) {
qualifiedName_ = s;
}
return s;
}
}
/**
* optional string qualifiedName = 9;
* @return The bytes for qualifiedName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQualifiedNameBytes() {
java.lang.Object ref = qualifiedName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qualifiedName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RECEIVEDPACKETS_FIELD_NUMBER = 2;
private long receivedPackets_;
/**
* optional int64 receivedPackets = 2;
* @return Whether the receivedPackets field is set.
*/
@java.lang.Override
public boolean hasReceivedPackets() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 receivedPackets = 2;
* @return The receivedPackets.
*/
@java.lang.Override
public long getReceivedPackets() {
return receivedPackets_;
}
public static final int SUBSCRIBEDPARAMETERCOUNT_FIELD_NUMBER = 6;
private int subscribedParameterCount_;
/**
* optional int32 subscribedParameterCount = 6;
* @return Whether the subscribedParameterCount field is set.
*/
@java.lang.Override
public boolean hasSubscribedParameterCount() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int32 subscribedParameterCount = 6;
* @return The subscribedParameterCount.
*/
@java.lang.Override
public int getSubscribedParameterCount() {
return subscribedParameterCount_;
}
public static final int LASTRECEIVED_FIELD_NUMBER = 10;
private com.google.protobuf.Timestamp lastReceived_;
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
* @return Whether the lastReceived field is set.
*/
@java.lang.Override
public boolean hasLastReceived() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
* @return The lastReceived.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastReceived() {
return lastReceived_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastReceived_;
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastReceivedOrBuilder() {
return lastReceived_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastReceived_;
}
public static final int LASTPACKETTIME_FIELD_NUMBER = 11;
private com.google.protobuf.Timestamp lastPacketTime_;
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
* @return Whether the lastPacketTime field is set.
*/
@java.lang.Override
public boolean hasLastPacketTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
* @return The lastPacketTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastPacketTime() {
return lastPacketTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPacketTime_;
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastPacketTimeOrBuilder() {
return lastPacketTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPacketTime_;
}
public static final int PACKETRATE_FIELD_NUMBER = 12;
private long packetRate_;
/**
* optional int64 packetRate = 12;
* @return Whether the packetRate field is set.
*/
@java.lang.Override
public boolean hasPacketRate() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 packetRate = 12;
* @return The packetRate.
*/
@java.lang.Override
public long getPacketRate() {
return packetRate_;
}
public static final int DATARATE_FIELD_NUMBER = 13;
private long dataRate_;
/**
* optional int64 dataRate = 13;
* @return Whether the dataRate field is set.
*/
@java.lang.Override
public boolean hasDataRate() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 dataRate = 13;
* @return The dataRate.
*/
@java.lang.Override
public long getDataRate() {
return dataRate_;
}
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, packetName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(2, receivedPackets_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(6, subscribedParameterCount_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, qualifiedName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(10, getLastReceived());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(11, getLastPacketTime());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt64(12, packetRate_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt64(13, dataRate_);
}
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, packetName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, receivedPackets_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, subscribedParameterCount_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, qualifiedName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getLastReceived());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getLastPacketTime());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(12, packetRate_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(13, dataRate_);
}
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.TmStatistics)) {
return super.equals(obj);
}
org.yamcs.protobuf.TmStatistics other = (org.yamcs.protobuf.TmStatistics) obj;
if (hasPacketName() != other.hasPacketName()) return false;
if (hasPacketName()) {
if (!getPacketName()
.equals(other.getPacketName())) return false;
}
if (hasQualifiedName() != other.hasQualifiedName()) return false;
if (hasQualifiedName()) {
if (!getQualifiedName()
.equals(other.getQualifiedName())) return false;
}
if (hasReceivedPackets() != other.hasReceivedPackets()) return false;
if (hasReceivedPackets()) {
if (getReceivedPackets()
!= other.getReceivedPackets()) return false;
}
if (hasSubscribedParameterCount() != other.hasSubscribedParameterCount()) return false;
if (hasSubscribedParameterCount()) {
if (getSubscribedParameterCount()
!= other.getSubscribedParameterCount()) return false;
}
if (hasLastReceived() != other.hasLastReceived()) return false;
if (hasLastReceived()) {
if (!getLastReceived()
.equals(other.getLastReceived())) return false;
}
if (hasLastPacketTime() != other.hasLastPacketTime()) return false;
if (hasLastPacketTime()) {
if (!getLastPacketTime()
.equals(other.getLastPacketTime())) return false;
}
if (hasPacketRate() != other.hasPacketRate()) return false;
if (hasPacketRate()) {
if (getPacketRate()
!= other.getPacketRate()) return false;
}
if (hasDataRate() != other.hasDataRate()) return false;
if (hasDataRate()) {
if (getDataRate()
!= other.getDataRate()) 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 (hasPacketName()) {
hash = (37 * hash) + PACKETNAME_FIELD_NUMBER;
hash = (53 * hash) + getPacketName().hashCode();
}
if (hasQualifiedName()) {
hash = (37 * hash) + QUALIFIEDNAME_FIELD_NUMBER;
hash = (53 * hash) + getQualifiedName().hashCode();
}
if (hasReceivedPackets()) {
hash = (37 * hash) + RECEIVEDPACKETS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getReceivedPackets());
}
if (hasSubscribedParameterCount()) {
hash = (37 * hash) + SUBSCRIBEDPARAMETERCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getSubscribedParameterCount();
}
if (hasLastReceived()) {
hash = (37 * hash) + LASTRECEIVED_FIELD_NUMBER;
hash = (53 * hash) + getLastReceived().hashCode();
}
if (hasLastPacketTime()) {
hash = (37 * hash) + LASTPACKETTIME_FIELD_NUMBER;
hash = (53 * hash) + getLastPacketTime().hashCode();
}
if (hasPacketRate()) {
hash = (37 * hash) + PACKETRATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPacketRate());
}
if (hasDataRate()) {
hash = (37 * hash) + DATARATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDataRate());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.TmStatistics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TmStatistics 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.TmStatistics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TmStatistics 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.TmStatistics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TmStatistics parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.TmStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TmStatistics 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.TmStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TmStatistics 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.TmStatistics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TmStatistics 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.TmStatistics 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.yamcsManagement.TmStatistics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.yamcsManagement.TmStatistics)
org.yamcs.protobuf.TmStatisticsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_TmStatistics_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_TmStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.TmStatistics.class, org.yamcs.protobuf.TmStatistics.Builder.class);
}
// Construct using org.yamcs.protobuf.TmStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLastReceivedFieldBuilder();
getLastPacketTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
packetName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
qualifiedName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
receivedPackets_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
subscribedParameterCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
if (lastReceivedBuilder_ == null) {
lastReceived_ = null;
} else {
lastReceivedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (lastPacketTimeBuilder_ == null) {
lastPacketTime_ = null;
} else {
lastPacketTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
packetRate_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
dataRate_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_TmStatistics_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.TmStatistics getDefaultInstanceForType() {
return org.yamcs.protobuf.TmStatistics.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.TmStatistics build() {
org.yamcs.protobuf.TmStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.TmStatistics buildPartial() {
org.yamcs.protobuf.TmStatistics result = new org.yamcs.protobuf.TmStatistics(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.packetName_ = packetName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.qualifiedName_ = qualifiedName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.receivedPackets_ = receivedPackets_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.subscribedParameterCount_ = subscribedParameterCount_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (lastReceivedBuilder_ == null) {
result.lastReceived_ = lastReceived_;
} else {
result.lastReceived_ = lastReceivedBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (lastPacketTimeBuilder_ == null) {
result.lastPacketTime_ = lastPacketTime_;
} else {
result.lastPacketTime_ = lastPacketTimeBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.packetRate_ = packetRate_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.dataRate_ = dataRate_;
to_bitField0_ |= 0x00000080;
}
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.TmStatistics) {
return mergeFrom((org.yamcs.protobuf.TmStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.TmStatistics other) {
if (other == org.yamcs.protobuf.TmStatistics.getDefaultInstance()) return this;
if (other.hasPacketName()) {
bitField0_ |= 0x00000001;
packetName_ = other.packetName_;
onChanged();
}
if (other.hasQualifiedName()) {
bitField0_ |= 0x00000002;
qualifiedName_ = other.qualifiedName_;
onChanged();
}
if (other.hasReceivedPackets()) {
setReceivedPackets(other.getReceivedPackets());
}
if (other.hasSubscribedParameterCount()) {
setSubscribedParameterCount(other.getSubscribedParameterCount());
}
if (other.hasLastReceived()) {
mergeLastReceived(other.getLastReceived());
}
if (other.hasLastPacketTime()) {
mergeLastPacketTime(other.getLastPacketTime());
}
if (other.hasPacketRate()) {
setPacketRate(other.getPacketRate());
}
if (other.hasDataRate()) {
setDataRate(other.getDataRate());
}
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.TmStatistics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.TmStatistics) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object packetName_ = "";
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @return Whether the packetName field is set.
*/
public boolean hasPacketName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @return The packetName.
*/
public java.lang.String getPacketName() {
java.lang.Object ref = packetName_;
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()) {
packetName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @return The bytes for packetName.
*/
public com.google.protobuf.ByteString
getPacketNameBytes() {
java.lang.Object ref = packetName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
packetName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @param value The packetName to set.
* @return This builder for chaining.
*/
public Builder setPacketName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
packetName_ = value;
onChanged();
return this;
}
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @return This builder for chaining.
*/
public Builder clearPacketName() {
bitField0_ = (bitField0_ & ~0x00000001);
packetName_ = getDefaultInstance().getPacketName();
onChanged();
return this;
}
/**
*
* Packet name.
*
*
* optional string packetName = 1;
* @param value The bytes for packetName to set.
* @return This builder for chaining.
*/
public Builder setPacketNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
packetName_ = value;
onChanged();
return this;
}
private java.lang.Object qualifiedName_ = "";
/**
* optional string qualifiedName = 9;
* @return Whether the qualifiedName field is set.
*/
public boolean hasQualifiedName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string qualifiedName = 9;
* @return The qualifiedName.
*/
public java.lang.String getQualifiedName() {
java.lang.Object ref = qualifiedName_;
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()) {
qualifiedName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string qualifiedName = 9;
* @return The bytes for qualifiedName.
*/
public com.google.protobuf.ByteString
getQualifiedNameBytes() {
java.lang.Object ref = qualifiedName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qualifiedName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string qualifiedName = 9;
* @param value The qualifiedName to set.
* @return This builder for chaining.
*/
public Builder setQualifiedName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
qualifiedName_ = value;
onChanged();
return this;
}
/**
* optional string qualifiedName = 9;
* @return This builder for chaining.
*/
public Builder clearQualifiedName() {
bitField0_ = (bitField0_ & ~0x00000002);
qualifiedName_ = getDefaultInstance().getQualifiedName();
onChanged();
return this;
}
/**
* optional string qualifiedName = 9;
* @param value The bytes for qualifiedName to set.
* @return This builder for chaining.
*/
public Builder setQualifiedNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
qualifiedName_ = value;
onChanged();
return this;
}
private long receivedPackets_ ;
/**
* optional int64 receivedPackets = 2;
* @return Whether the receivedPackets field is set.
*/
@java.lang.Override
public boolean hasReceivedPackets() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 receivedPackets = 2;
* @return The receivedPackets.
*/
@java.lang.Override
public long getReceivedPackets() {
return receivedPackets_;
}
/**
* optional int64 receivedPackets = 2;
* @param value The receivedPackets to set.
* @return This builder for chaining.
*/
public Builder setReceivedPackets(long value) {
bitField0_ |= 0x00000004;
receivedPackets_ = value;
onChanged();
return this;
}
/**
* optional int64 receivedPackets = 2;
* @return This builder for chaining.
*/
public Builder clearReceivedPackets() {
bitField0_ = (bitField0_ & ~0x00000004);
receivedPackets_ = 0L;
onChanged();
return this;
}
private int subscribedParameterCount_ ;
/**
* optional int32 subscribedParameterCount = 6;
* @return Whether the subscribedParameterCount field is set.
*/
@java.lang.Override
public boolean hasSubscribedParameterCount() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int32 subscribedParameterCount = 6;
* @return The subscribedParameterCount.
*/
@java.lang.Override
public int getSubscribedParameterCount() {
return subscribedParameterCount_;
}
/**
* optional int32 subscribedParameterCount = 6;
* @param value The subscribedParameterCount to set.
* @return This builder for chaining.
*/
public Builder setSubscribedParameterCount(int value) {
bitField0_ |= 0x00000008;
subscribedParameterCount_ = value;
onChanged();
return this;
}
/**
* optional int32 subscribedParameterCount = 6;
* @return This builder for chaining.
*/
public Builder clearSubscribedParameterCount() {
bitField0_ = (bitField0_ & ~0x00000008);
subscribedParameterCount_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp lastReceived_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastReceivedBuilder_;
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
* @return Whether the lastReceived field is set.
*/
public boolean hasLastReceived() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
* @return The lastReceived.
*/
public com.google.protobuf.Timestamp getLastReceived() {
if (lastReceivedBuilder_ == null) {
return lastReceived_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastReceived_;
} else {
return lastReceivedBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
*/
public Builder setLastReceived(com.google.protobuf.Timestamp value) {
if (lastReceivedBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastReceived_ = value;
onChanged();
} else {
lastReceivedBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
*/
public Builder setLastReceived(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastReceivedBuilder_ == null) {
lastReceived_ = builderForValue.build();
onChanged();
} else {
lastReceivedBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
*/
public Builder mergeLastReceived(com.google.protobuf.Timestamp value) {
if (lastReceivedBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
lastReceived_ != null &&
lastReceived_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
lastReceived_ =
com.google.protobuf.Timestamp.newBuilder(lastReceived_).mergeFrom(value).buildPartial();
} else {
lastReceived_ = value;
}
onChanged();
} else {
lastReceivedBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
*/
public Builder clearLastReceived() {
if (lastReceivedBuilder_ == null) {
lastReceived_ = null;
onChanged();
} else {
lastReceivedBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
*/
public com.google.protobuf.Timestamp.Builder getLastReceivedBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLastReceivedFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
*/
public com.google.protobuf.TimestampOrBuilder getLastReceivedOrBuilder() {
if (lastReceivedBuilder_ != null) {
return lastReceivedBuilder_.getMessageOrBuilder();
} else {
return lastReceived_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastReceived_;
}
}
/**
* optional .google.protobuf.Timestamp lastReceived = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastReceivedFieldBuilder() {
if (lastReceivedBuilder_ == null) {
lastReceivedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastReceived(),
getParentForChildren(),
isClean());
lastReceived_ = null;
}
return lastReceivedBuilder_;
}
private com.google.protobuf.Timestamp lastPacketTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastPacketTimeBuilder_;
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
* @return Whether the lastPacketTime field is set.
*/
public boolean hasLastPacketTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
* @return The lastPacketTime.
*/
public com.google.protobuf.Timestamp getLastPacketTime() {
if (lastPacketTimeBuilder_ == null) {
return lastPacketTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastPacketTime_;
} else {
return lastPacketTimeBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
*/
public Builder setLastPacketTime(com.google.protobuf.Timestamp value) {
if (lastPacketTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastPacketTime_ = value;
onChanged();
} else {
lastPacketTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
*/
public Builder setLastPacketTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastPacketTimeBuilder_ == null) {
lastPacketTime_ = builderForValue.build();
onChanged();
} else {
lastPacketTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
*/
public Builder mergeLastPacketTime(com.google.protobuf.Timestamp value) {
if (lastPacketTimeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
lastPacketTime_ != null &&
lastPacketTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
lastPacketTime_ =
com.google.protobuf.Timestamp.newBuilder(lastPacketTime_).mergeFrom(value).buildPartial();
} else {
lastPacketTime_ = value;
}
onChanged();
} else {
lastPacketTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
*/
public Builder clearLastPacketTime() {
if (lastPacketTimeBuilder_ == null) {
lastPacketTime_ = null;
onChanged();
} else {
lastPacketTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
*/
public com.google.protobuf.Timestamp.Builder getLastPacketTimeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getLastPacketTimeFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
*/
public com.google.protobuf.TimestampOrBuilder getLastPacketTimeOrBuilder() {
if (lastPacketTimeBuilder_ != null) {
return lastPacketTimeBuilder_.getMessageOrBuilder();
} else {
return lastPacketTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastPacketTime_;
}
}
/**
* optional .google.protobuf.Timestamp lastPacketTime = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastPacketTimeFieldBuilder() {
if (lastPacketTimeBuilder_ == null) {
lastPacketTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastPacketTime(),
getParentForChildren(),
isClean());
lastPacketTime_ = null;
}
return lastPacketTimeBuilder_;
}
private long packetRate_ ;
/**
* optional int64 packetRate = 12;
* @return Whether the packetRate field is set.
*/
@java.lang.Override
public boolean hasPacketRate() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int64 packetRate = 12;
* @return The packetRate.
*/
@java.lang.Override
public long getPacketRate() {
return packetRate_;
}
/**
* optional int64 packetRate = 12;
* @param value The packetRate to set.
* @return This builder for chaining.
*/
public Builder setPacketRate(long value) {
bitField0_ |= 0x00000040;
packetRate_ = value;
onChanged();
return this;
}
/**
* optional int64 packetRate = 12;
* @return This builder for chaining.
*/
public Builder clearPacketRate() {
bitField0_ = (bitField0_ & ~0x00000040);
packetRate_ = 0L;
onChanged();
return this;
}
private long dataRate_ ;
/**
* optional int64 dataRate = 13;
* @return Whether the dataRate field is set.
*/
@java.lang.Override
public boolean hasDataRate() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int64 dataRate = 13;
* @return The dataRate.
*/
@java.lang.Override
public long getDataRate() {
return dataRate_;
}
/**
* optional int64 dataRate = 13;
* @param value The dataRate to set.
* @return This builder for chaining.
*/
public Builder setDataRate(long value) {
bitField0_ |= 0x00000080;
dataRate_ = value;
onChanged();
return this;
}
/**
* optional int64 dataRate = 13;
* @return This builder for chaining.
*/
public Builder clearDataRate() {
bitField0_ = (bitField0_ & ~0x00000080);
dataRate_ = 0L;
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.yamcsManagement.TmStatistics)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.yamcsManagement.TmStatistics)
private static final org.yamcs.protobuf.TmStatistics DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.TmStatistics();
}
public static org.yamcs.protobuf.TmStatistics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TmStatistics parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TmStatistics(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.TmStatistics getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy