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

org.yamcs.protobuf.config.SpecInfo 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;

/**
 * 
 * Specifies the valid structure of a configuration map
 * 
* * Protobuf type {@code yamcs.protobuf.config.SpecInfo} */ public final class SpecInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yamcs.protobuf.config.SpecInfo) SpecInfoOrBuilder { private static final long serialVersionUID = 0L; // Use SpecInfo.newBuilder() to construct. private SpecInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpecInfo() { options_ = java.util.Collections.emptyList(); requiredOneOf_ = java.util.Collections.emptyList(); requireTogether_ = java.util.Collections.emptyList(); whenConditions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpecInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SpecInfo( 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { options_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } options_.add( input.readMessage(org.yamcs.protobuf.config.OptionInfo.PARSER, extensionRegistry)); break; } case 16: { bitField0_ |= 0x00000001; allowUnknownKeys_ = input.readBool(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { requiredOneOf_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } requiredOneOf_.add( input.readMessage(org.yamcs.protobuf.config.OptionGroupInfo.PARSER, extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { requireTogether_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } requireTogether_.add( input.readMessage(org.yamcs.protobuf.config.OptionGroupInfo.PARSER, extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) != 0)) { whenConditions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000010; } whenConditions_.add( input.readMessage(org.yamcs.protobuf.config.WhenConditionInfo.PARSER, extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { requiredOneOf_ = java.util.Collections.unmodifiableList(requiredOneOf_); } if (((mutable_bitField0_ & 0x00000008) != 0)) { requireTogether_ = java.util.Collections.unmodifiableList(requireTogether_); } if (((mutable_bitField0_ & 0x00000010) != 0)) { whenConditions_ = java.util.Collections.unmodifiableList(whenConditions_); } 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_SpecInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_SpecInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.config.SpecInfo.class, org.yamcs.protobuf.config.SpecInfo.Builder.class); } private int bitField0_; public static final int OPTIONS_FIELD_NUMBER = 1; private java.util.List options_; /** *
   * Options for this specification  
   * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ @java.lang.Override public java.util.List getOptionsList() { return options_; } /** *
   * Options for this specification  
   * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ @java.lang.Override public java.util.List getOptionsOrBuilderList() { return options_; } /** *
   * Options for this specification  
   * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ @java.lang.Override public int getOptionsCount() { return options_.size(); } /** *
   * Options for this specification  
   * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ @java.lang.Override public org.yamcs.protobuf.config.OptionInfo getOptions(int index) { return options_.get(index); } /** *
   * Options for this specification  
   * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ @java.lang.Override public org.yamcs.protobuf.config.OptionInfoOrBuilder getOptionsOrBuilder( int index) { return options_.get(index); } public static final int ALLOWUNKNOWNKEYS_FIELD_NUMBER = 2; private boolean allowUnknownKeys_; /** *
   * If true, any option is allowed
   * 
* * optional bool allowUnknownKeys = 2; * @return Whether the allowUnknownKeys field is set. */ @java.lang.Override public boolean hasAllowUnknownKeys() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * If true, any option is allowed
   * 
* * optional bool allowUnknownKeys = 2; * @return The allowUnknownKeys. */ @java.lang.Override public boolean getAllowUnknownKeys() { return allowUnknownKeys_; } public static final int REQUIREDONEOF_FIELD_NUMBER = 3; private java.util.List requiredOneOf_; /** *
   * Constraints on a groups of options. For each group at least one
   * of the keys must be specified.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ @java.lang.Override public java.util.List getRequiredOneOfList() { return requiredOneOf_; } /** *
   * Constraints on a groups of options. For each group at least one
   * of the keys must be specified.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ @java.lang.Override public java.util.List getRequiredOneOfOrBuilderList() { return requiredOneOf_; } /** *
   * Constraints on a groups of options. For each group at least one
   * of the keys must be specified.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ @java.lang.Override public int getRequiredOneOfCount() { return requiredOneOf_.size(); } /** *
   * Constraints on a groups of options. For each group at least one
   * of the keys must be specified.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ @java.lang.Override public org.yamcs.protobuf.config.OptionGroupInfo getRequiredOneOf(int index) { return requiredOneOf_.get(index); } /** *
   * Constraints on a groups of options. For each group at least one
   * of the keys must be specified.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ @java.lang.Override public org.yamcs.protobuf.config.OptionGroupInfoOrBuilder getRequiredOneOfOrBuilder( int index) { return requiredOneOf_.get(index); } public static final int REQUIRETOGETHER_FIELD_NUMBER = 4; private java.util.List requireTogether_; /** *
   * Constraints on a group of options. For each group, all keys must
   * be specified, or none at all.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ @java.lang.Override public java.util.List getRequireTogetherList() { return requireTogether_; } /** *
   * Constraints on a group of options. For each group, all keys must
   * be specified, or none at all.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ @java.lang.Override public java.util.List getRequireTogetherOrBuilderList() { return requireTogether_; } /** *
   * Constraints on a group of options. For each group, all keys must
   * be specified, or none at all.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ @java.lang.Override public int getRequireTogetherCount() { return requireTogether_.size(); } /** *
   * Constraints on a group of options. For each group, all keys must
   * be specified, or none at all.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ @java.lang.Override public org.yamcs.protobuf.config.OptionGroupInfo getRequireTogether(int index) { return requireTogether_.get(index); } /** *
   * Constraints on a group of options. For each group, all keys must
   * be specified, or none at all.
   * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ @java.lang.Override public org.yamcs.protobuf.config.OptionGroupInfoOrBuilder getRequireTogetherOrBuilder( int index) { return requireTogether_.get(index); } public static final int WHENCONDITIONS_FIELD_NUMBER = 5; private java.util.List whenConditions_; /** *
   * Conditional constraints on a group of options
   * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ @java.lang.Override public java.util.List getWhenConditionsList() { return whenConditions_; } /** *
   * Conditional constraints on a group of options
   * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ @java.lang.Override public java.util.List getWhenConditionsOrBuilderList() { return whenConditions_; } /** *
   * Conditional constraints on a group of options
   * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ @java.lang.Override public int getWhenConditionsCount() { return whenConditions_.size(); } /** *
   * Conditional constraints on a group of options
   * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ @java.lang.Override public org.yamcs.protobuf.config.WhenConditionInfo getWhenConditions(int index) { return whenConditions_.get(index); } /** *
   * Conditional constraints on a group of options
   * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ @java.lang.Override public org.yamcs.protobuf.config.WhenConditionInfoOrBuilder getWhenConditionsOrBuilder( int index) { return whenConditions_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < options_.size(); i++) { output.writeMessage(1, options_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(2, allowUnknownKeys_); } for (int i = 0; i < requiredOneOf_.size(); i++) { output.writeMessage(3, requiredOneOf_.get(i)); } for (int i = 0; i < requireTogether_.size(); i++) { output.writeMessage(4, requireTogether_.get(i)); } for (int i = 0; i < whenConditions_.size(); i++) { output.writeMessage(5, whenConditions_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < options_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, options_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, allowUnknownKeys_); } for (int i = 0; i < requiredOneOf_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, requiredOneOf_.get(i)); } for (int i = 0; i < requireTogether_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, requireTogether_.get(i)); } for (int i = 0; i < whenConditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, whenConditions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.yamcs.protobuf.config.SpecInfo)) { return super.equals(obj); } org.yamcs.protobuf.config.SpecInfo other = (org.yamcs.protobuf.config.SpecInfo) obj; if (!getOptionsList() .equals(other.getOptionsList())) return false; if (hasAllowUnknownKeys() != other.hasAllowUnknownKeys()) return false; if (hasAllowUnknownKeys()) { if (getAllowUnknownKeys() != other.getAllowUnknownKeys()) return false; } if (!getRequiredOneOfList() .equals(other.getRequiredOneOfList())) return false; if (!getRequireTogetherList() .equals(other.getRequireTogetherList())) return false; if (!getWhenConditionsList() .equals(other.getWhenConditionsList())) 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 (getOptionsCount() > 0) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptionsList().hashCode(); } if (hasAllowUnknownKeys()) { hash = (37 * hash) + ALLOWUNKNOWNKEYS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowUnknownKeys()); } if (getRequiredOneOfCount() > 0) { hash = (37 * hash) + REQUIREDONEOF_FIELD_NUMBER; hash = (53 * hash) + getRequiredOneOfList().hashCode(); } if (getRequireTogetherCount() > 0) { hash = (37 * hash) + REQUIRETOGETHER_FIELD_NUMBER; hash = (53 * hash) + getRequireTogetherList().hashCode(); } if (getWhenConditionsCount() > 0) { hash = (37 * hash) + WHENCONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getWhenConditionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.config.SpecInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.SpecInfo 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.SpecInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.SpecInfo 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.SpecInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.SpecInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.config.SpecInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.SpecInfo 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.SpecInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.SpecInfo 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.SpecInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.SpecInfo 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.SpecInfo 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; } /** *
   * Specifies the valid structure of a configuration map
   * 
* * Protobuf type {@code yamcs.protobuf.config.SpecInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.config.SpecInfo) org.yamcs.protobuf.config.SpecInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_SpecInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_SpecInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.config.SpecInfo.class, org.yamcs.protobuf.config.SpecInfo.Builder.class); } // Construct using org.yamcs.protobuf.config.SpecInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); getRequiredOneOfFieldBuilder(); getRequireTogetherFieldBuilder(); getWhenConditionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { optionsBuilder_.clear(); } allowUnknownKeys_ = false; bitField0_ = (bitField0_ & ~0x00000002); if (requiredOneOfBuilder_ == null) { requiredOneOf_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { requiredOneOfBuilder_.clear(); } if (requireTogetherBuilder_ == null) { requireTogether_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { requireTogetherBuilder_.clear(); } if (whenConditionsBuilder_ == null) { whenConditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { whenConditionsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_SpecInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.config.SpecInfo getDefaultInstanceForType() { return org.yamcs.protobuf.config.SpecInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.config.SpecInfo build() { org.yamcs.protobuf.config.SpecInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.config.SpecInfo buildPartial() { org.yamcs.protobuf.config.SpecInfo result = new org.yamcs.protobuf.config.SpecInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { options_ = java.util.Collections.unmodifiableList(options_); bitField0_ = (bitField0_ & ~0x00000001); } result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.allowUnknownKeys_ = allowUnknownKeys_; to_bitField0_ |= 0x00000001; } if (requiredOneOfBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { requiredOneOf_ = java.util.Collections.unmodifiableList(requiredOneOf_); bitField0_ = (bitField0_ & ~0x00000004); } result.requiredOneOf_ = requiredOneOf_; } else { result.requiredOneOf_ = requiredOneOfBuilder_.build(); } if (requireTogetherBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { requireTogether_ = java.util.Collections.unmodifiableList(requireTogether_); bitField0_ = (bitField0_ & ~0x00000008); } result.requireTogether_ = requireTogether_; } else { result.requireTogether_ = requireTogetherBuilder_.build(); } if (whenConditionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { whenConditions_ = java.util.Collections.unmodifiableList(whenConditions_); bitField0_ = (bitField0_ & ~0x00000010); } result.whenConditions_ = whenConditions_; } else { result.whenConditions_ = whenConditionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.yamcs.protobuf.config.SpecInfo) { return mergeFrom((org.yamcs.protobuf.config.SpecInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.config.SpecInfo other) { if (other == org.yamcs.protobuf.config.SpecInfo.getDefaultInstance()) return this; if (optionsBuilder_ == null) { if (!other.options_.isEmpty()) { if (options_.isEmpty()) { options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOptionsIsMutable(); options_.addAll(other.options_); } onChanged(); } } else { if (!other.options_.isEmpty()) { if (optionsBuilder_.isEmpty()) { optionsBuilder_.dispose(); optionsBuilder_ = null; options_ = other.options_; bitField0_ = (bitField0_ & ~0x00000001); optionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOptionsFieldBuilder() : null; } else { optionsBuilder_.addAllMessages(other.options_); } } } if (other.hasAllowUnknownKeys()) { setAllowUnknownKeys(other.getAllowUnknownKeys()); } if (requiredOneOfBuilder_ == null) { if (!other.requiredOneOf_.isEmpty()) { if (requiredOneOf_.isEmpty()) { requiredOneOf_ = other.requiredOneOf_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRequiredOneOfIsMutable(); requiredOneOf_.addAll(other.requiredOneOf_); } onChanged(); } } else { if (!other.requiredOneOf_.isEmpty()) { if (requiredOneOfBuilder_.isEmpty()) { requiredOneOfBuilder_.dispose(); requiredOneOfBuilder_ = null; requiredOneOf_ = other.requiredOneOf_; bitField0_ = (bitField0_ & ~0x00000004); requiredOneOfBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequiredOneOfFieldBuilder() : null; } else { requiredOneOfBuilder_.addAllMessages(other.requiredOneOf_); } } } if (requireTogetherBuilder_ == null) { if (!other.requireTogether_.isEmpty()) { if (requireTogether_.isEmpty()) { requireTogether_ = other.requireTogether_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureRequireTogetherIsMutable(); requireTogether_.addAll(other.requireTogether_); } onChanged(); } } else { if (!other.requireTogether_.isEmpty()) { if (requireTogetherBuilder_.isEmpty()) { requireTogetherBuilder_.dispose(); requireTogetherBuilder_ = null; requireTogether_ = other.requireTogether_; bitField0_ = (bitField0_ & ~0x00000008); requireTogetherBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRequireTogetherFieldBuilder() : null; } else { requireTogetherBuilder_.addAllMessages(other.requireTogether_); } } } if (whenConditionsBuilder_ == null) { if (!other.whenConditions_.isEmpty()) { if (whenConditions_.isEmpty()) { whenConditions_ = other.whenConditions_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureWhenConditionsIsMutable(); whenConditions_.addAll(other.whenConditions_); } onChanged(); } } else { if (!other.whenConditions_.isEmpty()) { if (whenConditionsBuilder_.isEmpty()) { whenConditionsBuilder_.dispose(); whenConditionsBuilder_ = null; whenConditions_ = other.whenConditions_; bitField0_ = (bitField0_ & ~0x00000010); whenConditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWhenConditionsFieldBuilder() : null; } else { whenConditionsBuilder_.addAllMessages(other.whenConditions_); } } } 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.SpecInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.config.SpecInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List options_ = java.util.Collections.emptyList(); private void ensureOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { options_ = new java.util.ArrayList(options_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionInfo, org.yamcs.protobuf.config.OptionInfo.Builder, org.yamcs.protobuf.config.OptionInfoOrBuilder> optionsBuilder_; /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public java.util.List getOptionsList() { if (optionsBuilder_ == null) { return java.util.Collections.unmodifiableList(options_); } else { return optionsBuilder_.getMessageList(); } } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public int getOptionsCount() { if (optionsBuilder_ == null) { return options_.size(); } else { return optionsBuilder_.getCount(); } } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public org.yamcs.protobuf.config.OptionInfo getOptions(int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessage(index); } } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder setOptions( int index, org.yamcs.protobuf.config.OptionInfo value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.set(index, value); onChanged(); } else { optionsBuilder_.setMessage(index, value); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder setOptions( int index, org.yamcs.protobuf.config.OptionInfo.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.set(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder addOptions(org.yamcs.protobuf.config.OptionInfo value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(value); onChanged(); } else { optionsBuilder_.addMessage(value); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder addOptions( int index, org.yamcs.protobuf.config.OptionInfo value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOptionsIsMutable(); options_.add(index, value); onChanged(); } else { optionsBuilder_.addMessage(index, value); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder addOptions( org.yamcs.protobuf.config.OptionInfo.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder addOptions( int index, org.yamcs.protobuf.config.OptionInfo.Builder builderForValue) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.add(index, builderForValue.build()); onChanged(); } else { optionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder addAllOptions( java.lang.Iterable values) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, options_); onChanged(); } else { optionsBuilder_.addAllMessages(values); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { optionsBuilder_.clear(); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public Builder removeOptions(int index) { if (optionsBuilder_ == null) { ensureOptionsIsMutable(); options_.remove(index); onChanged(); } else { optionsBuilder_.remove(index); } return this; } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public org.yamcs.protobuf.config.OptionInfo.Builder getOptionsBuilder( int index) { return getOptionsFieldBuilder().getBuilder(index); } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public org.yamcs.protobuf.config.OptionInfoOrBuilder getOptionsOrBuilder( int index) { if (optionsBuilder_ == null) { return options_.get(index); } else { return optionsBuilder_.getMessageOrBuilder(index); } } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public java.util.List getOptionsOrBuilderList() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(options_); } } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public org.yamcs.protobuf.config.OptionInfo.Builder addOptionsBuilder() { return getOptionsFieldBuilder().addBuilder( org.yamcs.protobuf.config.OptionInfo.getDefaultInstance()); } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public org.yamcs.protobuf.config.OptionInfo.Builder addOptionsBuilder( int index) { return getOptionsFieldBuilder().addBuilder( index, org.yamcs.protobuf.config.OptionInfo.getDefaultInstance()); } /** *
     * Options for this specification  
     * 
* * repeated .yamcs.protobuf.config.OptionInfo options = 1; */ public java.util.List getOptionsBuilderList() { return getOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionInfo, org.yamcs.protobuf.config.OptionInfo.Builder, org.yamcs.protobuf.config.OptionInfoOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionInfo, org.yamcs.protobuf.config.OptionInfo.Builder, org.yamcs.protobuf.config.OptionInfoOrBuilder>( options_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private boolean allowUnknownKeys_ ; /** *
     * If true, any option is allowed
     * 
* * optional bool allowUnknownKeys = 2; * @return Whether the allowUnknownKeys field is set. */ @java.lang.Override public boolean hasAllowUnknownKeys() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * If true, any option is allowed
     * 
* * optional bool allowUnknownKeys = 2; * @return The allowUnknownKeys. */ @java.lang.Override public boolean getAllowUnknownKeys() { return allowUnknownKeys_; } /** *
     * If true, any option is allowed
     * 
* * optional bool allowUnknownKeys = 2; * @param value The allowUnknownKeys to set. * @return This builder for chaining. */ public Builder setAllowUnknownKeys(boolean value) { bitField0_ |= 0x00000002; allowUnknownKeys_ = value; onChanged(); return this; } /** *
     * If true, any option is allowed
     * 
* * optional bool allowUnknownKeys = 2; * @return This builder for chaining. */ public Builder clearAllowUnknownKeys() { bitField0_ = (bitField0_ & ~0x00000002); allowUnknownKeys_ = false; onChanged(); return this; } private java.util.List requiredOneOf_ = java.util.Collections.emptyList(); private void ensureRequiredOneOfIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { requiredOneOf_ = new java.util.ArrayList(requiredOneOf_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionGroupInfo, org.yamcs.protobuf.config.OptionGroupInfo.Builder, org.yamcs.protobuf.config.OptionGroupInfoOrBuilder> requiredOneOfBuilder_; /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public java.util.List getRequiredOneOfList() { if (requiredOneOfBuilder_ == null) { return java.util.Collections.unmodifiableList(requiredOneOf_); } else { return requiredOneOfBuilder_.getMessageList(); } } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public int getRequiredOneOfCount() { if (requiredOneOfBuilder_ == null) { return requiredOneOf_.size(); } else { return requiredOneOfBuilder_.getCount(); } } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public org.yamcs.protobuf.config.OptionGroupInfo getRequiredOneOf(int index) { if (requiredOneOfBuilder_ == null) { return requiredOneOf_.get(index); } else { return requiredOneOfBuilder_.getMessage(index); } } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder setRequiredOneOf( int index, org.yamcs.protobuf.config.OptionGroupInfo value) { if (requiredOneOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredOneOfIsMutable(); requiredOneOf_.set(index, value); onChanged(); } else { requiredOneOfBuilder_.setMessage(index, value); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder setRequiredOneOf( int index, org.yamcs.protobuf.config.OptionGroupInfo.Builder builderForValue) { if (requiredOneOfBuilder_ == null) { ensureRequiredOneOfIsMutable(); requiredOneOf_.set(index, builderForValue.build()); onChanged(); } else { requiredOneOfBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder addRequiredOneOf(org.yamcs.protobuf.config.OptionGroupInfo value) { if (requiredOneOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredOneOfIsMutable(); requiredOneOf_.add(value); onChanged(); } else { requiredOneOfBuilder_.addMessage(value); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder addRequiredOneOf( int index, org.yamcs.protobuf.config.OptionGroupInfo value) { if (requiredOneOfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequiredOneOfIsMutable(); requiredOneOf_.add(index, value); onChanged(); } else { requiredOneOfBuilder_.addMessage(index, value); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder addRequiredOneOf( org.yamcs.protobuf.config.OptionGroupInfo.Builder builderForValue) { if (requiredOneOfBuilder_ == null) { ensureRequiredOneOfIsMutable(); requiredOneOf_.add(builderForValue.build()); onChanged(); } else { requiredOneOfBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder addRequiredOneOf( int index, org.yamcs.protobuf.config.OptionGroupInfo.Builder builderForValue) { if (requiredOneOfBuilder_ == null) { ensureRequiredOneOfIsMutable(); requiredOneOf_.add(index, builderForValue.build()); onChanged(); } else { requiredOneOfBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder addAllRequiredOneOf( java.lang.Iterable values) { if (requiredOneOfBuilder_ == null) { ensureRequiredOneOfIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requiredOneOf_); onChanged(); } else { requiredOneOfBuilder_.addAllMessages(values); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder clearRequiredOneOf() { if (requiredOneOfBuilder_ == null) { requiredOneOf_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { requiredOneOfBuilder_.clear(); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public Builder removeRequiredOneOf(int index) { if (requiredOneOfBuilder_ == null) { ensureRequiredOneOfIsMutable(); requiredOneOf_.remove(index); onChanged(); } else { requiredOneOfBuilder_.remove(index); } return this; } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public org.yamcs.protobuf.config.OptionGroupInfo.Builder getRequiredOneOfBuilder( int index) { return getRequiredOneOfFieldBuilder().getBuilder(index); } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public org.yamcs.protobuf.config.OptionGroupInfoOrBuilder getRequiredOneOfOrBuilder( int index) { if (requiredOneOfBuilder_ == null) { return requiredOneOf_.get(index); } else { return requiredOneOfBuilder_.getMessageOrBuilder(index); } } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public java.util.List getRequiredOneOfOrBuilderList() { if (requiredOneOfBuilder_ != null) { return requiredOneOfBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requiredOneOf_); } } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public org.yamcs.protobuf.config.OptionGroupInfo.Builder addRequiredOneOfBuilder() { return getRequiredOneOfFieldBuilder().addBuilder( org.yamcs.protobuf.config.OptionGroupInfo.getDefaultInstance()); } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public org.yamcs.protobuf.config.OptionGroupInfo.Builder addRequiredOneOfBuilder( int index) { return getRequiredOneOfFieldBuilder().addBuilder( index, org.yamcs.protobuf.config.OptionGroupInfo.getDefaultInstance()); } /** *
     * Constraints on a groups of options. For each group at least one
     * of the keys must be specified.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requiredOneOf = 3; */ public java.util.List getRequiredOneOfBuilderList() { return getRequiredOneOfFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionGroupInfo, org.yamcs.protobuf.config.OptionGroupInfo.Builder, org.yamcs.protobuf.config.OptionGroupInfoOrBuilder> getRequiredOneOfFieldBuilder() { if (requiredOneOfBuilder_ == null) { requiredOneOfBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionGroupInfo, org.yamcs.protobuf.config.OptionGroupInfo.Builder, org.yamcs.protobuf.config.OptionGroupInfoOrBuilder>( requiredOneOf_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); requiredOneOf_ = null; } return requiredOneOfBuilder_; } private java.util.List requireTogether_ = java.util.Collections.emptyList(); private void ensureRequireTogetherIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { requireTogether_ = new java.util.ArrayList(requireTogether_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionGroupInfo, org.yamcs.protobuf.config.OptionGroupInfo.Builder, org.yamcs.protobuf.config.OptionGroupInfoOrBuilder> requireTogetherBuilder_; /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public java.util.List getRequireTogetherList() { if (requireTogetherBuilder_ == null) { return java.util.Collections.unmodifiableList(requireTogether_); } else { return requireTogetherBuilder_.getMessageList(); } } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public int getRequireTogetherCount() { if (requireTogetherBuilder_ == null) { return requireTogether_.size(); } else { return requireTogetherBuilder_.getCount(); } } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public org.yamcs.protobuf.config.OptionGroupInfo getRequireTogether(int index) { if (requireTogetherBuilder_ == null) { return requireTogether_.get(index); } else { return requireTogetherBuilder_.getMessage(index); } } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder setRequireTogether( int index, org.yamcs.protobuf.config.OptionGroupInfo value) { if (requireTogetherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequireTogetherIsMutable(); requireTogether_.set(index, value); onChanged(); } else { requireTogetherBuilder_.setMessage(index, value); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder setRequireTogether( int index, org.yamcs.protobuf.config.OptionGroupInfo.Builder builderForValue) { if (requireTogetherBuilder_ == null) { ensureRequireTogetherIsMutable(); requireTogether_.set(index, builderForValue.build()); onChanged(); } else { requireTogetherBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder addRequireTogether(org.yamcs.protobuf.config.OptionGroupInfo value) { if (requireTogetherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequireTogetherIsMutable(); requireTogether_.add(value); onChanged(); } else { requireTogetherBuilder_.addMessage(value); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder addRequireTogether( int index, org.yamcs.protobuf.config.OptionGroupInfo value) { if (requireTogetherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRequireTogetherIsMutable(); requireTogether_.add(index, value); onChanged(); } else { requireTogetherBuilder_.addMessage(index, value); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder addRequireTogether( org.yamcs.protobuf.config.OptionGroupInfo.Builder builderForValue) { if (requireTogetherBuilder_ == null) { ensureRequireTogetherIsMutable(); requireTogether_.add(builderForValue.build()); onChanged(); } else { requireTogetherBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder addRequireTogether( int index, org.yamcs.protobuf.config.OptionGroupInfo.Builder builderForValue) { if (requireTogetherBuilder_ == null) { ensureRequireTogetherIsMutable(); requireTogether_.add(index, builderForValue.build()); onChanged(); } else { requireTogetherBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder addAllRequireTogether( java.lang.Iterable values) { if (requireTogetherBuilder_ == null) { ensureRequireTogetherIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requireTogether_); onChanged(); } else { requireTogetherBuilder_.addAllMessages(values); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder clearRequireTogether() { if (requireTogetherBuilder_ == null) { requireTogether_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { requireTogetherBuilder_.clear(); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public Builder removeRequireTogether(int index) { if (requireTogetherBuilder_ == null) { ensureRequireTogetherIsMutable(); requireTogether_.remove(index); onChanged(); } else { requireTogetherBuilder_.remove(index); } return this; } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public org.yamcs.protobuf.config.OptionGroupInfo.Builder getRequireTogetherBuilder( int index) { return getRequireTogetherFieldBuilder().getBuilder(index); } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public org.yamcs.protobuf.config.OptionGroupInfoOrBuilder getRequireTogetherOrBuilder( int index) { if (requireTogetherBuilder_ == null) { return requireTogether_.get(index); } else { return requireTogetherBuilder_.getMessageOrBuilder(index); } } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public java.util.List getRequireTogetherOrBuilderList() { if (requireTogetherBuilder_ != null) { return requireTogetherBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(requireTogether_); } } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public org.yamcs.protobuf.config.OptionGroupInfo.Builder addRequireTogetherBuilder() { return getRequireTogetherFieldBuilder().addBuilder( org.yamcs.protobuf.config.OptionGroupInfo.getDefaultInstance()); } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public org.yamcs.protobuf.config.OptionGroupInfo.Builder addRequireTogetherBuilder( int index) { return getRequireTogetherFieldBuilder().addBuilder( index, org.yamcs.protobuf.config.OptionGroupInfo.getDefaultInstance()); } /** *
     * Constraints on a group of options. For each group, all keys must
     * be specified, or none at all.
     * 
* * repeated .yamcs.protobuf.config.OptionGroupInfo requireTogether = 4; */ public java.util.List getRequireTogetherBuilderList() { return getRequireTogetherFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionGroupInfo, org.yamcs.protobuf.config.OptionGroupInfo.Builder, org.yamcs.protobuf.config.OptionGroupInfoOrBuilder> getRequireTogetherFieldBuilder() { if (requireTogetherBuilder_ == null) { requireTogetherBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.OptionGroupInfo, org.yamcs.protobuf.config.OptionGroupInfo.Builder, org.yamcs.protobuf.config.OptionGroupInfoOrBuilder>( requireTogether_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); requireTogether_ = null; } return requireTogetherBuilder_; } private java.util.List whenConditions_ = java.util.Collections.emptyList(); private void ensureWhenConditionsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { whenConditions_ = new java.util.ArrayList(whenConditions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.WhenConditionInfo, org.yamcs.protobuf.config.WhenConditionInfo.Builder, org.yamcs.protobuf.config.WhenConditionInfoOrBuilder> whenConditionsBuilder_; /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public java.util.List getWhenConditionsList() { if (whenConditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(whenConditions_); } else { return whenConditionsBuilder_.getMessageList(); } } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public int getWhenConditionsCount() { if (whenConditionsBuilder_ == null) { return whenConditions_.size(); } else { return whenConditionsBuilder_.getCount(); } } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public org.yamcs.protobuf.config.WhenConditionInfo getWhenConditions(int index) { if (whenConditionsBuilder_ == null) { return whenConditions_.get(index); } else { return whenConditionsBuilder_.getMessage(index); } } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder setWhenConditions( int index, org.yamcs.protobuf.config.WhenConditionInfo value) { if (whenConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWhenConditionsIsMutable(); whenConditions_.set(index, value); onChanged(); } else { whenConditionsBuilder_.setMessage(index, value); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder setWhenConditions( int index, org.yamcs.protobuf.config.WhenConditionInfo.Builder builderForValue) { if (whenConditionsBuilder_ == null) { ensureWhenConditionsIsMutable(); whenConditions_.set(index, builderForValue.build()); onChanged(); } else { whenConditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder addWhenConditions(org.yamcs.protobuf.config.WhenConditionInfo value) { if (whenConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWhenConditionsIsMutable(); whenConditions_.add(value); onChanged(); } else { whenConditionsBuilder_.addMessage(value); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder addWhenConditions( int index, org.yamcs.protobuf.config.WhenConditionInfo value) { if (whenConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWhenConditionsIsMutable(); whenConditions_.add(index, value); onChanged(); } else { whenConditionsBuilder_.addMessage(index, value); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder addWhenConditions( org.yamcs.protobuf.config.WhenConditionInfo.Builder builderForValue) { if (whenConditionsBuilder_ == null) { ensureWhenConditionsIsMutable(); whenConditions_.add(builderForValue.build()); onChanged(); } else { whenConditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder addWhenConditions( int index, org.yamcs.protobuf.config.WhenConditionInfo.Builder builderForValue) { if (whenConditionsBuilder_ == null) { ensureWhenConditionsIsMutable(); whenConditions_.add(index, builderForValue.build()); onChanged(); } else { whenConditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder addAllWhenConditions( java.lang.Iterable values) { if (whenConditionsBuilder_ == null) { ensureWhenConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, whenConditions_); onChanged(); } else { whenConditionsBuilder_.addAllMessages(values); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder clearWhenConditions() { if (whenConditionsBuilder_ == null) { whenConditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { whenConditionsBuilder_.clear(); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public Builder removeWhenConditions(int index) { if (whenConditionsBuilder_ == null) { ensureWhenConditionsIsMutable(); whenConditions_.remove(index); onChanged(); } else { whenConditionsBuilder_.remove(index); } return this; } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public org.yamcs.protobuf.config.WhenConditionInfo.Builder getWhenConditionsBuilder( int index) { return getWhenConditionsFieldBuilder().getBuilder(index); } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public org.yamcs.protobuf.config.WhenConditionInfoOrBuilder getWhenConditionsOrBuilder( int index) { if (whenConditionsBuilder_ == null) { return whenConditions_.get(index); } else { return whenConditionsBuilder_.getMessageOrBuilder(index); } } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public java.util.List getWhenConditionsOrBuilderList() { if (whenConditionsBuilder_ != null) { return whenConditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(whenConditions_); } } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public org.yamcs.protobuf.config.WhenConditionInfo.Builder addWhenConditionsBuilder() { return getWhenConditionsFieldBuilder().addBuilder( org.yamcs.protobuf.config.WhenConditionInfo.getDefaultInstance()); } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public org.yamcs.protobuf.config.WhenConditionInfo.Builder addWhenConditionsBuilder( int index) { return getWhenConditionsFieldBuilder().addBuilder( index, org.yamcs.protobuf.config.WhenConditionInfo.getDefaultInstance()); } /** *
     * Conditional constraints on a group of options
     * 
* * repeated .yamcs.protobuf.config.WhenConditionInfo whenConditions = 5; */ public java.util.List getWhenConditionsBuilderList() { return getWhenConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.WhenConditionInfo, org.yamcs.protobuf.config.WhenConditionInfo.Builder, org.yamcs.protobuf.config.WhenConditionInfoOrBuilder> getWhenConditionsFieldBuilder() { if (whenConditionsBuilder_ == null) { whenConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.config.WhenConditionInfo, org.yamcs.protobuf.config.WhenConditionInfo.Builder, org.yamcs.protobuf.config.WhenConditionInfoOrBuilder>( whenConditions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); whenConditions_ = null; } return whenConditionsBuilder_; } @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.SpecInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.config.SpecInfo) private static final org.yamcs.protobuf.config.SpecInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.config.SpecInfo(); } public static org.yamcs.protobuf.config.SpecInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpecInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SpecInfo(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.SpecInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy