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

io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opentelemetry/proto/collector/metrics/v1/metrics_service.proto

package io.opentelemetry.proto.collector.metrics.v1;

/**
 * Protobuf type {@code opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest}
 */
public final class ExportMetricsServiceRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)
    ExportMetricsServiceRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ExportMetricsServiceRequest.newBuilder() to construct.
  private ExportMetricsServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ExportMetricsServiceRequest() {
    resourceMetrics_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ExportMetricsServiceRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              resourceMetrics_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            resourceMetrics_.add(
                input.readMessage(io.opentelemetry.proto.metrics.v1.ResourceMetrics.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        resourceMetrics_ = java.util.Collections.unmodifiableList(resourceMetrics_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.internal_static_opentelemetry_proto_collector_metrics_v1_ExportMetricsServiceRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.internal_static_opentelemetry_proto_collector_metrics_v1_ExportMetricsServiceRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.class, io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.Builder.class);
  }

  public static final int RESOURCE_METRICS_FIELD_NUMBER = 1;
  private java.util.List resourceMetrics_;
  /**
   * 
   * An array of ResourceMetrics.
   * For data coming from a single resource this array will typically contain one
   * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
   * data from multiple origins typically batch the data before forwarding further and
   * in that case this array will contain multiple elements.
   * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ @java.lang.Override public java.util.List getResourceMetricsList() { return resourceMetrics_; } /** *
   * An array of ResourceMetrics.
   * For data coming from a single resource this array will typically contain one
   * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
   * data from multiple origins typically batch the data before forwarding further and
   * in that case this array will contain multiple elements.
   * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ @java.lang.Override public java.util.List getResourceMetricsOrBuilderList() { return resourceMetrics_; } /** *
   * An array of ResourceMetrics.
   * For data coming from a single resource this array will typically contain one
   * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
   * data from multiple origins typically batch the data before forwarding further and
   * in that case this array will contain multiple elements.
   * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ @java.lang.Override public int getResourceMetricsCount() { return resourceMetrics_.size(); } /** *
   * An array of ResourceMetrics.
   * For data coming from a single resource this array will typically contain one
   * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
   * data from multiple origins typically batch the data before forwarding further and
   * in that case this array will contain multiple elements.
   * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ @java.lang.Override public io.opentelemetry.proto.metrics.v1.ResourceMetrics getResourceMetrics(int index) { return resourceMetrics_.get(index); } /** *
   * An array of ResourceMetrics.
   * For data coming from a single resource this array will typically contain one
   * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
   * data from multiple origins typically batch the data before forwarding further and
   * in that case this array will contain multiple elements.
   * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ @java.lang.Override public io.opentelemetry.proto.metrics.v1.ResourceMetricsOrBuilder getResourceMetricsOrBuilder( int index) { return resourceMetrics_.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 { for (int i = 0; i < resourceMetrics_.size(); i++) { output.writeMessage(1, resourceMetrics_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < resourceMetrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, resourceMetrics_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)) { return super.equals(obj); } io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest other = (io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest) obj; if (!getResourceMetricsList() .equals(other.getResourceMetricsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResourceMetricsCount() > 0) { hash = (37 * hash) + RESOURCE_METRICS_FIELD_NUMBER; hash = (53 * hash) + getResourceMetricsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest 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 io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest 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 io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest 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(io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest 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 opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest) io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.internal_static_opentelemetry_proto_collector_metrics_v1_ExportMetricsServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.internal_static_opentelemetry_proto_collector_metrics_v1_ExportMetricsServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.class, io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.Builder.class); } // Construct using io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourceMetricsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (resourceMetricsBuilder_ == null) { resourceMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourceMetricsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opentelemetry.proto.collector.metrics.v1.MetricsServiceProto.internal_static_opentelemetry_proto_collector_metrics_v1_ExportMetricsServiceRequest_descriptor; } @java.lang.Override public io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest getDefaultInstanceForType() { return io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.getDefaultInstance(); } @java.lang.Override public io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest build() { io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest buildPartial() { io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest result = new io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest(this); int from_bitField0_ = bitField0_; if (resourceMetricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resourceMetrics_ = java.util.Collections.unmodifiableList(resourceMetrics_); bitField0_ = (bitField0_ & ~0x00000001); } result.resourceMetrics_ = resourceMetrics_; } else { result.resourceMetrics_ = resourceMetricsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest) { return mergeFrom((io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest other) { if (other == io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.getDefaultInstance()) return this; if (resourceMetricsBuilder_ == null) { if (!other.resourceMetrics_.isEmpty()) { if (resourceMetrics_.isEmpty()) { resourceMetrics_ = other.resourceMetrics_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourceMetricsIsMutable(); resourceMetrics_.addAll(other.resourceMetrics_); } onChanged(); } } else { if (!other.resourceMetrics_.isEmpty()) { if (resourceMetricsBuilder_.isEmpty()) { resourceMetricsBuilder_.dispose(); resourceMetricsBuilder_ = null; resourceMetrics_ = other.resourceMetrics_; bitField0_ = (bitField0_ & ~0x00000001); resourceMetricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourceMetricsFieldBuilder() : null; } else { resourceMetricsBuilder_.addAllMessages(other.resourceMetrics_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List resourceMetrics_ = java.util.Collections.emptyList(); private void ensureResourceMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceMetrics_ = new java.util.ArrayList(resourceMetrics_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.ResourceMetrics, io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder, io.opentelemetry.proto.metrics.v1.ResourceMetricsOrBuilder> resourceMetricsBuilder_; /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public java.util.List getResourceMetricsList() { if (resourceMetricsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceMetrics_); } else { return resourceMetricsBuilder_.getMessageList(); } } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public int getResourceMetricsCount() { if (resourceMetricsBuilder_ == null) { return resourceMetrics_.size(); } else { return resourceMetricsBuilder_.getCount(); } } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public io.opentelemetry.proto.metrics.v1.ResourceMetrics getResourceMetrics(int index) { if (resourceMetricsBuilder_ == null) { return resourceMetrics_.get(index); } else { return resourceMetricsBuilder_.getMessage(index); } } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder setResourceMetrics( int index, io.opentelemetry.proto.metrics.v1.ResourceMetrics value) { if (resourceMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceMetricsIsMutable(); resourceMetrics_.set(index, value); onChanged(); } else { resourceMetricsBuilder_.setMessage(index, value); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder setResourceMetrics( int index, io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder builderForValue) { if (resourceMetricsBuilder_ == null) { ensureResourceMetricsIsMutable(); resourceMetrics_.set(index, builderForValue.build()); onChanged(); } else { resourceMetricsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder addResourceMetrics(io.opentelemetry.proto.metrics.v1.ResourceMetrics value) { if (resourceMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceMetricsIsMutable(); resourceMetrics_.add(value); onChanged(); } else { resourceMetricsBuilder_.addMessage(value); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder addResourceMetrics( int index, io.opentelemetry.proto.metrics.v1.ResourceMetrics value) { if (resourceMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceMetricsIsMutable(); resourceMetrics_.add(index, value); onChanged(); } else { resourceMetricsBuilder_.addMessage(index, value); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder addResourceMetrics( io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder builderForValue) { if (resourceMetricsBuilder_ == null) { ensureResourceMetricsIsMutable(); resourceMetrics_.add(builderForValue.build()); onChanged(); } else { resourceMetricsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder addResourceMetrics( int index, io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder builderForValue) { if (resourceMetricsBuilder_ == null) { ensureResourceMetricsIsMutable(); resourceMetrics_.add(index, builderForValue.build()); onChanged(); } else { resourceMetricsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder addAllResourceMetrics( java.lang.Iterable values) { if (resourceMetricsBuilder_ == null) { ensureResourceMetricsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resourceMetrics_); onChanged(); } else { resourceMetricsBuilder_.addAllMessages(values); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder clearResourceMetrics() { if (resourceMetricsBuilder_ == null) { resourceMetrics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourceMetricsBuilder_.clear(); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public Builder removeResourceMetrics(int index) { if (resourceMetricsBuilder_ == null) { ensureResourceMetricsIsMutable(); resourceMetrics_.remove(index); onChanged(); } else { resourceMetricsBuilder_.remove(index); } return this; } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder getResourceMetricsBuilder( int index) { return getResourceMetricsFieldBuilder().getBuilder(index); } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public io.opentelemetry.proto.metrics.v1.ResourceMetricsOrBuilder getResourceMetricsOrBuilder( int index) { if (resourceMetricsBuilder_ == null) { return resourceMetrics_.get(index); } else { return resourceMetricsBuilder_.getMessageOrBuilder(index); } } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public java.util.List getResourceMetricsOrBuilderList() { if (resourceMetricsBuilder_ != null) { return resourceMetricsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resourceMetrics_); } } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder addResourceMetricsBuilder() { return getResourceMetricsFieldBuilder().addBuilder( io.opentelemetry.proto.metrics.v1.ResourceMetrics.getDefaultInstance()); } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder addResourceMetricsBuilder( int index) { return getResourceMetricsFieldBuilder().addBuilder( index, io.opentelemetry.proto.metrics.v1.ResourceMetrics.getDefaultInstance()); } /** *
     * An array of ResourceMetrics.
     * For data coming from a single resource this array will typically contain one
     * element. Intermediary nodes (such as OpenTelemetry Collector) that receive
     * data from multiple origins typically batch the data before forwarding further and
     * in that case this array will contain multiple elements.
     * 
* * repeated .opentelemetry.proto.metrics.v1.ResourceMetrics resource_metrics = 1; */ public java.util.List getResourceMetricsBuilderList() { return getResourceMetricsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.ResourceMetrics, io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder, io.opentelemetry.proto.metrics.v1.ResourceMetricsOrBuilder> getResourceMetricsFieldBuilder() { if (resourceMetricsBuilder_ == null) { resourceMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.ResourceMetrics, io.opentelemetry.proto.metrics.v1.ResourceMetrics.Builder, io.opentelemetry.proto.metrics.v1.ResourceMetricsOrBuilder>( resourceMetrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resourceMetrics_ = null; } return resourceMetricsBuilder_; } @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:opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest) private static final io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest(); } public static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExportMetricsServiceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExportMetricsServiceRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy