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

org.yamcs.protobuf.config.OptionInfo 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/config/config.proto

package org.yamcs.protobuf.config;

/**
 * Protobuf type {@code yamcs.protobuf.config.OptionInfo}
 */
public final class OptionInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.config.OptionInfo)
    OptionInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use OptionInfo.newBuilder() to construct.
  private OptionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private OptionInfo() {
    name_ = "";
    type_ = 1;
    title_ = "";
    versionAdded_ = "";
    deprecationMessage_ = "";
    description_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    elementType_ = 1;
    choices_ = java.util.Collections.emptyList();
    aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private OptionInfo(
      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 16: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.yamcs.protobuf.config.OptionType value = org.yamcs.protobuf.config.OptionType.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(2, rawValue);
            } else {
              bitField0_ |= 0x00000002;
              type_ = rawValue;
            }
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            title_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.Value.Builder subBuilder = null;
            if (((bitField0_ & 0x00000008) != 0)) {
              subBuilder = default_.toBuilder();
            }
            default_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(default_);
              default_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000008;
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            required_ = input.readBool();
            break;
          }
          case 48: {
            bitField0_ |= 0x00000020;
            hidden_ = input.readBool();
            break;
          }
          case 56: {
            bitField0_ |= 0x00000040;
            secret_ = input.readBool();
            break;
          }
          case 66: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000080;
            versionAdded_ = bs;
            break;
          }
          case 74: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000100;
            deprecationMessage_ = bs;
            break;
          }
          case 82: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000200) != 0)) {
              description_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000200;
            }
            description_.add(bs);
            break;
          }
          case 88: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.yamcs.protobuf.config.OptionType value = org.yamcs.protobuf.config.OptionType.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(11, rawValue);
            } else {
              bitField0_ |= 0x00000200;
              elementType_ = rawValue;
            }
            break;
          }
          case 98: {
            org.yamcs.protobuf.config.SpecInfo.Builder subBuilder = null;
            if (((bitField0_ & 0x00000400) != 0)) {
              subBuilder = spec_.toBuilder();
            }
            spec_ = input.readMessage(org.yamcs.protobuf.config.SpecInfo.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(spec_);
              spec_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000400;
            break;
          }
          case 106: {
            if (!((mutable_bitField0_ & 0x00001000) != 0)) {
              choices_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00001000;
            }
            choices_.add(
                input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry));
            break;
          }
          case 112: {
            bitField0_ |= 0x00000800;
            applySpecDefaults_ = input.readBool();
            break;
          }
          case 122: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00004000) != 0)) {
              aliases_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00004000;
            }
            aliases_.add(bs);
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000200) != 0)) {
        description_ = description_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00001000) != 0)) {
        choices_ = java.util.Collections.unmodifiableList(choices_);
      }
      if (((mutable_bitField0_ & 0x00004000) != 0)) {
        aliases_ = aliases_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_OptionInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_OptionInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.config.OptionInfo.class, org.yamcs.protobuf.config.OptionInfo.Builder.class);
  }

  private int bitField0_;
  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * 
   * Name of this option, unique within a spec
   * 
* * optional string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Name of this option, unique within a spec
   * 
* * 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; } } /** *
   * Name of this option, unique within a spec
   * 
* * 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 TYPE_FIELD_NUMBER = 2; private int type_; /** *
   * Type of this option
   * 
* * optional .yamcs.protobuf.config.OptionType type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Type of this option
   * 
* * optional .yamcs.protobuf.config.OptionType type = 2; * @return The type. */ @java.lang.Override public org.yamcs.protobuf.config.OptionType getType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.config.OptionType result = org.yamcs.protobuf.config.OptionType.valueOf(type_); return result == null ? org.yamcs.protobuf.config.OptionType.ANY : result; } public static final int TITLE_FIELD_NUMBER = 3; private volatile java.lang.Object title_; /** *
   * UI-friendly label for this option
   * 
* * optional string title = 3; * @return Whether the title field is set. */ @java.lang.Override public boolean hasTitle() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * UI-friendly label for this option
   * 
* * optional string title = 3; * @return The title. */ @java.lang.Override public java.lang.String getTitle() { java.lang.Object ref = title_; 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()) { title_ = s; } return s; } } /** *
   * UI-friendly label for this option
   * 
* * optional string title = 3; * @return The bytes for title. */ @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_FIELD_NUMBER = 4; private com.google.protobuf.Value default_; /** *
   * Default value when the option is not specified
   * 
* * optional .google.protobuf.Value default = 4; * @return Whether the default field is set. */ @java.lang.Override public boolean hasDefault() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Default value when the option is not specified
   * 
* * optional .google.protobuf.Value default = 4; * @return The default. */ @java.lang.Override public com.google.protobuf.Value getDefault() { return default_ == null ? com.google.protobuf.Value.getDefaultInstance() : default_; } /** *
   * Default value when the option is not specified
   * 
* * optional .google.protobuf.Value default = 4; */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getDefaultOrBuilder() { return default_ == null ? com.google.protobuf.Value.getDefaultInstance() : default_; } public static final int REQUIRED_FIELD_NUMBER = 5; private boolean required_; /** *
   * Whether this options must be specified
   * 
* * optional bool required = 5; * @return Whether the required field is set. */ @java.lang.Override public boolean hasRequired() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Whether this options must be specified
   * 
* * optional bool required = 5; * @return The required. */ @java.lang.Override public boolean getRequired() { return required_; } public static final int HIDDEN_FIELD_NUMBER = 6; private boolean hidden_; /** *
   * Hint that this option should be excluded from any
   * document generation
   * 
* * optional bool hidden = 6; * @return Whether the hidden field is set. */ @java.lang.Override public boolean hasHidden() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Hint that this option should be excluded from any
   * document generation
   * 
* * optional bool hidden = 6; * @return The hidden. */ @java.lang.Override public boolean getHidden() { return hidden_; } public static final int SECRET_FIELD_NUMBER = 7; private boolean secret_; /** *
   * Hint that value for this option should not be
   * logged
   * 
* * optional bool secret = 7; * @return Whether the secret field is set. */ @java.lang.Override public boolean hasSecret() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Hint that value for this option should not be
   * logged
   * 
* * optional bool secret = 7; * @return The secret. */ @java.lang.Override public boolean getSecret() { return secret_; } public static final int VERSIONADDED_FIELD_NUMBER = 8; private volatile java.lang.Object versionAdded_; /** *
   * Which version of this software this option was added.
   * Can be the Yamcs version, or the version of a plugin.  
   * 
* * optional string versionAdded = 8; * @return Whether the versionAdded field is set. */ @java.lang.Override public boolean hasVersionAdded() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * Which version of this software this option was added.
   * Can be the Yamcs version, or the version of a plugin.  
   * 
* * optional string versionAdded = 8; * @return The versionAdded. */ @java.lang.Override public java.lang.String getVersionAdded() { java.lang.Object ref = versionAdded_; 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()) { versionAdded_ = s; } return s; } } /** *
   * Which version of this software this option was added.
   * Can be the Yamcs version, or the version of a plugin.  
   * 
* * optional string versionAdded = 8; * @return The bytes for versionAdded. */ @java.lang.Override public com.google.protobuf.ByteString getVersionAddedBytes() { java.lang.Object ref = versionAdded_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionAdded_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATIONMESSAGE_FIELD_NUMBER = 9; private volatile java.lang.Object deprecationMessage_; /** *
   * Deprecation message for this option
   * 
* * optional string deprecationMessage = 9; * @return Whether the deprecationMessage field is set. */ @java.lang.Override public boolean hasDeprecationMessage() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * Deprecation message for this option
   * 
* * optional string deprecationMessage = 9; * @return The deprecationMessage. */ @java.lang.Override public java.lang.String getDeprecationMessage() { java.lang.Object ref = deprecationMessage_; 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()) { deprecationMessage_ = s; } return s; } } /** *
   * Deprecation message for this option
   * 
* * optional string deprecationMessage = 9; * @return The bytes for deprecationMessage. */ @java.lang.Override public com.google.protobuf.ByteString getDeprecationMessageBytes() { java.lang.Object ref = deprecationMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deprecationMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList description_; /** *
   * Description, each list entry represents a paragraph
   * 
* * repeated string description = 10; * @return A list containing the description. */ public com.google.protobuf.ProtocolStringList getDescriptionList() { return description_; } /** *
   * Description, each list entry represents a paragraph
   * 
* * repeated string description = 10; * @return The count of description. */ public int getDescriptionCount() { return description_.size(); } /** *
   * Description, each list entry represents a paragraph
   * 
* * repeated string description = 10; * @param index The index of the element to return. * @return The description at the given index. */ public java.lang.String getDescription(int index) { return description_.get(index); } /** *
   * Description, each list entry represents a paragraph
   * 
* * repeated string description = 10; * @param index The index of the value to return. * @return The bytes of the description at the given index. */ public com.google.protobuf.ByteString getDescriptionBytes(int index) { return description_.getByteString(index); } public static final int ELEMENTTYPE_FIELD_NUMBER = 11; private int elementType_; /** *
   * When the type is ``LIST`` or ``LIST_OR_ELEMENT``, this indicates the type
   * of each element of that list
   * 
* * optional .yamcs.protobuf.config.OptionType elementType = 11; * @return Whether the elementType field is set. */ @java.lang.Override public boolean hasElementType() { return ((bitField0_ & 0x00000200) != 0); } /** *
   * When the type is ``LIST`` or ``LIST_OR_ELEMENT``, this indicates the type
   * of each element of that list
   * 
* * optional .yamcs.protobuf.config.OptionType elementType = 11; * @return The elementType. */ @java.lang.Override public org.yamcs.protobuf.config.OptionType getElementType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.config.OptionType result = org.yamcs.protobuf.config.OptionType.valueOf(elementType_); return result == null ? org.yamcs.protobuf.config.OptionType.ANY : result; } public static final int SPEC_FIELD_NUMBER = 12; private org.yamcs.protobuf.config.SpecInfo spec_; /** *
   * When the type or elementType is ``MAP``, this specifies
   * the options with that map
   * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; * @return Whether the spec field is set. */ @java.lang.Override public boolean hasSpec() { return ((bitField0_ & 0x00000400) != 0); } /** *
   * When the type or elementType is ``MAP``, this specifies
   * the options with that map
   * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; * @return The spec. */ @java.lang.Override public org.yamcs.protobuf.config.SpecInfo getSpec() { return spec_ == null ? org.yamcs.protobuf.config.SpecInfo.getDefaultInstance() : spec_; } /** *
   * When the type or elementType is ``MAP``, this specifies
   * the options with that map
   * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; */ @java.lang.Override public org.yamcs.protobuf.config.SpecInfoOrBuilder getSpecOrBuilder() { return spec_ == null ? org.yamcs.protobuf.config.SpecInfo.getDefaultInstance() : spec_; } public static final int CHOICES_FIELD_NUMBER = 13; private java.util.List choices_; /** *
   * Allowed values for this option
   * 
* * repeated .google.protobuf.Value choices = 13; */ @java.lang.Override public java.util.List getChoicesList() { return choices_; } /** *
   * Allowed values for this option
   * 
* * repeated .google.protobuf.Value choices = 13; */ @java.lang.Override public java.util.List getChoicesOrBuilderList() { return choices_; } /** *
   * Allowed values for this option
   * 
* * repeated .google.protobuf.Value choices = 13; */ @java.lang.Override public int getChoicesCount() { return choices_.size(); } /** *
   * Allowed values for this option
   * 
* * repeated .google.protobuf.Value choices = 13; */ @java.lang.Override public com.google.protobuf.Value getChoices(int index) { return choices_.get(index); } /** *
   * Allowed values for this option
   * 
* * repeated .google.protobuf.Value choices = 13; */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getChoicesOrBuilder( int index) { return choices_.get(index); } public static final int APPLYSPECDEFAULTS_FIELD_NUMBER = 14; private boolean applySpecDefaults_; /** *
   * When the type is ``MAP``, this property determines whether default values
   * are generated even when a value for that option was not provided.
   * 
* * optional bool applySpecDefaults = 14; * @return Whether the applySpecDefaults field is set. */ @java.lang.Override public boolean hasApplySpecDefaults() { return ((bitField0_ & 0x00000800) != 0); } /** *
   * When the type is ``MAP``, this property determines whether default values
   * are generated even when a value for that option was not provided.
   * 
* * optional bool applySpecDefaults = 14; * @return The applySpecDefaults. */ @java.lang.Override public boolean getApplySpecDefaults() { return applySpecDefaults_; } public static final int ALIASES_FIELD_NUMBER = 15; private com.google.protobuf.LazyStringList aliases_; /** *
   * Additional names that can be used for this option
   * 
* * repeated string aliases = 15; * @return A list containing the aliases. */ public com.google.protobuf.ProtocolStringList getAliasesList() { return aliases_; } /** *
   * Additional names that can be used for this option
   * 
* * repeated string aliases = 15; * @return The count of aliases. */ public int getAliasesCount() { return aliases_.size(); } /** *
   * Additional names that can be used for this option
   * 
* * repeated string aliases = 15; * @param index The index of the element to return. * @return The aliases at the given index. */ public java.lang.String getAliases(int index) { return aliases_.get(index); } /** *
   * Additional names that can be used for this option
   * 
* * repeated string aliases = 15; * @param index The index of the value to return. * @return The bytes of the aliases at the given index. */ public com.google.protobuf.ByteString getAliasesBytes(int index) { return aliases_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, type_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getDefault()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, required_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(6, hidden_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, secret_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, versionAdded_); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, deprecationMessage_); } for (int i = 0; i < description_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, description_.getRaw(i)); } if (((bitField0_ & 0x00000200) != 0)) { output.writeEnum(11, elementType_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(12, getSpec()); } for (int i = 0; i < choices_.size(); i++) { output.writeMessage(13, choices_.get(i)); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(14, applySpecDefaults_); } for (int i = 0; i < aliases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, aliases_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDefault()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, required_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, hidden_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, secret_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, versionAdded_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, deprecationMessage_); } { int dataSize = 0; for (int i = 0; i < description_.size(); i++) { dataSize += computeStringSizeNoTag(description_.getRaw(i)); } size += dataSize; size += 1 * getDescriptionList().size(); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, elementType_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getSpec()); } for (int i = 0; i < choices_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, choices_.get(i)); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, applySpecDefaults_); } { int dataSize = 0; for (int i = 0; i < aliases_.size(); i++) { dataSize += computeStringSizeNoTag(aliases_.getRaw(i)); } size += dataSize; size += 1 * getAliasesList().size(); } 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.config.OptionInfo)) { return super.equals(obj); } org.yamcs.protobuf.config.OptionInfo other = (org.yamcs.protobuf.config.OptionInfo) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasTitle() != other.hasTitle()) return false; if (hasTitle()) { if (!getTitle() .equals(other.getTitle())) return false; } if (hasDefault() != other.hasDefault()) return false; if (hasDefault()) { if (!getDefault() .equals(other.getDefault())) return false; } if (hasRequired() != other.hasRequired()) return false; if (hasRequired()) { if (getRequired() != other.getRequired()) return false; } if (hasHidden() != other.hasHidden()) return false; if (hasHidden()) { if (getHidden() != other.getHidden()) return false; } if (hasSecret() != other.hasSecret()) return false; if (hasSecret()) { if (getSecret() != other.getSecret()) return false; } if (hasVersionAdded() != other.hasVersionAdded()) return false; if (hasVersionAdded()) { if (!getVersionAdded() .equals(other.getVersionAdded())) return false; } if (hasDeprecationMessage() != other.hasDeprecationMessage()) return false; if (hasDeprecationMessage()) { if (!getDeprecationMessage() .equals(other.getDeprecationMessage())) return false; } if (!getDescriptionList() .equals(other.getDescriptionList())) return false; if (hasElementType() != other.hasElementType()) return false; if (hasElementType()) { if (elementType_ != other.elementType_) return false; } if (hasSpec() != other.hasSpec()) return false; if (hasSpec()) { if (!getSpec() .equals(other.getSpec())) return false; } if (!getChoicesList() .equals(other.getChoicesList())) return false; if (hasApplySpecDefaults() != other.hasApplySpecDefaults()) return false; if (hasApplySpecDefaults()) { if (getApplySpecDefaults() != other.getApplySpecDefaults()) return false; } if (!getAliasesList() .equals(other.getAliasesList())) 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasTitle()) { hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); } if (hasDefault()) { hash = (37 * hash) + DEFAULT_FIELD_NUMBER; hash = (53 * hash) + getDefault().hashCode(); } if (hasRequired()) { hash = (37 * hash) + REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRequired()); } if (hasHidden()) { hash = (37 * hash) + HIDDEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHidden()); } if (hasSecret()) { hash = (37 * hash) + SECRET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSecret()); } if (hasVersionAdded()) { hash = (37 * hash) + VERSIONADDED_FIELD_NUMBER; hash = (53 * hash) + getVersionAdded().hashCode(); } if (hasDeprecationMessage()) { hash = (37 * hash) + DEPRECATIONMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getDeprecationMessage().hashCode(); } if (getDescriptionCount() > 0) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescriptionList().hashCode(); } if (hasElementType()) { hash = (37 * hash) + ELEMENTTYPE_FIELD_NUMBER; hash = (53 * hash) + elementType_; } if (hasSpec()) { hash = (37 * hash) + SPEC_FIELD_NUMBER; hash = (53 * hash) + getSpec().hashCode(); } if (getChoicesCount() > 0) { hash = (37 * hash) + CHOICES_FIELD_NUMBER; hash = (53 * hash) + getChoicesList().hashCode(); } if (hasApplySpecDefaults()) { hash = (37 * hash) + APPLYSPECDEFAULTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getApplySpecDefaults()); } if (getAliasesCount() > 0) { hash = (37 * hash) + ALIASES_FIELD_NUMBER; hash = (53 * hash) + getAliasesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.config.OptionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.OptionInfo 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.config.OptionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.OptionInfo 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.config.OptionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.OptionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.config.OptionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.OptionInfo 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.config.OptionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.OptionInfo 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.config.OptionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.OptionInfo 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.config.OptionInfo 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.config.OptionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.config.OptionInfo) org.yamcs.protobuf.config.OptionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_OptionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_OptionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.config.OptionInfo.class, org.yamcs.protobuf.config.OptionInfo.Builder.class); } // Construct using org.yamcs.protobuf.config.OptionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDefaultFieldBuilder(); getSpecFieldBuilder(); getChoicesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; bitField0_ = (bitField0_ & ~0x00000002); title_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (defaultBuilder_ == null) { default_ = null; } else { defaultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); required_ = false; bitField0_ = (bitField0_ & ~0x00000010); hidden_ = false; bitField0_ = (bitField0_ & ~0x00000020); secret_ = false; bitField0_ = (bitField0_ & ~0x00000040); versionAdded_ = ""; bitField0_ = (bitField0_ & ~0x00000080); deprecationMessage_ = ""; bitField0_ = (bitField0_ & ~0x00000100); description_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); elementType_ = 1; bitField0_ = (bitField0_ & ~0x00000400); if (specBuilder_ == null) { spec_ = null; } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); if (choicesBuilder_ == null) { choices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); } else { choicesBuilder_.clear(); } applySpecDefaults_ = false; bitField0_ = (bitField0_ & ~0x00002000); aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_OptionInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.config.OptionInfo getDefaultInstanceForType() { return org.yamcs.protobuf.config.OptionInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.config.OptionInfo build() { org.yamcs.protobuf.config.OptionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.config.OptionInfo buildPartial() { org.yamcs.protobuf.config.OptionInfo result = new org.yamcs.protobuf.config.OptionInfo(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)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.title_ = title_; if (((from_bitField0_ & 0x00000008) != 0)) { if (defaultBuilder_ == null) { result.default_ = default_; } else { result.default_ = defaultBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.required_ = required_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.hidden_ = hidden_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.secret_ = secret_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000080; } result.versionAdded_ = versionAdded_; if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000100; } result.deprecationMessage_ = deprecationMessage_; if (((bitField0_ & 0x00000200) != 0)) { description_ = description_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000200); } result.description_ = description_; if (((from_bitField0_ & 0x00000400) != 0)) { to_bitField0_ |= 0x00000200; } result.elementType_ = elementType_; if (((from_bitField0_ & 0x00000800) != 0)) { if (specBuilder_ == null) { result.spec_ = spec_; } else { result.spec_ = specBuilder_.build(); } to_bitField0_ |= 0x00000400; } if (choicesBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0)) { choices_ = java.util.Collections.unmodifiableList(choices_); bitField0_ = (bitField0_ & ~0x00001000); } result.choices_ = choices_; } else { result.choices_ = choicesBuilder_.build(); } if (((from_bitField0_ & 0x00002000) != 0)) { result.applySpecDefaults_ = applySpecDefaults_; to_bitField0_ |= 0x00000800; } if (((bitField0_ & 0x00004000) != 0)) { aliases_ = aliases_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00004000); } result.aliases_ = aliases_; 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.config.OptionInfo) { return mergeFrom((org.yamcs.protobuf.config.OptionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.config.OptionInfo other) { if (other == org.yamcs.protobuf.config.OptionInfo.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasTitle()) { bitField0_ |= 0x00000004; title_ = other.title_; onChanged(); } if (other.hasDefault()) { mergeDefault(other.getDefault()); } if (other.hasRequired()) { setRequired(other.getRequired()); } if (other.hasHidden()) { setHidden(other.getHidden()); } if (other.hasSecret()) { setSecret(other.getSecret()); } if (other.hasVersionAdded()) { bitField0_ |= 0x00000080; versionAdded_ = other.versionAdded_; onChanged(); } if (other.hasDeprecationMessage()) { bitField0_ |= 0x00000100; deprecationMessage_ = other.deprecationMessage_; onChanged(); } if (!other.description_.isEmpty()) { if (description_.isEmpty()) { description_ = other.description_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureDescriptionIsMutable(); description_.addAll(other.description_); } onChanged(); } if (other.hasElementType()) { setElementType(other.getElementType()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } if (choicesBuilder_ == null) { if (!other.choices_.isEmpty()) { if (choices_.isEmpty()) { choices_ = other.choices_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureChoicesIsMutable(); choices_.addAll(other.choices_); } onChanged(); } } else { if (!other.choices_.isEmpty()) { if (choicesBuilder_.isEmpty()) { choicesBuilder_.dispose(); choicesBuilder_ = null; choices_ = other.choices_; bitField0_ = (bitField0_ & ~0x00001000); choicesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChoicesFieldBuilder() : null; } else { choicesBuilder_.addAllMessages(other.choices_); } } } if (other.hasApplySpecDefaults()) { setApplySpecDefaults(other.getApplySpecDefaults()); } if (!other.aliases_.isEmpty()) { if (aliases_.isEmpty()) { aliases_ = other.aliases_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureAliasesIsMutable(); aliases_.addAll(other.aliases_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.yamcs.protobuf.config.OptionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.config.OptionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * Name of this option, unique within a spec
     * 
* * optional string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Name of this option, unique within a spec
     * 
* * 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; } } /** *
     * Name of this option, unique within a spec
     * 
* * 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; } } /** *
     * Name of this option, unique within a spec
     * 
* * 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; } /** *
     * Name of this option, unique within a spec
     * 
* * optional string name = 1; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Name of this option, unique within a spec
     * 
* * 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 int type_ = 1; /** *
     * Type of this option
     * 
* * optional .yamcs.protobuf.config.OptionType type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Type of this option
     * 
* * optional .yamcs.protobuf.config.OptionType type = 2; * @return The type. */ @java.lang.Override public org.yamcs.protobuf.config.OptionType getType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.config.OptionType result = org.yamcs.protobuf.config.OptionType.valueOf(type_); return result == null ? org.yamcs.protobuf.config.OptionType.ANY : result; } /** *
     * Type of this option
     * 
* * optional .yamcs.protobuf.config.OptionType type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.yamcs.protobuf.config.OptionType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** *
     * Type of this option
     * 
* * optional .yamcs.protobuf.config.OptionType type = 2; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 1; onChanged(); return this; } private java.lang.Object title_ = ""; /** *
     * UI-friendly label for this option
     * 
* * optional string title = 3; * @return Whether the title field is set. */ public boolean hasTitle() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * UI-friendly label for this option
     * 
* * optional string title = 3; * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; 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()) { title_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * UI-friendly label for this option
     * 
* * optional string title = 3; * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * UI-friendly label for this option
     * 
* * optional string title = 3; * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; title_ = value; onChanged(); return this; } /** *
     * UI-friendly label for this option
     * 
* * optional string title = 3; * @return This builder for chaining. */ public Builder clearTitle() { bitField0_ = (bitField0_ & ~0x00000004); title_ = getDefaultInstance().getTitle(); onChanged(); return this; } /** *
     * UI-friendly label for this option
     * 
* * optional string title = 3; * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; title_ = value; onChanged(); return this; } private com.google.protobuf.Value default_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> defaultBuilder_; /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; * @return Whether the default field is set. */ public boolean hasDefault() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; * @return The default. */ public com.google.protobuf.Value getDefault() { if (defaultBuilder_ == null) { return default_ == null ? com.google.protobuf.Value.getDefaultInstance() : default_; } else { return defaultBuilder_.getMessage(); } } /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; */ public Builder setDefault(com.google.protobuf.Value value) { if (defaultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } default_ = value; onChanged(); } else { defaultBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; */ public Builder setDefault( com.google.protobuf.Value.Builder builderForValue) { if (defaultBuilder_ == null) { default_ = builderForValue.build(); onChanged(); } else { defaultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; */ public Builder mergeDefault(com.google.protobuf.Value value) { if (defaultBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && default_ != null && default_ != com.google.protobuf.Value.getDefaultInstance()) { default_ = com.google.protobuf.Value.newBuilder(default_).mergeFrom(value).buildPartial(); } else { default_ = value; } onChanged(); } else { defaultBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; */ public Builder clearDefault() { if (defaultBuilder_ == null) { default_ = null; onChanged(); } else { defaultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; */ public com.google.protobuf.Value.Builder getDefaultBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDefaultFieldBuilder().getBuilder(); } /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; */ public com.google.protobuf.ValueOrBuilder getDefaultOrBuilder() { if (defaultBuilder_ != null) { return defaultBuilder_.getMessageOrBuilder(); } else { return default_ == null ? com.google.protobuf.Value.getDefaultInstance() : default_; } } /** *
     * Default value when the option is not specified
     * 
* * optional .google.protobuf.Value default = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> getDefaultFieldBuilder() { if (defaultBuilder_ == null) { defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( getDefault(), getParentForChildren(), isClean()); default_ = null; } return defaultBuilder_; } private boolean required_ ; /** *
     * Whether this options must be specified
     * 
* * optional bool required = 5; * @return Whether the required field is set. */ @java.lang.Override public boolean hasRequired() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Whether this options must be specified
     * 
* * optional bool required = 5; * @return The required. */ @java.lang.Override public boolean getRequired() { return required_; } /** *
     * Whether this options must be specified
     * 
* * optional bool required = 5; * @param value The required to set. * @return This builder for chaining. */ public Builder setRequired(boolean value) { bitField0_ |= 0x00000010; required_ = value; onChanged(); return this; } /** *
     * Whether this options must be specified
     * 
* * optional bool required = 5; * @return This builder for chaining. */ public Builder clearRequired() { bitField0_ = (bitField0_ & ~0x00000010); required_ = false; onChanged(); return this; } private boolean hidden_ ; /** *
     * Hint that this option should be excluded from any
     * document generation
     * 
* * optional bool hidden = 6; * @return Whether the hidden field is set. */ @java.lang.Override public boolean hasHidden() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Hint that this option should be excluded from any
     * document generation
     * 
* * optional bool hidden = 6; * @return The hidden. */ @java.lang.Override public boolean getHidden() { return hidden_; } /** *
     * Hint that this option should be excluded from any
     * document generation
     * 
* * optional bool hidden = 6; * @param value The hidden to set. * @return This builder for chaining. */ public Builder setHidden(boolean value) { bitField0_ |= 0x00000020; hidden_ = value; onChanged(); return this; } /** *
     * Hint that this option should be excluded from any
     * document generation
     * 
* * optional bool hidden = 6; * @return This builder for chaining. */ public Builder clearHidden() { bitField0_ = (bitField0_ & ~0x00000020); hidden_ = false; onChanged(); return this; } private boolean secret_ ; /** *
     * Hint that value for this option should not be
     * logged
     * 
* * optional bool secret = 7; * @return Whether the secret field is set. */ @java.lang.Override public boolean hasSecret() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Hint that value for this option should not be
     * logged
     * 
* * optional bool secret = 7; * @return The secret. */ @java.lang.Override public boolean getSecret() { return secret_; } /** *
     * Hint that value for this option should not be
     * logged
     * 
* * optional bool secret = 7; * @param value The secret to set. * @return This builder for chaining. */ public Builder setSecret(boolean value) { bitField0_ |= 0x00000040; secret_ = value; onChanged(); return this; } /** *
     * Hint that value for this option should not be
     * logged
     * 
* * optional bool secret = 7; * @return This builder for chaining. */ public Builder clearSecret() { bitField0_ = (bitField0_ & ~0x00000040); secret_ = false; onChanged(); return this; } private java.lang.Object versionAdded_ = ""; /** *
     * Which version of this software this option was added.
     * Can be the Yamcs version, or the version of a plugin.  
     * 
* * optional string versionAdded = 8; * @return Whether the versionAdded field is set. */ public boolean hasVersionAdded() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Which version of this software this option was added.
     * Can be the Yamcs version, or the version of a plugin.  
     * 
* * optional string versionAdded = 8; * @return The versionAdded. */ public java.lang.String getVersionAdded() { java.lang.Object ref = versionAdded_; 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()) { versionAdded_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Which version of this software this option was added.
     * Can be the Yamcs version, or the version of a plugin.  
     * 
* * optional string versionAdded = 8; * @return The bytes for versionAdded. */ public com.google.protobuf.ByteString getVersionAddedBytes() { java.lang.Object ref = versionAdded_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionAdded_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Which version of this software this option was added.
     * Can be the Yamcs version, or the version of a plugin.  
     * 
* * optional string versionAdded = 8; * @param value The versionAdded to set. * @return This builder for chaining. */ public Builder setVersionAdded( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; versionAdded_ = value; onChanged(); return this; } /** *
     * Which version of this software this option was added.
     * Can be the Yamcs version, or the version of a plugin.  
     * 
* * optional string versionAdded = 8; * @return This builder for chaining. */ public Builder clearVersionAdded() { bitField0_ = (bitField0_ & ~0x00000080); versionAdded_ = getDefaultInstance().getVersionAdded(); onChanged(); return this; } /** *
     * Which version of this software this option was added.
     * Can be the Yamcs version, or the version of a plugin.  
     * 
* * optional string versionAdded = 8; * @param value The bytes for versionAdded to set. * @return This builder for chaining. */ public Builder setVersionAddedBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; versionAdded_ = value; onChanged(); return this; } private java.lang.Object deprecationMessage_ = ""; /** *
     * Deprecation message for this option
     * 
* * optional string deprecationMessage = 9; * @return Whether the deprecationMessage field is set. */ public boolean hasDeprecationMessage() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Deprecation message for this option
     * 
* * optional string deprecationMessage = 9; * @return The deprecationMessage. */ public java.lang.String getDeprecationMessage() { java.lang.Object ref = deprecationMessage_; 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()) { deprecationMessage_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Deprecation message for this option
     * 
* * optional string deprecationMessage = 9; * @return The bytes for deprecationMessage. */ public com.google.protobuf.ByteString getDeprecationMessageBytes() { java.lang.Object ref = deprecationMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); deprecationMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Deprecation message for this option
     * 
* * optional string deprecationMessage = 9; * @param value The deprecationMessage to set. * @return This builder for chaining. */ public Builder setDeprecationMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; deprecationMessage_ = value; onChanged(); return this; } /** *
     * Deprecation message for this option
     * 
* * optional string deprecationMessage = 9; * @return This builder for chaining. */ public Builder clearDeprecationMessage() { bitField0_ = (bitField0_ & ~0x00000100); deprecationMessage_ = getDefaultInstance().getDeprecationMessage(); onChanged(); return this; } /** *
     * Deprecation message for this option
     * 
* * optional string deprecationMessage = 9; * @param value The bytes for deprecationMessage to set. * @return This builder for chaining. */ public Builder setDeprecationMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; deprecationMessage_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList description_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDescriptionIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { description_ = new com.google.protobuf.LazyStringArrayList(description_); bitField0_ |= 0x00000200; } } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @return A list containing the description. */ public com.google.protobuf.ProtocolStringList getDescriptionList() { return description_.getUnmodifiableView(); } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @return The count of description. */ public int getDescriptionCount() { return description_.size(); } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @param index The index of the element to return. * @return The description at the given index. */ public java.lang.String getDescription(int index) { return description_.get(index); } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @param index The index of the value to return. * @return The bytes of the description at the given index. */ public com.google.protobuf.ByteString getDescriptionBytes(int index) { return description_.getByteString(index); } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @param index The index to set the value at. * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDescriptionIsMutable(); description_.set(index, value); onChanged(); return this; } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @param value The description to add. * @return This builder for chaining. */ public Builder addDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDescriptionIsMutable(); description_.add(value); onChanged(); return this; } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @param values The description to add. * @return This builder for chaining. */ public Builder addAllDescription( java.lang.Iterable values) { ensureDescriptionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, description_); onChanged(); return this; } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @return This builder for chaining. */ public Builder clearDescription() { description_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** *
     * Description, each list entry represents a paragraph
     * 
* * repeated string description = 10; * @param value The bytes of the description to add. * @return This builder for chaining. */ public Builder addDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDescriptionIsMutable(); description_.add(value); onChanged(); return this; } private int elementType_ = 1; /** *
     * When the type is ``LIST`` or ``LIST_OR_ELEMENT``, this indicates the type
     * of each element of that list
     * 
* * optional .yamcs.protobuf.config.OptionType elementType = 11; * @return Whether the elementType field is set. */ @java.lang.Override public boolean hasElementType() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * When the type is ``LIST`` or ``LIST_OR_ELEMENT``, this indicates the type
     * of each element of that list
     * 
* * optional .yamcs.protobuf.config.OptionType elementType = 11; * @return The elementType. */ @java.lang.Override public org.yamcs.protobuf.config.OptionType getElementType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.config.OptionType result = org.yamcs.protobuf.config.OptionType.valueOf(elementType_); return result == null ? org.yamcs.protobuf.config.OptionType.ANY : result; } /** *
     * When the type is ``LIST`` or ``LIST_OR_ELEMENT``, this indicates the type
     * of each element of that list
     * 
* * optional .yamcs.protobuf.config.OptionType elementType = 11; * @param value The elementType to set. * @return This builder for chaining. */ public Builder setElementType(org.yamcs.protobuf.config.OptionType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; elementType_ = value.getNumber(); onChanged(); return this; } /** *
     * When the type is ``LIST`` or ``LIST_OR_ELEMENT``, this indicates the type
     * of each element of that list
     * 
* * optional .yamcs.protobuf.config.OptionType elementType = 11; * @return This builder for chaining. */ public Builder clearElementType() { bitField0_ = (bitField0_ & ~0x00000400); elementType_ = 1; onChanged(); return this; } private org.yamcs.protobuf.config.SpecInfo spec_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.config.SpecInfo, org.yamcs.protobuf.config.SpecInfo.Builder, org.yamcs.protobuf.config.SpecInfoOrBuilder> specBuilder_; /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; * @return Whether the spec field is set. */ public boolean hasSpec() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; * @return The spec. */ public org.yamcs.protobuf.config.SpecInfo getSpec() { if (specBuilder_ == null) { return spec_ == null ? org.yamcs.protobuf.config.SpecInfo.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; */ public Builder setSpec(org.yamcs.protobuf.config.SpecInfo value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; */ public Builder setSpec( org.yamcs.protobuf.config.SpecInfo.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; */ public Builder mergeSpec(org.yamcs.protobuf.config.SpecInfo value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && spec_ != null && spec_ != org.yamcs.protobuf.config.SpecInfo.getDefaultInstance()) { spec_ = org.yamcs.protobuf.config.SpecInfo.newBuilder(spec_).mergeFrom(value).buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; */ public org.yamcs.protobuf.config.SpecInfo.Builder getSpecBuilder() { bitField0_ |= 0x00000800; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; */ public org.yamcs.protobuf.config.SpecInfoOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? org.yamcs.protobuf.config.SpecInfo.getDefaultInstance() : spec_; } } /** *
     * When the type or elementType is ``MAP``, this specifies
     * the options with that map
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.config.SpecInfo, org.yamcs.protobuf.config.SpecInfo.Builder, org.yamcs.protobuf.config.SpecInfoOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.config.SpecInfo, org.yamcs.protobuf.config.SpecInfo.Builder, org.yamcs.protobuf.config.SpecInfoOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private java.util.List choices_ = java.util.Collections.emptyList(); private void ensureChoicesIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { choices_ = new java.util.ArrayList(choices_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> choicesBuilder_; /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public java.util.List getChoicesList() { if (choicesBuilder_ == null) { return java.util.Collections.unmodifiableList(choices_); } else { return choicesBuilder_.getMessageList(); } } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public int getChoicesCount() { if (choicesBuilder_ == null) { return choices_.size(); } else { return choicesBuilder_.getCount(); } } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public com.google.protobuf.Value getChoices(int index) { if (choicesBuilder_ == null) { return choices_.get(index); } else { return choicesBuilder_.getMessage(index); } } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder setChoices( int index, com.google.protobuf.Value value) { if (choicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChoicesIsMutable(); choices_.set(index, value); onChanged(); } else { choicesBuilder_.setMessage(index, value); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder setChoices( int index, com.google.protobuf.Value.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.set(index, builderForValue.build()); onChanged(); } else { choicesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder addChoices(com.google.protobuf.Value value) { if (choicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChoicesIsMutable(); choices_.add(value); onChanged(); } else { choicesBuilder_.addMessage(value); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder addChoices( int index, com.google.protobuf.Value value) { if (choicesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChoicesIsMutable(); choices_.add(index, value); onChanged(); } else { choicesBuilder_.addMessage(index, value); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder addChoices( com.google.protobuf.Value.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(builderForValue.build()); onChanged(); } else { choicesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder addChoices( int index, com.google.protobuf.Value.Builder builderForValue) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.add(index, builderForValue.build()); onChanged(); } else { choicesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder addAllChoices( java.lang.Iterable values) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, choices_); onChanged(); } else { choicesBuilder_.addAllMessages(values); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder clearChoices() { if (choicesBuilder_ == null) { choices_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { choicesBuilder_.clear(); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public Builder removeChoices(int index) { if (choicesBuilder_ == null) { ensureChoicesIsMutable(); choices_.remove(index); onChanged(); } else { choicesBuilder_.remove(index); } return this; } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public com.google.protobuf.Value.Builder getChoicesBuilder( int index) { return getChoicesFieldBuilder().getBuilder(index); } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public com.google.protobuf.ValueOrBuilder getChoicesOrBuilder( int index) { if (choicesBuilder_ == null) { return choices_.get(index); } else { return choicesBuilder_.getMessageOrBuilder(index); } } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public java.util.List getChoicesOrBuilderList() { if (choicesBuilder_ != null) { return choicesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(choices_); } } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public com.google.protobuf.Value.Builder addChoicesBuilder() { return getChoicesFieldBuilder().addBuilder( com.google.protobuf.Value.getDefaultInstance()); } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public com.google.protobuf.Value.Builder addChoicesBuilder( int index) { return getChoicesFieldBuilder().addBuilder( index, com.google.protobuf.Value.getDefaultInstance()); } /** *
     * Allowed values for this option
     * 
* * repeated .google.protobuf.Value choices = 13; */ public java.util.List getChoicesBuilderList() { return getChoicesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> getChoicesFieldBuilder() { if (choicesBuilder_ == null) { choicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( choices_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); choices_ = null; } return choicesBuilder_; } private boolean applySpecDefaults_ ; /** *
     * When the type is ``MAP``, this property determines whether default values
     * are generated even when a value for that option was not provided.
     * 
* * optional bool applySpecDefaults = 14; * @return Whether the applySpecDefaults field is set. */ @java.lang.Override public boolean hasApplySpecDefaults() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * When the type is ``MAP``, this property determines whether default values
     * are generated even when a value for that option was not provided.
     * 
* * optional bool applySpecDefaults = 14; * @return The applySpecDefaults. */ @java.lang.Override public boolean getApplySpecDefaults() { return applySpecDefaults_; } /** *
     * When the type is ``MAP``, this property determines whether default values
     * are generated even when a value for that option was not provided.
     * 
* * optional bool applySpecDefaults = 14; * @param value The applySpecDefaults to set. * @return This builder for chaining. */ public Builder setApplySpecDefaults(boolean value) { bitField0_ |= 0x00002000; applySpecDefaults_ = value; onChanged(); return this; } /** *
     * When the type is ``MAP``, this property determines whether default values
     * are generated even when a value for that option was not provided.
     * 
* * optional bool applySpecDefaults = 14; * @return This builder for chaining. */ public Builder clearApplySpecDefaults() { bitField0_ = (bitField0_ & ~0x00002000); applySpecDefaults_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAliasesIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { aliases_ = new com.google.protobuf.LazyStringArrayList(aliases_); bitField0_ |= 0x00004000; } } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @return A list containing the aliases. */ public com.google.protobuf.ProtocolStringList getAliasesList() { return aliases_.getUnmodifiableView(); } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @return The count of aliases. */ public int getAliasesCount() { return aliases_.size(); } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @param index The index of the element to return. * @return The aliases at the given index. */ public java.lang.String getAliases(int index) { return aliases_.get(index); } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @param index The index of the value to return. * @return The bytes of the aliases at the given index. */ public com.google.protobuf.ByteString getAliasesBytes(int index) { return aliases_.getByteString(index); } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @param index The index to set the value at. * @param value The aliases to set. * @return This builder for chaining. */ public Builder setAliases( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAliasesIsMutable(); aliases_.set(index, value); onChanged(); return this; } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @param value The aliases to add. * @return This builder for chaining. */ public Builder addAliases( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAliasesIsMutable(); aliases_.add(value); onChanged(); return this; } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @param values The aliases to add. * @return This builder for chaining. */ public Builder addAllAliases( java.lang.Iterable values) { ensureAliasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, aliases_); onChanged(); return this; } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @return This builder for chaining. */ public Builder clearAliases() { aliases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } /** *
     * Additional names that can be used for this option
     * 
* * repeated string aliases = 15; * @param value The bytes of the aliases to add. * @return This builder for chaining. */ public Builder addAliasesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAliasesIsMutable(); aliases_.add(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.config.OptionInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.config.OptionInfo) private static final org.yamcs.protobuf.config.OptionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.config.OptionInfo(); } public static org.yamcs.protobuf.config.OptionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OptionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionInfo(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.config.OptionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy