All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.protobuf.Statistics Maven / Gradle / Ivy

There is a newer version: 5.10.1
Show newest version
// 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.Statistics}
 */
public  final class Statistics extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.yamcsManagement.Statistics)
    StatisticsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Statistics.newBuilder() to construct.
  private Statistics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Statistics() {
    instance_ = "";
    yProcessorName_ = "";
    processor_ = "";
    tmstats_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Statistics(
      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;
            yProcessorName_ = bs;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
              tmstats_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            tmstats_.add(
                input.readMessage(org.yamcs.protobuf.TmStatistics.PARSER, extensionRegistry));
            break;
          }
          case 50: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000008) != 0)) {
              subBuilder = lastUpdated_.toBuilder();
            }
            lastUpdated_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(lastUpdated_);
              lastUpdated_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000008;
            break;
          }
          case 58: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            processor_ = 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_ & 0x00000008) != 0)) {
        tmstats_ = java.util.Collections.unmodifiableList(tmstats_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_Statistics_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_Statistics_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.Statistics.class, org.yamcs.protobuf.Statistics.Builder.class);
  }

  private int bitField0_;
  public static final int INSTANCE_FIELD_NUMBER = 1;
  private volatile java.lang.Object instance_;
  /**
   * optional string instance = 1;
   */
  public boolean hasInstance() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional string instance = 1;
   */
  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;
    }
  }
  /**
   * optional string instance = 1;
   */
  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 YPROCESSORNAME_FIELD_NUMBER = 2;
  private volatile java.lang.Object yProcessorName_;
  /**
   * optional string yProcessorName = 2 [deprecated = true];
   */
  @java.lang.Deprecated public boolean hasYProcessorName() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string yProcessorName = 2 [deprecated = true];
   */
  @java.lang.Deprecated public java.lang.String getYProcessorName() {
    java.lang.Object ref = yProcessorName_;
    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()) {
        yProcessorName_ = s;
      }
      return s;
    }
  }
  /**
   * optional string yProcessorName = 2 [deprecated = true];
   */
  @java.lang.Deprecated public com.google.protobuf.ByteString
      getYProcessorNameBytes() {
    java.lang.Object ref = yProcessorName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      yProcessorName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PROCESSOR_FIELD_NUMBER = 7;
  private volatile java.lang.Object processor_;
  /**
   * optional string processor = 7;
   */
  public boolean hasProcessor() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional string processor = 7;
   */
  public java.lang.String getProcessor() {
    java.lang.Object ref = processor_;
    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()) {
        processor_ = s;
      }
      return s;
    }
  }
  /**
   * optional string processor = 7;
   */
  public com.google.protobuf.ByteString
      getProcessorBytes() {
    java.lang.Object ref = processor_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      processor_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int TMSTATS_FIELD_NUMBER = 3;
  private java.util.List tmstats_;
  /**
   * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3;
   */
  public java.util.List getTmstatsList() {
    return tmstats_;
  }
  /**
   * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3;
   */
  public java.util.List 
      getTmstatsOrBuilderList() {
    return tmstats_;
  }
  /**
   * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3;
   */
  public int getTmstatsCount() {
    return tmstats_.size();
  }
  /**
   * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3;
   */
  public org.yamcs.protobuf.TmStatistics getTmstats(int index) {
    return tmstats_.get(index);
  }
  /**
   * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3;
   */
  public org.yamcs.protobuf.TmStatisticsOrBuilder getTmstatsOrBuilder(
      int index) {
    return tmstats_.get(index);
  }

  public static final int LASTUPDATED_FIELD_NUMBER = 6;
  private com.google.protobuf.Timestamp lastUpdated_;
  /**
   * 
   *java local time of the last update
   * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public boolean hasLastUpdated() { return ((bitField0_ & 0x00000008) != 0); } /** *
   *java local time of the last update
   * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public com.google.protobuf.Timestamp getLastUpdated() { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } /** *
   *java local time of the last update
   * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } 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, yProcessorName_); } for (int i = 0; i < tmstats_.size(); i++) { output.writeMessage(3, tmstats_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getLastUpdated()); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, processor_); } 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, yProcessorName_); } for (int i = 0; i < tmstats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, tmstats_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLastUpdated()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, processor_); } 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.Statistics)) { return super.equals(obj); } org.yamcs.protobuf.Statistics other = (org.yamcs.protobuf.Statistics) obj; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { if (!getInstance() .equals(other.getInstance())) return false; } if (hasYProcessorName() != other.hasYProcessorName()) return false; if (hasYProcessorName()) { if (!getYProcessorName() .equals(other.getYProcessorName())) return false; } if (hasProcessor() != other.hasProcessor()) return false; if (hasProcessor()) { if (!getProcessor() .equals(other.getProcessor())) return false; } if (!getTmstatsList() .equals(other.getTmstatsList())) return false; if (hasLastUpdated() != other.hasLastUpdated()) return false; if (hasLastUpdated()) { if (!getLastUpdated() .equals(other.getLastUpdated())) 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 (hasYProcessorName()) { hash = (37 * hash) + YPROCESSORNAME_FIELD_NUMBER; hash = (53 * hash) + getYProcessorName().hashCode(); } if (hasProcessor()) { hash = (37 * hash) + PROCESSOR_FIELD_NUMBER; hash = (53 * hash) + getProcessor().hashCode(); } if (getTmstatsCount() > 0) { hash = (37 * hash) + TMSTATS_FIELD_NUMBER; hash = (53 * hash) + getTmstatsList().hashCode(); } if (hasLastUpdated()) { hash = (37 * hash) + LASTUPDATED_FIELD_NUMBER; hash = (53 * hash) + getLastUpdated().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.Statistics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.Statistics 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.Statistics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.Statistics 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.Statistics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.Statistics parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.Statistics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.Statistics 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.Statistics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.Statistics 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.Statistics parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.Statistics 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.Statistics 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.Statistics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.yamcsManagement.Statistics) org.yamcs.protobuf.StatisticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_Statistics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_Statistics_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.Statistics.class, org.yamcs.protobuf.Statistics.Builder.class); } // Construct using org.yamcs.protobuf.Statistics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTmstatsFieldBuilder(); getLastUpdatedFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); instance_ = ""; bitField0_ = (bitField0_ & ~0x00000001); yProcessorName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); processor_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (tmstatsBuilder_ == null) { tmstats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { tmstatsBuilder_.clear(); } if (lastUpdatedBuilder_ == null) { lastUpdated_ = null; } else { lastUpdatedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.YamcsManagementProto.internal_static_yamcs_protobuf_yamcsManagement_Statistics_descriptor; } @java.lang.Override public org.yamcs.protobuf.Statistics getDefaultInstanceForType() { return org.yamcs.protobuf.Statistics.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.Statistics build() { org.yamcs.protobuf.Statistics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.Statistics buildPartial() { org.yamcs.protobuf.Statistics result = new org.yamcs.protobuf.Statistics(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.yProcessorName_ = yProcessorName_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.processor_ = processor_; if (tmstatsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { tmstats_ = java.util.Collections.unmodifiableList(tmstats_); bitField0_ = (bitField0_ & ~0x00000008); } result.tmstats_ = tmstats_; } else { result.tmstats_ = tmstatsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { if (lastUpdatedBuilder_ == null) { result.lastUpdated_ = lastUpdated_; } else { result.lastUpdated_ = lastUpdatedBuilder_.build(); } to_bitField0_ |= 0x00000008; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.yamcs.protobuf.Statistics) { return mergeFrom((org.yamcs.protobuf.Statistics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.Statistics other) { if (other == org.yamcs.protobuf.Statistics.getDefaultInstance()) return this; if (other.hasInstance()) { bitField0_ |= 0x00000001; instance_ = other.instance_; onChanged(); } if (other.hasYProcessorName()) { bitField0_ |= 0x00000002; yProcessorName_ = other.yProcessorName_; onChanged(); } if (other.hasProcessor()) { bitField0_ |= 0x00000004; processor_ = other.processor_; onChanged(); } if (tmstatsBuilder_ == null) { if (!other.tmstats_.isEmpty()) { if (tmstats_.isEmpty()) { tmstats_ = other.tmstats_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTmstatsIsMutable(); tmstats_.addAll(other.tmstats_); } onChanged(); } } else { if (!other.tmstats_.isEmpty()) { if (tmstatsBuilder_.isEmpty()) { tmstatsBuilder_.dispose(); tmstatsBuilder_ = null; tmstats_ = other.tmstats_; bitField0_ = (bitField0_ & ~0x00000008); tmstatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTmstatsFieldBuilder() : null; } else { tmstatsBuilder_.addAllMessages(other.tmstats_); } } } if (other.hasLastUpdated()) { mergeLastUpdated(other.getLastUpdated()); } 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.Statistics parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.Statistics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instance_ = ""; /** * optional string instance = 1; */ public boolean hasInstance() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string instance = 1; */ 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; } } /** * optional string instance = 1; */ 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; } } /** * optional string instance = 1; */ public Builder setInstance( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; instance_ = value; onChanged(); return this; } /** * optional string instance = 1; */ public Builder clearInstance() { bitField0_ = (bitField0_ & ~0x00000001); instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** * optional string instance = 1; */ 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 yProcessorName_ = ""; /** * optional string yProcessorName = 2 [deprecated = true]; */ @java.lang.Deprecated public boolean hasYProcessorName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string yProcessorName = 2 [deprecated = true]; */ @java.lang.Deprecated public java.lang.String getYProcessorName() { java.lang.Object ref = yProcessorName_; 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()) { yProcessorName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string yProcessorName = 2 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.ByteString getYProcessorNameBytes() { java.lang.Object ref = yProcessorName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); yProcessorName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string yProcessorName = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setYProcessorName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; yProcessorName_ = value; onChanged(); return this; } /** * optional string yProcessorName = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder clearYProcessorName() { bitField0_ = (bitField0_ & ~0x00000002); yProcessorName_ = getDefaultInstance().getYProcessorName(); onChanged(); return this; } /** * optional string yProcessorName = 2 [deprecated = true]; */ @java.lang.Deprecated public Builder setYProcessorNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; yProcessorName_ = value; onChanged(); return this; } private java.lang.Object processor_ = ""; /** * optional string processor = 7; */ public boolean hasProcessor() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string processor = 7; */ public java.lang.String getProcessor() { java.lang.Object ref = processor_; 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()) { processor_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string processor = 7; */ public com.google.protobuf.ByteString getProcessorBytes() { java.lang.Object ref = processor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); processor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string processor = 7; */ public Builder setProcessor( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; processor_ = value; onChanged(); return this; } /** * optional string processor = 7; */ public Builder clearProcessor() { bitField0_ = (bitField0_ & ~0x00000004); processor_ = getDefaultInstance().getProcessor(); onChanged(); return this; } /** * optional string processor = 7; */ public Builder setProcessorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; processor_ = value; onChanged(); return this; } private java.util.List tmstats_ = java.util.Collections.emptyList(); private void ensureTmstatsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { tmstats_ = new java.util.ArrayList(tmstats_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.TmStatistics, org.yamcs.protobuf.TmStatistics.Builder, org.yamcs.protobuf.TmStatisticsOrBuilder> tmstatsBuilder_; /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public java.util.List getTmstatsList() { if (tmstatsBuilder_ == null) { return java.util.Collections.unmodifiableList(tmstats_); } else { return tmstatsBuilder_.getMessageList(); } } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public int getTmstatsCount() { if (tmstatsBuilder_ == null) { return tmstats_.size(); } else { return tmstatsBuilder_.getCount(); } } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public org.yamcs.protobuf.TmStatistics getTmstats(int index) { if (tmstatsBuilder_ == null) { return tmstats_.get(index); } else { return tmstatsBuilder_.getMessage(index); } } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder setTmstats( int index, org.yamcs.protobuf.TmStatistics value) { if (tmstatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTmstatsIsMutable(); tmstats_.set(index, value); onChanged(); } else { tmstatsBuilder_.setMessage(index, value); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder setTmstats( int index, org.yamcs.protobuf.TmStatistics.Builder builderForValue) { if (tmstatsBuilder_ == null) { ensureTmstatsIsMutable(); tmstats_.set(index, builderForValue.build()); onChanged(); } else { tmstatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder addTmstats(org.yamcs.protobuf.TmStatistics value) { if (tmstatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTmstatsIsMutable(); tmstats_.add(value); onChanged(); } else { tmstatsBuilder_.addMessage(value); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder addTmstats( int index, org.yamcs.protobuf.TmStatistics value) { if (tmstatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTmstatsIsMutable(); tmstats_.add(index, value); onChanged(); } else { tmstatsBuilder_.addMessage(index, value); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder addTmstats( org.yamcs.protobuf.TmStatistics.Builder builderForValue) { if (tmstatsBuilder_ == null) { ensureTmstatsIsMutable(); tmstats_.add(builderForValue.build()); onChanged(); } else { tmstatsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder addTmstats( int index, org.yamcs.protobuf.TmStatistics.Builder builderForValue) { if (tmstatsBuilder_ == null) { ensureTmstatsIsMutable(); tmstats_.add(index, builderForValue.build()); onChanged(); } else { tmstatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder addAllTmstats( java.lang.Iterable values) { if (tmstatsBuilder_ == null) { ensureTmstatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tmstats_); onChanged(); } else { tmstatsBuilder_.addAllMessages(values); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder clearTmstats() { if (tmstatsBuilder_ == null) { tmstats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { tmstatsBuilder_.clear(); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public Builder removeTmstats(int index) { if (tmstatsBuilder_ == null) { ensureTmstatsIsMutable(); tmstats_.remove(index); onChanged(); } else { tmstatsBuilder_.remove(index); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public org.yamcs.protobuf.TmStatistics.Builder getTmstatsBuilder( int index) { return getTmstatsFieldBuilder().getBuilder(index); } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public org.yamcs.protobuf.TmStatisticsOrBuilder getTmstatsOrBuilder( int index) { if (tmstatsBuilder_ == null) { return tmstats_.get(index); } else { return tmstatsBuilder_.getMessageOrBuilder(index); } } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public java.util.List getTmstatsOrBuilderList() { if (tmstatsBuilder_ != null) { return tmstatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tmstats_); } } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public org.yamcs.protobuf.TmStatistics.Builder addTmstatsBuilder() { return getTmstatsFieldBuilder().addBuilder( org.yamcs.protobuf.TmStatistics.getDefaultInstance()); } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public org.yamcs.protobuf.TmStatistics.Builder addTmstatsBuilder( int index) { return getTmstatsFieldBuilder().addBuilder( index, org.yamcs.protobuf.TmStatistics.getDefaultInstance()); } /** * repeated .yamcs.protobuf.yamcsManagement.TmStatistics tmstats = 3; */ public java.util.List getTmstatsBuilderList() { return getTmstatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.TmStatistics, org.yamcs.protobuf.TmStatistics.Builder, org.yamcs.protobuf.TmStatisticsOrBuilder> getTmstatsFieldBuilder() { if (tmstatsBuilder_ == null) { tmstatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.TmStatistics, org.yamcs.protobuf.TmStatistics.Builder, org.yamcs.protobuf.TmStatisticsOrBuilder>( tmstats_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); tmstats_ = null; } return tmstatsBuilder_; } private com.google.protobuf.Timestamp lastUpdated_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdatedBuilder_; /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public boolean hasLastUpdated() { return ((bitField0_ & 0x00000010) != 0); } /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public com.google.protobuf.Timestamp getLastUpdated() { if (lastUpdatedBuilder_ == null) { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } else { return lastUpdatedBuilder_.getMessage(); } } /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public Builder setLastUpdated(com.google.protobuf.Timestamp value) { if (lastUpdatedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastUpdated_ = value; onChanged(); } else { lastUpdatedBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public Builder setLastUpdated( com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdatedBuilder_ == null) { lastUpdated_ = builderForValue.build(); onChanged(); } else { lastUpdatedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public Builder mergeLastUpdated(com.google.protobuf.Timestamp value) { if (lastUpdatedBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && lastUpdated_ != null && lastUpdated_ != com.google.protobuf.Timestamp.getDefaultInstance()) { lastUpdated_ = com.google.protobuf.Timestamp.newBuilder(lastUpdated_).mergeFrom(value).buildPartial(); } else { lastUpdated_ = value; } onChanged(); } else { lastUpdatedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public Builder clearLastUpdated() { if (lastUpdatedBuilder_ == null) { lastUpdated_ = null; onChanged(); } else { lastUpdatedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public com.google.protobuf.Timestamp.Builder getLastUpdatedBuilder() { bitField0_ |= 0x00000010; onChanged(); return getLastUpdatedFieldBuilder().getBuilder(); } /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ public com.google.protobuf.TimestampOrBuilder getLastUpdatedOrBuilder() { if (lastUpdatedBuilder_ != null) { return lastUpdatedBuilder_.getMessageOrBuilder(); } else { return lastUpdated_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdated_; } } /** *
     *java local time of the last update
     * 
* * optional .google.protobuf.Timestamp lastUpdated = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdatedFieldBuilder() { if (lastUpdatedBuilder_ == null) { lastUpdatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getLastUpdated(), getParentForChildren(), isClean()); lastUpdated_ = null; } return lastUpdatedBuilder_; } @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.Statistics) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.yamcsManagement.Statistics) private static final org.yamcs.protobuf.Statistics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.Statistics(); } public static org.yamcs.protobuf.Statistics getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Statistics parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Statistics(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.Statistics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy