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

org.yamcs.protobuf.config.WhenConditionInfo 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.WhenConditionInfo}
 */
public final class WhenConditionInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.config.WhenConditionInfo)
    WhenConditionInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use WhenConditionInfo.newBuilder() to construct.
  private WhenConditionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private WhenConditionInfo() {
    key_ = "";
    requiredKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private WhenConditionInfo(
      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;
            key_ = bs;
            break;
          }
          case 18: {
            com.google.protobuf.Value.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = value_.toBuilder();
            }
            value_ = input.readMessage(com.google.protobuf.Value.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(value_);
              value_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              requiredKeys_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            requiredKeys_.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_ & 0x00000004) != 0)) {
        requiredKeys_ = requiredKeys_.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_WhenConditionInfo_descriptor;
  }

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

  private int bitField0_;
  public static final int KEY_FIELD_NUMBER = 1;
  private volatile java.lang.Object key_;
  /**
   * 
   * Option key for checking the condition
   * 
* * optional string key = 1; * @return Whether the key field is set. */ @java.lang.Override public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Option key for checking the condition
   * 
* * optional string key = 1; * @return The key. */ @java.lang.Override public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } } /** *
   * Option key for checking the condition
   * 
* * optional string key = 1; * @return The bytes for key. */ @java.lang.Override public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private com.google.protobuf.Value value_; /** *
   * Value to compare with
   * 
* * optional .google.protobuf.Value value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Value to compare with
   * 
* * optional .google.protobuf.Value value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.Value getValue() { return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } /** *
   * Value to compare with
   * 
* * optional .google.protobuf.Value value = 2; */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } public static final int REQUIREDKEYS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList requiredKeys_; /** *
   * Option keys that must be specified, if the condition is satisfied
   * 
* * repeated string requiredKeys = 3; * @return A list containing the requiredKeys. */ public com.google.protobuf.ProtocolStringList getRequiredKeysList() { return requiredKeys_; } /** *
   * Option keys that must be specified, if the condition is satisfied
   * 
* * repeated string requiredKeys = 3; * @return The count of requiredKeys. */ public int getRequiredKeysCount() { return requiredKeys_.size(); } /** *
   * Option keys that must be specified, if the condition is satisfied
   * 
* * repeated string requiredKeys = 3; * @param index The index of the element to return. * @return The requiredKeys at the given index. */ public java.lang.String getRequiredKeys(int index) { return requiredKeys_.get(index); } /** *
   * Option keys that must be specified, if the condition is satisfied
   * 
* * repeated string requiredKeys = 3; * @param index The index of the value to return. * @return The bytes of the requiredKeys at the given index. */ public com.google.protobuf.ByteString getRequiredKeysBytes(int index) { return requiredKeys_.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, key_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getValue()); } for (int i = 0; i < requiredKeys_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requiredKeys_.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, key_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getValue()); } { int dataSize = 0; for (int i = 0; i < requiredKeys_.size(); i++) { dataSize += computeStringSizeNoTag(requiredKeys_.getRaw(i)); } size += dataSize; size += 1 * getRequiredKeysList().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.WhenConditionInfo)) { return super.equals(obj); } org.yamcs.protobuf.config.WhenConditionInfo other = (org.yamcs.protobuf.config.WhenConditionInfo) obj; if (hasKey() != other.hasKey()) return false; if (hasKey()) { if (!getKey() .equals(other.getKey())) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue() .equals(other.getValue())) return false; } if (!getRequiredKeysList() .equals(other.getRequiredKeysList())) 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 (hasKey()) { hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } if (getRequiredKeysCount() > 0) { hash = (37 * hash) + REQUIREDKEYS_FIELD_NUMBER; hash = (53 * hash) + getRequiredKeysList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.config.WhenConditionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.WhenConditionInfo 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.WhenConditionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.WhenConditionInfo 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.WhenConditionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.config.WhenConditionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.config.WhenConditionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.WhenConditionInfo 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.WhenConditionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.WhenConditionInfo 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.WhenConditionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.config.WhenConditionInfo 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.WhenConditionInfo 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.WhenConditionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.config.WhenConditionInfo) org.yamcs.protobuf.config.WhenConditionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_WhenConditionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_WhenConditionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.config.WhenConditionInfo.class, org.yamcs.protobuf.config.WhenConditionInfo.Builder.class); } // Construct using org.yamcs.protobuf.config.WhenConditionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); if (valueBuilder_ == null) { value_ = null; } else { valueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); requiredKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.config.ConfigProto.internal_static_yamcs_protobuf_config_WhenConditionInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.config.WhenConditionInfo getDefaultInstanceForType() { return org.yamcs.protobuf.config.WhenConditionInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.config.WhenConditionInfo build() { org.yamcs.protobuf.config.WhenConditionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.config.WhenConditionInfo buildPartial() { org.yamcs.protobuf.config.WhenConditionInfo result = new org.yamcs.protobuf.config.WhenConditionInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) != 0)) { if (valueBuilder_ == null) { result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((bitField0_ & 0x00000004) != 0)) { requiredKeys_ = requiredKeys_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.requiredKeys_ = requiredKeys_; 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.WhenConditionInfo) { return mergeFrom((org.yamcs.protobuf.config.WhenConditionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.config.WhenConditionInfo other) { if (other == org.yamcs.protobuf.config.WhenConditionInfo.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } if (!other.requiredKeys_.isEmpty()) { if (requiredKeys_.isEmpty()) { requiredKeys_ = other.requiredKeys_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRequiredKeysIsMutable(); requiredKeys_.addAll(other.requiredKeys_); } 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.WhenConditionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.config.WhenConditionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** *
     * Option key for checking the condition
     * 
* * optional string key = 1; * @return Whether the key field is set. */ public boolean hasKey() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Option key for checking the condition
     * 
* * optional string key = 1; * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; 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()) { key_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Option key for checking the condition
     * 
* * optional string key = 1; * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Option key for checking the condition
     * 
* * optional string key = 1; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** *
     * Option key for checking the condition
     * 
* * optional string key = 1; * @return This builder for chaining. */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
     * Option key for checking the condition
     * 
* * optional string key = 1; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } private com.google.protobuf.Value value_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> valueBuilder_; /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; * @return The value. */ public com.google.protobuf.Value getValue() { if (valueBuilder_ == null) { return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; */ public Builder setValue(com.google.protobuf.Value value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; */ public Builder setValue( com.google.protobuf.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; */ public Builder mergeValue(com.google.protobuf.Value value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.google.protobuf.Value.getDefaultInstance()) { value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { valueBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; */ public Builder clearValue() { if (valueBuilder_ == null) { value_ = null; onChanged(); } else { valueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; */ public com.google.protobuf.Value.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; */ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } } /** *
     * Value to compare with
     * 
* * optional .google.protobuf.Value value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private com.google.protobuf.LazyStringList requiredKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequiredKeysIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { requiredKeys_ = new com.google.protobuf.LazyStringArrayList(requiredKeys_); bitField0_ |= 0x00000004; } } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @return A list containing the requiredKeys. */ public com.google.protobuf.ProtocolStringList getRequiredKeysList() { return requiredKeys_.getUnmodifiableView(); } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @return The count of requiredKeys. */ public int getRequiredKeysCount() { return requiredKeys_.size(); } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @param index The index of the element to return. * @return The requiredKeys at the given index. */ public java.lang.String getRequiredKeys(int index) { return requiredKeys_.get(index); } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @param index The index of the value to return. * @return The bytes of the requiredKeys at the given index. */ public com.google.protobuf.ByteString getRequiredKeysBytes(int index) { return requiredKeys_.getByteString(index); } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @param index The index to set the value at. * @param value The requiredKeys to set. * @return This builder for chaining. */ public Builder setRequiredKeys( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredKeysIsMutable(); requiredKeys_.set(index, value); onChanged(); return this; } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @param value The requiredKeys to add. * @return This builder for chaining. */ public Builder addRequiredKeys( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequiredKeysIsMutable(); requiredKeys_.add(value); onChanged(); return this; } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @param values The requiredKeys to add. * @return This builder for chaining. */ public Builder addAllRequiredKeys( java.lang.Iterable values) { ensureRequiredKeysIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requiredKeys_); onChanged(); return this; } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @return This builder for chaining. */ public Builder clearRequiredKeys() { requiredKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Option keys that must be specified, if the condition is satisfied
     * 
* * repeated string requiredKeys = 3; * @param value The bytes of the requiredKeys to add. * @return This builder for chaining. */ public Builder addRequiredKeysBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRequiredKeysIsMutable(); requiredKeys_.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.WhenConditionInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.config.WhenConditionInfo) private static final org.yamcs.protobuf.config.WhenConditionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.config.WhenConditionInfo(); } public static org.yamcs.protobuf.config.WhenConditionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public WhenConditionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WhenConditionInfo(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.WhenConditionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy