001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// NO CHECKED-IN PROTOBUF GENCODE
003// source: java/dev/enola/common/protobuf/test.proto
004// Protobuf Java Version: 4.32.0
005
006package dev.enola.protobuf.test;
007
008/**
009 * Protobuf type {@code dev.enola.protobuf.test.TestComplex}
010 */
011@com.google.protobuf.Generated
012public final class TestComplex extends
013    com.google.protobuf.GeneratedMessage implements
014    // @@protoc_insertion_point(message_implements:dev.enola.protobuf.test.TestComplex)
015    TestComplexOrBuilder {
016private static final long serialVersionUID = 0L;
017  static {
018    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
019      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
020      /* major= */ 4,
021      /* minor= */ 32,
022      /* patch= */ 0,
023      /* suffix= */ "",
024      TestComplex.class.getName());
025  }
026  // Use TestComplex.newBuilder() to construct.
027  private TestComplex(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
028    super(builder);
029  }
030  private TestComplex() {
031    simples_ = java.util.Collections.emptyList();
032  }
033
034  public static final com.google.protobuf.Descriptors.Descriptor
035      getDescriptor() {
036    return dev.enola.protobuf.test.Test.internal_static_dev_enola_protobuf_test_TestComplex_descriptor;
037  }
038
039  @java.lang.Override
040  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
041      internalGetFieldAccessorTable() {
042    return dev.enola.protobuf.test.Test.internal_static_dev_enola_protobuf_test_TestComplex_fieldAccessorTable
043        .ensureFieldAccessorsInitialized(
044            dev.enola.protobuf.test.TestComplex.class, dev.enola.protobuf.test.TestComplex.Builder.class);
045  }
046
047  private int bitField0_;
048  public static final int SIMPLE_FIELD_NUMBER = 1;
049  private dev.enola.protobuf.test.TestSimple simple_;
050  /**
051   * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
052   * @return Whether the simple field is set.
053   */
054  @java.lang.Override
055  public boolean hasSimple() {
056    return ((bitField0_ & 0x00000001) != 0);
057  }
058  /**
059   * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
060   * @return The simple.
061   */
062  @java.lang.Override
063  public dev.enola.protobuf.test.TestSimple getSimple() {
064    return simple_ == null ? dev.enola.protobuf.test.TestSimple.getDefaultInstance() : simple_;
065  }
066  /**
067   * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
068   */
069  @java.lang.Override
070  public dev.enola.protobuf.test.TestSimpleOrBuilder getSimpleOrBuilder() {
071    return simple_ == null ? dev.enola.protobuf.test.TestSimple.getDefaultInstance() : simple_;
072  }
073
074  public static final int SIMPLES_FIELD_NUMBER = 2;
075  @SuppressWarnings("serial")
076  private java.util.List<dev.enola.protobuf.test.TestSimple> simples_;
077  /**
078   * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
079   */
080  @java.lang.Override
081  public java.util.List<dev.enola.protobuf.test.TestSimple> getSimplesList() {
082    return simples_;
083  }
084  /**
085   * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
086   */
087  @java.lang.Override
088  public java.util.List<? extends dev.enola.protobuf.test.TestSimpleOrBuilder> 
089      getSimplesOrBuilderList() {
090    return simples_;
091  }
092  /**
093   * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
094   */
095  @java.lang.Override
096  public int getSimplesCount() {
097    return simples_.size();
098  }
099  /**
100   * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
101   */
102  @java.lang.Override
103  public dev.enola.protobuf.test.TestSimple getSimples(int index) {
104    return simples_.get(index);
105  }
106  /**
107   * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
108   */
109  @java.lang.Override
110  public dev.enola.protobuf.test.TestSimpleOrBuilder getSimplesOrBuilder(
111      int index) {
112    return simples_.get(index);
113  }
114
115  private byte memoizedIsInitialized = -1;
116  @java.lang.Override
117  public final boolean isInitialized() {
118    byte isInitialized = memoizedIsInitialized;
119    if (isInitialized == 1) return true;
120    if (isInitialized == 0) return false;
121
122    memoizedIsInitialized = 1;
123    return true;
124  }
125
126  @java.lang.Override
127  public void writeTo(com.google.protobuf.CodedOutputStream output)
128                      throws java.io.IOException {
129    if (((bitField0_ & 0x00000001) != 0)) {
130      output.writeMessage(1, getSimple());
131    }
132    for (int i = 0; i < simples_.size(); i++) {
133      output.writeMessage(2, simples_.get(i));
134    }
135    getUnknownFields().writeTo(output);
136  }
137
138  @java.lang.Override
139  public int getSerializedSize() {
140    int size = memoizedSize;
141    if (size != -1) return size;
142
143    size = 0;
144    if (((bitField0_ & 0x00000001) != 0)) {
145      size += com.google.protobuf.CodedOutputStream
146        .computeMessageSize(1, getSimple());
147    }
148    for (int i = 0; i < simples_.size(); i++) {
149      size += com.google.protobuf.CodedOutputStream
150        .computeMessageSize(2, simples_.get(i));
151    }
152    size += getUnknownFields().getSerializedSize();
153    memoizedSize = size;
154    return size;
155  }
156
157  @java.lang.Override
158  public boolean equals(final java.lang.Object obj) {
159    if (obj == this) {
160     return true;
161    }
162    if (!(obj instanceof dev.enola.protobuf.test.TestComplex)) {
163      return super.equals(obj);
164    }
165    dev.enola.protobuf.test.TestComplex other = (dev.enola.protobuf.test.TestComplex) obj;
166
167    if (hasSimple() != other.hasSimple()) return false;
168    if (hasSimple()) {
169      if (!getSimple()
170          .equals(other.getSimple())) return false;
171    }
172    if (!getSimplesList()
173        .equals(other.getSimplesList())) return false;
174    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
175    return true;
176  }
177
178  @java.lang.Override
179  public int hashCode() {
180    if (memoizedHashCode != 0) {
181      return memoizedHashCode;
182    }
183    int hash = 41;
184    hash = (19 * hash) + getDescriptor().hashCode();
185    if (hasSimple()) {
186      hash = (37 * hash) + SIMPLE_FIELD_NUMBER;
187      hash = (53 * hash) + getSimple().hashCode();
188    }
189    if (getSimplesCount() > 0) {
190      hash = (37 * hash) + SIMPLES_FIELD_NUMBER;
191      hash = (53 * hash) + getSimplesList().hashCode();
192    }
193    hash = (29 * hash) + getUnknownFields().hashCode();
194    memoizedHashCode = hash;
195    return hash;
196  }
197
198  public static dev.enola.protobuf.test.TestComplex parseFrom(
199      java.nio.ByteBuffer data)
200      throws com.google.protobuf.InvalidProtocolBufferException {
201    return PARSER.parseFrom(data);
202  }
203  public static dev.enola.protobuf.test.TestComplex parseFrom(
204      java.nio.ByteBuffer data,
205      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
206      throws com.google.protobuf.InvalidProtocolBufferException {
207    return PARSER.parseFrom(data, extensionRegistry);
208  }
209  public static dev.enola.protobuf.test.TestComplex parseFrom(
210      com.google.protobuf.ByteString data)
211      throws com.google.protobuf.InvalidProtocolBufferException {
212    return PARSER.parseFrom(data);
213  }
214  public static dev.enola.protobuf.test.TestComplex parseFrom(
215      com.google.protobuf.ByteString data,
216      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
217      throws com.google.protobuf.InvalidProtocolBufferException {
218    return PARSER.parseFrom(data, extensionRegistry);
219  }
220  public static dev.enola.protobuf.test.TestComplex parseFrom(byte[] data)
221      throws com.google.protobuf.InvalidProtocolBufferException {
222    return PARSER.parseFrom(data);
223  }
224  public static dev.enola.protobuf.test.TestComplex parseFrom(
225      byte[] data,
226      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
227      throws com.google.protobuf.InvalidProtocolBufferException {
228    return PARSER.parseFrom(data, extensionRegistry);
229  }
230  public static dev.enola.protobuf.test.TestComplex parseFrom(java.io.InputStream input)
231      throws java.io.IOException {
232    return com.google.protobuf.GeneratedMessage
233        .parseWithIOException(PARSER, input);
234  }
235  public static dev.enola.protobuf.test.TestComplex parseFrom(
236      java.io.InputStream input,
237      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
238      throws java.io.IOException {
239    return com.google.protobuf.GeneratedMessage
240        .parseWithIOException(PARSER, input, extensionRegistry);
241  }
242
243  public static dev.enola.protobuf.test.TestComplex parseDelimitedFrom(java.io.InputStream input)
244      throws java.io.IOException {
245    return com.google.protobuf.GeneratedMessage
246        .parseDelimitedWithIOException(PARSER, input);
247  }
248
249  public static dev.enola.protobuf.test.TestComplex parseDelimitedFrom(
250      java.io.InputStream input,
251      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
252      throws java.io.IOException {
253    return com.google.protobuf.GeneratedMessage
254        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
255  }
256  public static dev.enola.protobuf.test.TestComplex parseFrom(
257      com.google.protobuf.CodedInputStream input)
258      throws java.io.IOException {
259    return com.google.protobuf.GeneratedMessage
260        .parseWithIOException(PARSER, input);
261  }
262  public static dev.enola.protobuf.test.TestComplex parseFrom(
263      com.google.protobuf.CodedInputStream input,
264      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
265      throws java.io.IOException {
266    return com.google.protobuf.GeneratedMessage
267        .parseWithIOException(PARSER, input, extensionRegistry);
268  }
269
270  @java.lang.Override
271  public Builder newBuilderForType() { return newBuilder(); }
272  public static Builder newBuilder() {
273    return DEFAULT_INSTANCE.toBuilder();
274  }
275  public static Builder newBuilder(dev.enola.protobuf.test.TestComplex prototype) {
276    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
277  }
278  @java.lang.Override
279  public Builder toBuilder() {
280    return this == DEFAULT_INSTANCE
281        ? new Builder() : new Builder().mergeFrom(this);
282  }
283
284  @java.lang.Override
285  protected Builder newBuilderForType(
286      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
287    Builder builder = new Builder(parent);
288    return builder;
289  }
290  /**
291   * Protobuf type {@code dev.enola.protobuf.test.TestComplex}
292   */
293  public static final class Builder extends
294      com.google.protobuf.GeneratedMessage.Builder<Builder> implements
295      // @@protoc_insertion_point(builder_implements:dev.enola.protobuf.test.TestComplex)
296      dev.enola.protobuf.test.TestComplexOrBuilder {
297    public static final com.google.protobuf.Descriptors.Descriptor
298        getDescriptor() {
299      return dev.enola.protobuf.test.Test.internal_static_dev_enola_protobuf_test_TestComplex_descriptor;
300    }
301
302    @java.lang.Override
303    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
304        internalGetFieldAccessorTable() {
305      return dev.enola.protobuf.test.Test.internal_static_dev_enola_protobuf_test_TestComplex_fieldAccessorTable
306          .ensureFieldAccessorsInitialized(
307              dev.enola.protobuf.test.TestComplex.class, dev.enola.protobuf.test.TestComplex.Builder.class);
308    }
309
310    // Construct using dev.enola.protobuf.test.TestComplex.newBuilder()
311    private Builder() {
312      maybeForceBuilderInitialization();
313    }
314
315    private Builder(
316        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
317      super(parent);
318      maybeForceBuilderInitialization();
319    }
320    private void maybeForceBuilderInitialization() {
321      if (com.google.protobuf.GeneratedMessage
322              .alwaysUseFieldBuilders) {
323        internalGetSimpleFieldBuilder();
324        internalGetSimplesFieldBuilder();
325      }
326    }
327    @java.lang.Override
328    public Builder clear() {
329      super.clear();
330      bitField0_ = 0;
331      simple_ = null;
332      if (simpleBuilder_ != null) {
333        simpleBuilder_.dispose();
334        simpleBuilder_ = null;
335      }
336      if (simplesBuilder_ == null) {
337        simples_ = java.util.Collections.emptyList();
338      } else {
339        simples_ = null;
340        simplesBuilder_.clear();
341      }
342      bitField0_ = (bitField0_ & ~0x00000002);
343      return this;
344    }
345
346    @java.lang.Override
347    public com.google.protobuf.Descriptors.Descriptor
348        getDescriptorForType() {
349      return dev.enola.protobuf.test.Test.internal_static_dev_enola_protobuf_test_TestComplex_descriptor;
350    }
351
352    @java.lang.Override
353    public dev.enola.protobuf.test.TestComplex getDefaultInstanceForType() {
354      return dev.enola.protobuf.test.TestComplex.getDefaultInstance();
355    }
356
357    @java.lang.Override
358    public dev.enola.protobuf.test.TestComplex build() {
359      dev.enola.protobuf.test.TestComplex result = buildPartial();
360      if (!result.isInitialized()) {
361        throw newUninitializedMessageException(result);
362      }
363      return result;
364    }
365
366    @java.lang.Override
367    public dev.enola.protobuf.test.TestComplex buildPartial() {
368      dev.enola.protobuf.test.TestComplex result = new dev.enola.protobuf.test.TestComplex(this);
369      buildPartialRepeatedFields(result);
370      if (bitField0_ != 0) { buildPartial0(result); }
371      onBuilt();
372      return result;
373    }
374
375    private void buildPartialRepeatedFields(dev.enola.protobuf.test.TestComplex result) {
376      if (simplesBuilder_ == null) {
377        if (((bitField0_ & 0x00000002) != 0)) {
378          simples_ = java.util.Collections.unmodifiableList(simples_);
379          bitField0_ = (bitField0_ & ~0x00000002);
380        }
381        result.simples_ = simples_;
382      } else {
383        result.simples_ = simplesBuilder_.build();
384      }
385    }
386
387    private void buildPartial0(dev.enola.protobuf.test.TestComplex result) {
388      int from_bitField0_ = bitField0_;
389      int to_bitField0_ = 0;
390      if (((from_bitField0_ & 0x00000001) != 0)) {
391        result.simple_ = simpleBuilder_ == null
392            ? simple_
393            : simpleBuilder_.build();
394        to_bitField0_ |= 0x00000001;
395      }
396      result.bitField0_ |= to_bitField0_;
397    }
398
399    @java.lang.Override
400    public Builder mergeFrom(com.google.protobuf.Message other) {
401      if (other instanceof dev.enola.protobuf.test.TestComplex) {
402        return mergeFrom((dev.enola.protobuf.test.TestComplex)other);
403      } else {
404        super.mergeFrom(other);
405        return this;
406      }
407    }
408
409    public Builder mergeFrom(dev.enola.protobuf.test.TestComplex other) {
410      if (other == dev.enola.protobuf.test.TestComplex.getDefaultInstance()) return this;
411      if (other.hasSimple()) {
412        mergeSimple(other.getSimple());
413      }
414      if (simplesBuilder_ == null) {
415        if (!other.simples_.isEmpty()) {
416          if (simples_.isEmpty()) {
417            simples_ = other.simples_;
418            bitField0_ = (bitField0_ & ~0x00000002);
419          } else {
420            ensureSimplesIsMutable();
421            simples_.addAll(other.simples_);
422          }
423          onChanged();
424        }
425      } else {
426        if (!other.simples_.isEmpty()) {
427          if (simplesBuilder_.isEmpty()) {
428            simplesBuilder_.dispose();
429            simplesBuilder_ = null;
430            simples_ = other.simples_;
431            bitField0_ = (bitField0_ & ~0x00000002);
432            simplesBuilder_ = 
433              com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
434                 internalGetSimplesFieldBuilder() : null;
435          } else {
436            simplesBuilder_.addAllMessages(other.simples_);
437          }
438        }
439      }
440      this.mergeUnknownFields(other.getUnknownFields());
441      onChanged();
442      return this;
443    }
444
445    @java.lang.Override
446    public final boolean isInitialized() {
447      return true;
448    }
449
450    @java.lang.Override
451    public Builder mergeFrom(
452        com.google.protobuf.CodedInputStream input,
453        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
454        throws java.io.IOException {
455      if (extensionRegistry == null) {
456        throw new java.lang.NullPointerException();
457      }
458      try {
459        boolean done = false;
460        while (!done) {
461          int tag = input.readTag();
462          switch (tag) {
463            case 0:
464              done = true;
465              break;
466            case 10: {
467              input.readMessage(
468                  internalGetSimpleFieldBuilder().getBuilder(),
469                  extensionRegistry);
470              bitField0_ |= 0x00000001;
471              break;
472            } // case 10
473            case 18: {
474              dev.enola.protobuf.test.TestSimple m =
475                  input.readMessage(
476                      dev.enola.protobuf.test.TestSimple.parser(),
477                      extensionRegistry);
478              if (simplesBuilder_ == null) {
479                ensureSimplesIsMutable();
480                simples_.add(m);
481              } else {
482                simplesBuilder_.addMessage(m);
483              }
484              break;
485            } // case 18
486            default: {
487              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
488                done = true; // was an endgroup tag
489              }
490              break;
491            } // default:
492          } // switch (tag)
493        } // while (!done)
494      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
495        throw e.unwrapIOException();
496      } finally {
497        onChanged();
498      } // finally
499      return this;
500    }
501    private int bitField0_;
502
503    private dev.enola.protobuf.test.TestSimple simple_;
504    private com.google.protobuf.SingleFieldBuilder<
505        dev.enola.protobuf.test.TestSimple, dev.enola.protobuf.test.TestSimple.Builder, dev.enola.protobuf.test.TestSimpleOrBuilder> simpleBuilder_;
506    /**
507     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
508     * @return Whether the simple field is set.
509     */
510    public boolean hasSimple() {
511      return ((bitField0_ & 0x00000001) != 0);
512    }
513    /**
514     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
515     * @return The simple.
516     */
517    public dev.enola.protobuf.test.TestSimple getSimple() {
518      if (simpleBuilder_ == null) {
519        return simple_ == null ? dev.enola.protobuf.test.TestSimple.getDefaultInstance() : simple_;
520      } else {
521        return simpleBuilder_.getMessage();
522      }
523    }
524    /**
525     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
526     */
527    public Builder setSimple(dev.enola.protobuf.test.TestSimple value) {
528      if (simpleBuilder_ == null) {
529        if (value == null) {
530          throw new NullPointerException();
531        }
532        simple_ = value;
533      } else {
534        simpleBuilder_.setMessage(value);
535      }
536      bitField0_ |= 0x00000001;
537      onChanged();
538      return this;
539    }
540    /**
541     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
542     */
543    public Builder setSimple(
544        dev.enola.protobuf.test.TestSimple.Builder builderForValue) {
545      if (simpleBuilder_ == null) {
546        simple_ = builderForValue.build();
547      } else {
548        simpleBuilder_.setMessage(builderForValue.build());
549      }
550      bitField0_ |= 0x00000001;
551      onChanged();
552      return this;
553    }
554    /**
555     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
556     */
557    public Builder mergeSimple(dev.enola.protobuf.test.TestSimple value) {
558      if (simpleBuilder_ == null) {
559        if (((bitField0_ & 0x00000001) != 0) &&
560          simple_ != null &&
561          simple_ != dev.enola.protobuf.test.TestSimple.getDefaultInstance()) {
562          getSimpleBuilder().mergeFrom(value);
563        } else {
564          simple_ = value;
565        }
566      } else {
567        simpleBuilder_.mergeFrom(value);
568      }
569      if (simple_ != null) {
570        bitField0_ |= 0x00000001;
571        onChanged();
572      }
573      return this;
574    }
575    /**
576     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
577     */
578    public Builder clearSimple() {
579      bitField0_ = (bitField0_ & ~0x00000001);
580      simple_ = null;
581      if (simpleBuilder_ != null) {
582        simpleBuilder_.dispose();
583        simpleBuilder_ = null;
584      }
585      onChanged();
586      return this;
587    }
588    /**
589     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
590     */
591    public dev.enola.protobuf.test.TestSimple.Builder getSimpleBuilder() {
592      bitField0_ |= 0x00000001;
593      onChanged();
594      return internalGetSimpleFieldBuilder().getBuilder();
595    }
596    /**
597     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
598     */
599    public dev.enola.protobuf.test.TestSimpleOrBuilder getSimpleOrBuilder() {
600      if (simpleBuilder_ != null) {
601        return simpleBuilder_.getMessageOrBuilder();
602      } else {
603        return simple_ == null ?
604            dev.enola.protobuf.test.TestSimple.getDefaultInstance() : simple_;
605      }
606    }
607    /**
608     * <code>.dev.enola.protobuf.test.TestSimple simple = 1;</code>
609     */
610    private com.google.protobuf.SingleFieldBuilder<
611        dev.enola.protobuf.test.TestSimple, dev.enola.protobuf.test.TestSimple.Builder, dev.enola.protobuf.test.TestSimpleOrBuilder> 
612        internalGetSimpleFieldBuilder() {
613      if (simpleBuilder_ == null) {
614        simpleBuilder_ = new com.google.protobuf.SingleFieldBuilder<
615            dev.enola.protobuf.test.TestSimple, dev.enola.protobuf.test.TestSimple.Builder, dev.enola.protobuf.test.TestSimpleOrBuilder>(
616                getSimple(),
617                getParentForChildren(),
618                isClean());
619        simple_ = null;
620      }
621      return simpleBuilder_;
622    }
623
624    private java.util.List<dev.enola.protobuf.test.TestSimple> simples_ =
625      java.util.Collections.emptyList();
626    private void ensureSimplesIsMutable() {
627      if (!((bitField0_ & 0x00000002) != 0)) {
628        simples_ = new java.util.ArrayList<dev.enola.protobuf.test.TestSimple>(simples_);
629        bitField0_ |= 0x00000002;
630       }
631    }
632
633    private com.google.protobuf.RepeatedFieldBuilder<
634        dev.enola.protobuf.test.TestSimple, dev.enola.protobuf.test.TestSimple.Builder, dev.enola.protobuf.test.TestSimpleOrBuilder> simplesBuilder_;
635
636    /**
637     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
638     */
639    public java.util.List<dev.enola.protobuf.test.TestSimple> getSimplesList() {
640      if (simplesBuilder_ == null) {
641        return java.util.Collections.unmodifiableList(simples_);
642      } else {
643        return simplesBuilder_.getMessageList();
644      }
645    }
646    /**
647     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
648     */
649    public int getSimplesCount() {
650      if (simplesBuilder_ == null) {
651        return simples_.size();
652      } else {
653        return simplesBuilder_.getCount();
654      }
655    }
656    /**
657     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
658     */
659    public dev.enola.protobuf.test.TestSimple getSimples(int index) {
660      if (simplesBuilder_ == null) {
661        return simples_.get(index);
662      } else {
663        return simplesBuilder_.getMessage(index);
664      }
665    }
666    /**
667     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
668     */
669    public Builder setSimples(
670        int index, dev.enola.protobuf.test.TestSimple value) {
671      if (simplesBuilder_ == null) {
672        if (value == null) {
673          throw new NullPointerException();
674        }
675        ensureSimplesIsMutable();
676        simples_.set(index, value);
677        onChanged();
678      } else {
679        simplesBuilder_.setMessage(index, value);
680      }
681      return this;
682    }
683    /**
684     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
685     */
686    public Builder setSimples(
687        int index, dev.enola.protobuf.test.TestSimple.Builder builderForValue) {
688      if (simplesBuilder_ == null) {
689        ensureSimplesIsMutable();
690        simples_.set(index, builderForValue.build());
691        onChanged();
692      } else {
693        simplesBuilder_.setMessage(index, builderForValue.build());
694      }
695      return this;
696    }
697    /**
698     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
699     */
700    public Builder addSimples(dev.enola.protobuf.test.TestSimple value) {
701      if (simplesBuilder_ == null) {
702        if (value == null) {
703          throw new NullPointerException();
704        }
705        ensureSimplesIsMutable();
706        simples_.add(value);
707        onChanged();
708      } else {
709        simplesBuilder_.addMessage(value);
710      }
711      return this;
712    }
713    /**
714     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
715     */
716    public Builder addSimples(
717        int index, dev.enola.protobuf.test.TestSimple value) {
718      if (simplesBuilder_ == null) {
719        if (value == null) {
720          throw new NullPointerException();
721        }
722        ensureSimplesIsMutable();
723        simples_.add(index, value);
724        onChanged();
725      } else {
726        simplesBuilder_.addMessage(index, value);
727      }
728      return this;
729    }
730    /**
731     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
732     */
733    public Builder addSimples(
734        dev.enola.protobuf.test.TestSimple.Builder builderForValue) {
735      if (simplesBuilder_ == null) {
736        ensureSimplesIsMutable();
737        simples_.add(builderForValue.build());
738        onChanged();
739      } else {
740        simplesBuilder_.addMessage(builderForValue.build());
741      }
742      return this;
743    }
744    /**
745     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
746     */
747    public Builder addSimples(
748        int index, dev.enola.protobuf.test.TestSimple.Builder builderForValue) {
749      if (simplesBuilder_ == null) {
750        ensureSimplesIsMutable();
751        simples_.add(index, builderForValue.build());
752        onChanged();
753      } else {
754        simplesBuilder_.addMessage(index, builderForValue.build());
755      }
756      return this;
757    }
758    /**
759     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
760     */
761    public Builder addAllSimples(
762        java.lang.Iterable<? extends dev.enola.protobuf.test.TestSimple> values) {
763      if (simplesBuilder_ == null) {
764        ensureSimplesIsMutable();
765        com.google.protobuf.AbstractMessageLite.Builder.addAll(
766            values, simples_);
767        onChanged();
768      } else {
769        simplesBuilder_.addAllMessages(values);
770      }
771      return this;
772    }
773    /**
774     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
775     */
776    public Builder clearSimples() {
777      if (simplesBuilder_ == null) {
778        simples_ = java.util.Collections.emptyList();
779        bitField0_ = (bitField0_ & ~0x00000002);
780        onChanged();
781      } else {
782        simplesBuilder_.clear();
783      }
784      return this;
785    }
786    /**
787     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
788     */
789    public Builder removeSimples(int index) {
790      if (simplesBuilder_ == null) {
791        ensureSimplesIsMutable();
792        simples_.remove(index);
793        onChanged();
794      } else {
795        simplesBuilder_.remove(index);
796      }
797      return this;
798    }
799    /**
800     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
801     */
802    public dev.enola.protobuf.test.TestSimple.Builder getSimplesBuilder(
803        int index) {
804      return internalGetSimplesFieldBuilder().getBuilder(index);
805    }
806    /**
807     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
808     */
809    public dev.enola.protobuf.test.TestSimpleOrBuilder getSimplesOrBuilder(
810        int index) {
811      if (simplesBuilder_ == null) {
812        return simples_.get(index);  } else {
813        return simplesBuilder_.getMessageOrBuilder(index);
814      }
815    }
816    /**
817     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
818     */
819    public java.util.List<? extends dev.enola.protobuf.test.TestSimpleOrBuilder> 
820         getSimplesOrBuilderList() {
821      if (simplesBuilder_ != null) {
822        return simplesBuilder_.getMessageOrBuilderList();
823      } else {
824        return java.util.Collections.unmodifiableList(simples_);
825      }
826    }
827    /**
828     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
829     */
830    public dev.enola.protobuf.test.TestSimple.Builder addSimplesBuilder() {
831      return internalGetSimplesFieldBuilder().addBuilder(
832          dev.enola.protobuf.test.TestSimple.getDefaultInstance());
833    }
834    /**
835     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
836     */
837    public dev.enola.protobuf.test.TestSimple.Builder addSimplesBuilder(
838        int index) {
839      return internalGetSimplesFieldBuilder().addBuilder(
840          index, dev.enola.protobuf.test.TestSimple.getDefaultInstance());
841    }
842    /**
843     * <code>repeated .dev.enola.protobuf.test.TestSimple simples = 2;</code>
844     */
845    public java.util.List<dev.enola.protobuf.test.TestSimple.Builder> 
846         getSimplesBuilderList() {
847      return internalGetSimplesFieldBuilder().getBuilderList();
848    }
849    private com.google.protobuf.RepeatedFieldBuilder<
850        dev.enola.protobuf.test.TestSimple, dev.enola.protobuf.test.TestSimple.Builder, dev.enola.protobuf.test.TestSimpleOrBuilder> 
851        internalGetSimplesFieldBuilder() {
852      if (simplesBuilder_ == null) {
853        simplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
854            dev.enola.protobuf.test.TestSimple, dev.enola.protobuf.test.TestSimple.Builder, dev.enola.protobuf.test.TestSimpleOrBuilder>(
855                simples_,
856                ((bitField0_ & 0x00000002) != 0),
857                getParentForChildren(),
858                isClean());
859        simples_ = null;
860      }
861      return simplesBuilder_;
862    }
863
864    // @@protoc_insertion_point(builder_scope:dev.enola.protobuf.test.TestComplex)
865  }
866
867  // @@protoc_insertion_point(class_scope:dev.enola.protobuf.test.TestComplex)
868  private static final dev.enola.protobuf.test.TestComplex DEFAULT_INSTANCE;
869  static {
870    DEFAULT_INSTANCE = new dev.enola.protobuf.test.TestComplex();
871  }
872
873  public static dev.enola.protobuf.test.TestComplex getDefaultInstance() {
874    return DEFAULT_INSTANCE;
875  }
876
877  private static final com.google.protobuf.Parser<TestComplex>
878      PARSER = new com.google.protobuf.AbstractParser<TestComplex>() {
879    @java.lang.Override
880    public TestComplex parsePartialFrom(
881        com.google.protobuf.CodedInputStream input,
882        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
883        throws com.google.protobuf.InvalidProtocolBufferException {
884      Builder builder = newBuilder();
885      try {
886        builder.mergeFrom(input, extensionRegistry);
887      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
888        throw e.setUnfinishedMessage(builder.buildPartial());
889      } catch (com.google.protobuf.UninitializedMessageException e) {
890        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
891      } catch (java.io.IOException e) {
892        throw new com.google.protobuf.InvalidProtocolBufferException(e)
893            .setUnfinishedMessage(builder.buildPartial());
894      }
895      return builder.buildPartial();
896    }
897  };
898
899  public static com.google.protobuf.Parser<TestComplex> parser() {
900    return PARSER;
901  }
902
903  @java.lang.Override
904  public com.google.protobuf.Parser<TestComplex> getParserForType() {
905    return PARSER;
906  }
907
908  @java.lang.Override
909  public dev.enola.protobuf.test.TestComplex getDefaultInstanceForType() {
910    return DEFAULT_INSTANCE;
911  }
912
913}
914