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

org.yamcs.protobuf.plists.PatternDefinition 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_service.proto

package org.yamcs.protobuf.plists;

/**
 * Protobuf type {@code yamcs.protobuf.plists.PatternDefinition}
 */
public final class PatternDefinition extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.plists.PatternDefinition)
    PatternDefinitionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use PatternDefinition.newBuilder() to construct.
  private PatternDefinition(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private PatternDefinition() {
    patterns_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private PatternDefinition(
      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();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              patterns_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            patterns_.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_ & 0x00000001) != 0)) {
        patterns_ = patterns_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.plists.ParameterListsServiceProto.internal_static_yamcs_protobuf_plists_PatternDefinition_descriptor;
  }

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

  public static final int PATTERNS_FIELD_NUMBER = 1;
  private com.google.protobuf.LazyStringList patterns_;
  /**
   * 
   * Parameter names (either exact match or glob pattern)
   * 
* * repeated string patterns = 1; * @return A list containing the patterns. */ public com.google.protobuf.ProtocolStringList getPatternsList() { return patterns_; } /** *
   * Parameter names (either exact match or glob pattern)
   * 
* * repeated string patterns = 1; * @return The count of patterns. */ public int getPatternsCount() { return patterns_.size(); } /** *
   * Parameter names (either exact match or glob pattern)
   * 
* * repeated string patterns = 1; * @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); } /** *
   * Parameter names (either exact match or glob pattern)
   * 
* * repeated string patterns = 1; * @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); } 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 < patterns_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, patterns_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < patterns_.size(); i++) { dataSize += computeStringSizeNoTag(patterns_.getRaw(i)); } size += dataSize; size += 1 * getPatternsList().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.plists.PatternDefinition)) { return super.equals(obj); } org.yamcs.protobuf.plists.PatternDefinition other = (org.yamcs.protobuf.plists.PatternDefinition) obj; if (!getPatternsList() .equals(other.getPatternsList())) 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 (getPatternsCount() > 0) { hash = (37 * hash) + PATTERNS_FIELD_NUMBER; hash = (53 * hash) + getPatternsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.plists.PatternDefinition parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.plists.PatternDefinition 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.PatternDefinition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.plists.PatternDefinition 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.PatternDefinition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.plists.PatternDefinition parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.plists.PatternDefinition parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.plists.PatternDefinition 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.PatternDefinition parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.plists.PatternDefinition 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.PatternDefinition parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.plists.PatternDefinition 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.PatternDefinition 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.PatternDefinition} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.plists.PatternDefinition) org.yamcs.protobuf.plists.PatternDefinitionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.plists.ParameterListsServiceProto.internal_static_yamcs_protobuf_plists_PatternDefinition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.plists.ParameterListsServiceProto.internal_static_yamcs_protobuf_plists_PatternDefinition_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.plists.PatternDefinition.class, org.yamcs.protobuf.plists.PatternDefinition.Builder.class); } // Construct using org.yamcs.protobuf.plists.PatternDefinition.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); patterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.plists.ParameterListsServiceProto.internal_static_yamcs_protobuf_plists_PatternDefinition_descriptor; } @java.lang.Override public org.yamcs.protobuf.plists.PatternDefinition getDefaultInstanceForType() { return org.yamcs.protobuf.plists.PatternDefinition.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.plists.PatternDefinition build() { org.yamcs.protobuf.plists.PatternDefinition result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.plists.PatternDefinition buildPartial() { org.yamcs.protobuf.plists.PatternDefinition result = new org.yamcs.protobuf.plists.PatternDefinition(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { patterns_ = patterns_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.patterns_ = patterns_; 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.PatternDefinition) { return mergeFrom((org.yamcs.protobuf.plists.PatternDefinition)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.plists.PatternDefinition other) { if (other == org.yamcs.protobuf.plists.PatternDefinition.getDefaultInstance()) return this; if (!other.patterns_.isEmpty()) { if (patterns_.isEmpty()) { patterns_ = other.patterns_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePatternsIsMutable(); patterns_.addAll(other.patterns_); } 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.plists.PatternDefinition parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.plists.PatternDefinition) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList patterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePatternsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { patterns_ = new com.google.protobuf.LazyStringArrayList(patterns_); bitField0_ |= 0x00000001; } } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @return A list containing the patterns. */ public com.google.protobuf.ProtocolStringList getPatternsList() { return patterns_.getUnmodifiableView(); } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @return The count of patterns. */ public int getPatternsCount() { return patterns_.size(); } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @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); } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @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); } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @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; } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @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; } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @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; } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @return This builder for chaining. */ public Builder clearPatterns() { patterns_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Parameter names (either exact match or glob pattern)
     * 
* * repeated string patterns = 1; * @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; } @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.PatternDefinition) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.plists.PatternDefinition) private static final org.yamcs.protobuf.plists.PatternDefinition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.plists.PatternDefinition(); } public static org.yamcs.protobuf.plists.PatternDefinition getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PatternDefinition parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PatternDefinition(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.PatternDefinition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy