Class 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: 7]
     
    Protobuf type envoy.extensions.stat_sinks.open_telemetry.v3.SinkConfig
    • Method Detail

      • 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>
      • 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
      • 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) = { ... }
      • 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.
      • 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>