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

org.yamcs.protobuf.IssueCommandResponse 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/commanding/commands_service.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.commanding.IssueCommandResponse}
 */
public final class IssueCommandResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.commanding.IssueCommandResponse)
    IssueCommandResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use IssueCommandResponse.newBuilder() to construct.
  private IssueCommandResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private IssueCommandResponse() {
    id_ = "";
    origin_ = "";
    commandName_ = "";
    assignments_ = java.util.Collections.emptyList();
    unprocessedBinary_ = com.google.protobuf.ByteString.EMPTY;
    binary_ = com.google.protobuf.ByteString.EMPTY;
    username_ = "";
    queue_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private IssueCommandResponse(
      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 34: {
            bitField0_ |= 0x00000040;
            binary_ = input.readBytes();
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            id_ = bs;
            break;
          }
          case 50: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = generationTime_.toBuilder();
            }
            generationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(generationTime_);
              generationTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 58: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            origin_ = bs;
            break;
          }
          case 64: {
            bitField0_ |= 0x00000008;
            sequenceNumber_ = input.readInt32();
            break;
          }
          case 74: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            commandName_ = bs;
            break;
          }
          case 82: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000100;
            queue_ = bs;
            break;
          }
          case 90: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000080;
            username_ = bs;
            break;
          }
          case 98: {
            if (!((mutable_bitField0_ & 0x00000040) != 0)) {
              assignments_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000040;
            }
            assignments_.add(
                input.readMessage(org.yamcs.protobuf.Commanding.CommandAssignment.PARSER, extensionRegistry));
            break;
          }
          case 106: {
            bitField0_ |= 0x00000020;
            unprocessedBinary_ = input.readBytes();
            break;
          }
          case 114: {
            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
              aliases_ = com.google.protobuf.MapField.newMapField(
                  AliasesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000020;
            }
            com.google.protobuf.MapEntry
            aliases__ = input.readMessage(
                AliasesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            aliases_.getMutableMap().put(
                aliases__.getKey(), aliases__.getValue());
            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_ & 0x00000040) != 0)) {
        assignments_ = java.util.Collections.unmodifiableList(assignments_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandResponse_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 14:
        return internalGetAliases();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.IssueCommandResponse.class, org.yamcs.protobuf.IssueCommandResponse.Builder.class);
  }

  private int bitField0_;
  public static final int ID_FIELD_NUMBER = 5;
  private volatile java.lang.Object id_;
  /**
   * 
   * Command ID
   * 
* * optional string id = 5; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Command ID
   * 
* * optional string id = 5; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** *
   * Command ID
   * 
* * optional string id = 5; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GENERATIONTIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp generationTime_; /** *
   * Command generation time
   * 
* * optional .google.protobuf.Timestamp generationTime = 6; * @return Whether the generationTime field is set. */ @java.lang.Override public boolean hasGenerationTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Command generation time
   * 
* * optional .google.protobuf.Timestamp generationTime = 6; * @return The generationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getGenerationTime() { return generationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generationTime_; } /** *
   * Command generation time
   * 
* * optional .google.protobuf.Timestamp generationTime = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getGenerationTimeOrBuilder() { return generationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generationTime_; } public static final int ORIGIN_FIELD_NUMBER = 7; private volatile java.lang.Object origin_; /** *
   * The origin of the command. Typically a hostname.
   * 
* * optional string origin = 7; * @return Whether the origin field is set. */ @java.lang.Override public boolean hasOrigin() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * The origin of the command. Typically a hostname.
   * 
* * optional string origin = 7; * @return The origin. */ @java.lang.Override public java.lang.String getOrigin() { java.lang.Object ref = origin_; 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()) { origin_ = s; } return s; } } /** *
   * The origin of the command. Typically a hostname.
   * 
* * optional string origin = 7; * @return The bytes for origin. */ @java.lang.Override public com.google.protobuf.ByteString getOriginBytes() { java.lang.Object ref = origin_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); origin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SEQUENCENUMBER_FIELD_NUMBER = 8; private int sequenceNumber_; /** *
   * The sequence number for the origin
   * 
* * optional int32 sequenceNumber = 8; * @return Whether the sequenceNumber field is set. */ @java.lang.Override public boolean hasSequenceNumber() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * The sequence number for the origin
   * 
* * optional int32 sequenceNumber = 8; * @return The sequenceNumber. */ @java.lang.Override public int getSequenceNumber() { return sequenceNumber_; } public static final int COMMANDNAME_FIELD_NUMBER = 9; private volatile java.lang.Object commandName_; /** *
   * Qualified name
   * 
* * optional string commandName = 9; * @return Whether the commandName field is set. */ @java.lang.Override public boolean hasCommandName() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Qualified name
   * 
* * optional string commandName = 9; * @return The commandName. */ @java.lang.Override public java.lang.String getCommandName() { java.lang.Object ref = commandName_; 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()) { commandName_ = s; } return s; } } /** *
   * Qualified name
   * 
* * optional string commandName = 9; * @return The bytes for commandName. */ @java.lang.Override public com.google.protobuf.ByteString getCommandNameBytes() { java.lang.Object ref = commandName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); commandName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ALIASES_FIELD_NUMBER = 14; private static final class AliasesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandResponse_AliasesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> aliases_; private com.google.protobuf.MapField internalGetAliases() { if (aliases_ == null) { return com.google.protobuf.MapField.emptyMapField( AliasesDefaultEntryHolder.defaultEntry); } return aliases_; } public int getAliasesCount() { return internalGetAliases().getMap().size(); } /** *
   * Name aliases keyed by namespace.
   * (as currently present in Mission Database)
   * 
* * map<string, string> aliases = 14; */ @java.lang.Override public boolean containsAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAliases().getMap().containsKey(key); } /** * Use {@link #getAliasesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAliases() { return getAliasesMap(); } /** *
   * Name aliases keyed by namespace.
   * (as currently present in Mission Database)
   * 
* * map<string, string> aliases = 14; */ @java.lang.Override public java.util.Map getAliasesMap() { return internalGetAliases().getMap(); } /** *
   * Name aliases keyed by namespace.
   * (as currently present in Mission Database)
   * 
* * map<string, string> aliases = 14; */ @java.lang.Override public java.lang.String getAliasesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAliases().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Name aliases keyed by namespace.
   * (as currently present in Mission Database)
   * 
* * map<string, string> aliases = 14; */ @java.lang.Override public java.lang.String getAliasesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAliases().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int ASSIGNMENTS_FIELD_NUMBER = 12; private java.util.List assignments_; /** *
   * The name/value assignments for this command
   * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ @java.lang.Override public java.util.List getAssignmentsList() { return assignments_; } /** *
   * The name/value assignments for this command
   * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ @java.lang.Override public java.util.List getAssignmentsOrBuilderList() { return assignments_; } /** *
   * The name/value assignments for this command
   * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ @java.lang.Override public int getAssignmentsCount() { return assignments_.size(); } /** *
   * The name/value assignments for this command
   * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ @java.lang.Override public org.yamcs.protobuf.Commanding.CommandAssignment getAssignments(int index) { return assignments_.get(index); } /** *
   * The name/value assignments for this command
   * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ @java.lang.Override public org.yamcs.protobuf.Commanding.CommandAssignmentOrBuilder getAssignmentsOrBuilder( int index) { return assignments_.get(index); } public static final int UNPROCESSEDBINARY_FIELD_NUMBER = 13; private com.google.protobuf.ByteString unprocessedBinary_; /** *
   * Generated binary, before any link post-processing
   * 
* * optional bytes unprocessedBinary = 13; * @return Whether the unprocessedBinary field is set. */ @java.lang.Override public boolean hasUnprocessedBinary() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Generated binary, before any link post-processing
   * 
* * optional bytes unprocessedBinary = 13; * @return The unprocessedBinary. */ @java.lang.Override public com.google.protobuf.ByteString getUnprocessedBinary() { return unprocessedBinary_; } public static final int BINARY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString binary_; /** *
   * Generated binary, after link post-processing.
   * The differences compared to ``unprocessedBinary``,
   * can be anything. Typical manipulations include
   * sequence numbers or checksum calculations.
   * 
* * optional bytes binary = 4; * @return Whether the binary field is set. */ @java.lang.Override public boolean hasBinary() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Generated binary, after link post-processing.
   * The differences compared to ``unprocessedBinary``,
   * can be anything. Typical manipulations include
   * sequence numbers or checksum calculations.
   * 
* * optional bytes binary = 4; * @return The binary. */ @java.lang.Override public com.google.protobuf.ByteString getBinary() { return binary_; } public static final int USERNAME_FIELD_NUMBER = 11; private volatile java.lang.Object username_; /** *
   * Command issuer
   * 
* * optional string username = 11; * @return Whether the username field is set. */ @java.lang.Override public boolean hasUsername() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * Command issuer
   * 
* * optional string username = 11; * @return The username. */ @java.lang.Override public java.lang.String getUsername() { java.lang.Object ref = username_; 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()) { username_ = s; } return s; } } /** *
   * Command issuer
   * 
* * optional string username = 11; * @return The bytes for username. */ @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUEUE_FIELD_NUMBER = 10; private volatile java.lang.Object queue_; /** *
   * Queue that was selected for this command
   * 
* * optional string queue = 10; * @return Whether the queue field is set. */ @java.lang.Override public boolean hasQueue() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * Queue that was selected for this command
   * 
* * optional string queue = 10; * @return The queue. */ @java.lang.Override public java.lang.String getQueue() { java.lang.Object ref = queue_; 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()) { queue_ = s; } return s; } } /** *
   * Queue that was selected for this command
   * 
* * optional string queue = 10; * @return The bytes for queue. */ @java.lang.Override public com.google.protobuf.ByteString getQueueBytes() { java.lang.Object ref = queue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getAssignmentsCount(); i++) { if (!getAssignments(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000040) != 0)) { output.writeBytes(4, binary_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, id_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getGenerationTime()); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, origin_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(8, sequenceNumber_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, commandName_); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, queue_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, username_); } for (int i = 0; i < assignments_.size(); i++) { output.writeMessage(12, assignments_.get(i)); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBytes(13, unprocessedBinary_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAliases(), AliasesDefaultEntryHolder.defaultEntry, 14); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, binary_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getGenerationTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, origin_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, sequenceNumber_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, commandName_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, queue_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, username_); } for (int i = 0; i < assignments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, assignments_.get(i)); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, unprocessedBinary_); } for (java.util.Map.Entry entry : internalGetAliases().getMap().entrySet()) { com.google.protobuf.MapEntry aliases__ = AliasesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, aliases__); } 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.IssueCommandResponse)) { return super.equals(obj); } org.yamcs.protobuf.IssueCommandResponse other = (org.yamcs.protobuf.IssueCommandResponse) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasGenerationTime() != other.hasGenerationTime()) return false; if (hasGenerationTime()) { if (!getGenerationTime() .equals(other.getGenerationTime())) return false; } if (hasOrigin() != other.hasOrigin()) return false; if (hasOrigin()) { if (!getOrigin() .equals(other.getOrigin())) return false; } if (hasSequenceNumber() != other.hasSequenceNumber()) return false; if (hasSequenceNumber()) { if (getSequenceNumber() != other.getSequenceNumber()) return false; } if (hasCommandName() != other.hasCommandName()) return false; if (hasCommandName()) { if (!getCommandName() .equals(other.getCommandName())) return false; } if (!internalGetAliases().equals( other.internalGetAliases())) return false; if (!getAssignmentsList() .equals(other.getAssignmentsList())) return false; if (hasUnprocessedBinary() != other.hasUnprocessedBinary()) return false; if (hasUnprocessedBinary()) { if (!getUnprocessedBinary() .equals(other.getUnprocessedBinary())) return false; } if (hasBinary() != other.hasBinary()) return false; if (hasBinary()) { if (!getBinary() .equals(other.getBinary())) return false; } if (hasUsername() != other.hasUsername()) return false; if (hasUsername()) { if (!getUsername() .equals(other.getUsername())) return false; } if (hasQueue() != other.hasQueue()) return false; if (hasQueue()) { if (!getQueue() .equals(other.getQueue())) 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 (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasGenerationTime()) { hash = (37 * hash) + GENERATIONTIME_FIELD_NUMBER; hash = (53 * hash) + getGenerationTime().hashCode(); } if (hasOrigin()) { hash = (37 * hash) + ORIGIN_FIELD_NUMBER; hash = (53 * hash) + getOrigin().hashCode(); } if (hasSequenceNumber()) { hash = (37 * hash) + SEQUENCENUMBER_FIELD_NUMBER; hash = (53 * hash) + getSequenceNumber(); } if (hasCommandName()) { hash = (37 * hash) + COMMANDNAME_FIELD_NUMBER; hash = (53 * hash) + getCommandName().hashCode(); } if (!internalGetAliases().getMap().isEmpty()) { hash = (37 * hash) + ALIASES_FIELD_NUMBER; hash = (53 * hash) + internalGetAliases().hashCode(); } if (getAssignmentsCount() > 0) { hash = (37 * hash) + ASSIGNMENTS_FIELD_NUMBER; hash = (53 * hash) + getAssignmentsList().hashCode(); } if (hasUnprocessedBinary()) { hash = (37 * hash) + UNPROCESSEDBINARY_FIELD_NUMBER; hash = (53 * hash) + getUnprocessedBinary().hashCode(); } if (hasBinary()) { hash = (37 * hash) + BINARY_FIELD_NUMBER; hash = (53 * hash) + getBinary().hashCode(); } if (hasUsername()) { hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); } if (hasQueue()) { hash = (37 * hash) + QUEUE_FIELD_NUMBER; hash = (53 * hash) + getQueue().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.IssueCommandResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.IssueCommandResponse 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.IssueCommandResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.IssueCommandResponse 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.IssueCommandResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.IssueCommandResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.IssueCommandResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.IssueCommandResponse 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.IssueCommandResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.IssueCommandResponse 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.IssueCommandResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.IssueCommandResponse 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.IssueCommandResponse 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.commanding.IssueCommandResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.commanding.IssueCommandResponse) org.yamcs.protobuf.IssueCommandResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 14: return internalGetAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 14: return internalGetMutableAliases(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.IssueCommandResponse.class, org.yamcs.protobuf.IssueCommandResponse.Builder.class); } // Construct using org.yamcs.protobuf.IssueCommandResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getGenerationTimeFieldBuilder(); getAssignmentsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (generationTimeBuilder_ == null) { generationTime_ = null; } else { generationTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); origin_ = ""; bitField0_ = (bitField0_ & ~0x00000004); sequenceNumber_ = 0; bitField0_ = (bitField0_ & ~0x00000008); commandName_ = ""; bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableAliases().clear(); if (assignmentsBuilder_ == null) { assignments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { assignmentsBuilder_.clear(); } unprocessedBinary_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); binary_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000100); username_ = ""; bitField0_ = (bitField0_ & ~0x00000200); queue_ = ""; bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandResponse_descriptor; } @java.lang.Override public org.yamcs.protobuf.IssueCommandResponse getDefaultInstanceForType() { return org.yamcs.protobuf.IssueCommandResponse.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.IssueCommandResponse build() { org.yamcs.protobuf.IssueCommandResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.IssueCommandResponse buildPartial() { org.yamcs.protobuf.IssueCommandResponse result = new org.yamcs.protobuf.IssueCommandResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) != 0)) { if (generationTimeBuilder_ == null) { result.generationTime_ = generationTime_; } else { result.generationTime_ = generationTimeBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.origin_ = origin_; if (((from_bitField0_ & 0x00000008) != 0)) { result.sequenceNumber_ = sequenceNumber_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.commandName_ = commandName_; result.aliases_ = internalGetAliases(); result.aliases_.makeImmutable(); if (assignmentsBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0)) { assignments_ = java.util.Collections.unmodifiableList(assignments_); bitField0_ = (bitField0_ & ~0x00000040); } result.assignments_ = assignments_; } else { result.assignments_ = assignmentsBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000020; } result.unprocessedBinary_ = unprocessedBinary_; if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000040; } result.binary_ = binary_; if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000080; } result.username_ = username_; if (((from_bitField0_ & 0x00000400) != 0)) { to_bitField0_ |= 0x00000100; } result.queue_ = queue_; 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.IssueCommandResponse) { return mergeFrom((org.yamcs.protobuf.IssueCommandResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.IssueCommandResponse other) { if (other == org.yamcs.protobuf.IssueCommandResponse.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasGenerationTime()) { mergeGenerationTime(other.getGenerationTime()); } if (other.hasOrigin()) { bitField0_ |= 0x00000004; origin_ = other.origin_; onChanged(); } if (other.hasSequenceNumber()) { setSequenceNumber(other.getSequenceNumber()); } if (other.hasCommandName()) { bitField0_ |= 0x00000010; commandName_ = other.commandName_; onChanged(); } internalGetMutableAliases().mergeFrom( other.internalGetAliases()); if (assignmentsBuilder_ == null) { if (!other.assignments_.isEmpty()) { if (assignments_.isEmpty()) { assignments_ = other.assignments_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAssignmentsIsMutable(); assignments_.addAll(other.assignments_); } onChanged(); } } else { if (!other.assignments_.isEmpty()) { if (assignmentsBuilder_.isEmpty()) { assignmentsBuilder_.dispose(); assignmentsBuilder_ = null; assignments_ = other.assignments_; bitField0_ = (bitField0_ & ~0x00000040); assignmentsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAssignmentsFieldBuilder() : null; } else { assignmentsBuilder_.addAllMessages(other.assignments_); } } } if (other.hasUnprocessedBinary()) { setUnprocessedBinary(other.getUnprocessedBinary()); } if (other.hasBinary()) { setBinary(other.getBinary()); } if (other.hasUsername()) { bitField0_ |= 0x00000200; username_ = other.username_; onChanged(); } if (other.hasQueue()) { bitField0_ |= 0x00000400; queue_ = other.queue_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getAssignmentsCount(); i++) { if (!getAssignments(i).isInitialized()) { return false; } } 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.IssueCommandResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.IssueCommandResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * Command ID
     * 
* * optional string id = 5; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Command ID
     * 
* * optional string id = 5; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Command ID
     * 
* * optional string id = 5; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Command ID
     * 
* * optional string id = 5; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** *
     * Command ID
     * 
* * optional string id = 5; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * Command ID
     * 
* * optional string id = 5; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp generationTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> generationTimeBuilder_; /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; * @return Whether the generationTime field is set. */ public boolean hasGenerationTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; * @return The generationTime. */ public com.google.protobuf.Timestamp getGenerationTime() { if (generationTimeBuilder_ == null) { return generationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generationTime_; } else { return generationTimeBuilder_.getMessage(); } } /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; */ public Builder setGenerationTime(com.google.protobuf.Timestamp value) { if (generationTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } generationTime_ = value; onChanged(); } else { generationTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; */ public Builder setGenerationTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (generationTimeBuilder_ == null) { generationTime_ = builderForValue.build(); onChanged(); } else { generationTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; */ public Builder mergeGenerationTime(com.google.protobuf.Timestamp value) { if (generationTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && generationTime_ != null && generationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { generationTime_ = com.google.protobuf.Timestamp.newBuilder(generationTime_).mergeFrom(value).buildPartial(); } else { generationTime_ = value; } onChanged(); } else { generationTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; */ public Builder clearGenerationTime() { if (generationTimeBuilder_ == null) { generationTime_ = null; onChanged(); } else { generationTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; */ public com.google.protobuf.Timestamp.Builder getGenerationTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGenerationTimeFieldBuilder().getBuilder(); } /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; */ public com.google.protobuf.TimestampOrBuilder getGenerationTimeOrBuilder() { if (generationTimeBuilder_ != null) { return generationTimeBuilder_.getMessageOrBuilder(); } else { return generationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : generationTime_; } } /** *
     * Command generation time
     * 
* * optional .google.protobuf.Timestamp generationTime = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getGenerationTimeFieldBuilder() { if (generationTimeBuilder_ == null) { generationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getGenerationTime(), getParentForChildren(), isClean()); generationTime_ = null; } return generationTimeBuilder_; } private java.lang.Object origin_ = ""; /** *
     * The origin of the command. Typically a hostname.
     * 
* * optional string origin = 7; * @return Whether the origin field is set. */ public boolean hasOrigin() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The origin of the command. Typically a hostname.
     * 
* * optional string origin = 7; * @return The origin. */ public java.lang.String getOrigin() { java.lang.Object ref = origin_; 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()) { origin_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * The origin of the command. Typically a hostname.
     * 
* * optional string origin = 7; * @return The bytes for origin. */ public com.google.protobuf.ByteString getOriginBytes() { java.lang.Object ref = origin_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); origin_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The origin of the command. Typically a hostname.
     * 
* * optional string origin = 7; * @param value The origin to set. * @return This builder for chaining. */ public Builder setOrigin( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; origin_ = value; onChanged(); return this; } /** *
     * The origin of the command. Typically a hostname.
     * 
* * optional string origin = 7; * @return This builder for chaining. */ public Builder clearOrigin() { bitField0_ = (bitField0_ & ~0x00000004); origin_ = getDefaultInstance().getOrigin(); onChanged(); return this; } /** *
     * The origin of the command. Typically a hostname.
     * 
* * optional string origin = 7; * @param value The bytes for origin to set. * @return This builder for chaining. */ public Builder setOriginBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; origin_ = value; onChanged(); return this; } private int sequenceNumber_ ; /** *
     * The sequence number for the origin
     * 
* * optional int32 sequenceNumber = 8; * @return Whether the sequenceNumber field is set. */ @java.lang.Override public boolean hasSequenceNumber() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * The sequence number for the origin
     * 
* * optional int32 sequenceNumber = 8; * @return The sequenceNumber. */ @java.lang.Override public int getSequenceNumber() { return sequenceNumber_; } /** *
     * The sequence number for the origin
     * 
* * optional int32 sequenceNumber = 8; * @param value The sequenceNumber to set. * @return This builder for chaining. */ public Builder setSequenceNumber(int value) { bitField0_ |= 0x00000008; sequenceNumber_ = value; onChanged(); return this; } /** *
     * The sequence number for the origin
     * 
* * optional int32 sequenceNumber = 8; * @return This builder for chaining. */ public Builder clearSequenceNumber() { bitField0_ = (bitField0_ & ~0x00000008); sequenceNumber_ = 0; onChanged(); return this; } private java.lang.Object commandName_ = ""; /** *
     * Qualified name
     * 
* * optional string commandName = 9; * @return Whether the commandName field is set. */ public boolean hasCommandName() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Qualified name
     * 
* * optional string commandName = 9; * @return The commandName. */ public java.lang.String getCommandName() { java.lang.Object ref = commandName_; 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()) { commandName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Qualified name
     * 
* * optional string commandName = 9; * @return The bytes for commandName. */ public com.google.protobuf.ByteString getCommandNameBytes() { java.lang.Object ref = commandName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); commandName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Qualified name
     * 
* * optional string commandName = 9; * @param value The commandName to set. * @return This builder for chaining. */ public Builder setCommandName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; commandName_ = value; onChanged(); return this; } /** *
     * Qualified name
     * 
* * optional string commandName = 9; * @return This builder for chaining. */ public Builder clearCommandName() { bitField0_ = (bitField0_ & ~0x00000010); commandName_ = getDefaultInstance().getCommandName(); onChanged(); return this; } /** *
     * Qualified name
     * 
* * optional string commandName = 9; * @param value The bytes for commandName to set. * @return This builder for chaining. */ public Builder setCommandNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; commandName_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> aliases_; private com.google.protobuf.MapField internalGetAliases() { if (aliases_ == null) { return com.google.protobuf.MapField.emptyMapField( AliasesDefaultEntryHolder.defaultEntry); } return aliases_; } private com.google.protobuf.MapField internalGetMutableAliases() { onChanged();; if (aliases_ == null) { aliases_ = com.google.protobuf.MapField.newMapField( AliasesDefaultEntryHolder.defaultEntry); } if (!aliases_.isMutable()) { aliases_ = aliases_.copy(); } return aliases_; } public int getAliasesCount() { return internalGetAliases().getMap().size(); } /** *
     * Name aliases keyed by namespace.
     * (as currently present in Mission Database)
     * 
* * map<string, string> aliases = 14; */ @java.lang.Override public boolean containsAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAliases().getMap().containsKey(key); } /** * Use {@link #getAliasesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAliases() { return getAliasesMap(); } /** *
     * Name aliases keyed by namespace.
     * (as currently present in Mission Database)
     * 
* * map<string, string> aliases = 14; */ @java.lang.Override public java.util.Map getAliasesMap() { return internalGetAliases().getMap(); } /** *
     * Name aliases keyed by namespace.
     * (as currently present in Mission Database)
     * 
* * map<string, string> aliases = 14; */ @java.lang.Override public java.lang.String getAliasesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAliases().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Name aliases keyed by namespace.
     * (as currently present in Mission Database)
     * 
* * map<string, string> aliases = 14; */ @java.lang.Override public java.lang.String getAliasesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAliases().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearAliases() { internalGetMutableAliases().getMutableMap() .clear(); return this; } /** *
     * Name aliases keyed by namespace.
     * (as currently present in Mission Database)
     * 
* * map<string, string> aliases = 14; */ public Builder removeAliases( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAliases().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAliases() { return internalGetMutableAliases().getMutableMap(); } /** *
     * Name aliases keyed by namespace.
     * (as currently present in Mission Database)
     * 
* * map<string, string> aliases = 14; */ public Builder putAliases( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAliases().getMutableMap() .put(key, value); return this; } /** *
     * Name aliases keyed by namespace.
     * (as currently present in Mission Database)
     * 
* * map<string, string> aliases = 14; */ public Builder putAllAliases( java.util.Map values) { internalGetMutableAliases().getMutableMap() .putAll(values); return this; } private java.util.List assignments_ = java.util.Collections.emptyList(); private void ensureAssignmentsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { assignments_ = new java.util.ArrayList(assignments_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandAssignment, org.yamcs.protobuf.Commanding.CommandAssignment.Builder, org.yamcs.protobuf.Commanding.CommandAssignmentOrBuilder> assignmentsBuilder_; /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public java.util.List getAssignmentsList() { if (assignmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(assignments_); } else { return assignmentsBuilder_.getMessageList(); } } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public int getAssignmentsCount() { if (assignmentsBuilder_ == null) { return assignments_.size(); } else { return assignmentsBuilder_.getCount(); } } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public org.yamcs.protobuf.Commanding.CommandAssignment getAssignments(int index) { if (assignmentsBuilder_ == null) { return assignments_.get(index); } else { return assignmentsBuilder_.getMessage(index); } } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder setAssignments( int index, org.yamcs.protobuf.Commanding.CommandAssignment value) { if (assignmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssignmentsIsMutable(); assignments_.set(index, value); onChanged(); } else { assignmentsBuilder_.setMessage(index, value); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder setAssignments( int index, org.yamcs.protobuf.Commanding.CommandAssignment.Builder builderForValue) { if (assignmentsBuilder_ == null) { ensureAssignmentsIsMutable(); assignments_.set(index, builderForValue.build()); onChanged(); } else { assignmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder addAssignments(org.yamcs.protobuf.Commanding.CommandAssignment value) { if (assignmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssignmentsIsMutable(); assignments_.add(value); onChanged(); } else { assignmentsBuilder_.addMessage(value); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder addAssignments( int index, org.yamcs.protobuf.Commanding.CommandAssignment value) { if (assignmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAssignmentsIsMutable(); assignments_.add(index, value); onChanged(); } else { assignmentsBuilder_.addMessage(index, value); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder addAssignments( org.yamcs.protobuf.Commanding.CommandAssignment.Builder builderForValue) { if (assignmentsBuilder_ == null) { ensureAssignmentsIsMutable(); assignments_.add(builderForValue.build()); onChanged(); } else { assignmentsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder addAssignments( int index, org.yamcs.protobuf.Commanding.CommandAssignment.Builder builderForValue) { if (assignmentsBuilder_ == null) { ensureAssignmentsIsMutable(); assignments_.add(index, builderForValue.build()); onChanged(); } else { assignmentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder addAllAssignments( java.lang.Iterable values) { if (assignmentsBuilder_ == null) { ensureAssignmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, assignments_); onChanged(); } else { assignmentsBuilder_.addAllMessages(values); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder clearAssignments() { if (assignmentsBuilder_ == null) { assignments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { assignmentsBuilder_.clear(); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public Builder removeAssignments(int index) { if (assignmentsBuilder_ == null) { ensureAssignmentsIsMutable(); assignments_.remove(index); onChanged(); } else { assignmentsBuilder_.remove(index); } return this; } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public org.yamcs.protobuf.Commanding.CommandAssignment.Builder getAssignmentsBuilder( int index) { return getAssignmentsFieldBuilder().getBuilder(index); } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public org.yamcs.protobuf.Commanding.CommandAssignmentOrBuilder getAssignmentsOrBuilder( int index) { if (assignmentsBuilder_ == null) { return assignments_.get(index); } else { return assignmentsBuilder_.getMessageOrBuilder(index); } } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public java.util.List getAssignmentsOrBuilderList() { if (assignmentsBuilder_ != null) { return assignmentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(assignments_); } } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public org.yamcs.protobuf.Commanding.CommandAssignment.Builder addAssignmentsBuilder() { return getAssignmentsFieldBuilder().addBuilder( org.yamcs.protobuf.Commanding.CommandAssignment.getDefaultInstance()); } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public org.yamcs.protobuf.Commanding.CommandAssignment.Builder addAssignmentsBuilder( int index) { return getAssignmentsFieldBuilder().addBuilder( index, org.yamcs.protobuf.Commanding.CommandAssignment.getDefaultInstance()); } /** *
     * The name/value assignments for this command
     * 
* * repeated .yamcs.protobuf.commanding.CommandAssignment assignments = 12; */ public java.util.List getAssignmentsBuilderList() { return getAssignmentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandAssignment, org.yamcs.protobuf.Commanding.CommandAssignment.Builder, org.yamcs.protobuf.Commanding.CommandAssignmentOrBuilder> getAssignmentsFieldBuilder() { if (assignmentsBuilder_ == null) { assignmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandAssignment, org.yamcs.protobuf.Commanding.CommandAssignment.Builder, org.yamcs.protobuf.Commanding.CommandAssignmentOrBuilder>( assignments_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); assignments_ = null; } return assignmentsBuilder_; } private com.google.protobuf.ByteString unprocessedBinary_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Generated binary, before any link post-processing
     * 
* * optional bytes unprocessedBinary = 13; * @return Whether the unprocessedBinary field is set. */ @java.lang.Override public boolean hasUnprocessedBinary() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Generated binary, before any link post-processing
     * 
* * optional bytes unprocessedBinary = 13; * @return The unprocessedBinary. */ @java.lang.Override public com.google.protobuf.ByteString getUnprocessedBinary() { return unprocessedBinary_; } /** *
     * Generated binary, before any link post-processing
     * 
* * optional bytes unprocessedBinary = 13; * @param value The unprocessedBinary to set. * @return This builder for chaining. */ public Builder setUnprocessedBinary(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; unprocessedBinary_ = value; onChanged(); return this; } /** *
     * Generated binary, before any link post-processing
     * 
* * optional bytes unprocessedBinary = 13; * @return This builder for chaining. */ public Builder clearUnprocessedBinary() { bitField0_ = (bitField0_ & ~0x00000080); unprocessedBinary_ = getDefaultInstance().getUnprocessedBinary(); onChanged(); return this; } private com.google.protobuf.ByteString binary_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Generated binary, after link post-processing.
     * The differences compared to ``unprocessedBinary``,
     * can be anything. Typical manipulations include
     * sequence numbers or checksum calculations.
     * 
* * optional bytes binary = 4; * @return Whether the binary field is set. */ @java.lang.Override public boolean hasBinary() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Generated binary, after link post-processing.
     * The differences compared to ``unprocessedBinary``,
     * can be anything. Typical manipulations include
     * sequence numbers or checksum calculations.
     * 
* * optional bytes binary = 4; * @return The binary. */ @java.lang.Override public com.google.protobuf.ByteString getBinary() { return binary_; } /** *
     * Generated binary, after link post-processing.
     * The differences compared to ``unprocessedBinary``,
     * can be anything. Typical manipulations include
     * sequence numbers or checksum calculations.
     * 
* * optional bytes binary = 4; * @param value The binary to set. * @return This builder for chaining. */ public Builder setBinary(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; binary_ = value; onChanged(); return this; } /** *
     * Generated binary, after link post-processing.
     * The differences compared to ``unprocessedBinary``,
     * can be anything. Typical manipulations include
     * sequence numbers or checksum calculations.
     * 
* * optional bytes binary = 4; * @return This builder for chaining. */ public Builder clearBinary() { bitField0_ = (bitField0_ & ~0x00000100); binary_ = getDefaultInstance().getBinary(); onChanged(); return this; } private java.lang.Object username_ = ""; /** *
     * Command issuer
     * 
* * optional string username = 11; * @return Whether the username field is set. */ public boolean hasUsername() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Command issuer
     * 
* * optional string username = 11; * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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()) { username_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Command issuer
     * 
* * optional string username = 11; * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Command issuer
     * 
* * optional string username = 11; * @param value The username to set. * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; username_ = value; onChanged(); return this; } /** *
     * Command issuer
     * 
* * optional string username = 11; * @return This builder for chaining. */ public Builder clearUsername() { bitField0_ = (bitField0_ & ~0x00000200); username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** *
     * Command issuer
     * 
* * optional string username = 11; * @param value The bytes for username to set. * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; username_ = value; onChanged(); return this; } private java.lang.Object queue_ = ""; /** *
     * Queue that was selected for this command
     * 
* * optional string queue = 10; * @return Whether the queue field is set. */ public boolean hasQueue() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Queue that was selected for this command
     * 
* * optional string queue = 10; * @return The queue. */ public java.lang.String getQueue() { java.lang.Object ref = queue_; 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()) { queue_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Queue that was selected for this command
     * 
* * optional string queue = 10; * @return The bytes for queue. */ public com.google.protobuf.ByteString getQueueBytes() { java.lang.Object ref = queue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Queue that was selected for this command
     * 
* * optional string queue = 10; * @param value The queue to set. * @return This builder for chaining. */ public Builder setQueue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; queue_ = value; onChanged(); return this; } /** *
     * Queue that was selected for this command
     * 
* * optional string queue = 10; * @return This builder for chaining. */ public Builder clearQueue() { bitField0_ = (bitField0_ & ~0x00000400); queue_ = getDefaultInstance().getQueue(); onChanged(); return this; } /** *
     * Queue that was selected for this command
     * 
* * optional string queue = 10; * @param value The bytes for queue to set. * @return This builder for chaining. */ public Builder setQueueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; queue_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yamcs.protobuf.commanding.IssueCommandResponse) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.commanding.IssueCommandResponse) private static final org.yamcs.protobuf.IssueCommandResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.IssueCommandResponse(); } public static org.yamcs.protobuf.IssueCommandResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IssueCommandResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new IssueCommandResponse(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.IssueCommandResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy