Class DogStatsdSink.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DogStatsdSinkOrBuilder, java.lang.Cloneable
    Enclosing class:
    DogStatsdSink

    public static final class DogStatsdSink.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
    implements DogStatsdSinkOrBuilder
     Stats configuration proto schema for built-in ``envoy.stat_sinks.dog_statsd`` sink.
     The sink emits stats with `DogStatsD <https://docs.datadoghq.com/guides/dogstatsd/>`_
     compatible tags. Tags are configurable via :ref:`StatsConfig
     <envoy_v3_api_msg_config.metrics.v3.StatsConfig>`.
     [#extension: envoy.stat_sinks.dog_statsd]
     
    Protobuf type envoy.config.metrics.v3.DogStatsdSink
    • Field Detail

      • dogStatsdSpecifierCase_

        private int dogStatsdSpecifierCase_
      • dogStatsdSpecifier_

        private java.lang.Object dogStatsdSpecifier_
      • bitField0_

        private int bitField0_
      • prefix_

        private java.lang.Object prefix_
      • maxBytesPerDatagram_

        private com.google.protobuf.UInt64Value maxBytesPerDatagram_
      • maxBytesPerDatagramBuilder_

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,​com.google.protobuf.UInt64Value.Builder,​com.google.protobuf.UInt64ValueOrBuilder> maxBytesPerDatagramBuilder_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • 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<DogStatsdSink.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

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

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

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

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

        private void buildPartial0​(DogStatsdSink result)
      • buildPartialOneofs

        private void buildPartialOneofs​(DogStatsdSink result)
      • mergeFrom

        public DogStatsdSink.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<DogStatsdSink.Builder>
      • isInitialized

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

        public DogStatsdSink.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws java.io.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<DogStatsdSink.Builder>
        Throws:
        java.io.IOException
      • hasAddress

        public boolean hasAddress()
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
        Specified by:
        hasAddress in interface DogStatsdSinkOrBuilder
        Returns:
        Whether the address field is set.
      • getAddress

        public Address getAddress()
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
        Specified by:
        getAddress in interface DogStatsdSinkOrBuilder
        Returns:
        The address.
      • setAddress

        public DogStatsdSink.Builder setAddress​(Address value)
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
      • setAddress

        public DogStatsdSink.Builder setAddress​(Address.Builder builderForValue)
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
      • mergeAddress

        public DogStatsdSink.Builder mergeAddress​(Address value)
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
      • clearAddress

        public DogStatsdSink.Builder clearAddress()
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
      • getAddressBuilder

        public Address.Builder getAddressBuilder()
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
      • getAddressOrBuilder

        public AddressOrBuilder getAddressOrBuilder()
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
        Specified by:
        getAddressOrBuilder in interface DogStatsdSinkOrBuilder
      • getAddressFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<Address,​Address.Builder,​AddressOrBuilder> getAddressFieldBuilder()
         The UDP address of a running DogStatsD compliant listener. If specified,
         statistics will be flushed to this address.
         
        .envoy.config.core.v3.Address address = 1;
      • getPrefix

        public java.lang.String getPrefix()
         Optional custom metric name prefix. See :ref:`StatsdSink's prefix field
         <envoy_v3_api_field_config.metrics.v3.StatsdSink.prefix>` for more details.
         
        string prefix = 3;
        Specified by:
        getPrefix in interface DogStatsdSinkOrBuilder
        Returns:
        The prefix.
      • getPrefixBytes

        public com.google.protobuf.ByteString getPrefixBytes()
         Optional custom metric name prefix. See :ref:`StatsdSink's prefix field
         <envoy_v3_api_field_config.metrics.v3.StatsdSink.prefix>` for more details.
         
        string prefix = 3;
        Specified by:
        getPrefixBytes in interface DogStatsdSinkOrBuilder
        Returns:
        The bytes for prefix.
      • setPrefix

        public DogStatsdSink.Builder setPrefix​(java.lang.String value)
         Optional custom metric name prefix. See :ref:`StatsdSink's prefix field
         <envoy_v3_api_field_config.metrics.v3.StatsdSink.prefix>` for more details.
         
        string prefix = 3;
        Parameters:
        value - The prefix to set.
        Returns:
        This builder for chaining.
      • clearPrefix

        public DogStatsdSink.Builder clearPrefix()
         Optional custom metric name prefix. See :ref:`StatsdSink's prefix field
         <envoy_v3_api_field_config.metrics.v3.StatsdSink.prefix>` for more details.
         
        string prefix = 3;
        Returns:
        This builder for chaining.
      • setPrefixBytes

        public DogStatsdSink.Builder setPrefixBytes​(com.google.protobuf.ByteString value)
         Optional custom metric name prefix. See :ref:`StatsdSink's prefix field
         <envoy_v3_api_field_config.metrics.v3.StatsdSink.prefix>` for more details.
         
        string prefix = 3;
        Parameters:
        value - The bytes for prefix to set.
        Returns:
        This builder for chaining.
      • hasMaxBytesPerDatagram

        public boolean hasMaxBytesPerDatagram()
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }
        Specified by:
        hasMaxBytesPerDatagram in interface DogStatsdSinkOrBuilder
        Returns:
        Whether the maxBytesPerDatagram field is set.
      • getMaxBytesPerDatagram

        public com.google.protobuf.UInt64Value getMaxBytesPerDatagram()
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }
        Specified by:
        getMaxBytesPerDatagram in interface DogStatsdSinkOrBuilder
        Returns:
        The maxBytesPerDatagram.
      • setMaxBytesPerDatagram

        public DogStatsdSink.Builder setMaxBytesPerDatagram​(com.google.protobuf.UInt64Value value)
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }
      • setMaxBytesPerDatagram

        public DogStatsdSink.Builder setMaxBytesPerDatagram​(com.google.protobuf.UInt64Value.Builder builderForValue)
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }
      • mergeMaxBytesPerDatagram

        public DogStatsdSink.Builder mergeMaxBytesPerDatagram​(com.google.protobuf.UInt64Value value)
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }
      • clearMaxBytesPerDatagram

        public DogStatsdSink.Builder clearMaxBytesPerDatagram()
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }
      • getMaxBytesPerDatagramBuilder

        public com.google.protobuf.UInt64Value.Builder getMaxBytesPerDatagramBuilder()
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }
      • getMaxBytesPerDatagramOrBuilder

        public com.google.protobuf.UInt64ValueOrBuilder getMaxBytesPerDatagramOrBuilder()
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }
        Specified by:
        getMaxBytesPerDatagramOrBuilder in interface DogStatsdSinkOrBuilder
      • getMaxBytesPerDatagramFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,​com.google.protobuf.UInt64Value.Builder,​com.google.protobuf.UInt64ValueOrBuilder> getMaxBytesPerDatagramFieldBuilder()
         Optional max datagram size to use when sending UDP messages. By default Envoy
         will emit one metric per datagram. By specifying a max-size larger than a single
         metric, Envoy will emit multiple, new-line separated metrics. The max datagram
         size should not exceed your network's MTU.
        
         Note that this value may not be respected if smaller than a single metric.
         
        .google.protobuf.UInt64Value max_bytes_per_datagram = 4 [(.validate.rules) = { ... }