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

org.yamcs.protobuf.plists.ParameterListInfo 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/plists/plists.proto

package org.yamcs.protobuf.plists;

/**
 * Protobuf type {@code yamcs.protobuf.plists.ParameterListInfo}
 */
public final class ParameterListInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.plists.ParameterListInfo)
    ParameterListInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ParameterListInfo.newBuilder() to construct.
  private ParameterListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ParameterListInfo() {
    id_ = "";
    name_ = "";
    description_ = "";
    patterns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    match_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ParameterListInfo(
      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;
            id_ = bs;
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            name_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            description_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
              patterns_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            patterns_.add(bs);
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
              match_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000010;
            }
            match_.add(
                input.readMessage(org.yamcs.protobuf.Mdb.ParameterInfo.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_ & 0x00000008) != 0)) {
        patterns_ = patterns_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000010) != 0)) {
        match_ = java.util.Collections.unmodifiableList(match_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.plists.ParameterListsProto.internal_static_yamcs_protobuf_plists_ParameterListInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.plists.ParameterListsProto.internal_static_yamcs_protobuf_plists_ParameterListInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.plists.ParameterListInfo.class, org.yamcs.protobuf.plists.ParameterListInfo.Builder.class);
  }

  private int bitField0_;
  public static final int ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object id_;
  /**
   * 
   * List identifier
   * 
* * optional string id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * List identifier
   * 
* * optional string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } } /** *
   * List identifier
   * 
* * optional string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
   * List name
   * 
* * optional string name = 2; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * List name
   * 
* * optional string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** *
   * List name
   * 
* * optional string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** *
   * List description
   * 
* * optional string description = 3; * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * List description
   * 
* * optional string description = 3; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } } /** *
   * List description
   * 
* * optional string description = 3; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PATTERNS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList patterns_; /** *
   * Name patterns (glob)
   * 
* * repeated string patterns = 4; * @return A list containing the patterns. */ public com.google.protobuf.ProtocolStringList getPatternsList() { return patterns_; } /** *
   * Name patterns (glob)
   * 
* * repeated string patterns = 4; * @return The count of patterns. */ public int getPatternsCount() { return patterns_.size(); } /** *
   * Name patterns (glob)
   * 
* * repeated string patterns = 4; * @param index The index of the element to return. * @return The patterns at the given index. */ public java.lang.String getPatterns(int index) { return patterns_.get(index); } /** *
   * Name patterns (glob)
   * 
* * repeated string patterns = 4; * @param index The index of the value to return. * @return The bytes of the patterns at the given index. */ public com.google.protobuf.ByteString getPatternsBytes(int index) { return patterns_.getByteString(index); } public static final int MATCH_FIELD_NUMBER = 5; private java.util.List match_; /** *
   * Parameters matching any of the name patterns.
   * This property is only returned on a specific
   * parameter list request.
   * Only basic parameter fields are populated.
   * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ @java.lang.Override public java.util.List getMatchList() { return match_; } /** *
   * Parameters matching any of the name patterns.
   * This property is only returned on a specific
   * parameter list request.
   * Only basic parameter fields are populated.
   * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ @java.lang.Override public java.util.List getMatchOrBuilderList() { return match_; } /** *
   * Parameters matching any of the name patterns.
   * This property is only returned on a specific
   * parameter list request.
   * Only basic parameter fields are populated.
   * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ @java.lang.Override public int getMatchCount() { return match_.size(); } /** *
   * Parameters matching any of the name patterns.
   * This property is only returned on a specific
   * parameter list request.
   * Only basic parameter fields are populated.
   * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ @java.lang.Override public org.yamcs.protobuf.Mdb.ParameterInfo getMatch(int index) { return match_.get(index); } /** *
   * Parameters matching any of the name patterns.
   * This property is only returned on a specific
   * parameter list request.
   * Only basic parameter fields are populated.
   * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ @java.lang.Override public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getMatchOrBuilder( int index) { return match_.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; for (int i = 0; i < getMatchCount(); i++) { if (!getMatch(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < patterns_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, patterns_.getRaw(i)); } for (int i = 0; i < match_.size(); i++) { output.writeMessage(5, match_.get(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, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } { int dataSize = 0; for (int i = 0; i < patterns_.size(); i++) { dataSize += computeStringSizeNoTag(patterns_.getRaw(i)); } size += dataSize; size += 1 * getPatternsList().size(); } for (int i = 0; i < match_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, match_.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.plists.ParameterListInfo)) { return super.equals(obj); } org.yamcs.protobuf.plists.ParameterListInfo other = (org.yamcs.protobuf.plists.ParameterListInfo) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { if (!getDescription() .equals(other.getDescription())) return false; } if (!getPatternsList() .equals(other.getPatternsList())) return false; if (!getMatchList() .equals(other.getMatchList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (getPatternsCount() > 0) { hash = (37 * hash) + PATTERNS_FIELD_NUMBER; hash = (53 * hash) + getPatternsList().hashCode(); } if (getMatchCount() > 0) { hash = (37 * hash) + MATCH_FIELD_NUMBER; hash = (53 * hash) + getMatchList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.plists.ParameterListInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.plists.ParameterListInfo 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.plists.ParameterListInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.plists.ParameterListInfo 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.plists.ParameterListInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.plists.ParameterListInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.plists.ParameterListInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.plists.ParameterListInfo 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.plists.ParameterListInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.plists.ParameterListInfo 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.plists.ParameterListInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.plists.ParameterListInfo 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.plists.ParameterListInfo 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.plists.ParameterListInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.plists.ParameterListInfo) org.yamcs.protobuf.plists.ParameterListInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.plists.ParameterListsProto.internal_static_yamcs_protobuf_plists_ParameterListInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.plists.ParameterListsProto.internal_static_yamcs_protobuf_plists_ParameterListInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.plists.ParameterListInfo.class, org.yamcs.protobuf.plists.ParameterListInfo.Builder.class); } // Construct using org.yamcs.protobuf.plists.ParameterListInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMatchFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); description_ = ""; bitField0_ = (bitField0_ & ~0x00000004); patterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); if (matchBuilder_ == null) { match_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { matchBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.plists.ParameterListsProto.internal_static_yamcs_protobuf_plists_ParameterListInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.plists.ParameterListInfo getDefaultInstanceForType() { return org.yamcs.protobuf.plists.ParameterListInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.plists.ParameterListInfo build() { org.yamcs.protobuf.plists.ParameterListInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.plists.ParameterListInfo buildPartial() { org.yamcs.protobuf.plists.ParameterListInfo result = new org.yamcs.protobuf.plists.ParameterListInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.description_ = description_; if (((bitField0_ & 0x00000008) != 0)) { patterns_ = patterns_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.patterns_ = patterns_; if (matchBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { match_ = java.util.Collections.unmodifiableList(match_); bitField0_ = (bitField0_ & ~0x00000010); } result.match_ = match_; } else { result.match_ = matchBuilder_.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.plists.ParameterListInfo) { return mergeFrom((org.yamcs.protobuf.plists.ParameterListInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.plists.ParameterListInfo other) { if (other == org.yamcs.protobuf.plists.ParameterListInfo.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000004; description_ = other.description_; onChanged(); } if (!other.patterns_.isEmpty()) { if (patterns_.isEmpty()) { patterns_ = other.patterns_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePatternsIsMutable(); patterns_.addAll(other.patterns_); } onChanged(); } if (matchBuilder_ == null) { if (!other.match_.isEmpty()) { if (match_.isEmpty()) { match_ = other.match_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureMatchIsMutable(); match_.addAll(other.match_); } onChanged(); } } else { if (!other.match_.isEmpty()) { if (matchBuilder_.isEmpty()) { matchBuilder_.dispose(); matchBuilder_ = null; match_ = other.match_; bitField0_ = (bitField0_ & ~0x00000010); matchBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchFieldBuilder() : null; } else { matchBuilder_.addAllMessages(other.match_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getMatchCount(); i++) { if (!getMatch(i).isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.yamcs.protobuf.plists.ParameterListInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.plists.ParameterListInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * List identifier
     * 
* * optional string id = 1; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * List identifier
     * 
* * optional string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * List identifier
     * 
* * optional string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * List identifier
     * 
* * optional string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } /** *
     * List identifier
     * 
* * optional string id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * List identifier
     * 
* * optional string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * List name
     * 
* * optional string name = 2; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * List name
     * 
* * optional string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * List name
     * 
* * optional string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * List name
     * 
* * optional string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** *
     * List name
     * 
* * optional string name = 2; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * List name
     * 
* * optional string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * List description
     * 
* * optional string description = 3; * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * List description
     * 
* * optional string description = 3; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * List description
     * 
* * optional string description = 3; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * List description
     * 
* * optional string description = 3; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } /** *
     * List description
     * 
* * optional string description = 3; * @return This builder for chaining. */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000004); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * List description
     * 
* * optional string description = 3; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; description_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList patterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePatternsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { patterns_ = new com.google.protobuf.LazyStringArrayList(patterns_); bitField0_ |= 0x00000008; } } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @return A list containing the patterns. */ public com.google.protobuf.ProtocolStringList getPatternsList() { return patterns_.getUnmodifiableView(); } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @return The count of patterns. */ public int getPatternsCount() { return patterns_.size(); } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @param index The index of the element to return. * @return The patterns at the given index. */ public java.lang.String getPatterns(int index) { return patterns_.get(index); } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @param index The index of the value to return. * @return The bytes of the patterns at the given index. */ public com.google.protobuf.ByteString getPatternsBytes(int index) { return patterns_.getByteString(index); } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @param index The index to set the value at. * @param value The patterns to set. * @return This builder for chaining. */ public Builder setPatterns( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePatternsIsMutable(); patterns_.set(index, value); onChanged(); return this; } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @param value The patterns to add. * @return This builder for chaining. */ public Builder addPatterns( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePatternsIsMutable(); patterns_.add(value); onChanged(); return this; } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @param values The patterns to add. * @return This builder for chaining. */ public Builder addAllPatterns( java.lang.Iterable values) { ensurePatternsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, patterns_); onChanged(); return this; } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @return This builder for chaining. */ public Builder clearPatterns() { patterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * Name patterns (glob)
     * 
* * repeated string patterns = 4; * @param value The bytes of the patterns to add. * @return This builder for chaining. */ public Builder addPatternsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePatternsIsMutable(); patterns_.add(value); onChanged(); return this; } private java.util.List match_ = java.util.Collections.emptyList(); private void ensureMatchIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { match_ = new java.util.ArrayList(match_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder> matchBuilder_; /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public java.util.List getMatchList() { if (matchBuilder_ == null) { return java.util.Collections.unmodifiableList(match_); } else { return matchBuilder_.getMessageList(); } } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public int getMatchCount() { if (matchBuilder_ == null) { return match_.size(); } else { return matchBuilder_.getCount(); } } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public org.yamcs.protobuf.Mdb.ParameterInfo getMatch(int index) { if (matchBuilder_ == null) { return match_.get(index); } else { return matchBuilder_.getMessage(index); } } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder setMatch( int index, org.yamcs.protobuf.Mdb.ParameterInfo value) { if (matchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchIsMutable(); match_.set(index, value); onChanged(); } else { matchBuilder_.setMessage(index, value); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder setMatch( int index, org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) { if (matchBuilder_ == null) { ensureMatchIsMutable(); match_.set(index, builderForValue.build()); onChanged(); } else { matchBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder addMatch(org.yamcs.protobuf.Mdb.ParameterInfo value) { if (matchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchIsMutable(); match_.add(value); onChanged(); } else { matchBuilder_.addMessage(value); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder addMatch( int index, org.yamcs.protobuf.Mdb.ParameterInfo value) { if (matchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchIsMutable(); match_.add(index, value); onChanged(); } else { matchBuilder_.addMessage(index, value); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder addMatch( org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) { if (matchBuilder_ == null) { ensureMatchIsMutable(); match_.add(builderForValue.build()); onChanged(); } else { matchBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder addMatch( int index, org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) { if (matchBuilder_ == null) { ensureMatchIsMutable(); match_.add(index, builderForValue.build()); onChanged(); } else { matchBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder addAllMatch( java.lang.Iterable values) { if (matchBuilder_ == null) { ensureMatchIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, match_); onChanged(); } else { matchBuilder_.addAllMessages(values); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder clearMatch() { if (matchBuilder_ == null) { match_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { matchBuilder_.clear(); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public Builder removeMatch(int index) { if (matchBuilder_ == null) { ensureMatchIsMutable(); match_.remove(index); onChanged(); } else { matchBuilder_.remove(index); } return this; } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public org.yamcs.protobuf.Mdb.ParameterInfo.Builder getMatchBuilder( int index) { return getMatchFieldBuilder().getBuilder(index); } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getMatchOrBuilder( int index) { if (matchBuilder_ == null) { return match_.get(index); } else { return matchBuilder_.getMessageOrBuilder(index); } } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public java.util.List getMatchOrBuilderList() { if (matchBuilder_ != null) { return matchBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(match_); } } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public org.yamcs.protobuf.Mdb.ParameterInfo.Builder addMatchBuilder() { return getMatchFieldBuilder().addBuilder( org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance()); } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public org.yamcs.protobuf.Mdb.ParameterInfo.Builder addMatchBuilder( int index) { return getMatchFieldBuilder().addBuilder( index, org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance()); } /** *
     * Parameters matching any of the name patterns.
     * This property is only returned on a specific
     * parameter list request.
     * Only basic parameter fields are populated.
     * 
* * repeated .yamcs.protobuf.mdb.ParameterInfo match = 5; */ public java.util.List getMatchBuilderList() { return getMatchFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder> getMatchFieldBuilder() { if (matchBuilder_ == null) { matchBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>( match_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); match_ = null; } return matchBuilder_; } @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.plists.ParameterListInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.plists.ParameterListInfo) private static final org.yamcs.protobuf.plists.ParameterListInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.plists.ParameterListInfo(); } public static org.yamcs.protobuf.plists.ParameterListInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ParameterListInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ParameterListInfo(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.plists.ParameterListInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy