001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// source: olcut_proto.proto
003
004// Protobuf Java Version: 3.25.5
005package com.oracle.labs.mlrg.olcut.config.protobuf.protos;
006
007/**
008 * <pre>
009 *
010 *A ListMarshalledProvenance proto with the references converted into indices.
011 * </pre>
012 *
013 * Protobuf type {@code olcut.ListProvenanceProto}
014 */
015public final class ListProvenanceProto extends
016    com.google.protobuf.GeneratedMessageV3 implements
017    // @@protoc_insertion_point(message_implements:olcut.ListProvenanceProto)
018    ListProvenanceProtoOrBuilder {
019private static final long serialVersionUID = 0L;
020  // Use ListProvenanceProto.newBuilder() to construct.
021  private ListProvenanceProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
022    super(builder);
023  }
024  private ListProvenanceProto() {
025    values_ = emptyIntList();
026  }
027
028  @java.lang.Override
029  @SuppressWarnings({"unused"})
030  protected java.lang.Object newInstance(
031      UnusedPrivateParameter unused) {
032    return new ListProvenanceProto();
033  }
034
035  public static final com.google.protobuf.Descriptors.Descriptor
036      getDescriptor() {
037    return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ListProvenanceProto_descriptor;
038  }
039
040  @java.lang.Override
041  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
042      internalGetFieldAccessorTable() {
043    return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ListProvenanceProto_fieldAccessorTable
044        .ensureFieldAccessorsInitialized(
045            com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto.class, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto.Builder.class);
046  }
047
048  public static final int INDEX_FIELD_NUMBER = 1;
049  private int index_ = 0;
050  /**
051   * <code>int32 index = 1;</code>
052   * @return The index.
053   */
054  @java.lang.Override
055  public int getIndex() {
056    return index_;
057  }
058
059  public static final int VALUES_FIELD_NUMBER = 2;
060  @SuppressWarnings("serial")
061  private com.google.protobuf.Internal.IntList values_ =
062      emptyIntList();
063  /**
064   * <code>repeated int32 values = 2;</code>
065   * @return A list containing the values.
066   */
067  @java.lang.Override
068  public java.util.List<java.lang.Integer>
069      getValuesList() {
070    return values_;
071  }
072  /**
073   * <code>repeated int32 values = 2;</code>
074   * @return The count of values.
075   */
076  public int getValuesCount() {
077    return values_.size();
078  }
079  /**
080   * <code>repeated int32 values = 2;</code>
081   * @param index The index of the element to return.
082   * @return The values at the given index.
083   */
084  public int getValues(int index) {
085    return values_.getInt(index);
086  }
087  private int valuesMemoizedSerializedSize = -1;
088
089  private byte memoizedIsInitialized = -1;
090  @java.lang.Override
091  public final boolean isInitialized() {
092    byte isInitialized = memoizedIsInitialized;
093    if (isInitialized == 1) return true;
094    if (isInitialized == 0) return false;
095
096    memoizedIsInitialized = 1;
097    return true;
098  }
099
100  @java.lang.Override
101  public void writeTo(com.google.protobuf.CodedOutputStream output)
102                      throws java.io.IOException {
103    getSerializedSize();
104    if (index_ != 0) {
105      output.writeInt32(1, index_);
106    }
107    if (getValuesList().size() > 0) {
108      output.writeUInt32NoTag(18);
109      output.writeUInt32NoTag(valuesMemoizedSerializedSize);
110    }
111    for (int i = 0; i < values_.size(); i++) {
112      output.writeInt32NoTag(values_.getInt(i));
113    }
114    getUnknownFields().writeTo(output);
115  }
116
117  @java.lang.Override
118  public int getSerializedSize() {
119    int size = memoizedSize;
120    if (size != -1) return size;
121
122    size = 0;
123    if (index_ != 0) {
124      size += com.google.protobuf.CodedOutputStream
125        .computeInt32Size(1, index_);
126    }
127    {
128      int dataSize = 0;
129      for (int i = 0; i < values_.size(); i++) {
130        dataSize += com.google.protobuf.CodedOutputStream
131          .computeInt32SizeNoTag(values_.getInt(i));
132      }
133      size += dataSize;
134      if (!getValuesList().isEmpty()) {
135        size += 1;
136        size += com.google.protobuf.CodedOutputStream
137            .computeInt32SizeNoTag(dataSize);
138      }
139      valuesMemoizedSerializedSize = dataSize;
140    }
141    size += getUnknownFields().getSerializedSize();
142    memoizedSize = size;
143    return size;
144  }
145
146  @java.lang.Override
147  public boolean equals(final java.lang.Object obj) {
148    if (obj == this) {
149     return true;
150    }
151    if (!(obj instanceof com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto)) {
152      return super.equals(obj);
153    }
154    com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto other = (com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto) obj;
155
156    if (getIndex()
157        != other.getIndex()) return false;
158    if (!getValuesList()
159        .equals(other.getValuesList())) return false;
160    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
161    return true;
162  }
163
164  @java.lang.Override
165  public int hashCode() {
166    if (memoizedHashCode != 0) {
167      return memoizedHashCode;
168    }
169    int hash = 41;
170    hash = (19 * hash) + getDescriptor().hashCode();
171    hash = (37 * hash) + INDEX_FIELD_NUMBER;
172    hash = (53 * hash) + getIndex();
173    if (getValuesCount() > 0) {
174      hash = (37 * hash) + VALUES_FIELD_NUMBER;
175      hash = (53 * hash) + getValuesList().hashCode();
176    }
177    hash = (29 * hash) + getUnknownFields().hashCode();
178    memoizedHashCode = hash;
179    return hash;
180  }
181
182  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(
183      java.nio.ByteBuffer data)
184      throws com.google.protobuf.InvalidProtocolBufferException {
185    return PARSER.parseFrom(data);
186  }
187  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(
188      java.nio.ByteBuffer data,
189      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
190      throws com.google.protobuf.InvalidProtocolBufferException {
191    return PARSER.parseFrom(data, extensionRegistry);
192  }
193  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(
194      com.google.protobuf.ByteString data)
195      throws com.google.protobuf.InvalidProtocolBufferException {
196    return PARSER.parseFrom(data);
197  }
198  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(
199      com.google.protobuf.ByteString data,
200      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
201      throws com.google.protobuf.InvalidProtocolBufferException {
202    return PARSER.parseFrom(data, extensionRegistry);
203  }
204  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(byte[] data)
205      throws com.google.protobuf.InvalidProtocolBufferException {
206    return PARSER.parseFrom(data);
207  }
208  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(
209      byte[] data,
210      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
211      throws com.google.protobuf.InvalidProtocolBufferException {
212    return PARSER.parseFrom(data, extensionRegistry);
213  }
214  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(java.io.InputStream input)
215      throws java.io.IOException {
216    return com.google.protobuf.GeneratedMessageV3
217        .parseWithIOException(PARSER, input);
218  }
219  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(
220      java.io.InputStream input,
221      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
222      throws java.io.IOException {
223    return com.google.protobuf.GeneratedMessageV3
224        .parseWithIOException(PARSER, input, extensionRegistry);
225  }
226
227  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseDelimitedFrom(java.io.InputStream input)
228      throws java.io.IOException {
229    return com.google.protobuf.GeneratedMessageV3
230        .parseDelimitedWithIOException(PARSER, input);
231  }
232
233  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseDelimitedFrom(
234      java.io.InputStream input,
235      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
236      throws java.io.IOException {
237    return com.google.protobuf.GeneratedMessageV3
238        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
239  }
240  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(
241      com.google.protobuf.CodedInputStream input)
242      throws java.io.IOException {
243    return com.google.protobuf.GeneratedMessageV3
244        .parseWithIOException(PARSER, input);
245  }
246  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto parseFrom(
247      com.google.protobuf.CodedInputStream input,
248      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
249      throws java.io.IOException {
250    return com.google.protobuf.GeneratedMessageV3
251        .parseWithIOException(PARSER, input, extensionRegistry);
252  }
253
254  @java.lang.Override
255  public Builder newBuilderForType() { return newBuilder(); }
256  public static Builder newBuilder() {
257    return DEFAULT_INSTANCE.toBuilder();
258  }
259  public static Builder newBuilder(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto prototype) {
260    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
261  }
262  @java.lang.Override
263  public Builder toBuilder() {
264    return this == DEFAULT_INSTANCE
265        ? new Builder() : new Builder().mergeFrom(this);
266  }
267
268  @java.lang.Override
269  protected Builder newBuilderForType(
270      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
271    Builder builder = new Builder(parent);
272    return builder;
273  }
274  /**
275   * <pre>
276   *
277   *A ListMarshalledProvenance proto with the references converted into indices.
278   * </pre>
279   *
280   * Protobuf type {@code olcut.ListProvenanceProto}
281   */
282  public static final class Builder extends
283      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
284      // @@protoc_insertion_point(builder_implements:olcut.ListProvenanceProto)
285      com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProtoOrBuilder {
286    public static final com.google.protobuf.Descriptors.Descriptor
287        getDescriptor() {
288      return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ListProvenanceProto_descriptor;
289    }
290
291    @java.lang.Override
292    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
293        internalGetFieldAccessorTable() {
294      return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ListProvenanceProto_fieldAccessorTable
295          .ensureFieldAccessorsInitialized(
296              com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto.class, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto.Builder.class);
297    }
298
299    // Construct using com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto.newBuilder()
300    private Builder() {
301
302    }
303
304    private Builder(
305        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
306      super(parent);
307
308    }
309    @java.lang.Override
310    public Builder clear() {
311      super.clear();
312      bitField0_ = 0;
313      index_ = 0;
314      values_ = emptyIntList();
315      return this;
316    }
317
318    @java.lang.Override
319    public com.google.protobuf.Descriptors.Descriptor
320        getDescriptorForType() {
321      return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ListProvenanceProto_descriptor;
322    }
323
324    @java.lang.Override
325    public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto getDefaultInstanceForType() {
326      return com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto.getDefaultInstance();
327    }
328
329    @java.lang.Override
330    public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto build() {
331      com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto result = buildPartial();
332      if (!result.isInitialized()) {
333        throw newUninitializedMessageException(result);
334      }
335      return result;
336    }
337
338    @java.lang.Override
339    public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto buildPartial() {
340      com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto result = new com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto(this);
341      if (bitField0_ != 0) { buildPartial0(result); }
342      onBuilt();
343      return result;
344    }
345
346    private void buildPartial0(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto result) {
347      int from_bitField0_ = bitField0_;
348      if (((from_bitField0_ & 0x00000001) != 0)) {
349        result.index_ = index_;
350      }
351      if (((from_bitField0_ & 0x00000002) != 0)) {
352        values_.makeImmutable();
353        result.values_ = values_;
354      }
355    }
356
357    @java.lang.Override
358    public Builder clone() {
359      return super.clone();
360    }
361    @java.lang.Override
362    public Builder setField(
363        com.google.protobuf.Descriptors.FieldDescriptor field,
364        java.lang.Object value) {
365      return super.setField(field, value);
366    }
367    @java.lang.Override
368    public Builder clearField(
369        com.google.protobuf.Descriptors.FieldDescriptor field) {
370      return super.clearField(field);
371    }
372    @java.lang.Override
373    public Builder clearOneof(
374        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
375      return super.clearOneof(oneof);
376    }
377    @java.lang.Override
378    public Builder setRepeatedField(
379        com.google.protobuf.Descriptors.FieldDescriptor field,
380        int index, java.lang.Object value) {
381      return super.setRepeatedField(field, index, value);
382    }
383    @java.lang.Override
384    public Builder addRepeatedField(
385        com.google.protobuf.Descriptors.FieldDescriptor field,
386        java.lang.Object value) {
387      return super.addRepeatedField(field, value);
388    }
389    @java.lang.Override
390    public Builder mergeFrom(com.google.protobuf.Message other) {
391      if (other instanceof com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto) {
392        return mergeFrom((com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto)other);
393      } else {
394        super.mergeFrom(other);
395        return this;
396      }
397    }
398
399    public Builder mergeFrom(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto other) {
400      if (other == com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto.getDefaultInstance()) return this;
401      if (other.getIndex() != 0) {
402        setIndex(other.getIndex());
403      }
404      if (!other.values_.isEmpty()) {
405        if (values_.isEmpty()) {
406          values_ = other.values_;
407          values_.makeImmutable();
408          bitField0_ |= 0x00000002;
409        } else {
410          ensureValuesIsMutable();
411          values_.addAll(other.values_);
412        }
413        onChanged();
414      }
415      this.mergeUnknownFields(other.getUnknownFields());
416      onChanged();
417      return this;
418    }
419
420    @java.lang.Override
421    public final boolean isInitialized() {
422      return true;
423    }
424
425    @java.lang.Override
426    public Builder mergeFrom(
427        com.google.protobuf.CodedInputStream input,
428        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
429        throws java.io.IOException {
430      if (extensionRegistry == null) {
431        throw new java.lang.NullPointerException();
432      }
433      try {
434        boolean done = false;
435        while (!done) {
436          int tag = input.readTag();
437          switch (tag) {
438            case 0:
439              done = true;
440              break;
441            case 8: {
442              index_ = input.readInt32();
443              bitField0_ |= 0x00000001;
444              break;
445            } // case 8
446            case 16: {
447              int v = input.readInt32();
448              ensureValuesIsMutable();
449              values_.addInt(v);
450              break;
451            } // case 16
452            case 18: {
453              int length = input.readRawVarint32();
454              int limit = input.pushLimit(length);
455              ensureValuesIsMutable();
456              while (input.getBytesUntilLimit() > 0) {
457                values_.addInt(input.readInt32());
458              }
459              input.popLimit(limit);
460              break;
461            } // case 18
462            default: {
463              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
464                done = true; // was an endgroup tag
465              }
466              break;
467            } // default:
468          } // switch (tag)
469        } // while (!done)
470      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
471        throw e.unwrapIOException();
472      } finally {
473        onChanged();
474      } // finally
475      return this;
476    }
477    private int bitField0_;
478
479    private int index_ ;
480    /**
481     * <code>int32 index = 1;</code>
482     * @return The index.
483     */
484    @java.lang.Override
485    public int getIndex() {
486      return index_;
487    }
488    /**
489     * <code>int32 index = 1;</code>
490     * @param value The index to set.
491     * @return This builder for chaining.
492     */
493    public Builder setIndex(int value) {
494
495      index_ = value;
496      bitField0_ |= 0x00000001;
497      onChanged();
498      return this;
499    }
500    /**
501     * <code>int32 index = 1;</code>
502     * @return This builder for chaining.
503     */
504    public Builder clearIndex() {
505      bitField0_ = (bitField0_ & ~0x00000001);
506      index_ = 0;
507      onChanged();
508      return this;
509    }
510
511    private com.google.protobuf.Internal.IntList values_ = emptyIntList();
512    private void ensureValuesIsMutable() {
513      if (!values_.isModifiable()) {
514        values_ = makeMutableCopy(values_);
515      }
516      bitField0_ |= 0x00000002;
517    }
518    /**
519     * <code>repeated int32 values = 2;</code>
520     * @return A list containing the values.
521     */
522    public java.util.List<java.lang.Integer>
523        getValuesList() {
524      values_.makeImmutable();
525      return values_;
526    }
527    /**
528     * <code>repeated int32 values = 2;</code>
529     * @return The count of values.
530     */
531    public int getValuesCount() {
532      return values_.size();
533    }
534    /**
535     * <code>repeated int32 values = 2;</code>
536     * @param index The index of the element to return.
537     * @return The values at the given index.
538     */
539    public int getValues(int index) {
540      return values_.getInt(index);
541    }
542    /**
543     * <code>repeated int32 values = 2;</code>
544     * @param index The index to set the value at.
545     * @param value The values to set.
546     * @return This builder for chaining.
547     */
548    public Builder setValues(
549        int index, int value) {
550
551      ensureValuesIsMutable();
552      values_.setInt(index, value);
553      bitField0_ |= 0x00000002;
554      onChanged();
555      return this;
556    }
557    /**
558     * <code>repeated int32 values = 2;</code>
559     * @param value The values to add.
560     * @return This builder for chaining.
561     */
562    public Builder addValues(int value) {
563
564      ensureValuesIsMutable();
565      values_.addInt(value);
566      bitField0_ |= 0x00000002;
567      onChanged();
568      return this;
569    }
570    /**
571     * <code>repeated int32 values = 2;</code>
572     * @param values The values to add.
573     * @return This builder for chaining.
574     */
575    public Builder addAllValues(
576        java.lang.Iterable<? extends java.lang.Integer> values) {
577      ensureValuesIsMutable();
578      com.google.protobuf.AbstractMessageLite.Builder.addAll(
579          values, values_);
580      bitField0_ |= 0x00000002;
581      onChanged();
582      return this;
583    }
584    /**
585     * <code>repeated int32 values = 2;</code>
586     * @return This builder for chaining.
587     */
588    public Builder clearValues() {
589      values_ = emptyIntList();
590      bitField0_ = (bitField0_ & ~0x00000002);
591      onChanged();
592      return this;
593    }
594    @java.lang.Override
595    public final Builder setUnknownFields(
596        final com.google.protobuf.UnknownFieldSet unknownFields) {
597      return super.setUnknownFields(unknownFields);
598    }
599
600    @java.lang.Override
601    public final Builder mergeUnknownFields(
602        final com.google.protobuf.UnknownFieldSet unknownFields) {
603      return super.mergeUnknownFields(unknownFields);
604    }
605
606
607    // @@protoc_insertion_point(builder_scope:olcut.ListProvenanceProto)
608  }
609
610  // @@protoc_insertion_point(class_scope:olcut.ListProvenanceProto)
611  private static final com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto DEFAULT_INSTANCE;
612  static {
613    DEFAULT_INSTANCE = new com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto();
614  }
615
616  public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto getDefaultInstance() {
617    return DEFAULT_INSTANCE;
618  }
619
620  private static final com.google.protobuf.Parser<ListProvenanceProto>
621      PARSER = new com.google.protobuf.AbstractParser<ListProvenanceProto>() {
622    @java.lang.Override
623    public ListProvenanceProto parsePartialFrom(
624        com.google.protobuf.CodedInputStream input,
625        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
626        throws com.google.protobuf.InvalidProtocolBufferException {
627      Builder builder = newBuilder();
628      try {
629        builder.mergeFrom(input, extensionRegistry);
630      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
631        throw e.setUnfinishedMessage(builder.buildPartial());
632      } catch (com.google.protobuf.UninitializedMessageException e) {
633        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
634      } catch (java.io.IOException e) {
635        throw new com.google.protobuf.InvalidProtocolBufferException(e)
636            .setUnfinishedMessage(builder.buildPartial());
637      }
638      return builder.buildPartial();
639    }
640  };
641
642  public static com.google.protobuf.Parser<ListProvenanceProto> parser() {
643    return PARSER;
644  }
645
646  @java.lang.Override
647  public com.google.protobuf.Parser<ListProvenanceProto> getParserForType() {
648    return PARSER;
649  }
650
651  @java.lang.Override
652  public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ListProvenanceProto getDefaultInstanceForType() {
653    return DEFAULT_INSTANCE;
654  }
655
656}
657