Class ExportMetricsServiceRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportMetricsServiceRequest.Builder>
io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ExportMetricsServiceRequestOrBuilder, Cloneable
Enclosing class:
ExportMetricsServiceRequest

public static final class ExportMetricsServiceRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportMetricsServiceRequest.Builder> implements ExportMetricsServiceRequestOrBuilder
Protobuf type opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExportMetricsServiceRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ExportMetricsServiceRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ExportMetricsServiceRequest.Builder>
    • getDefaultInstanceForType

      public ExportMetricsServiceRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ExportMetricsServiceRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ExportMetricsServiceRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportMetricsServiceRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ExportMetricsServiceRequest.Builder>
    • mergeFrom

      public ExportMetricsServiceRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExportMetricsServiceRequest.Builder>
      Throws:
      IOException
    • getResourceMetricsList

      public List<ResourceMetrics> getResourceMetricsList()
       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;
      Specified by:
      getResourceMetricsList in interface ExportMetricsServiceRequestOrBuilder
    • getResourceMetricsCount

      public int getResourceMetricsCount()
       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;
      Specified by:
      getResourceMetricsCount in interface ExportMetricsServiceRequestOrBuilder
    • getResourceMetrics

      public ResourceMetrics getResourceMetrics(int 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;
      Specified by:
      getResourceMetrics in interface ExportMetricsServiceRequestOrBuilder
    • setResourceMetrics

      public ExportMetricsServiceRequest.Builder setResourceMetrics(int index, ResourceMetrics value)
       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;
    • setResourceMetrics

      public ExportMetricsServiceRequest.Builder setResourceMetrics(int index, ResourceMetrics.Builder builderForValue)
       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;
    • addResourceMetrics

      public ExportMetricsServiceRequest.Builder addResourceMetrics(ResourceMetrics value)
       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;
    • addResourceMetrics

      public ExportMetricsServiceRequest.Builder addResourceMetrics(int index, ResourceMetrics value)
       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;
    • addResourceMetrics

      public ExportMetricsServiceRequest.Builder addResourceMetrics(ResourceMetrics.Builder builderForValue)
       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;
    • addResourceMetrics

      public ExportMetricsServiceRequest.Builder addResourceMetrics(int index, ResourceMetrics.Builder builderForValue)
       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;
    • addAllResourceMetrics

      public ExportMetricsServiceRequest.Builder addAllResourceMetrics(Iterable<? extends ResourceMetrics> values)
       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;
    • clearResourceMetrics

      public ExportMetricsServiceRequest.Builder clearResourceMetrics()
       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;
    • removeResourceMetrics

      public ExportMetricsServiceRequest.Builder removeResourceMetrics(int 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;
    • getResourceMetricsBuilder

      public ResourceMetrics.Builder getResourceMetricsBuilder(int 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;
    • getResourceMetricsOrBuilder

      public ResourceMetricsOrBuilder getResourceMetricsOrBuilder(int 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;
      Specified by:
      getResourceMetricsOrBuilder in interface ExportMetricsServiceRequestOrBuilder
    • getResourceMetricsOrBuilderList

      public List<? extends ResourceMetricsOrBuilder> getResourceMetricsOrBuilderList()
       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;
      Specified by:
      getResourceMetricsOrBuilderList in interface ExportMetricsServiceRequestOrBuilder
    • addResourceMetricsBuilder

      public ResourceMetrics.Builder addResourceMetricsBuilder()
       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;
    • addResourceMetricsBuilder

      public ResourceMetrics.Builder addResourceMetricsBuilder(int 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;
    • getResourceMetricsBuilderList

      public List<ResourceMetrics.Builder> getResourceMetricsBuilderList()
       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;