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

org.yamcs.protobuf.ProcessInfo 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.ProcessInfo}
 */
public final class ProcessInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.server.ProcessInfo)
    ProcessInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ProcessInfo.newBuilder() to construct.
  private ProcessInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ProcessInfo() {
    user_ = "";
    command_ = "";
    arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    children_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ProcessInfo(
      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;
            pid_ = input.readInt64();
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            user_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            command_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
              arguments_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            arguments_.add(bs);
            break;
          }
          case 42: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000008) != 0)) {
              subBuilder = startTime_.toBuilder();
            }
            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(startTime_);
              startTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000008;
            break;
          }
          case 50: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (((bitField0_ & 0x00000010) != 0)) {
              subBuilder = totalCpuDuration_.toBuilder();
            }
            totalCpuDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(totalCpuDuration_);
              totalCpuDuration_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000010;
            break;
          }
          case 58: {
            if (!((mutable_bitField0_ & 0x00000040) != 0)) {
              children_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000040;
            }
            children_.add(
                input.readMessage(org.yamcs.protobuf.ProcessInfo.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_ & 0x00000008) != 0)) {
        arguments_ = arguments_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000040) != 0)) {
        children_ = java.util.Collections.unmodifiableList(children_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_ProcessInfo_descriptor;
  }

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

  private int bitField0_;
  public static final int PID_FIELD_NUMBER = 1;
  private long pid_;
  /**
   * 
   * Native process ID.
   * 
* * optional int64 pid = 1; * @return Whether the pid field is set. */ @java.lang.Override public boolean hasPid() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Native process ID.
   * 
* * optional int64 pid = 1; * @return The pid. */ @java.lang.Override public long getPid() { return pid_; } public static final int USER_FIELD_NUMBER = 2; private volatile java.lang.Object user_; /** *
   * User of the process.
   * 
* * optional string user = 2; * @return Whether the user field is set. */ @java.lang.Override public boolean hasUser() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * User of the process.
   * 
* * optional string user = 2; * @return The user. */ @java.lang.Override public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } } /** *
   * User of the process.
   * 
* * optional string user = 2; * @return The bytes for user. */ @java.lang.Override public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMAND_FIELD_NUMBER = 3; private volatile java.lang.Object command_; /** *
   * Executable pathname of the process.
   * 
* * optional string command = 3; * @return Whether the command field is set. */ @java.lang.Override public boolean hasCommand() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Executable pathname of the process.
   * 
* * optional string command = 3; * @return The command. */ @java.lang.Override public java.lang.String getCommand() { java.lang.Object ref = command_; 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()) { command_ = s; } return s; } } /** *
   * Executable pathname of the process.
   * 
* * optional string command = 3; * @return The bytes for command. */ @java.lang.Override public com.google.protobuf.ByteString getCommandBytes() { java.lang.Object ref = command_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); command_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARGUMENTS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList arguments_; /** *
   * Arguments of the process.
   * 
* * repeated string arguments = 4; * @return A list containing the arguments. */ public com.google.protobuf.ProtocolStringList getArgumentsList() { return arguments_; } /** *
   * Arguments of the process.
   * 
* * repeated string arguments = 4; * @return The count of arguments. */ public int getArgumentsCount() { return arguments_.size(); } /** *
   * Arguments of the process.
   * 
* * repeated string arguments = 4; * @param index The index of the element to return. * @return The arguments at the given index. */ public java.lang.String getArguments(int index) { return arguments_.get(index); } /** *
   * Arguments of the process.
   * 
* * repeated string arguments = 4; * @param index The index of the value to return. * @return The bytes of the arguments at the given index. */ public com.google.protobuf.ByteString getArgumentsBytes(int index) { return arguments_.getByteString(index); } public static final int STARTTIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp startTime_; /** *
   * Start time of the process.
   * 
* * optional .google.protobuf.Timestamp startTime = 5; * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Start time of the process.
   * 
* * optional .google.protobuf.Timestamp startTime = 5; * @return The startTime. */ @java.lang.Override public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** *
   * Start time of the process.
   * 
* * optional .google.protobuf.Timestamp startTime = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int TOTALCPUDURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration totalCpuDuration_; /** *
   * Accumulated total cputime.
   * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; * @return Whether the totalCpuDuration field is set. */ @java.lang.Override public boolean hasTotalCpuDuration() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Accumulated total cputime.
   * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; * @return The totalCpuDuration. */ @java.lang.Override public com.google.protobuf.Duration getTotalCpuDuration() { return totalCpuDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalCpuDuration_; } /** *
   * Accumulated total cputime.
   * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTotalCpuDurationOrBuilder() { return totalCpuDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalCpuDuration_; } public static final int CHILDREN_FIELD_NUMBER = 7; private java.util.List children_; /** *
   * Direct children of the process.
   * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ @java.lang.Override public java.util.List getChildrenList() { return children_; } /** *
   * Direct children of the process.
   * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ @java.lang.Override public java.util.List getChildrenOrBuilderList() { return children_; } /** *
   * Direct children of the process.
   * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ @java.lang.Override public int getChildrenCount() { return children_.size(); } /** *
   * Direct children of the process.
   * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ @java.lang.Override public org.yamcs.protobuf.ProcessInfo getChildren(int index) { return children_.get(index); } /** *
   * Direct children of the process.
   * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ @java.lang.Override public org.yamcs.protobuf.ProcessInfoOrBuilder getChildrenOrBuilder( int index) { return children_.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.writeInt64(1, pid_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, user_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, command_); } for (int i = 0; i < arguments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, arguments_.getRaw(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getStartTime()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(6, getTotalCpuDuration()); } for (int i = 0; i < children_.size(); i++) { output.writeMessage(7, children_.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 .computeInt64Size(1, pid_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, user_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, command_); } { int dataSize = 0; for (int i = 0; i < arguments_.size(); i++) { dataSize += computeStringSizeNoTag(arguments_.getRaw(i)); } size += dataSize; size += 1 * getArgumentsList().size(); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getStartTime()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getTotalCpuDuration()); } for (int i = 0; i < children_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, children_.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.ProcessInfo)) { return super.equals(obj); } org.yamcs.protobuf.ProcessInfo other = (org.yamcs.protobuf.ProcessInfo) obj; if (hasPid() != other.hasPid()) return false; if (hasPid()) { if (getPid() != other.getPid()) return false; } if (hasUser() != other.hasUser()) return false; if (hasUser()) { if (!getUser() .equals(other.getUser())) return false; } if (hasCommand() != other.hasCommand()) return false; if (hasCommand()) { if (!getCommand() .equals(other.getCommand())) return false; } if (!getArgumentsList() .equals(other.getArgumentsList())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime() .equals(other.getStartTime())) return false; } if (hasTotalCpuDuration() != other.hasTotalCpuDuration()) return false; if (hasTotalCpuDuration()) { if (!getTotalCpuDuration() .equals(other.getTotalCpuDuration())) return false; } if (!getChildrenList() .equals(other.getChildrenList())) 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 (hasPid()) { hash = (37 * hash) + PID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPid()); } if (hasUser()) { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } if (getArgumentsCount() > 0) { hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER; hash = (53 * hash) + getArgumentsList().hashCode(); } if (hasStartTime()) { hash = (37 * hash) + STARTTIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); } if (hasTotalCpuDuration()) { hash = (37 * hash) + TOTALCPUDURATION_FIELD_NUMBER; hash = (53 * hash) + getTotalCpuDuration().hashCode(); } if (getChildrenCount() > 0) { hash = (37 * hash) + CHILDREN_FIELD_NUMBER; hash = (53 * hash) + getChildrenList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.ProcessInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ProcessInfo 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.ProcessInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ProcessInfo 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.ProcessInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ProcessInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ProcessInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ProcessInfo 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.ProcessInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.ProcessInfo 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.ProcessInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ProcessInfo 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.ProcessInfo 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.ProcessInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.server.ProcessInfo) org.yamcs.protobuf.ProcessInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_ProcessInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_ProcessInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.ProcessInfo.class, org.yamcs.protobuf.ProcessInfo.Builder.class); } // Construct using org.yamcs.protobuf.ProcessInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStartTimeFieldBuilder(); getTotalCpuDurationFieldBuilder(); getChildrenFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); pid_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); user_ = ""; bitField0_ = (bitField0_ & ~0x00000002); command_ = ""; bitField0_ = (bitField0_ & ~0x00000004); arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); if (startTimeBuilder_ == null) { startTime_ = null; } else { startTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (totalCpuDurationBuilder_ == null) { totalCpuDuration_ = null; } else { totalCpuDurationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (childrenBuilder_ == null) { children_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { childrenBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.ServerServiceProto.internal_static_yamcs_protobuf_server_ProcessInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.ProcessInfo getDefaultInstanceForType() { return org.yamcs.protobuf.ProcessInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.ProcessInfo build() { org.yamcs.protobuf.ProcessInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.ProcessInfo buildPartial() { org.yamcs.protobuf.ProcessInfo result = new org.yamcs.protobuf.ProcessInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.pid_ = pid_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.user_ = user_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.command_ = command_; if (((bitField0_ & 0x00000008) != 0)) { arguments_ = arguments_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.arguments_ = arguments_; if (((from_bitField0_ & 0x00000010) != 0)) { if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { if (totalCpuDurationBuilder_ == null) { result.totalCpuDuration_ = totalCpuDuration_; } else { result.totalCpuDuration_ = totalCpuDurationBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (childrenBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { children_ = java.util.Collections.unmodifiableList(children_); bitField0_ = (bitField0_ & ~0x00000040); } result.children_ = children_; } else { result.children_ = childrenBuilder_.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.ProcessInfo) { return mergeFrom((org.yamcs.protobuf.ProcessInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.ProcessInfo other) { if (other == org.yamcs.protobuf.ProcessInfo.getDefaultInstance()) return this; if (other.hasPid()) { setPid(other.getPid()); } if (other.hasUser()) { bitField0_ |= 0x00000002; user_ = other.user_; onChanged(); } if (other.hasCommand()) { bitField0_ |= 0x00000004; command_ = other.command_; onChanged(); } if (!other.arguments_.isEmpty()) { if (arguments_.isEmpty()) { arguments_ = other.arguments_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureArgumentsIsMutable(); arguments_.addAll(other.arguments_); } onChanged(); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasTotalCpuDuration()) { mergeTotalCpuDuration(other.getTotalCpuDuration()); } if (childrenBuilder_ == null) { if (!other.children_.isEmpty()) { if (children_.isEmpty()) { children_ = other.children_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureChildrenIsMutable(); children_.addAll(other.children_); } onChanged(); } } else { if (!other.children_.isEmpty()) { if (childrenBuilder_.isEmpty()) { childrenBuilder_.dispose(); childrenBuilder_ = null; children_ = other.children_; bitField0_ = (bitField0_ & ~0x00000040); childrenBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChildrenFieldBuilder() : null; } else { childrenBuilder_.addAllMessages(other.children_); } } } 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.ProcessInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.ProcessInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long pid_ ; /** *
     * Native process ID.
     * 
* * optional int64 pid = 1; * @return Whether the pid field is set. */ @java.lang.Override public boolean hasPid() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Native process ID.
     * 
* * optional int64 pid = 1; * @return The pid. */ @java.lang.Override public long getPid() { return pid_; } /** *
     * Native process ID.
     * 
* * optional int64 pid = 1; * @param value The pid to set. * @return This builder for chaining. */ public Builder setPid(long value) { bitField0_ |= 0x00000001; pid_ = value; onChanged(); return this; } /** *
     * Native process ID.
     * 
* * optional int64 pid = 1; * @return This builder for chaining. */ public Builder clearPid() { bitField0_ = (bitField0_ & ~0x00000001); pid_ = 0L; onChanged(); return this; } private java.lang.Object user_ = ""; /** *
     * User of the process.
     * 
* * optional string user = 2; * @return Whether the user field is set. */ public boolean hasUser() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * User of the process.
     * 
* * optional string user = 2; * @return The user. */ public java.lang.String getUser() { java.lang.Object ref = user_; 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()) { user_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * User of the process.
     * 
* * optional string user = 2; * @return The bytes for user. */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * User of the process.
     * 
* * optional string user = 2; * @param value The user to set. * @return This builder for chaining. */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; user_ = value; onChanged(); return this; } /** *
     * User of the process.
     * 
* * optional string user = 2; * @return This builder for chaining. */ public Builder clearUser() { bitField0_ = (bitField0_ & ~0x00000002); user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** *
     * User of the process.
     * 
* * optional string user = 2; * @param value The bytes for user to set. * @return This builder for chaining. */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; user_ = value; onChanged(); return this; } private java.lang.Object command_ = ""; /** *
     * Executable pathname of the process.
     * 
* * optional string command = 3; * @return Whether the command field is set. */ public boolean hasCommand() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Executable pathname of the process.
     * 
* * optional string command = 3; * @return The command. */ public java.lang.String getCommand() { java.lang.Object ref = command_; 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()) { command_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Executable pathname of the process.
     * 
* * optional string command = 3; * @return The bytes for command. */ public com.google.protobuf.ByteString getCommandBytes() { java.lang.Object ref = command_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); command_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Executable pathname of the process.
     * 
* * optional string command = 3; * @param value The command to set. * @return This builder for chaining. */ public Builder setCommand( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; command_ = value; onChanged(); return this; } /** *
     * Executable pathname of the process.
     * 
* * optional string command = 3; * @return This builder for chaining. */ public Builder clearCommand() { bitField0_ = (bitField0_ & ~0x00000004); command_ = getDefaultInstance().getCommand(); onChanged(); return this; } /** *
     * Executable pathname of the process.
     * 
* * optional string command = 3; * @param value The bytes for command to set. * @return This builder for chaining. */ public Builder setCommandBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; command_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureArgumentsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { arguments_ = new com.google.protobuf.LazyStringArrayList(arguments_); bitField0_ |= 0x00000008; } } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @return A list containing the arguments. */ public com.google.protobuf.ProtocolStringList getArgumentsList() { return arguments_.getUnmodifiableView(); } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @return The count of arguments. */ public int getArgumentsCount() { return arguments_.size(); } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @param index The index of the element to return. * @return The arguments at the given index. */ public java.lang.String getArguments(int index) { return arguments_.get(index); } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @param index The index of the value to return. * @return The bytes of the arguments at the given index. */ public com.google.protobuf.ByteString getArgumentsBytes(int index) { return arguments_.getByteString(index); } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @param index The index to set the value at. * @param value The arguments to set. * @return This builder for chaining. */ public Builder setArguments( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.set(index, value); onChanged(); return this; } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @param value The arguments to add. * @return This builder for chaining. */ public Builder addArguments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(value); onChanged(); return this; } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @param values The arguments to add. * @return This builder for chaining. */ public Builder addAllArguments( java.lang.Iterable values) { ensureArgumentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, arguments_); onChanged(); return this; } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @return This builder for chaining. */ public Builder clearArguments() { arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Arguments of the process.
     * 
* * repeated string arguments = 4; * @param value The bytes of the arguments to add. * @return This builder for chaining. */ public Builder addArgumentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureArgumentsIsMutable(); arguments_.add(value); onChanged(); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startTime_ = value; onChanged(); } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; */ public Builder setStartTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { startTime_ = com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } onChanged(); } else { startTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** *
     * Start time of the process.
     * 
* * optional .google.protobuf.Timestamp startTime = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Duration totalCpuDuration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalCpuDurationBuilder_; /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; * @return Whether the totalCpuDuration field is set. */ public boolean hasTotalCpuDuration() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; * @return The totalCpuDuration. */ public com.google.protobuf.Duration getTotalCpuDuration() { if (totalCpuDurationBuilder_ == null) { return totalCpuDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalCpuDuration_; } else { return totalCpuDurationBuilder_.getMessage(); } } /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; */ public Builder setTotalCpuDuration(com.google.protobuf.Duration value) { if (totalCpuDurationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalCpuDuration_ = value; onChanged(); } else { totalCpuDurationBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; */ public Builder setTotalCpuDuration( com.google.protobuf.Duration.Builder builderForValue) { if (totalCpuDurationBuilder_ == null) { totalCpuDuration_ = builderForValue.build(); onChanged(); } else { totalCpuDurationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; */ public Builder mergeTotalCpuDuration(com.google.protobuf.Duration value) { if (totalCpuDurationBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && totalCpuDuration_ != null && totalCpuDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { totalCpuDuration_ = com.google.protobuf.Duration.newBuilder(totalCpuDuration_).mergeFrom(value).buildPartial(); } else { totalCpuDuration_ = value; } onChanged(); } else { totalCpuDurationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; */ public Builder clearTotalCpuDuration() { if (totalCpuDurationBuilder_ == null) { totalCpuDuration_ = null; onChanged(); } else { totalCpuDurationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; */ public com.google.protobuf.Duration.Builder getTotalCpuDurationBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTotalCpuDurationFieldBuilder().getBuilder(); } /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; */ public com.google.protobuf.DurationOrBuilder getTotalCpuDurationOrBuilder() { if (totalCpuDurationBuilder_ != null) { return totalCpuDurationBuilder_.getMessageOrBuilder(); } else { return totalCpuDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalCpuDuration_; } } /** *
     * Accumulated total cputime.
     * 
* * optional .google.protobuf.Duration totalCpuDuration = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTotalCpuDurationFieldBuilder() { if (totalCpuDurationBuilder_ == null) { totalCpuDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getTotalCpuDuration(), getParentForChildren(), isClean()); totalCpuDuration_ = null; } return totalCpuDurationBuilder_; } private java.util.List children_ = java.util.Collections.emptyList(); private void ensureChildrenIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { children_ = new java.util.ArrayList(children_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ProcessInfo, org.yamcs.protobuf.ProcessInfo.Builder, org.yamcs.protobuf.ProcessInfoOrBuilder> childrenBuilder_; /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public java.util.List getChildrenList() { if (childrenBuilder_ == null) { return java.util.Collections.unmodifiableList(children_); } else { return childrenBuilder_.getMessageList(); } } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public int getChildrenCount() { if (childrenBuilder_ == null) { return children_.size(); } else { return childrenBuilder_.getCount(); } } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public org.yamcs.protobuf.ProcessInfo getChildren(int index) { if (childrenBuilder_ == null) { return children_.get(index); } else { return childrenBuilder_.getMessage(index); } } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder setChildren( int index, org.yamcs.protobuf.ProcessInfo value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.set(index, value); onChanged(); } else { childrenBuilder_.setMessage(index, value); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder setChildren( int index, org.yamcs.protobuf.ProcessInfo.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.set(index, builderForValue.build()); onChanged(); } else { childrenBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder addChildren(org.yamcs.protobuf.ProcessInfo value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.add(value); onChanged(); } else { childrenBuilder_.addMessage(value); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder addChildren( int index, org.yamcs.protobuf.ProcessInfo value) { if (childrenBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildrenIsMutable(); children_.add(index, value); onChanged(); } else { childrenBuilder_.addMessage(index, value); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder addChildren( org.yamcs.protobuf.ProcessInfo.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.add(builderForValue.build()); onChanged(); } else { childrenBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder addChildren( int index, org.yamcs.protobuf.ProcessInfo.Builder builderForValue) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.add(index, builderForValue.build()); onChanged(); } else { childrenBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder addAllChildren( java.lang.Iterable values) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, children_); onChanged(); } else { childrenBuilder_.addAllMessages(values); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder clearChildren() { if (childrenBuilder_ == null) { children_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { childrenBuilder_.clear(); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public Builder removeChildren(int index) { if (childrenBuilder_ == null) { ensureChildrenIsMutable(); children_.remove(index); onChanged(); } else { childrenBuilder_.remove(index); } return this; } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public org.yamcs.protobuf.ProcessInfo.Builder getChildrenBuilder( int index) { return getChildrenFieldBuilder().getBuilder(index); } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public org.yamcs.protobuf.ProcessInfoOrBuilder getChildrenOrBuilder( int index) { if (childrenBuilder_ == null) { return children_.get(index); } else { return childrenBuilder_.getMessageOrBuilder(index); } } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public java.util.List getChildrenOrBuilderList() { if (childrenBuilder_ != null) { return childrenBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(children_); } } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public org.yamcs.protobuf.ProcessInfo.Builder addChildrenBuilder() { return getChildrenFieldBuilder().addBuilder( org.yamcs.protobuf.ProcessInfo.getDefaultInstance()); } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public org.yamcs.protobuf.ProcessInfo.Builder addChildrenBuilder( int index) { return getChildrenFieldBuilder().addBuilder( index, org.yamcs.protobuf.ProcessInfo.getDefaultInstance()); } /** *
     * Direct children of the process.
     * 
* * repeated .yamcs.protobuf.server.ProcessInfo children = 7; */ public java.util.List getChildrenBuilderList() { return getChildrenFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ProcessInfo, org.yamcs.protobuf.ProcessInfo.Builder, org.yamcs.protobuf.ProcessInfoOrBuilder> getChildrenFieldBuilder() { if (childrenBuilder_ == null) { childrenBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ProcessInfo, org.yamcs.protobuf.ProcessInfo.Builder, org.yamcs.protobuf.ProcessInfoOrBuilder>( children_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); children_ = null; } return childrenBuilder_; } @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.ProcessInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.server.ProcessInfo) private static final org.yamcs.protobuf.ProcessInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.ProcessInfo(); } public static org.yamcs.protobuf.ProcessInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProcessInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProcessInfo(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.ProcessInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy