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

com.spotify.telemetry.v1.LibraryTraces Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: confidence/telemetry.proto

package com.spotify.telemetry.v1;

/**
 * Protobuf type {@code confidence.telemetry.v1.LibraryTraces}
 */
public final class LibraryTraces extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:confidence.telemetry.v1.LibraryTraces)
    LibraryTracesOrBuilder {
private static final long serialVersionUID = 0L;
  // Use LibraryTraces.newBuilder() to construct.
  private LibraryTraces(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private LibraryTraces() {
    library_ = 0;
    libraryVersion_ = "";
    traces_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.spotify.telemetry.v1.LibraryTraces.class, com.spotify.telemetry.v1.LibraryTraces.Builder.class);
  }

  /**
   * Protobuf enum {@code confidence.telemetry.v1.LibraryTraces.Library}
   */
  public enum Library
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * LIBRARY_UNSPECIFIED = 0;
     */
    LIBRARY_UNSPECIFIED(0),
    /**
     * LIBRARY_CONFIDENCE = 1;
     */
    LIBRARY_CONFIDENCE(1),
    /**
     * LIBRARY_OPEN_FEATURE = 2;
     */
    LIBRARY_OPEN_FEATURE(2),
    /**
     * LIBRARY_REACT = 3;
     */
    LIBRARY_REACT(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * LIBRARY_UNSPECIFIED = 0;
     */
    public static final int LIBRARY_UNSPECIFIED_VALUE = 0;
    /**
     * LIBRARY_CONFIDENCE = 1;
     */
    public static final int LIBRARY_CONFIDENCE_VALUE = 1;
    /**
     * LIBRARY_OPEN_FEATURE = 2;
     */
    public static final int LIBRARY_OPEN_FEATURE_VALUE = 2;
    /**
     * LIBRARY_REACT = 3;
     */
    public static final int LIBRARY_REACT_VALUE = 3;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Library valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Library forNumber(int value) {
      switch (value) {
        case 0: return LIBRARY_UNSPECIFIED;
        case 1: return LIBRARY_CONFIDENCE;
        case 2: return LIBRARY_OPEN_FEATURE;
        case 3: return LIBRARY_REACT;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Library> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Library findValueByNumber(int number) {
              return Library.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.spotify.telemetry.v1.LibraryTraces.getDescriptor().getEnumTypes().get(0);
    }

    private static final Library[] VALUES = values();

    public static Library valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Library(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:confidence.telemetry.v1.LibraryTraces.Library)
  }

  /**
   * Protobuf enum {@code confidence.telemetry.v1.LibraryTraces.TraceId}
   */
  public enum TraceId
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * TRACE_ID_UNSPECIFIED = 0;
     */
    TRACE_ID_UNSPECIFIED(0),
    /**
     * TRACE_ID_RESOLVE_LATENCY = 1;
     */
    TRACE_ID_RESOLVE_LATENCY(1),
    /**
     * TRACE_ID_STALE_FLAG = 2;
     */
    TRACE_ID_STALE_FLAG(2),
    /**
     * TRACE_ID_FLAG_TYPE_MISMATCH = 3;
     */
    TRACE_ID_FLAG_TYPE_MISMATCH(3),
    /**
     * TRACE_ID_WITH_CONTEXT = 4;
     */
    TRACE_ID_WITH_CONTEXT(4),
    UNRECOGNIZED(-1),
    ;

    /**
     * TRACE_ID_UNSPECIFIED = 0;
     */
    public static final int TRACE_ID_UNSPECIFIED_VALUE = 0;
    /**
     * TRACE_ID_RESOLVE_LATENCY = 1;
     */
    public static final int TRACE_ID_RESOLVE_LATENCY_VALUE = 1;
    /**
     * TRACE_ID_STALE_FLAG = 2;
     */
    public static final int TRACE_ID_STALE_FLAG_VALUE = 2;
    /**
     * TRACE_ID_FLAG_TYPE_MISMATCH = 3;
     */
    public static final int TRACE_ID_FLAG_TYPE_MISMATCH_VALUE = 3;
    /**
     * TRACE_ID_WITH_CONTEXT = 4;
     */
    public static final int TRACE_ID_WITH_CONTEXT_VALUE = 4;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static TraceId valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static TraceId forNumber(int value) {
      switch (value) {
        case 0: return TRACE_ID_UNSPECIFIED;
        case 1: return TRACE_ID_RESOLVE_LATENCY;
        case 2: return TRACE_ID_STALE_FLAG;
        case 3: return TRACE_ID_FLAG_TYPE_MISMATCH;
        case 4: return TRACE_ID_WITH_CONTEXT;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        TraceId> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public TraceId findValueByNumber(int number) {
              return TraceId.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.spotify.telemetry.v1.LibraryTraces.getDescriptor().getEnumTypes().get(1);
    }

    private static final TraceId[] VALUES = values();

    public static TraceId valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private TraceId(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:confidence.telemetry.v1.LibraryTraces.TraceId)
  }

  public interface TraceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:confidence.telemetry.v1.LibraryTraces.Trace)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1;
     * @return The enum numeric value on the wire for id.
     */
    int getIdValue();
    /**
     * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1;
     * @return The id.
     */
    com.spotify.telemetry.v1.LibraryTraces.TraceId getId();

    /**
     * 
     * only used for timed events.
     * 
* * optional uint64 millisecond_duration = 2; * @return Whether the millisecondDuration field is set. */ boolean hasMillisecondDuration(); /** *
     * only used for timed events.
     * 
* * optional uint64 millisecond_duration = 2; * @return The millisecondDuration. */ long getMillisecondDuration(); } /** * Protobuf type {@code confidence.telemetry.v1.LibraryTraces.Trace} */ public static final class Trace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:confidence.telemetry.v1.LibraryTraces.Trace) TraceOrBuilder { private static final long serialVersionUID = 0L; // Use Trace.newBuilder() to construct. private Trace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Trace() { id_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Trace(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_Trace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_Trace_fieldAccessorTable .ensureFieldAccessorsInitialized( com.spotify.telemetry.v1.LibraryTraces.Trace.class, com.spotify.telemetry.v1.LibraryTraces.Trace.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private int id_ = 0; /** * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1; * @return The enum numeric value on the wire for id. */ @java.lang.Override public int getIdValue() { return id_; } /** * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1; * @return The id. */ @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.TraceId getId() { com.spotify.telemetry.v1.LibraryTraces.TraceId result = com.spotify.telemetry.v1.LibraryTraces.TraceId.forNumber(id_); return result == null ? com.spotify.telemetry.v1.LibraryTraces.TraceId.UNRECOGNIZED : result; } public static final int MILLISECOND_DURATION_FIELD_NUMBER = 2; private long millisecondDuration_ = 0L; /** *
     * only used for timed events.
     * 
* * optional uint64 millisecond_duration = 2; * @return Whether the millisecondDuration field is set. */ @java.lang.Override public boolean hasMillisecondDuration() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * only used for timed events.
     * 
* * optional uint64 millisecond_duration = 2; * @return The millisecondDuration. */ @java.lang.Override public long getMillisecondDuration() { return millisecondDuration_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != com.spotify.telemetry.v1.LibraryTraces.TraceId.TRACE_ID_UNSPECIFIED.getNumber()) { output.writeEnum(1, id_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt64(2, millisecondDuration_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != com.spotify.telemetry.v1.LibraryTraces.TraceId.TRACE_ID_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, id_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, millisecondDuration_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.spotify.telemetry.v1.LibraryTraces.Trace)) { return super.equals(obj); } com.spotify.telemetry.v1.LibraryTraces.Trace other = (com.spotify.telemetry.v1.LibraryTraces.Trace) obj; if (id_ != other.id_) return false; if (hasMillisecondDuration() != other.hasMillisecondDuration()) return false; if (hasMillisecondDuration()) { if (getMillisecondDuration() != other.getMillisecondDuration()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + id_; if (hasMillisecondDuration()) { hash = (37 * hash) + MILLISECOND_DURATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMillisecondDuration()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.spotify.telemetry.v1.LibraryTraces.Trace parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.telemetry.v1.LibraryTraces.Trace parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.telemetry.v1.LibraryTraces.Trace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.telemetry.v1.LibraryTraces.Trace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.telemetry.v1.LibraryTraces.Trace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.telemetry.v1.LibraryTraces.Trace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.telemetry.v1.LibraryTraces.Trace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.spotify.telemetry.v1.LibraryTraces.Trace 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 com.spotify.telemetry.v1.LibraryTraces.Trace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.spotify.telemetry.v1.LibraryTraces.Trace 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 com.spotify.telemetry.v1.LibraryTraces.Trace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.spotify.telemetry.v1.LibraryTraces.Trace 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(com.spotify.telemetry.v1.LibraryTraces.Trace 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 confidence.telemetry.v1.LibraryTraces.Trace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:confidence.telemetry.v1.LibraryTraces.Trace) com.spotify.telemetry.v1.LibraryTraces.TraceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_Trace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_Trace_fieldAccessorTable .ensureFieldAccessorsInitialized( com.spotify.telemetry.v1.LibraryTraces.Trace.class, com.spotify.telemetry.v1.LibraryTraces.Trace.Builder.class); } // Construct using com.spotify.telemetry.v1.LibraryTraces.Trace.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = 0; millisecondDuration_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_Trace_descriptor; } @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.Trace getDefaultInstanceForType() { return com.spotify.telemetry.v1.LibraryTraces.Trace.getDefaultInstance(); } @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.Trace build() { com.spotify.telemetry.v1.LibraryTraces.Trace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.Trace buildPartial() { com.spotify.telemetry.v1.LibraryTraces.Trace result = new com.spotify.telemetry.v1.LibraryTraces.Trace(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.spotify.telemetry.v1.LibraryTraces.Trace result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.millisecondDuration_ = millisecondDuration_; to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @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 com.spotify.telemetry.v1.LibraryTraces.Trace) { return mergeFrom((com.spotify.telemetry.v1.LibraryTraces.Trace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.spotify.telemetry.v1.LibraryTraces.Trace other) { if (other == com.spotify.telemetry.v1.LibraryTraces.Trace.getDefaultInstance()) return this; if (other.id_ != 0) { setIdValue(other.getIdValue()); } if (other.hasMillisecondDuration()) { setMillisecondDuration(other.getMillisecondDuration()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { id_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { millisecondDuration_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int id_ = 0; /** * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1; * @return The enum numeric value on the wire for id. */ @java.lang.Override public int getIdValue() { return id_; } /** * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1; * @param value The enum numeric value on the wire for id to set. * @return This builder for chaining. */ public Builder setIdValue(int value) { id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1; * @return The id. */ @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.TraceId getId() { com.spotify.telemetry.v1.LibraryTraces.TraceId result = com.spotify.telemetry.v1.LibraryTraces.TraceId.forNumber(id_); return result == null ? com.spotify.telemetry.v1.LibraryTraces.TraceId.UNRECOGNIZED : result; } /** * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(com.spotify.telemetry.v1.LibraryTraces.TraceId value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; id_ = value.getNumber(); onChanged(); return this; } /** * .confidence.telemetry.v1.LibraryTraces.TraceId id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = 0; onChanged(); return this; } private long millisecondDuration_ ; /** *
       * only used for timed events.
       * 
* * optional uint64 millisecond_duration = 2; * @return Whether the millisecondDuration field is set. */ @java.lang.Override public boolean hasMillisecondDuration() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * only used for timed events.
       * 
* * optional uint64 millisecond_duration = 2; * @return The millisecondDuration. */ @java.lang.Override public long getMillisecondDuration() { return millisecondDuration_; } /** *
       * only used for timed events.
       * 
* * optional uint64 millisecond_duration = 2; * @param value The millisecondDuration to set. * @return This builder for chaining. */ public Builder setMillisecondDuration(long value) { millisecondDuration_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * only used for timed events.
       * 
* * optional uint64 millisecond_duration = 2; * @return This builder for chaining. */ public Builder clearMillisecondDuration() { bitField0_ = (bitField0_ & ~0x00000002); millisecondDuration_ = 0L; 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:confidence.telemetry.v1.LibraryTraces.Trace) } // @@protoc_insertion_point(class_scope:confidence.telemetry.v1.LibraryTraces.Trace) private static final com.spotify.telemetry.v1.LibraryTraces.Trace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.spotify.telemetry.v1.LibraryTraces.Trace(); } public static com.spotify.telemetry.v1.LibraryTraces.Trace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Trace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.Trace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int LIBRARY_FIELD_NUMBER = 1; private int library_ = 0; /** * .confidence.telemetry.v1.LibraryTraces.Library library = 1; * @return The enum numeric value on the wire for library. */ @java.lang.Override public int getLibraryValue() { return library_; } /** * .confidence.telemetry.v1.LibraryTraces.Library library = 1; * @return The library. */ @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.Library getLibrary() { com.spotify.telemetry.v1.LibraryTraces.Library result = com.spotify.telemetry.v1.LibraryTraces.Library.forNumber(library_); return result == null ? com.spotify.telemetry.v1.LibraryTraces.Library.UNRECOGNIZED : result; } public static final int LIBRARY_VERSION_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object libraryVersion_ = ""; /** * string library_version = 2; * @return The libraryVersion. */ @java.lang.Override public java.lang.String getLibraryVersion() { java.lang.Object ref = libraryVersion_; 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(); libraryVersion_ = s; return s; } } /** * string library_version = 2; * @return The bytes for libraryVersion. */ @java.lang.Override public com.google.protobuf.ByteString getLibraryVersionBytes() { java.lang.Object ref = libraryVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); libraryVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRACES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List traces_; /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ @java.lang.Override public java.util.List getTracesList() { return traces_; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ @java.lang.Override public java.util.List getTracesOrBuilderList() { return traces_; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ @java.lang.Override public int getTracesCount() { return traces_.size(); } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.Trace getTraces(int index) { return traces_.get(index); } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.TraceOrBuilder getTracesOrBuilder( int index) { return traces_.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; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (library_ != com.spotify.telemetry.v1.LibraryTraces.Library.LIBRARY_UNSPECIFIED.getNumber()) { output.writeEnum(1, library_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, libraryVersion_); } for (int i = 0; i < traces_.size(); i++) { output.writeMessage(3, traces_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (library_ != com.spotify.telemetry.v1.LibraryTraces.Library.LIBRARY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, library_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(libraryVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, libraryVersion_); } for (int i = 0; i < traces_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, traces_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.spotify.telemetry.v1.LibraryTraces)) { return super.equals(obj); } com.spotify.telemetry.v1.LibraryTraces other = (com.spotify.telemetry.v1.LibraryTraces) obj; if (library_ != other.library_) return false; if (!getLibraryVersion() .equals(other.getLibraryVersion())) return false; if (!getTracesList() .equals(other.getTracesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LIBRARY_FIELD_NUMBER; hash = (53 * hash) + library_; hash = (37 * hash) + LIBRARY_VERSION_FIELD_NUMBER; hash = (53 * hash) + getLibraryVersion().hashCode(); if (getTracesCount() > 0) { hash = (37 * hash) + TRACES_FIELD_NUMBER; hash = (53 * hash) + getTracesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.spotify.telemetry.v1.LibraryTraces parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.telemetry.v1.LibraryTraces parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.telemetry.v1.LibraryTraces parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.telemetry.v1.LibraryTraces parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.telemetry.v1.LibraryTraces parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.spotify.telemetry.v1.LibraryTraces parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.spotify.telemetry.v1.LibraryTraces parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.spotify.telemetry.v1.LibraryTraces 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 com.spotify.telemetry.v1.LibraryTraces parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.spotify.telemetry.v1.LibraryTraces 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 com.spotify.telemetry.v1.LibraryTraces parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.spotify.telemetry.v1.LibraryTraces 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(com.spotify.telemetry.v1.LibraryTraces 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 confidence.telemetry.v1.LibraryTraces} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:confidence.telemetry.v1.LibraryTraces) com.spotify.telemetry.v1.LibraryTracesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_fieldAccessorTable .ensureFieldAccessorsInitialized( com.spotify.telemetry.v1.LibraryTraces.class, com.spotify.telemetry.v1.LibraryTraces.Builder.class); } // Construct using com.spotify.telemetry.v1.LibraryTraces.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; library_ = 0; libraryVersion_ = ""; if (tracesBuilder_ == null) { traces_ = java.util.Collections.emptyList(); } else { traces_ = null; tracesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.spotify.telemetry.v1.TelemetryProto.internal_static_confidence_telemetry_v1_LibraryTraces_descriptor; } @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces getDefaultInstanceForType() { return com.spotify.telemetry.v1.LibraryTraces.getDefaultInstance(); } @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces build() { com.spotify.telemetry.v1.LibraryTraces result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces buildPartial() { com.spotify.telemetry.v1.LibraryTraces result = new com.spotify.telemetry.v1.LibraryTraces(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.spotify.telemetry.v1.LibraryTraces result) { if (tracesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { traces_ = java.util.Collections.unmodifiableList(traces_); bitField0_ = (bitField0_ & ~0x00000004); } result.traces_ = traces_; } else { result.traces_ = tracesBuilder_.build(); } } private void buildPartial0(com.spotify.telemetry.v1.LibraryTraces result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.library_ = library_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.libraryVersion_ = libraryVersion_; } } @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 com.spotify.telemetry.v1.LibraryTraces) { return mergeFrom((com.spotify.telemetry.v1.LibraryTraces)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.spotify.telemetry.v1.LibraryTraces other) { if (other == com.spotify.telemetry.v1.LibraryTraces.getDefaultInstance()) return this; if (other.library_ != 0) { setLibraryValue(other.getLibraryValue()); } if (!other.getLibraryVersion().isEmpty()) { libraryVersion_ = other.libraryVersion_; bitField0_ |= 0x00000002; onChanged(); } if (tracesBuilder_ == null) { if (!other.traces_.isEmpty()) { if (traces_.isEmpty()) { traces_ = other.traces_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTracesIsMutable(); traces_.addAll(other.traces_); } onChanged(); } } else { if (!other.traces_.isEmpty()) { if (tracesBuilder_.isEmpty()) { tracesBuilder_.dispose(); tracesBuilder_ = null; traces_ = other.traces_; bitField0_ = (bitField0_ & ~0x00000004); tracesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTracesFieldBuilder() : null; } else { tracesBuilder_.addAllMessages(other.traces_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { library_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { libraryVersion_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.spotify.telemetry.v1.LibraryTraces.Trace m = input.readMessage( com.spotify.telemetry.v1.LibraryTraces.Trace.parser(), extensionRegistry); if (tracesBuilder_ == null) { ensureTracesIsMutable(); traces_.add(m); } else { tracesBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int library_ = 0; /** * .confidence.telemetry.v1.LibraryTraces.Library library = 1; * @return The enum numeric value on the wire for library. */ @java.lang.Override public int getLibraryValue() { return library_; } /** * .confidence.telemetry.v1.LibraryTraces.Library library = 1; * @param value The enum numeric value on the wire for library to set. * @return This builder for chaining. */ public Builder setLibraryValue(int value) { library_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .confidence.telemetry.v1.LibraryTraces.Library library = 1; * @return The library. */ @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces.Library getLibrary() { com.spotify.telemetry.v1.LibraryTraces.Library result = com.spotify.telemetry.v1.LibraryTraces.Library.forNumber(library_); return result == null ? com.spotify.telemetry.v1.LibraryTraces.Library.UNRECOGNIZED : result; } /** * .confidence.telemetry.v1.LibraryTraces.Library library = 1; * @param value The library to set. * @return This builder for chaining. */ public Builder setLibrary(com.spotify.telemetry.v1.LibraryTraces.Library value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; library_ = value.getNumber(); onChanged(); return this; } /** * .confidence.telemetry.v1.LibraryTraces.Library library = 1; * @return This builder for chaining. */ public Builder clearLibrary() { bitField0_ = (bitField0_ & ~0x00000001); library_ = 0; onChanged(); return this; } private java.lang.Object libraryVersion_ = ""; /** * string library_version = 2; * @return The libraryVersion. */ public java.lang.String getLibraryVersion() { java.lang.Object ref = libraryVersion_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); libraryVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * string library_version = 2; * @return The bytes for libraryVersion. */ public com.google.protobuf.ByteString getLibraryVersionBytes() { java.lang.Object ref = libraryVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); libraryVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string library_version = 2; * @param value The libraryVersion to set. * @return This builder for chaining. */ public Builder setLibraryVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } libraryVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string library_version = 2; * @return This builder for chaining. */ public Builder clearLibraryVersion() { libraryVersion_ = getDefaultInstance().getLibraryVersion(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string library_version = 2; * @param value The bytes for libraryVersion to set. * @return This builder for chaining. */ public Builder setLibraryVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); libraryVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List traces_ = java.util.Collections.emptyList(); private void ensureTracesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { traces_ = new java.util.ArrayList(traces_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.telemetry.v1.LibraryTraces.Trace, com.spotify.telemetry.v1.LibraryTraces.Trace.Builder, com.spotify.telemetry.v1.LibraryTraces.TraceOrBuilder> tracesBuilder_; /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public java.util.List getTracesList() { if (tracesBuilder_ == null) { return java.util.Collections.unmodifiableList(traces_); } else { return tracesBuilder_.getMessageList(); } } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public int getTracesCount() { if (tracesBuilder_ == null) { return traces_.size(); } else { return tracesBuilder_.getCount(); } } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public com.spotify.telemetry.v1.LibraryTraces.Trace getTraces(int index) { if (tracesBuilder_ == null) { return traces_.get(index); } else { return tracesBuilder_.getMessage(index); } } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder setTraces( int index, com.spotify.telemetry.v1.LibraryTraces.Trace value) { if (tracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTracesIsMutable(); traces_.set(index, value); onChanged(); } else { tracesBuilder_.setMessage(index, value); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder setTraces( int index, com.spotify.telemetry.v1.LibraryTraces.Trace.Builder builderForValue) { if (tracesBuilder_ == null) { ensureTracesIsMutable(); traces_.set(index, builderForValue.build()); onChanged(); } else { tracesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder addTraces(com.spotify.telemetry.v1.LibraryTraces.Trace value) { if (tracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTracesIsMutable(); traces_.add(value); onChanged(); } else { tracesBuilder_.addMessage(value); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder addTraces( int index, com.spotify.telemetry.v1.LibraryTraces.Trace value) { if (tracesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTracesIsMutable(); traces_.add(index, value); onChanged(); } else { tracesBuilder_.addMessage(index, value); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder addTraces( com.spotify.telemetry.v1.LibraryTraces.Trace.Builder builderForValue) { if (tracesBuilder_ == null) { ensureTracesIsMutable(); traces_.add(builderForValue.build()); onChanged(); } else { tracesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder addTraces( int index, com.spotify.telemetry.v1.LibraryTraces.Trace.Builder builderForValue) { if (tracesBuilder_ == null) { ensureTracesIsMutable(); traces_.add(index, builderForValue.build()); onChanged(); } else { tracesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder addAllTraces( java.lang.Iterable values) { if (tracesBuilder_ == null) { ensureTracesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, traces_); onChanged(); } else { tracesBuilder_.addAllMessages(values); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder clearTraces() { if (tracesBuilder_ == null) { traces_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { tracesBuilder_.clear(); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public Builder removeTraces(int index) { if (tracesBuilder_ == null) { ensureTracesIsMutable(); traces_.remove(index); onChanged(); } else { tracesBuilder_.remove(index); } return this; } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public com.spotify.telemetry.v1.LibraryTraces.Trace.Builder getTracesBuilder( int index) { return getTracesFieldBuilder().getBuilder(index); } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public com.spotify.telemetry.v1.LibraryTraces.TraceOrBuilder getTracesOrBuilder( int index) { if (tracesBuilder_ == null) { return traces_.get(index); } else { return tracesBuilder_.getMessageOrBuilder(index); } } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public java.util.List getTracesOrBuilderList() { if (tracesBuilder_ != null) { return tracesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(traces_); } } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public com.spotify.telemetry.v1.LibraryTraces.Trace.Builder addTracesBuilder() { return getTracesFieldBuilder().addBuilder( com.spotify.telemetry.v1.LibraryTraces.Trace.getDefaultInstance()); } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public com.spotify.telemetry.v1.LibraryTraces.Trace.Builder addTracesBuilder( int index) { return getTracesFieldBuilder().addBuilder( index, com.spotify.telemetry.v1.LibraryTraces.Trace.getDefaultInstance()); } /** * repeated .confidence.telemetry.v1.LibraryTraces.Trace traces = 3; */ public java.util.List getTracesBuilderList() { return getTracesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.telemetry.v1.LibraryTraces.Trace, com.spotify.telemetry.v1.LibraryTraces.Trace.Builder, com.spotify.telemetry.v1.LibraryTraces.TraceOrBuilder> getTracesFieldBuilder() { if (tracesBuilder_ == null) { tracesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.spotify.telemetry.v1.LibraryTraces.Trace, com.spotify.telemetry.v1.LibraryTraces.Trace.Builder, com.spotify.telemetry.v1.LibraryTraces.TraceOrBuilder>( traces_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); traces_ = null; } return tracesBuilder_; } @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:confidence.telemetry.v1.LibraryTraces) } // @@protoc_insertion_point(class_scope:confidence.telemetry.v1.LibraryTraces) private static final com.spotify.telemetry.v1.LibraryTraces DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.spotify.telemetry.v1.LibraryTraces(); } public static com.spotify.telemetry.v1.LibraryTraces getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LibraryTraces parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.spotify.telemetry.v1.LibraryTraces getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy