java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>
io.envoyproxy.envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SinkConfigOrBuilder, Cloneable
Enclosing class:
SinkConfig

public static final class SinkConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder> implements SinkConfigOrBuilder
 [#next-free-field: 9]
 
Protobuf type envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig
  • Method Details

    • getDescriptor

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

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

      public SinkConfig.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.GeneratedMessageV3.Builder<SinkConfig.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.GeneratedMessageV3.Builder<SinkConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public SinkConfig.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>
    • setField

      public SinkConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>
    • clearField

      public SinkConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>
    • clearOneof

      public SinkConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>
    • setRepeatedField

      public SinkConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>
    • addRepeatedField

      public SinkConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>
    • mergeFrom

      public SinkConfig.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<SinkConfig.Builder>
    • mergeFrom

      public SinkConfig.Builder mergeFrom(SinkConfig other)
    • isInitialized

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

      public SinkConfig.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<SinkConfig.Builder>
      Throws:
      IOException
    • getProtocolSpecifierCase

      public SinkConfig.ProtocolSpecifierCase getProtocolSpecifierCase()
      Specified by:
      getProtocolSpecifierCase in interface SinkConfigOrBuilder
    • clearProtocolSpecifier

      public SinkConfig.Builder clearProtocolSpecifier()
    • hasGrpcService

      public boolean hasGrpcService()
       The upstream gRPC cluster that implements the OTLP/gRPC collector.
       
      .envoy.config.core.v3.GrpcService grpc_service = 1 [(.validate.rules) = { ... }
      Specified by:
      hasGrpcService in interface SinkConfigOrBuilder
      Returns:
      Whether the grpcService field is set.
    • getGrpcService

      public GrpcService getGrpcService()
       The upstream gRPC cluster that implements the OTLP/gRPC collector.
       
      .envoy.config.core.v3.GrpcService grpc_service = 1 [(.validate.rules) = { ... }
      Specified by:
      getGrpcService in interface SinkConfigOrBuilder
      Returns:
      The grpcService.
    • setGrpcService

      public SinkConfig.Builder setGrpcService(GrpcService value)
       The upstream gRPC cluster that implements the OTLP/gRPC collector.
       
      .envoy.config.core.v3.GrpcService grpc_service = 1 [(.validate.rules) = { ... }
    • setGrpcService

      public SinkConfig.Builder setGrpcService(GrpcService.Builder builderForValue)
       The upstream gRPC cluster that implements the OTLP/gRPC collector.
       
      .envoy.config.core.v3.GrpcService grpc_service = 1 [(.validate.rules) = { ... }
    • mergeGrpcService

      public SinkConfig.Builder mergeGrpcService(GrpcService value)
       The upstream gRPC cluster that implements the OTLP/gRPC collector.
       
      .envoy.config.core.v3.GrpcService grpc_service = 1 [(.validate.rules) = { ... }
    • clearGrpcService

      public SinkConfig.Builder clearGrpcService()
       The upstream gRPC cluster that implements the OTLP/gRPC collector.
       
      .envoy.config.core.v3.GrpcService grpc_service = 1 [(.validate.rules) = { ... }
    • getGrpcServiceBuilder

      public GrpcService.Builder getGrpcServiceBuilder()
       The upstream gRPC cluster that implements the OTLP/gRPC collector.
       
      .envoy.config.core.v3.GrpcService grpc_service = 1 [(.validate.rules) = { ... }
    • getGrpcServiceOrBuilder

      public GrpcServiceOrBuilder getGrpcServiceOrBuilder()
       The upstream gRPC cluster that implements the OTLP/gRPC collector.
       
      .envoy.config.core.v3.GrpcService grpc_service = 1 [(.validate.rules) = { ... }
      Specified by:
      getGrpcServiceOrBuilder in interface SinkConfigOrBuilder
    • getResourceDetectorsList

      public List<TypedExtensionConfig> getResourceDetectorsList()
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
      Specified by:
      getResourceDetectorsList in interface SinkConfigOrBuilder
    • getResourceDetectorsCount

      public int getResourceDetectorsCount()
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
      Specified by:
      getResourceDetectorsCount in interface SinkConfigOrBuilder
    • getResourceDetectors

      public TypedExtensionConfig getResourceDetectors(int index)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
      Specified by:
      getResourceDetectors in interface SinkConfigOrBuilder
    • setResourceDetectors

      public SinkConfig.Builder setResourceDetectors(int index, TypedExtensionConfig value)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • setResourceDetectors

      public SinkConfig.Builder setResourceDetectors(int index, TypedExtensionConfig.Builder builderForValue)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • addResourceDetectors

      public SinkConfig.Builder addResourceDetectors(TypedExtensionConfig value)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • addResourceDetectors

      public SinkConfig.Builder addResourceDetectors(int index, TypedExtensionConfig value)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • addResourceDetectors

      public SinkConfig.Builder addResourceDetectors(TypedExtensionConfig.Builder builderForValue)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • addResourceDetectors

      public SinkConfig.Builder addResourceDetectors(int index, TypedExtensionConfig.Builder builderForValue)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • addAllResourceDetectors

      public SinkConfig.Builder addAllResourceDetectors(Iterable<? extends TypedExtensionConfig> values)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • clearResourceDetectors

      public SinkConfig.Builder clearResourceDetectors()
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • removeResourceDetectors

      public SinkConfig.Builder removeResourceDetectors(int index)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • getResourceDetectorsBuilder

      public TypedExtensionConfig.Builder getResourceDetectorsBuilder(int index)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • getResourceDetectorsOrBuilder

      public TypedExtensionConfigOrBuilder getResourceDetectorsOrBuilder(int index)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
      Specified by:
      getResourceDetectorsOrBuilder in interface SinkConfigOrBuilder
    • getResourceDetectorsOrBuilderList

      public List<? extends TypedExtensionConfigOrBuilder> getResourceDetectorsOrBuilderList()
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
      Specified by:
      getResourceDetectorsOrBuilderList in interface SinkConfigOrBuilder
    • addResourceDetectorsBuilder

      public TypedExtensionConfig.Builder addResourceDetectorsBuilder()
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • addResourceDetectorsBuilder

      public TypedExtensionConfig.Builder addResourceDetectorsBuilder(int index)
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • getResourceDetectorsBuilderList

      public List<TypedExtensionConfig.Builder> getResourceDetectorsBuilderList()
       Attributes to be associated with the resource in the OTLP message.
       [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
       
      repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 7;
    • getReportCountersAsDeltas

      public boolean getReportCountersAsDeltas()
       If set to true, counters will be emitted as deltas, and the OTLP message will have
       ``AGGREGATION_TEMPORALITY_DELTA`` set as AggregationTemporality.
       
      bool report_counters_as_deltas = 2;
      Specified by:
      getReportCountersAsDeltas in interface SinkConfigOrBuilder
      Returns:
      The reportCountersAsDeltas.
    • setReportCountersAsDeltas

      public SinkConfig.Builder setReportCountersAsDeltas(boolean value)
       If set to true, counters will be emitted as deltas, and the OTLP message will have
       ``AGGREGATION_TEMPORALITY_DELTA`` set as AggregationTemporality.
       
      bool report_counters_as_deltas = 2;
      Parameters:
      value - The reportCountersAsDeltas to set.
      Returns:
      This builder for chaining.
    • clearReportCountersAsDeltas

      public SinkConfig.Builder clearReportCountersAsDeltas()
       If set to true, counters will be emitted as deltas, and the OTLP message will have
       ``AGGREGATION_TEMPORALITY_DELTA`` set as AggregationTemporality.
       
      bool report_counters_as_deltas = 2;
      Returns:
      This builder for chaining.
    • getReportHistogramsAsDeltas

      public boolean getReportHistogramsAsDeltas()
       If set to true, histograms will be emitted as deltas, and the OTLP message will have
       ``AGGREGATION_TEMPORALITY_DELTA`` set as AggregationTemporality.
       
      bool report_histograms_as_deltas = 3;
      Specified by:
      getReportHistogramsAsDeltas in interface SinkConfigOrBuilder
      Returns:
      The reportHistogramsAsDeltas.
    • setReportHistogramsAsDeltas

      public SinkConfig.Builder setReportHistogramsAsDeltas(boolean value)
       If set to true, histograms will be emitted as deltas, and the OTLP message will have
       ``AGGREGATION_TEMPORALITY_DELTA`` set as AggregationTemporality.
       
      bool report_histograms_as_deltas = 3;
      Parameters:
      value - The reportHistogramsAsDeltas to set.
      Returns:
      This builder for chaining.
    • clearReportHistogramsAsDeltas

      public SinkConfig.Builder clearReportHistogramsAsDeltas()
       If set to true, histograms will be emitted as deltas, and the OTLP message will have
       ``AGGREGATION_TEMPORALITY_DELTA`` set as AggregationTemporality.
       
      bool report_histograms_as_deltas = 3;
      Returns:
      This builder for chaining.
    • hasEmitTagsAsAttributes

      public boolean hasEmitTagsAsAttributes()
       If set to true, metrics will have their tags emitted as OTLP attributes, which may
       contain values used by the tag extractor or additional tags added during stats creation.
       Otherwise, no attributes will be associated with the export message. Default value is true.
       
      .google.protobuf.BoolValue emit_tags_as_attributes = 4;
      Specified by:
      hasEmitTagsAsAttributes in interface SinkConfigOrBuilder
      Returns:
      Whether the emitTagsAsAttributes field is set.
    • getEmitTagsAsAttributes

      public com.google.protobuf.BoolValue getEmitTagsAsAttributes()
       If set to true, metrics will have their tags emitted as OTLP attributes, which may
       contain values used by the tag extractor or additional tags added during stats creation.
       Otherwise, no attributes will be associated with the export message. Default value is true.
       
      .google.protobuf.BoolValue emit_tags_as_attributes = 4;
      Specified by:
      getEmitTagsAsAttributes in interface SinkConfigOrBuilder
      Returns:
      The emitTagsAsAttributes.
    • setEmitTagsAsAttributes

      public SinkConfig.Builder setEmitTagsAsAttributes(com.google.protobuf.BoolValue value)
       If set to true, metrics will have their tags emitted as OTLP attributes, which may
       contain values used by the tag extractor or additional tags added during stats creation.
       Otherwise, no attributes will be associated with the export message. Default value is true.
       
      .google.protobuf.BoolValue emit_tags_as_attributes = 4;
    • setEmitTagsAsAttributes

      public SinkConfig.Builder setEmitTagsAsAttributes(com.google.protobuf.BoolValue.Builder builderForValue)
       If set to true, metrics will have their tags emitted as OTLP attributes, which may
       contain values used by the tag extractor or additional tags added during stats creation.
       Otherwise, no attributes will be associated with the export message. Default value is true.
       
      .google.protobuf.BoolValue emit_tags_as_attributes = 4;
    • mergeEmitTagsAsAttributes

      public SinkConfig.Builder mergeEmitTagsAsAttributes(com.google.protobuf.BoolValue value)
       If set to true, metrics will have their tags emitted as OTLP attributes, which may
       contain values used by the tag extractor or additional tags added during stats creation.
       Otherwise, no attributes will be associated with the export message. Default value is true.
       
      .google.protobuf.BoolValue emit_tags_as_attributes = 4;
    • clearEmitTagsAsAttributes

      public SinkConfig.Builder clearEmitTagsAsAttributes()
       If set to true, metrics will have their tags emitted as OTLP attributes, which may
       contain values used by the tag extractor or additional tags added during stats creation.
       Otherwise, no attributes will be associated with the export message. Default value is true.
       
      .google.protobuf.BoolValue emit_tags_as_attributes = 4;
    • getEmitTagsAsAttributesBuilder

      public com.google.protobuf.BoolValue.Builder getEmitTagsAsAttributesBuilder()
       If set to true, metrics will have their tags emitted as OTLP attributes, which may
       contain values used by the tag extractor or additional tags added during stats creation.
       Otherwise, no attributes will be associated with the export message. Default value is true.
       
      .google.protobuf.BoolValue emit_tags_as_attributes = 4;
    • getEmitTagsAsAttributesOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getEmitTagsAsAttributesOrBuilder()
       If set to true, metrics will have their tags emitted as OTLP attributes, which may
       contain values used by the tag extractor or additional tags added during stats creation.
       Otherwise, no attributes will be associated with the export message. Default value is true.
       
      .google.protobuf.BoolValue emit_tags_as_attributes = 4;
      Specified by:
      getEmitTagsAsAttributesOrBuilder in interface SinkConfigOrBuilder
    • hasUseTagExtractedName

      public boolean hasUseTagExtractedName()
       If set to true, metric names will be represented as the tag extracted name instead
       of the full metric name. Default value is true.
       
      .google.protobuf.BoolValue use_tag_extracted_name = 5;
      Specified by:
      hasUseTagExtractedName in interface SinkConfigOrBuilder
      Returns:
      Whether the useTagExtractedName field is set.
    • getUseTagExtractedName

      public com.google.protobuf.BoolValue getUseTagExtractedName()
       If set to true, metric names will be represented as the tag extracted name instead
       of the full metric name. Default value is true.
       
      .google.protobuf.BoolValue use_tag_extracted_name = 5;
      Specified by:
      getUseTagExtractedName in interface SinkConfigOrBuilder
      Returns:
      The useTagExtractedName.
    • setUseTagExtractedName

      public SinkConfig.Builder setUseTagExtractedName(com.google.protobuf.BoolValue value)
       If set to true, metric names will be represented as the tag extracted name instead
       of the full metric name. Default value is true.
       
      .google.protobuf.BoolValue use_tag_extracted_name = 5;
    • setUseTagExtractedName

      public SinkConfig.Builder setUseTagExtractedName(com.google.protobuf.BoolValue.Builder builderForValue)
       If set to true, metric names will be represented as the tag extracted name instead
       of the full metric name. Default value is true.
       
      .google.protobuf.BoolValue use_tag_extracted_name = 5;
    • mergeUseTagExtractedName

      public SinkConfig.Builder mergeUseTagExtractedName(com.google.protobuf.BoolValue value)
       If set to true, metric names will be represented as the tag extracted name instead
       of the full metric name. Default value is true.
       
      .google.protobuf.BoolValue use_tag_extracted_name = 5;
    • clearUseTagExtractedName

      public SinkConfig.Builder clearUseTagExtractedName()
       If set to true, metric names will be represented as the tag extracted name instead
       of the full metric name. Default value is true.
       
      .google.protobuf.BoolValue use_tag_extracted_name = 5;
    • getUseTagExtractedNameBuilder

      public com.google.protobuf.BoolValue.Builder getUseTagExtractedNameBuilder()
       If set to true, metric names will be represented as the tag extracted name instead
       of the full metric name. Default value is true.
       
      .google.protobuf.BoolValue use_tag_extracted_name = 5;
    • getUseTagExtractedNameOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getUseTagExtractedNameOrBuilder()
       If set to true, metric names will be represented as the tag extracted name instead
       of the full metric name. Default value is true.
       
      .google.protobuf.BoolValue use_tag_extracted_name = 5;
      Specified by:
      getUseTagExtractedNameOrBuilder in interface SinkConfigOrBuilder
    • getPrefix

      public String getPrefix()
       If set, emitted stats names will be prepended with a prefix, so full stat name will be
       <prefix>.<stats_name>. For example, if the stat name is "foo.bar" and prefix is
       "pre", the full stat name will be "pre.foo.bar". If this field is not set, there is no
       prefix added. According to the example, the full stat name will remain "foo.bar".
       
      string prefix = 6;
      Specified by:
      getPrefix in interface SinkConfigOrBuilder
      Returns:
      The prefix.
    • getPrefixBytes

      public com.google.protobuf.ByteString getPrefixBytes()
       If set, emitted stats names will be prepended with a prefix, so full stat name will be
       <prefix>.<stats_name>. For example, if the stat name is "foo.bar" and prefix is
       "pre", the full stat name will be "pre.foo.bar". If this field is not set, there is no
       prefix added. According to the example, the full stat name will remain "foo.bar".
       
      string prefix = 6;
      Specified by:
      getPrefixBytes in interface SinkConfigOrBuilder
      Returns:
      The bytes for prefix.
    • setPrefix

      public SinkConfig.Builder setPrefix(String value)
       If set, emitted stats names will be prepended with a prefix, so full stat name will be
       <prefix>.<stats_name>. For example, if the stat name is "foo.bar" and prefix is
       "pre", the full stat name will be "pre.foo.bar". If this field is not set, there is no
       prefix added. According to the example, the full stat name will remain "foo.bar".
       
      string prefix = 6;
      Parameters:
      value - The prefix to set.
      Returns:
      This builder for chaining.
    • clearPrefix

      public SinkConfig.Builder clearPrefix()
       If set, emitted stats names will be prepended with a prefix, so full stat name will be
       <prefix>.<stats_name>. For example, if the stat name is "foo.bar" and prefix is
       "pre", the full stat name will be "pre.foo.bar". If this field is not set, there is no
       prefix added. According to the example, the full stat name will remain "foo.bar".
       
      string prefix = 6;
      Returns:
      This builder for chaining.
    • setPrefixBytes

      public SinkConfig.Builder setPrefixBytes(com.google.protobuf.ByteString value)
       If set, emitted stats names will be prepended with a prefix, so full stat name will be
       <prefix>.<stats_name>. For example, if the stat name is "foo.bar" and prefix is
       "pre", the full stat name will be "pre.foo.bar". If this field is not set, there is no
       prefix added. According to the example, the full stat name will remain "foo.bar".
       
      string prefix = 6;
      Parameters:
      value - The bytes for prefix to set.
      Returns:
      This builder for chaining.
    • hasCustomMetricConversions

      public boolean hasCustomMetricConversions()
       The custom conversion from a stat to a metric. Currently, the only supported input is
       ``envoy.extensions.matching.common_inputs.stats.v3.StatFullNameMatchInput``.
       The supported actions are
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.DropAction``.
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.ConversionAction``.
       If stats are not matched, they will be directly converted to OTLP metrics as usual.
       
      .xds.type.matcher.v3.Matcher custom_metric_conversions = 8;
      Specified by:
      hasCustomMetricConversions in interface SinkConfigOrBuilder
      Returns:
      Whether the customMetricConversions field is set.
    • getCustomMetricConversions

      public Matcher getCustomMetricConversions()
       The custom conversion from a stat to a metric. Currently, the only supported input is
       ``envoy.extensions.matching.common_inputs.stats.v3.StatFullNameMatchInput``.
       The supported actions are
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.DropAction``.
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.ConversionAction``.
       If stats are not matched, they will be directly converted to OTLP metrics as usual.
       
      .xds.type.matcher.v3.Matcher custom_metric_conversions = 8;
      Specified by:
      getCustomMetricConversions in interface SinkConfigOrBuilder
      Returns:
      The customMetricConversions.
    • setCustomMetricConversions

      public SinkConfig.Builder setCustomMetricConversions(Matcher value)
       The custom conversion from a stat to a metric. Currently, the only supported input is
       ``envoy.extensions.matching.common_inputs.stats.v3.StatFullNameMatchInput``.
       The supported actions are
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.DropAction``.
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.ConversionAction``.
       If stats are not matched, they will be directly converted to OTLP metrics as usual.
       
      .xds.type.matcher.v3.Matcher custom_metric_conversions = 8;
    • setCustomMetricConversions

      public SinkConfig.Builder setCustomMetricConversions(Matcher.Builder builderForValue)
       The custom conversion from a stat to a metric. Currently, the only supported input is
       ``envoy.extensions.matching.common_inputs.stats.v3.StatFullNameMatchInput``.
       The supported actions are
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.DropAction``.
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.ConversionAction``.
       If stats are not matched, they will be directly converted to OTLP metrics as usual.
       
      .xds.type.matcher.v3.Matcher custom_metric_conversions = 8;
    • mergeCustomMetricConversions

      public SinkConfig.Builder mergeCustomMetricConversions(Matcher value)
       The custom conversion from a stat to a metric. Currently, the only supported input is
       ``envoy.extensions.matching.common_inputs.stats.v3.StatFullNameMatchInput``.
       The supported actions are
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.DropAction``.
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.ConversionAction``.
       If stats are not matched, they will be directly converted to OTLP metrics as usual.
       
      .xds.type.matcher.v3.Matcher custom_metric_conversions = 8;
    • clearCustomMetricConversions

      public SinkConfig.Builder clearCustomMetricConversions()
       The custom conversion from a stat to a metric. Currently, the only supported input is
       ``envoy.extensions.matching.common_inputs.stats.v3.StatFullNameMatchInput``.
       The supported actions are
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.DropAction``.
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.ConversionAction``.
       If stats are not matched, they will be directly converted to OTLP metrics as usual.
       
      .xds.type.matcher.v3.Matcher custom_metric_conversions = 8;
    • getCustomMetricConversionsBuilder

      public Matcher.Builder getCustomMetricConversionsBuilder()
       The custom conversion from a stat to a metric. Currently, the only supported input is
       ``envoy.extensions.matching.common_inputs.stats.v3.StatFullNameMatchInput``.
       The supported actions are
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.DropAction``.
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.ConversionAction``.
       If stats are not matched, they will be directly converted to OTLP metrics as usual.
       
      .xds.type.matcher.v3.Matcher custom_metric_conversions = 8;
    • getCustomMetricConversionsOrBuilder

      public MatcherOrBuilder getCustomMetricConversionsOrBuilder()
       The custom conversion from a stat to a metric. Currently, the only supported input is
       ``envoy.extensions.matching.common_inputs.stats.v3.StatFullNameMatchInput``.
       The supported actions are
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.DropAction``.
       - ``envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig.ConversionAction``.
       If stats are not matched, they will be directly converted to OTLP metrics as usual.
       
      .xds.type.matcher.v3.Matcher custom_metric_conversions = 8;
      Specified by:
      getCustomMetricConversionsOrBuilder in interface SinkConfigOrBuilder
    • setUnknownFields

      public final SinkConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>
    • mergeUnknownFields

      public final SinkConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SinkConfig.Builder>