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

org.yamcs.protobuf.YamcsInstance 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/instances/instances.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.instances.YamcsInstance}
 */
public final class YamcsInstance extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.instances.YamcsInstance)
    YamcsInstanceOrBuilder {
private static final long serialVersionUID = 0L;
  // Use YamcsInstance.newBuilder() to construct.
  private YamcsInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private YamcsInstance() {
    name_ = "";
    processors_ = java.util.Collections.emptyList();
    state_ = 0;
    failureCause_ = "";
    capabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    template_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private YamcsInstance(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            name_ = bs;
            break;
          }
          case 26: {
            org.yamcs.protobuf.Mdb.MissionDatabase.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = missionDatabase_.toBuilder();
            }
            missionDatabase_ = input.readMessage(org.yamcs.protobuf.Mdb.MissionDatabase.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(missionDatabase_);
              missionDatabase_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              processors_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            processors_.add(
                input.readMessage(org.yamcs.protobuf.ProcessorInfo.PARSER, extensionRegistry));
            break;
          }
          case 74: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            failureCause_ = bs;
            break;
          }
          case 82: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000010) != 0)) {
              subBuilder = missionTime_.toBuilder();
            }
            missionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(missionTime_);
              missionTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000010;
            break;
          }
          case 88: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.yamcs.protobuf.YamcsInstance.InstanceState value = org.yamcs.protobuf.YamcsInstance.InstanceState.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(11, rawValue);
            } else {
              bitField0_ |= 0x00000004;
              state_ = rawValue;
            }
            break;
          }
          case 98: {
            if (!((mutable_bitField0_ & 0x00000040) != 0)) {
              labels_ = com.google.protobuf.MapField.newMapField(
                  LabelsDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000040;
            }
            com.google.protobuf.MapEntry
            labels__ = input.readMessage(
                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            labels_.getMutableMap().put(
                labels__.getKey(), labels__.getValue());
            break;
          }
          case 106: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000080) != 0)) {
              capabilities_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000080;
            }
            capabilities_.add(bs);
            break;
          }
          case 114: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000020;
            template_ = bs;
            break;
          }
          case 122: {
            if (!((mutable_bitField0_ & 0x00000200) != 0)) {
              templateArgs_ = com.google.protobuf.MapField.newMapField(
                  TemplateArgsDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000200;
            }
            com.google.protobuf.MapEntry
            templateArgs__ = input.readMessage(
                TemplateArgsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            templateArgs_.getMutableMap().put(
                templateArgs__.getKey(), templateArgs__.getValue());
            break;
          }
          case 128: {
            bitField0_ |= 0x00000040;
            templateAvailable_ = input.readBool();
            break;
          }
          case 136: {
            bitField0_ |= 0x00000080;
            templateChanged_ = input.readBool();
            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_ & 0x00000004) != 0)) {
        processors_ = java.util.Collections.unmodifiableList(processors_);
      }
      if (((mutable_bitField0_ & 0x00000080) != 0)) {
        capabilities_ = capabilities_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.InstancesProto.internal_static_yamcs_protobuf_instances_YamcsInstance_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 12:
        return internalGetLabels();
      case 15:
        return internalGetTemplateArgs();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.InstancesProto.internal_static_yamcs_protobuf_instances_YamcsInstance_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.YamcsInstance.class, org.yamcs.protobuf.YamcsInstance.Builder.class);
  }

  /**
   * Protobuf enum {@code yamcs.protobuf.instances.YamcsInstance.InstanceState}
   */
  public enum InstanceState
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * OFFLINE = 0;
     */
    OFFLINE(0),
    /**
     * INITIALIZING = 1;
     */
    INITIALIZING(1),
    /**
     * INITIALIZED = 2;
     */
    INITIALIZED(2),
    /**
     * STARTING = 3;
     */
    STARTING(3),
    /**
     * RUNNING = 4;
     */
    RUNNING(4),
    /**
     * STOPPING = 5;
     */
    STOPPING(5),
    /**
     * FAILED = 6;
     */
    FAILED(6),
    ;

    /**
     * OFFLINE = 0;
     */
    public static final int OFFLINE_VALUE = 0;
    /**
     * INITIALIZING = 1;
     */
    public static final int INITIALIZING_VALUE = 1;
    /**
     * INITIALIZED = 2;
     */
    public static final int INITIALIZED_VALUE = 2;
    /**
     * STARTING = 3;
     */
    public static final int STARTING_VALUE = 3;
    /**
     * RUNNING = 4;
     */
    public static final int RUNNING_VALUE = 4;
    /**
     * STOPPING = 5;
     */
    public static final int STOPPING_VALUE = 5;
    /**
     * FAILED = 6;
     */
    public static final int FAILED_VALUE = 6;


    public final int getNumber() {
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static InstanceState valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static InstanceState forNumber(int value) {
      switch (value) {
        case 0: return OFFLINE;
        case 1: return INITIALIZING;
        case 2: return INITIALIZED;
        case 3: return STARTING;
        case 4: return RUNNING;
        case 5: return STOPPING;
        case 6: return FAILED;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        InstanceState> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public InstanceState findValueByNumber(int number) {
              return InstanceState.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return org.yamcs.protobuf.YamcsInstance.getDescriptor().getEnumTypes().get(0);
    }

    private static final InstanceState[] VALUES = values();

    public static InstanceState valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private InstanceState(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:yamcs.protobuf.instances.YamcsInstance.InstanceState)
  }

  private int bitField0_;
  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * 
   * Instance name.
   * 
* * optional string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Instance name.
   * 
* * optional string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
   * Instance name.
   * 
* * optional string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MISSIONDATABASE_FIELD_NUMBER = 3; private org.yamcs.protobuf.Mdb.MissionDatabase missionDatabase_; /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; * @return Whether the missionDatabase field is set. */ @java.lang.Override public boolean hasMissionDatabase() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; * @return The missionDatabase. */ @java.lang.Override public org.yamcs.protobuf.Mdb.MissionDatabase getMissionDatabase() { return missionDatabase_ == null ? org.yamcs.protobuf.Mdb.MissionDatabase.getDefaultInstance() : missionDatabase_; } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; */ @java.lang.Override public org.yamcs.protobuf.Mdb.MissionDatabaseOrBuilder getMissionDatabaseOrBuilder() { return missionDatabase_ == null ? org.yamcs.protobuf.Mdb.MissionDatabase.getDefaultInstance() : missionDatabase_; } public static final int PROCESSORS_FIELD_NUMBER = 4; private java.util.List processors_; /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ @java.lang.Override public java.util.List getProcessorsList() { return processors_; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ @java.lang.Override public java.util.List getProcessorsOrBuilderList() { return processors_; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ @java.lang.Override public int getProcessorsCount() { return processors_.size(); } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ @java.lang.Override public org.yamcs.protobuf.ProcessorInfo getProcessors(int index) { return processors_.get(index); } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ @java.lang.Override public org.yamcs.protobuf.ProcessorInfoOrBuilder getProcessorsOrBuilder( int index) { return processors_.get(index); } public static final int STATE_FIELD_NUMBER = 11; private int state_; /** * optional .yamcs.protobuf.instances.YamcsInstance.InstanceState state = 11; * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .yamcs.protobuf.instances.YamcsInstance.InstanceState state = 11; * @return The state. */ @java.lang.Override public org.yamcs.protobuf.YamcsInstance.InstanceState getState() { @SuppressWarnings("deprecation") org.yamcs.protobuf.YamcsInstance.InstanceState result = org.yamcs.protobuf.YamcsInstance.InstanceState.valueOf(state_); return result == null ? org.yamcs.protobuf.YamcsInstance.InstanceState.OFFLINE : result; } public static final int FAILURECAUSE_FIELD_NUMBER = 9; private volatile java.lang.Object failureCause_; /** *
   *in case the state=FAILED, this field will indicate the cause of the failure
   * the missionDatabase and other fields may not be filled when this happens
   * 
* * optional string failureCause = 9; * @return Whether the failureCause field is set. */ @java.lang.Override public boolean hasFailureCause() { return ((bitField0_ & 0x00000008) != 0); } /** *
   *in case the state=FAILED, this field will indicate the cause of the failure
   * the missionDatabase and other fields may not be filled when this happens
   * 
* * optional string failureCause = 9; * @return The failureCause. */ @java.lang.Override public java.lang.String getFailureCause() { java.lang.Object ref = failureCause_; 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()) { failureCause_ = s; } return s; } } /** *
   *in case the state=FAILED, this field will indicate the cause of the failure
   * the missionDatabase and other fields may not be filled when this happens
   * 
* * optional string failureCause = 9; * @return The bytes for failureCause. */ @java.lang.Override public com.google.protobuf.ByteString getFailureCauseBytes() { java.lang.Object ref = failureCause_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); failureCause_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MISSIONTIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp missionTime_; /** * optional .google.protobuf.Timestamp missionTime = 10; * @return Whether the missionTime field is set. */ @java.lang.Override public boolean hasMissionTime() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .google.protobuf.Timestamp missionTime = 10; * @return The missionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getMissionTime() { return missionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : missionTime_; } /** * optional .google.protobuf.Timestamp missionTime = 10; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getMissionTimeOrBuilder() { return missionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : missionTime_; } public static final int LABELS_FIELD_NUMBER = 12; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.yamcs.protobuf.InstancesProto.internal_static_yamcs_protobuf_instances_YamcsInstance_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
   * Labels assigned to this instance. Each entry is keyed by the tag name
   * of the label. The value represent the label value for that tag.
   * 
* * map<string, string> labels = 12; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
   * Labels assigned to this instance. Each entry is keyed by the tag name
   * of the label. The value represent the label value for that tag.
   * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
   * Labels assigned to this instance. Each entry is keyed by the tag name
   * of the label. The value represent the label value for that tag.
   * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Labels assigned to this instance. Each entry is keyed by the tag name
   * of the label. The value represent the label value for that tag.
   * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int CAPABILITIES_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList capabilities_; /** *
   * Feature capability hints for client use
   * 
* * repeated string capabilities = 13; * @return A list containing the capabilities. */ public com.google.protobuf.ProtocolStringList getCapabilitiesList() { return capabilities_; } /** *
   * Feature capability hints for client use
   * 
* * repeated string capabilities = 13; * @return The count of capabilities. */ public int getCapabilitiesCount() { return capabilities_.size(); } /** *
   * Feature capability hints for client use
   * 
* * repeated string capabilities = 13; * @param index The index of the element to return. * @return The capabilities at the given index. */ public java.lang.String getCapabilities(int index) { return capabilities_.get(index); } /** *
   * Feature capability hints for client use
   * 
* * repeated string capabilities = 13; * @param index The index of the value to return. * @return The bytes of the capabilities at the given index. */ public com.google.protobuf.ByteString getCapabilitiesBytes(int index) { return capabilities_.getByteString(index); } public static final int TEMPLATE_FIELD_NUMBER = 14; private volatile java.lang.Object template_; /** *
   * Name of the template, if this instance was generated  
   * 
* * optional string template = 14; * @return Whether the template field is set. */ @java.lang.Override public boolean hasTemplate() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Name of the template, if this instance was generated  
   * 
* * optional string template = 14; * @return The template. */ @java.lang.Override public java.lang.String getTemplate() { java.lang.Object ref = template_; 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()) { template_ = s; } return s; } } /** *
   * Name of the template, if this instance was generated  
   * 
* * optional string template = 14; * @return The bytes for template. */ @java.lang.Override public com.google.protobuf.ByteString getTemplateBytes() { java.lang.Object ref = template_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); template_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEMPLATEARGS_FIELD_NUMBER = 15; private static final class TemplateArgsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.yamcs.protobuf.InstancesProto.internal_static_yamcs_protobuf_instances_YamcsInstance_TemplateArgsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> templateArgs_; private com.google.protobuf.MapField internalGetTemplateArgs() { if (templateArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( TemplateArgsDefaultEntryHolder.defaultEntry); } return templateArgs_; } public int getTemplateArgsCount() { return internalGetTemplateArgs().getMap().size(); } /** *
   * Arguments used during template processing, if this instance
   * was generated
   * 
* * map<string, string> templateArgs = 15; */ @java.lang.Override public boolean containsTemplateArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTemplateArgs().getMap().containsKey(key); } /** * Use {@link #getTemplateArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTemplateArgs() { return getTemplateArgsMap(); } /** *
   * Arguments used during template processing, if this instance
   * was generated
   * 
* * map<string, string> templateArgs = 15; */ @java.lang.Override public java.util.Map getTemplateArgsMap() { return internalGetTemplateArgs().getMap(); } /** *
   * Arguments used during template processing, if this instance
   * was generated
   * 
* * map<string, string> templateArgs = 15; */ @java.lang.Override public java.lang.String getTemplateArgsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTemplateArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Arguments used during template processing, if this instance
   * was generated
   * 
* * map<string, string> templateArgs = 15; */ @java.lang.Override public java.lang.String getTemplateArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTemplateArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TEMPLATEAVAILABLE_FIELD_NUMBER = 16; private boolean templateAvailable_; /** *
   * Whether the template is stil available
   * 
* * optional bool templateAvailable = 16; * @return Whether the templateAvailable field is set. */ @java.lang.Override public boolean hasTemplateAvailable() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Whether the template is stil available
   * 
* * optional bool templateAvailable = 16; * @return The templateAvailable. */ @java.lang.Override public boolean getTemplateAvailable() { return templateAvailable_; } public static final int TEMPLATECHANGED_FIELD_NUMBER = 17; private boolean templateChanged_; /** *
   * Whether the template has changed since this instance was
   * generated
   * 
* * optional bool templateChanged = 17; * @return Whether the templateChanged field is set. */ @java.lang.Override public boolean hasTemplateChanged() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * Whether the template has changed since this instance was
   * generated
   * 
* * optional bool templateChanged = 17; * @return The templateChanged. */ @java.lang.Override public boolean getTemplateChanged() { return templateChanged_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasMissionDatabase()) { if (!getMissionDatabase().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getProcessorsCount(); i++) { if (!getProcessors(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_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getMissionDatabase()); } for (int i = 0; i < processors_.size(); i++) { output.writeMessage(4, processors_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, failureCause_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(10, getMissionTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(11, state_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 12); for (int i = 0; i < capabilities_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, capabilities_.getRaw(i)); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, template_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetTemplateArgs(), TemplateArgsDefaultEntryHolder.defaultEntry, 15); if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(16, templateAvailable_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(17, templateChanged_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMissionDatabase()); } for (int i = 0; i < processors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, processors_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, failureCause_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getMissionTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, state_); } for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, labels__); } { int dataSize = 0; for (int i = 0; i < capabilities_.size(); i++) { dataSize += computeStringSizeNoTag(capabilities_.getRaw(i)); } size += dataSize; size += 1 * getCapabilitiesList().size(); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, template_); } for (java.util.Map.Entry entry : internalGetTemplateArgs().getMap().entrySet()) { com.google.protobuf.MapEntry templateArgs__ = TemplateArgsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, templateArgs__); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, templateAvailable_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, templateChanged_); } 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.YamcsInstance)) { return super.equals(obj); } org.yamcs.protobuf.YamcsInstance other = (org.yamcs.protobuf.YamcsInstance) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasMissionDatabase() != other.hasMissionDatabase()) return false; if (hasMissionDatabase()) { if (!getMissionDatabase() .equals(other.getMissionDatabase())) return false; } if (!getProcessorsList() .equals(other.getProcessorsList())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { if (state_ != other.state_) return false; } if (hasFailureCause() != other.hasFailureCause()) return false; if (hasFailureCause()) { if (!getFailureCause() .equals(other.getFailureCause())) return false; } if (hasMissionTime() != other.hasMissionTime()) return false; if (hasMissionTime()) { if (!getMissionTime() .equals(other.getMissionTime())) return false; } if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!getCapabilitiesList() .equals(other.getCapabilitiesList())) return false; if (hasTemplate() != other.hasTemplate()) return false; if (hasTemplate()) { if (!getTemplate() .equals(other.getTemplate())) return false; } if (!internalGetTemplateArgs().equals( other.internalGetTemplateArgs())) return false; if (hasTemplateAvailable() != other.hasTemplateAvailable()) return false; if (hasTemplateAvailable()) { if (getTemplateAvailable() != other.getTemplateAvailable()) return false; } if (hasTemplateChanged() != other.hasTemplateChanged()) return false; if (hasTemplateChanged()) { if (getTemplateChanged() != other.getTemplateChanged()) 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 (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasMissionDatabase()) { hash = (37 * hash) + MISSIONDATABASE_FIELD_NUMBER; hash = (53 * hash) + getMissionDatabase().hashCode(); } if (getProcessorsCount() > 0) { hash = (37 * hash) + PROCESSORS_FIELD_NUMBER; hash = (53 * hash) + getProcessorsList().hashCode(); } if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; } if (hasFailureCause()) { hash = (37 * hash) + FAILURECAUSE_FIELD_NUMBER; hash = (53 * hash) + getFailureCause().hashCode(); } if (hasMissionTime()) { hash = (37 * hash) + MISSIONTIME_FIELD_NUMBER; hash = (53 * hash) + getMissionTime().hashCode(); } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } if (getCapabilitiesCount() > 0) { hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER; hash = (53 * hash) + getCapabilitiesList().hashCode(); } if (hasTemplate()) { hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getTemplate().hashCode(); } if (!internalGetTemplateArgs().getMap().isEmpty()) { hash = (37 * hash) + TEMPLATEARGS_FIELD_NUMBER; hash = (53 * hash) + internalGetTemplateArgs().hashCode(); } if (hasTemplateAvailable()) { hash = (37 * hash) + TEMPLATEAVAILABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTemplateAvailable()); } if (hasTemplateChanged()) { hash = (37 * hash) + TEMPLATECHANGED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTemplateChanged()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.YamcsInstance parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.YamcsInstance 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.YamcsInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.YamcsInstance 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.YamcsInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.YamcsInstance parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.YamcsInstance parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.YamcsInstance 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.YamcsInstance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.YamcsInstance 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.YamcsInstance parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.YamcsInstance 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.YamcsInstance 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.instances.YamcsInstance} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.instances.YamcsInstance) org.yamcs.protobuf.YamcsInstanceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.InstancesProto.internal_static_yamcs_protobuf_instances_YamcsInstance_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 12: return internalGetLabels(); case 15: return internalGetTemplateArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 12: return internalGetMutableLabels(); case 15: return internalGetMutableTemplateArgs(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.InstancesProto.internal_static_yamcs_protobuf_instances_YamcsInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.YamcsInstance.class, org.yamcs.protobuf.YamcsInstance.Builder.class); } // Construct using org.yamcs.protobuf.YamcsInstance.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMissionDatabaseFieldBuilder(); getProcessorsFieldBuilder(); getMissionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (missionDatabaseBuilder_ == null) { missionDatabase_ = null; } else { missionDatabaseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (processorsBuilder_ == null) { processors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { processorsBuilder_.clear(); } state_ = 0; bitField0_ = (bitField0_ & ~0x00000008); failureCause_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (missionTimeBuilder_ == null) { missionTime_ = null; } else { missionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableLabels().clear(); capabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); template_ = ""; bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableTemplateArgs().clear(); templateAvailable_ = false; bitField0_ = (bitField0_ & ~0x00000400); templateChanged_ = false; bitField0_ = (bitField0_ & ~0x00000800); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.InstancesProto.internal_static_yamcs_protobuf_instances_YamcsInstance_descriptor; } @java.lang.Override public org.yamcs.protobuf.YamcsInstance getDefaultInstanceForType() { return org.yamcs.protobuf.YamcsInstance.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.YamcsInstance build() { org.yamcs.protobuf.YamcsInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.YamcsInstance buildPartial() { org.yamcs.protobuf.YamcsInstance result = new org.yamcs.protobuf.YamcsInstance(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { if (missionDatabaseBuilder_ == null) { result.missionDatabase_ = missionDatabase_; } else { result.missionDatabase_ = missionDatabaseBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (processorsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { processors_ = java.util.Collections.unmodifiableList(processors_); bitField0_ = (bitField0_ & ~0x00000004); } result.processors_ = processors_; } else { result.processors_ = processorsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000004; } result.state_ = state_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000008; } result.failureCause_ = failureCause_; if (((from_bitField0_ & 0x00000020) != 0)) { if (missionTimeBuilder_ == null) { result.missionTime_ = missionTime_; } else { result.missionTime_ = missionTimeBuilder_.build(); } to_bitField0_ |= 0x00000010; } result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); if (((bitField0_ & 0x00000080) != 0)) { capabilities_ = capabilities_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000080); } result.capabilities_ = capabilities_; if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000020; } result.template_ = template_; result.templateArgs_ = internalGetTemplateArgs(); result.templateArgs_.makeImmutable(); if (((from_bitField0_ & 0x00000400) != 0)) { result.templateAvailable_ = templateAvailable_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000800) != 0)) { result.templateChanged_ = templateChanged_; to_bitField0_ |= 0x00000080; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.yamcs.protobuf.YamcsInstance) { return mergeFrom((org.yamcs.protobuf.YamcsInstance)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.YamcsInstance other) { if (other == org.yamcs.protobuf.YamcsInstance.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasMissionDatabase()) { mergeMissionDatabase(other.getMissionDatabase()); } if (processorsBuilder_ == null) { if (!other.processors_.isEmpty()) { if (processors_.isEmpty()) { processors_ = other.processors_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureProcessorsIsMutable(); processors_.addAll(other.processors_); } onChanged(); } } else { if (!other.processors_.isEmpty()) { if (processorsBuilder_.isEmpty()) { processorsBuilder_.dispose(); processorsBuilder_ = null; processors_ = other.processors_; bitField0_ = (bitField0_ & ~0x00000004); processorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getProcessorsFieldBuilder() : null; } else { processorsBuilder_.addAllMessages(other.processors_); } } } if (other.hasState()) { setState(other.getState()); } if (other.hasFailureCause()) { bitField0_ |= 0x00000010; failureCause_ = other.failureCause_; onChanged(); } if (other.hasMissionTime()) { mergeMissionTime(other.getMissionTime()); } internalGetMutableLabels().mergeFrom( other.internalGetLabels()); if (!other.capabilities_.isEmpty()) { if (capabilities_.isEmpty()) { capabilities_ = other.capabilities_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureCapabilitiesIsMutable(); capabilities_.addAll(other.capabilities_); } onChanged(); } if (other.hasTemplate()) { bitField0_ |= 0x00000100; template_ = other.template_; onChanged(); } internalGetMutableTemplateArgs().mergeFrom( other.internalGetTemplateArgs()); if (other.hasTemplateAvailable()) { setTemplateAvailable(other.getTemplateAvailable()); } if (other.hasTemplateChanged()) { setTemplateChanged(other.getTemplateChanged()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasMissionDatabase()) { if (!getMissionDatabase().isInitialized()) { return false; } } for (int i = 0; i < getProcessorsCount(); i++) { if (!getProcessors(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.YamcsInstance parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.YamcsInstance) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * Instance name.
     * 
* * optional string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Instance name.
     * 
* * optional string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Instance name.
     * 
* * optional string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Instance name.
     * 
* * optional string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** *
     * Instance name.
     * 
* * optional string name = 1; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Instance name.
     * 
* * optional string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private org.yamcs.protobuf.Mdb.MissionDatabase missionDatabase_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.MissionDatabase, org.yamcs.protobuf.Mdb.MissionDatabase.Builder, org.yamcs.protobuf.Mdb.MissionDatabaseOrBuilder> missionDatabaseBuilder_; /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; * @return Whether the missionDatabase field is set. */ public boolean hasMissionDatabase() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; * @return The missionDatabase. */ public org.yamcs.protobuf.Mdb.MissionDatabase getMissionDatabase() { if (missionDatabaseBuilder_ == null) { return missionDatabase_ == null ? org.yamcs.protobuf.Mdb.MissionDatabase.getDefaultInstance() : missionDatabase_; } else { return missionDatabaseBuilder_.getMessage(); } } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; */ public Builder setMissionDatabase(org.yamcs.protobuf.Mdb.MissionDatabase value) { if (missionDatabaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } missionDatabase_ = value; onChanged(); } else { missionDatabaseBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; */ public Builder setMissionDatabase( org.yamcs.protobuf.Mdb.MissionDatabase.Builder builderForValue) { if (missionDatabaseBuilder_ == null) { missionDatabase_ = builderForValue.build(); onChanged(); } else { missionDatabaseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; */ public Builder mergeMissionDatabase(org.yamcs.protobuf.Mdb.MissionDatabase value) { if (missionDatabaseBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && missionDatabase_ != null && missionDatabase_ != org.yamcs.protobuf.Mdb.MissionDatabase.getDefaultInstance()) { missionDatabase_ = org.yamcs.protobuf.Mdb.MissionDatabase.newBuilder(missionDatabase_).mergeFrom(value).buildPartial(); } else { missionDatabase_ = value; } onChanged(); } else { missionDatabaseBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; */ public Builder clearMissionDatabase() { if (missionDatabaseBuilder_ == null) { missionDatabase_ = null; onChanged(); } else { missionDatabaseBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; */ public org.yamcs.protobuf.Mdb.MissionDatabase.Builder getMissionDatabaseBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMissionDatabaseFieldBuilder().getBuilder(); } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; */ public org.yamcs.protobuf.Mdb.MissionDatabaseOrBuilder getMissionDatabaseOrBuilder() { if (missionDatabaseBuilder_ != null) { return missionDatabaseBuilder_.getMessageOrBuilder(); } else { return missionDatabase_ == null ? org.yamcs.protobuf.Mdb.MissionDatabase.getDefaultInstance() : missionDatabase_; } } /** * optional .yamcs.protobuf.mdb.MissionDatabase missionDatabase = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.MissionDatabase, org.yamcs.protobuf.Mdb.MissionDatabase.Builder, org.yamcs.protobuf.Mdb.MissionDatabaseOrBuilder> getMissionDatabaseFieldBuilder() { if (missionDatabaseBuilder_ == null) { missionDatabaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Mdb.MissionDatabase, org.yamcs.protobuf.Mdb.MissionDatabase.Builder, org.yamcs.protobuf.Mdb.MissionDatabaseOrBuilder>( getMissionDatabase(), getParentForChildren(), isClean()); missionDatabase_ = null; } return missionDatabaseBuilder_; } private java.util.List processors_ = java.util.Collections.emptyList(); private void ensureProcessorsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { processors_ = new java.util.ArrayList(processors_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ProcessorInfo, org.yamcs.protobuf.ProcessorInfo.Builder, org.yamcs.protobuf.ProcessorInfoOrBuilder> processorsBuilder_; /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public java.util.List getProcessorsList() { if (processorsBuilder_ == null) { return java.util.Collections.unmodifiableList(processors_); } else { return processorsBuilder_.getMessageList(); } } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public int getProcessorsCount() { if (processorsBuilder_ == null) { return processors_.size(); } else { return processorsBuilder_.getCount(); } } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public org.yamcs.protobuf.ProcessorInfo getProcessors(int index) { if (processorsBuilder_ == null) { return processors_.get(index); } else { return processorsBuilder_.getMessage(index); } } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder setProcessors( int index, org.yamcs.protobuf.ProcessorInfo value) { if (processorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProcessorsIsMutable(); processors_.set(index, value); onChanged(); } else { processorsBuilder_.setMessage(index, value); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder setProcessors( int index, org.yamcs.protobuf.ProcessorInfo.Builder builderForValue) { if (processorsBuilder_ == null) { ensureProcessorsIsMutable(); processors_.set(index, builderForValue.build()); onChanged(); } else { processorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder addProcessors(org.yamcs.protobuf.ProcessorInfo value) { if (processorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProcessorsIsMutable(); processors_.add(value); onChanged(); } else { processorsBuilder_.addMessage(value); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder addProcessors( int index, org.yamcs.protobuf.ProcessorInfo value) { if (processorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProcessorsIsMutable(); processors_.add(index, value); onChanged(); } else { processorsBuilder_.addMessage(index, value); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder addProcessors( org.yamcs.protobuf.ProcessorInfo.Builder builderForValue) { if (processorsBuilder_ == null) { ensureProcessorsIsMutable(); processors_.add(builderForValue.build()); onChanged(); } else { processorsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder addProcessors( int index, org.yamcs.protobuf.ProcessorInfo.Builder builderForValue) { if (processorsBuilder_ == null) { ensureProcessorsIsMutable(); processors_.add(index, builderForValue.build()); onChanged(); } else { processorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder addAllProcessors( java.lang.Iterable values) { if (processorsBuilder_ == null) { ensureProcessorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, processors_); onChanged(); } else { processorsBuilder_.addAllMessages(values); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder clearProcessors() { if (processorsBuilder_ == null) { processors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { processorsBuilder_.clear(); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public Builder removeProcessors(int index) { if (processorsBuilder_ == null) { ensureProcessorsIsMutable(); processors_.remove(index); onChanged(); } else { processorsBuilder_.remove(index); } return this; } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public org.yamcs.protobuf.ProcessorInfo.Builder getProcessorsBuilder( int index) { return getProcessorsFieldBuilder().getBuilder(index); } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public org.yamcs.protobuf.ProcessorInfoOrBuilder getProcessorsOrBuilder( int index) { if (processorsBuilder_ == null) { return processors_.get(index); } else { return processorsBuilder_.getMessageOrBuilder(index); } } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public java.util.List getProcessorsOrBuilderList() { if (processorsBuilder_ != null) { return processorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(processors_); } } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public org.yamcs.protobuf.ProcessorInfo.Builder addProcessorsBuilder() { return getProcessorsFieldBuilder().addBuilder( org.yamcs.protobuf.ProcessorInfo.getDefaultInstance()); } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public org.yamcs.protobuf.ProcessorInfo.Builder addProcessorsBuilder( int index) { return getProcessorsFieldBuilder().addBuilder( index, org.yamcs.protobuf.ProcessorInfo.getDefaultInstance()); } /** * repeated .yamcs.protobuf.yamcsManagement.ProcessorInfo processors = 4; */ public java.util.List getProcessorsBuilderList() { return getProcessorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ProcessorInfo, org.yamcs.protobuf.ProcessorInfo.Builder, org.yamcs.protobuf.ProcessorInfoOrBuilder> getProcessorsFieldBuilder() { if (processorsBuilder_ == null) { processorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ProcessorInfo, org.yamcs.protobuf.ProcessorInfo.Builder, org.yamcs.protobuf.ProcessorInfoOrBuilder>( processors_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); processors_ = null; } return processorsBuilder_; } private int state_ = 0; /** * optional .yamcs.protobuf.instances.YamcsInstance.InstanceState state = 11; * @return Whether the state field is set. */ @java.lang.Override public boolean hasState() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .yamcs.protobuf.instances.YamcsInstance.InstanceState state = 11; * @return The state. */ @java.lang.Override public org.yamcs.protobuf.YamcsInstance.InstanceState getState() { @SuppressWarnings("deprecation") org.yamcs.protobuf.YamcsInstance.InstanceState result = org.yamcs.protobuf.YamcsInstance.InstanceState.valueOf(state_); return result == null ? org.yamcs.protobuf.YamcsInstance.InstanceState.OFFLINE : result; } /** * optional .yamcs.protobuf.instances.YamcsInstance.InstanceState state = 11; * @param value The state to set. * @return This builder for chaining. */ public Builder setState(org.yamcs.protobuf.YamcsInstance.InstanceState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; } /** * optional .yamcs.protobuf.instances.YamcsInstance.InstanceState state = 11; * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; } private java.lang.Object failureCause_ = ""; /** *
     *in case the state=FAILED, this field will indicate the cause of the failure
     * the missionDatabase and other fields may not be filled when this happens
     * 
* * optional string failureCause = 9; * @return Whether the failureCause field is set. */ public boolean hasFailureCause() { return ((bitField0_ & 0x00000010) != 0); } /** *
     *in case the state=FAILED, this field will indicate the cause of the failure
     * the missionDatabase and other fields may not be filled when this happens
     * 
* * optional string failureCause = 9; * @return The failureCause. */ public java.lang.String getFailureCause() { java.lang.Object ref = failureCause_; 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()) { failureCause_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     *in case the state=FAILED, this field will indicate the cause of the failure
     * the missionDatabase and other fields may not be filled when this happens
     * 
* * optional string failureCause = 9; * @return The bytes for failureCause. */ public com.google.protobuf.ByteString getFailureCauseBytes() { java.lang.Object ref = failureCause_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); failureCause_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *in case the state=FAILED, this field will indicate the cause of the failure
     * the missionDatabase and other fields may not be filled when this happens
     * 
* * optional string failureCause = 9; * @param value The failureCause to set. * @return This builder for chaining. */ public Builder setFailureCause( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; failureCause_ = value; onChanged(); return this; } /** *
     *in case the state=FAILED, this field will indicate the cause of the failure
     * the missionDatabase and other fields may not be filled when this happens
     * 
* * optional string failureCause = 9; * @return This builder for chaining. */ public Builder clearFailureCause() { bitField0_ = (bitField0_ & ~0x00000010); failureCause_ = getDefaultInstance().getFailureCause(); onChanged(); return this; } /** *
     *in case the state=FAILED, this field will indicate the cause of the failure
     * the missionDatabase and other fields may not be filled when this happens
     * 
* * optional string failureCause = 9; * @param value The bytes for failureCause to set. * @return This builder for chaining. */ public Builder setFailureCauseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; failureCause_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp missionTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> missionTimeBuilder_; /** * optional .google.protobuf.Timestamp missionTime = 10; * @return Whether the missionTime field is set. */ public boolean hasMissionTime() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .google.protobuf.Timestamp missionTime = 10; * @return The missionTime. */ public com.google.protobuf.Timestamp getMissionTime() { if (missionTimeBuilder_ == null) { return missionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : missionTime_; } else { return missionTimeBuilder_.getMessage(); } } /** * optional .google.protobuf.Timestamp missionTime = 10; */ public Builder setMissionTime(com.google.protobuf.Timestamp value) { if (missionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } missionTime_ = value; onChanged(); } else { missionTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .google.protobuf.Timestamp missionTime = 10; */ public Builder setMissionTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (missionTimeBuilder_ == null) { missionTime_ = builderForValue.build(); onChanged(); } else { missionTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .google.protobuf.Timestamp missionTime = 10; */ public Builder mergeMissionTime(com.google.protobuf.Timestamp value) { if (missionTimeBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && missionTime_ != null && missionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { missionTime_ = com.google.protobuf.Timestamp.newBuilder(missionTime_).mergeFrom(value).buildPartial(); } else { missionTime_ = value; } onChanged(); } else { missionTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .google.protobuf.Timestamp missionTime = 10; */ public Builder clearMissionTime() { if (missionTimeBuilder_ == null) { missionTime_ = null; onChanged(); } else { missionTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .google.protobuf.Timestamp missionTime = 10; */ public com.google.protobuf.Timestamp.Builder getMissionTimeBuilder() { bitField0_ |= 0x00000020; onChanged(); return getMissionTimeFieldBuilder().getBuilder(); } /** * optional .google.protobuf.Timestamp missionTime = 10; */ public com.google.protobuf.TimestampOrBuilder getMissionTimeOrBuilder() { if (missionTimeBuilder_ != null) { return missionTimeBuilder_.getMessageOrBuilder(); } else { return missionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : missionTime_; } } /** * optional .google.protobuf.Timestamp missionTime = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getMissionTimeFieldBuilder() { if (missionTimeBuilder_ == null) { missionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getMissionTime(), getParentForChildren(), isClean()); missionTime_ = null; } return missionTimeBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** *
     * Labels assigned to this instance. Each entry is keyed by the tag name
     * of the label. The value represent the label value for that tag.
     * 
* * map<string, string> labels = 12; */ @java.lang.Override public boolean containsLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** *
     * Labels assigned to this instance. Each entry is keyed by the tag name
     * of the label. The value represent the label value for that tag.
     * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** *
     * Labels assigned to this instance. Each entry is keyed by the tag name
     * of the label. The value represent the label value for that tag.
     * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Labels assigned to this instance. Each entry is keyed by the tag name
     * of the label. The value represent the label value for that tag.
     * 
* * map<string, string> labels = 12; */ @java.lang.Override public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** *
     * Labels assigned to this instance. Each entry is keyed by the tag name
     * of the label. The value represent the label value for that tag.
     * 
* * map<string, string> labels = 12; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** *
     * Labels assigned to this instance. Each entry is keyed by the tag name
     * of the label. The value represent the label value for that tag.
     * 
* * map<string, string> labels = 12; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** *
     * Labels assigned to this instance. Each entry is keyed by the tag name
     * of the label. The value represent the label value for that tag.
     * 
* * map<string, string> labels = 12; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); return this; } private com.google.protobuf.LazyStringList capabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCapabilitiesIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { capabilities_ = new com.google.protobuf.LazyStringArrayList(capabilities_); bitField0_ |= 0x00000080; } } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @return A list containing the capabilities. */ public com.google.protobuf.ProtocolStringList getCapabilitiesList() { return capabilities_.getUnmodifiableView(); } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @return The count of capabilities. */ public int getCapabilitiesCount() { return capabilities_.size(); } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @param index The index of the element to return. * @return The capabilities at the given index. */ public java.lang.String getCapabilities(int index) { return capabilities_.get(index); } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @param index The index of the value to return. * @return The bytes of the capabilities at the given index. */ public com.google.protobuf.ByteString getCapabilitiesBytes(int index) { return capabilities_.getByteString(index); } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @param index The index to set the value at. * @param value The capabilities to set. * @return This builder for chaining. */ public Builder setCapabilities( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.set(index, value); onChanged(); return this; } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @param value The capabilities to add. * @return This builder for chaining. */ public Builder addCapabilities( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.add(value); onChanged(); return this; } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @param values The capabilities to add. * @return This builder for chaining. */ public Builder addAllCapabilities( java.lang.Iterable values) { ensureCapabilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, capabilities_); onChanged(); return this; } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @return This builder for chaining. */ public Builder clearCapabilities() { capabilities_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     * Feature capability hints for client use
     * 
* * repeated string capabilities = 13; * @param value The bytes of the capabilities to add. * @return This builder for chaining. */ public Builder addCapabilitiesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureCapabilitiesIsMutable(); capabilities_.add(value); onChanged(); return this; } private java.lang.Object template_ = ""; /** *
     * Name of the template, if this instance was generated  
     * 
* * optional string template = 14; * @return Whether the template field is set. */ public boolean hasTemplate() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Name of the template, if this instance was generated  
     * 
* * optional string template = 14; * @return The template. */ public java.lang.String getTemplate() { java.lang.Object ref = template_; 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()) { template_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Name of the template, if this instance was generated  
     * 
* * optional string template = 14; * @return The bytes for template. */ public com.google.protobuf.ByteString getTemplateBytes() { java.lang.Object ref = template_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); template_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of the template, if this instance was generated  
     * 
* * optional string template = 14; * @param value The template to set. * @return This builder for chaining. */ public Builder setTemplate( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; template_ = value; onChanged(); return this; } /** *
     * Name of the template, if this instance was generated  
     * 
* * optional string template = 14; * @return This builder for chaining. */ public Builder clearTemplate() { bitField0_ = (bitField0_ & ~0x00000100); template_ = getDefaultInstance().getTemplate(); onChanged(); return this; } /** *
     * Name of the template, if this instance was generated  
     * 
* * optional string template = 14; * @param value The bytes for template to set. * @return This builder for chaining. */ public Builder setTemplateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; template_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> templateArgs_; private com.google.protobuf.MapField internalGetTemplateArgs() { if (templateArgs_ == null) { return com.google.protobuf.MapField.emptyMapField( TemplateArgsDefaultEntryHolder.defaultEntry); } return templateArgs_; } private com.google.protobuf.MapField internalGetMutableTemplateArgs() { onChanged();; if (templateArgs_ == null) { templateArgs_ = com.google.protobuf.MapField.newMapField( TemplateArgsDefaultEntryHolder.defaultEntry); } if (!templateArgs_.isMutable()) { templateArgs_ = templateArgs_.copy(); } return templateArgs_; } public int getTemplateArgsCount() { return internalGetTemplateArgs().getMap().size(); } /** *
     * Arguments used during template processing, if this instance
     * was generated
     * 
* * map<string, string> templateArgs = 15; */ @java.lang.Override public boolean containsTemplateArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetTemplateArgs().getMap().containsKey(key); } /** * Use {@link #getTemplateArgsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getTemplateArgs() { return getTemplateArgsMap(); } /** *
     * Arguments used during template processing, if this instance
     * was generated
     * 
* * map<string, string> templateArgs = 15; */ @java.lang.Override public java.util.Map getTemplateArgsMap() { return internalGetTemplateArgs().getMap(); } /** *
     * Arguments used during template processing, if this instance
     * was generated
     * 
* * map<string, string> templateArgs = 15; */ @java.lang.Override public java.lang.String getTemplateArgsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTemplateArgs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Arguments used during template processing, if this instance
     * was generated
     * 
* * map<string, string> templateArgs = 15; */ @java.lang.Override public java.lang.String getTemplateArgsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetTemplateArgs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearTemplateArgs() { internalGetMutableTemplateArgs().getMutableMap() .clear(); return this; } /** *
     * Arguments used during template processing, if this instance
     * was generated
     * 
* * map<string, string> templateArgs = 15; */ public Builder removeTemplateArgs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableTemplateArgs().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableTemplateArgs() { return internalGetMutableTemplateArgs().getMutableMap(); } /** *
     * Arguments used during template processing, if this instance
     * was generated
     * 
* * map<string, string> templateArgs = 15; */ public Builder putTemplateArgs( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableTemplateArgs().getMutableMap() .put(key, value); return this; } /** *
     * Arguments used during template processing, if this instance
     * was generated
     * 
* * map<string, string> templateArgs = 15; */ public Builder putAllTemplateArgs( java.util.Map values) { internalGetMutableTemplateArgs().getMutableMap() .putAll(values); return this; } private boolean templateAvailable_ ; /** *
     * Whether the template is stil available
     * 
* * optional bool templateAvailable = 16; * @return Whether the templateAvailable field is set. */ @java.lang.Override public boolean hasTemplateAvailable() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Whether the template is stil available
     * 
* * optional bool templateAvailable = 16; * @return The templateAvailable. */ @java.lang.Override public boolean getTemplateAvailable() { return templateAvailable_; } /** *
     * Whether the template is stil available
     * 
* * optional bool templateAvailable = 16; * @param value The templateAvailable to set. * @return This builder for chaining. */ public Builder setTemplateAvailable(boolean value) { bitField0_ |= 0x00000400; templateAvailable_ = value; onChanged(); return this; } /** *
     * Whether the template is stil available
     * 
* * optional bool templateAvailable = 16; * @return This builder for chaining. */ public Builder clearTemplateAvailable() { bitField0_ = (bitField0_ & ~0x00000400); templateAvailable_ = false; onChanged(); return this; } private boolean templateChanged_ ; /** *
     * Whether the template has changed since this instance was
     * generated
     * 
* * optional bool templateChanged = 17; * @return Whether the templateChanged field is set. */ @java.lang.Override public boolean hasTemplateChanged() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * Whether the template has changed since this instance was
     * generated
     * 
* * optional bool templateChanged = 17; * @return The templateChanged. */ @java.lang.Override public boolean getTemplateChanged() { return templateChanged_; } /** *
     * Whether the template has changed since this instance was
     * generated
     * 
* * optional bool templateChanged = 17; * @param value The templateChanged to set. * @return This builder for chaining. */ public Builder setTemplateChanged(boolean value) { bitField0_ |= 0x00000800; templateChanged_ = value; onChanged(); return this; } /** *
     * Whether the template has changed since this instance was
     * generated
     * 
* * optional bool templateChanged = 17; * @return This builder for chaining. */ public Builder clearTemplateChanged() { bitField0_ = (bitField0_ & ~0x00000800); templateChanged_ = false; 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.instances.YamcsInstance) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.instances.YamcsInstance) private static final org.yamcs.protobuf.YamcsInstance DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.YamcsInstance(); } public static org.yamcs.protobuf.YamcsInstance getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public YamcsInstance parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new YamcsInstance(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.YamcsInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy