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

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

There is a newer version: 5.10.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yamcs/protobuf/server/server_service.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.server.HttpTraffic}
 */
public final class HttpTraffic extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.server.HttpTraffic)
    HttpTrafficOrBuilder {
private static final long serialVersionUID = 0L;
  // Use HttpTraffic.newBuilder() to construct.
  private HttpTraffic(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private HttpTraffic() {
    connections_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new HttpTraffic();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private HttpTraffic(
      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 8: {
            bitField0_ |= 0x00000001;
            readBytes_ = input.readUInt64();
            break;
          }
          case 16: {
            bitField0_ |= 0x00000002;
            writtenBytes_ = input.readUInt64();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            readThroughput_ = input.readUInt64();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            writeThroughput_ = input.readUInt64();
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
              connections_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000010;
            }
            connections_.add(
                input.readMessage(org.yamcs.protobuf.ClientConnectionInfo.PARSER, extensionRegistry));
            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_ & 0x00000010) != 0)) {
        connections_ = java.util.Collections.unmodifiableList(connections_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_HttpTraffic_descriptor;
  }

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

  private int bitField0_;
  public static final int READBYTES_FIELD_NUMBER = 1;
  private long readBytes_;
  /**
   * optional uint64 readBytes = 1;
   * @return Whether the readBytes field is set.
   */
  @java.lang.Override
  public boolean hasReadBytes() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional uint64 readBytes = 1;
   * @return The readBytes.
   */
  @java.lang.Override
  public long getReadBytes() {
    return readBytes_;
  }

  public static final int WRITTENBYTES_FIELD_NUMBER = 2;
  private long writtenBytes_;
  /**
   * optional uint64 writtenBytes = 2;
   * @return Whether the writtenBytes field is set.
   */
  @java.lang.Override
  public boolean hasWrittenBytes() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional uint64 writtenBytes = 2;
   * @return The writtenBytes.
   */
  @java.lang.Override
  public long getWrittenBytes() {
    return writtenBytes_;
  }

  public static final int READTHROUGHPUT_FIELD_NUMBER = 3;
  private long readThroughput_;
  /**
   * optional uint64 readThroughput = 3;
   * @return Whether the readThroughput field is set.
   */
  @java.lang.Override
  public boolean hasReadThroughput() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional uint64 readThroughput = 3;
   * @return The readThroughput.
   */
  @java.lang.Override
  public long getReadThroughput() {
    return readThroughput_;
  }

  public static final int WRITETHROUGHPUT_FIELD_NUMBER = 4;
  private long writeThroughput_;
  /**
   * optional uint64 writeThroughput = 4;
   * @return Whether the writeThroughput field is set.
   */
  @java.lang.Override
  public boolean hasWriteThroughput() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional uint64 writeThroughput = 4;
   * @return The writeThroughput.
   */
  @java.lang.Override
  public long getWriteThroughput() {
    return writeThroughput_;
  }

  public static final int CONNECTIONS_FIELD_NUMBER = 5;
  private java.util.List connections_;
  /**
   * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
   */
  @java.lang.Override
  public java.util.List getConnectionsList() {
    return connections_;
  }
  /**
   * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
   */
  @java.lang.Override
  public java.util.List 
      getConnectionsOrBuilderList() {
    return connections_;
  }
  /**
   * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
   */
  @java.lang.Override
  public int getConnectionsCount() {
    return connections_.size();
  }
  /**
   * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
   */
  @java.lang.Override
  public org.yamcs.protobuf.ClientConnectionInfo getConnections(int index) {
    return connections_.get(index);
  }
  /**
   * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
   */
  @java.lang.Override
  public org.yamcs.protobuf.ClientConnectionInfoOrBuilder getConnectionsOrBuilder(
      int index) {
    return connections_.get(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)) {
      output.writeUInt64(1, readBytes_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeUInt64(2, writtenBytes_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeUInt64(3, readThroughput_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeUInt64(4, writeThroughput_);
    }
    for (int i = 0; i < connections_.size(); i++) {
      output.writeMessage(5, connections_.get(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.CodedOutputStream
        .computeUInt64Size(1, readBytes_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, writtenBytes_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(3, readThroughput_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, writeThroughput_);
    }
    for (int i = 0; i < connections_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, connections_.get(i));
    }
    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.HttpTraffic)) {
      return super.equals(obj);
    }
    org.yamcs.protobuf.HttpTraffic other = (org.yamcs.protobuf.HttpTraffic) obj;

    if (hasReadBytes() != other.hasReadBytes()) return false;
    if (hasReadBytes()) {
      if (getReadBytes()
          != other.getReadBytes()) return false;
    }
    if (hasWrittenBytes() != other.hasWrittenBytes()) return false;
    if (hasWrittenBytes()) {
      if (getWrittenBytes()
          != other.getWrittenBytes()) return false;
    }
    if (hasReadThroughput() != other.hasReadThroughput()) return false;
    if (hasReadThroughput()) {
      if (getReadThroughput()
          != other.getReadThroughput()) return false;
    }
    if (hasWriteThroughput() != other.hasWriteThroughput()) return false;
    if (hasWriteThroughput()) {
      if (getWriteThroughput()
          != other.getWriteThroughput()) return false;
    }
    if (!getConnectionsList()
        .equals(other.getConnectionsList())) 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 (hasReadBytes()) {
      hash = (37 * hash) + READBYTES_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getReadBytes());
    }
    if (hasWrittenBytes()) {
      hash = (37 * hash) + WRITTENBYTES_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getWrittenBytes());
    }
    if (hasReadThroughput()) {
      hash = (37 * hash) + READTHROUGHPUT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getReadThroughput());
    }
    if (hasWriteThroughput()) {
      hash = (37 * hash) + WRITETHROUGHPUT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getWriteThroughput());
    }
    if (getConnectionsCount() > 0) {
      hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getConnectionsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.yamcs.protobuf.HttpTraffic parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.HttpTraffic 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.HttpTraffic parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.HttpTraffic 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.HttpTraffic parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.HttpTraffic parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.yamcs.protobuf.HttpTraffic parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.HttpTraffic 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.HttpTraffic parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.HttpTraffic 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.HttpTraffic parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.HttpTraffic 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.HttpTraffic 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.server.HttpTraffic}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:yamcs.protobuf.server.HttpTraffic)
      org.yamcs.protobuf.HttpTrafficOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_HttpTraffic_descriptor;
    }

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

    // Construct using org.yamcs.protobuf.HttpTraffic.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getConnectionsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      readBytes_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000001);
      writtenBytes_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000002);
      readThroughput_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000004);
      writeThroughput_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000008);
      if (connectionsBuilder_ == null) {
        connections_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
      } else {
        connectionsBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_HttpTraffic_descriptor;
    }

    @java.lang.Override
    public org.yamcs.protobuf.HttpTraffic getDefaultInstanceForType() {
      return org.yamcs.protobuf.HttpTraffic.getDefaultInstance();
    }

    @java.lang.Override
    public org.yamcs.protobuf.HttpTraffic build() {
      org.yamcs.protobuf.HttpTraffic result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.yamcs.protobuf.HttpTraffic buildPartial() {
      org.yamcs.protobuf.HttpTraffic result = new org.yamcs.protobuf.HttpTraffic(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.readBytes_ = readBytes_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.writtenBytes_ = writtenBytes_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.readThroughput_ = readThroughput_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.writeThroughput_ = writeThroughput_;
        to_bitField0_ |= 0x00000008;
      }
      if (connectionsBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0)) {
          connections_ = java.util.Collections.unmodifiableList(connections_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.connections_ = connections_;
      } else {
        result.connections_ = connectionsBuilder_.build();
      }
      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.HttpTraffic) {
        return mergeFrom((org.yamcs.protobuf.HttpTraffic)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.yamcs.protobuf.HttpTraffic other) {
      if (other == org.yamcs.protobuf.HttpTraffic.getDefaultInstance()) return this;
      if (other.hasReadBytes()) {
        setReadBytes(other.getReadBytes());
      }
      if (other.hasWrittenBytes()) {
        setWrittenBytes(other.getWrittenBytes());
      }
      if (other.hasReadThroughput()) {
        setReadThroughput(other.getReadThroughput());
      }
      if (other.hasWriteThroughput()) {
        setWriteThroughput(other.getWriteThroughput());
      }
      if (connectionsBuilder_ == null) {
        if (!other.connections_.isEmpty()) {
          if (connections_.isEmpty()) {
            connections_ = other.connections_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureConnectionsIsMutable();
            connections_.addAll(other.connections_);
          }
          onChanged();
        }
      } else {
        if (!other.connections_.isEmpty()) {
          if (connectionsBuilder_.isEmpty()) {
            connectionsBuilder_.dispose();
            connectionsBuilder_ = null;
            connections_ = other.connections_;
            bitField0_ = (bitField0_ & ~0x00000010);
            connectionsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getConnectionsFieldBuilder() : null;
          } else {
            connectionsBuilder_.addAllMessages(other.connections_);
          }
        }
      }
      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.HttpTraffic parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.yamcs.protobuf.HttpTraffic) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private long readBytes_ ;
    /**
     * optional uint64 readBytes = 1;
     * @return Whether the readBytes field is set.
     */
    @java.lang.Override
    public boolean hasReadBytes() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional uint64 readBytes = 1;
     * @return The readBytes.
     */
    @java.lang.Override
    public long getReadBytes() {
      return readBytes_;
    }
    /**
     * optional uint64 readBytes = 1;
     * @param value The readBytes to set.
     * @return This builder for chaining.
     */
    public Builder setReadBytes(long value) {
      bitField0_ |= 0x00000001;
      readBytes_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint64 readBytes = 1;
     * @return This builder for chaining.
     */
    public Builder clearReadBytes() {
      bitField0_ = (bitField0_ & ~0x00000001);
      readBytes_ = 0L;
      onChanged();
      return this;
    }

    private long writtenBytes_ ;
    /**
     * optional uint64 writtenBytes = 2;
     * @return Whether the writtenBytes field is set.
     */
    @java.lang.Override
    public boolean hasWrittenBytes() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional uint64 writtenBytes = 2;
     * @return The writtenBytes.
     */
    @java.lang.Override
    public long getWrittenBytes() {
      return writtenBytes_;
    }
    /**
     * optional uint64 writtenBytes = 2;
     * @param value The writtenBytes to set.
     * @return This builder for chaining.
     */
    public Builder setWrittenBytes(long value) {
      bitField0_ |= 0x00000002;
      writtenBytes_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint64 writtenBytes = 2;
     * @return This builder for chaining.
     */
    public Builder clearWrittenBytes() {
      bitField0_ = (bitField0_ & ~0x00000002);
      writtenBytes_ = 0L;
      onChanged();
      return this;
    }

    private long readThroughput_ ;
    /**
     * optional uint64 readThroughput = 3;
     * @return Whether the readThroughput field is set.
     */
    @java.lang.Override
    public boolean hasReadThroughput() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional uint64 readThroughput = 3;
     * @return The readThroughput.
     */
    @java.lang.Override
    public long getReadThroughput() {
      return readThroughput_;
    }
    /**
     * optional uint64 readThroughput = 3;
     * @param value The readThroughput to set.
     * @return This builder for chaining.
     */
    public Builder setReadThroughput(long value) {
      bitField0_ |= 0x00000004;
      readThroughput_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint64 readThroughput = 3;
     * @return This builder for chaining.
     */
    public Builder clearReadThroughput() {
      bitField0_ = (bitField0_ & ~0x00000004);
      readThroughput_ = 0L;
      onChanged();
      return this;
    }

    private long writeThroughput_ ;
    /**
     * optional uint64 writeThroughput = 4;
     * @return Whether the writeThroughput field is set.
     */
    @java.lang.Override
    public boolean hasWriteThroughput() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional uint64 writeThroughput = 4;
     * @return The writeThroughput.
     */
    @java.lang.Override
    public long getWriteThroughput() {
      return writeThroughput_;
    }
    /**
     * optional uint64 writeThroughput = 4;
     * @param value The writeThroughput to set.
     * @return This builder for chaining.
     */
    public Builder setWriteThroughput(long value) {
      bitField0_ |= 0x00000008;
      writeThroughput_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint64 writeThroughput = 4;
     * @return This builder for chaining.
     */
    public Builder clearWriteThroughput() {
      bitField0_ = (bitField0_ & ~0x00000008);
      writeThroughput_ = 0L;
      onChanged();
      return this;
    }

    private java.util.List connections_ =
      java.util.Collections.emptyList();
    private void ensureConnectionsIsMutable() {
      if (!((bitField0_ & 0x00000010) != 0)) {
        connections_ = new java.util.ArrayList(connections_);
        bitField0_ |= 0x00000010;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.yamcs.protobuf.ClientConnectionInfo, org.yamcs.protobuf.ClientConnectionInfo.Builder, org.yamcs.protobuf.ClientConnectionInfoOrBuilder> connectionsBuilder_;

    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public java.util.List getConnectionsList() {
      if (connectionsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(connections_);
      } else {
        return connectionsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public int getConnectionsCount() {
      if (connectionsBuilder_ == null) {
        return connections_.size();
      } else {
        return connectionsBuilder_.getCount();
      }
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public org.yamcs.protobuf.ClientConnectionInfo getConnections(int index) {
      if (connectionsBuilder_ == null) {
        return connections_.get(index);
      } else {
        return connectionsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder setConnections(
        int index, org.yamcs.protobuf.ClientConnectionInfo value) {
      if (connectionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConnectionsIsMutable();
        connections_.set(index, value);
        onChanged();
      } else {
        connectionsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder setConnections(
        int index, org.yamcs.protobuf.ClientConnectionInfo.Builder builderForValue) {
      if (connectionsBuilder_ == null) {
        ensureConnectionsIsMutable();
        connections_.set(index, builderForValue.build());
        onChanged();
      } else {
        connectionsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder addConnections(org.yamcs.protobuf.ClientConnectionInfo value) {
      if (connectionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConnectionsIsMutable();
        connections_.add(value);
        onChanged();
      } else {
        connectionsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder addConnections(
        int index, org.yamcs.protobuf.ClientConnectionInfo value) {
      if (connectionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureConnectionsIsMutable();
        connections_.add(index, value);
        onChanged();
      } else {
        connectionsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder addConnections(
        org.yamcs.protobuf.ClientConnectionInfo.Builder builderForValue) {
      if (connectionsBuilder_ == null) {
        ensureConnectionsIsMutable();
        connections_.add(builderForValue.build());
        onChanged();
      } else {
        connectionsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder addConnections(
        int index, org.yamcs.protobuf.ClientConnectionInfo.Builder builderForValue) {
      if (connectionsBuilder_ == null) {
        ensureConnectionsIsMutable();
        connections_.add(index, builderForValue.build());
        onChanged();
      } else {
        connectionsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder addAllConnections(
        java.lang.Iterable values) {
      if (connectionsBuilder_ == null) {
        ensureConnectionsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, connections_);
        onChanged();
      } else {
        connectionsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder clearConnections() {
      if (connectionsBuilder_ == null) {
        connections_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        connectionsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public Builder removeConnections(int index) {
      if (connectionsBuilder_ == null) {
        ensureConnectionsIsMutable();
        connections_.remove(index);
        onChanged();
      } else {
        connectionsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public org.yamcs.protobuf.ClientConnectionInfo.Builder getConnectionsBuilder(
        int index) {
      return getConnectionsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public org.yamcs.protobuf.ClientConnectionInfoOrBuilder getConnectionsOrBuilder(
        int index) {
      if (connectionsBuilder_ == null) {
        return connections_.get(index);  } else {
        return connectionsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public java.util.List 
         getConnectionsOrBuilderList() {
      if (connectionsBuilder_ != null) {
        return connectionsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(connections_);
      }
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public org.yamcs.protobuf.ClientConnectionInfo.Builder addConnectionsBuilder() {
      return getConnectionsFieldBuilder().addBuilder(
          org.yamcs.protobuf.ClientConnectionInfo.getDefaultInstance());
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public org.yamcs.protobuf.ClientConnectionInfo.Builder addConnectionsBuilder(
        int index) {
      return getConnectionsFieldBuilder().addBuilder(
          index, org.yamcs.protobuf.ClientConnectionInfo.getDefaultInstance());
    }
    /**
     * repeated .yamcs.protobuf.server.ClientConnectionInfo connections = 5;
     */
    public java.util.List 
         getConnectionsBuilderList() {
      return getConnectionsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.yamcs.protobuf.ClientConnectionInfo, org.yamcs.protobuf.ClientConnectionInfo.Builder, org.yamcs.protobuf.ClientConnectionInfoOrBuilder> 
        getConnectionsFieldBuilder() {
      if (connectionsBuilder_ == null) {
        connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            org.yamcs.protobuf.ClientConnectionInfo, org.yamcs.protobuf.ClientConnectionInfo.Builder, org.yamcs.protobuf.ClientConnectionInfoOrBuilder>(
                connections_,
                ((bitField0_ & 0x00000010) != 0),
                getParentForChildren(),
                isClean());
        connections_ = null;
      }
      return connectionsBuilder_;
    }
    @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.server.HttpTraffic)
  }

  // @@protoc_insertion_point(class_scope:yamcs.protobuf.server.HttpTraffic)
  private static final org.yamcs.protobuf.HttpTraffic DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.yamcs.protobuf.HttpTraffic();
  }

  public static org.yamcs.protobuf.HttpTraffic getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public HttpTraffic parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new HttpTraffic(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.HttpTraffic getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy