Class DogStatsdSink.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DogStatsdSink.Builder>
com.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
io.envoyproxy.envoy.config.metrics.v3.DogStatsdSink.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DogStatsdSinkOrBuilder
,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 Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> private int
private Object
private int
private com.google.protobuf.UInt64Value
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> private Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(DogStatsdSink result) private void
buildPartialOneofs
(DogStatsdSink result) clear()
The UDP address of a running DogStatsD compliant listener.Optional max datagram size to use when sending UDP messages.Optional custom metric name prefix.The UDP address of a running DogStatsD compliant listener.The UDP address of a running DogStatsD compliant listener.The UDP address of a running DogStatsD compliant listener.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.UInt64Value
Optional max datagram size to use when sending UDP messages.com.google.protobuf.UInt64Value.Builder
Optional max datagram size to use when sending UDP messages.com.google.protobuf.UInt64ValueOrBuilder
Optional max datagram size to use when sending UDP messages.Optional custom metric name prefix.com.google.protobuf.ByteString
Optional custom metric name prefix.boolean
The UDP address of a running DogStatsD compliant listener.boolean
Optional max datagram size to use when sending UDP messages.private com.google.protobuf.SingleFieldBuilder
<Address, Address.Builder, AddressOrBuilder> The UDP address of a running DogStatsD compliant listener.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> Optional max datagram size to use when sending UDP messages.final boolean
private void
mergeAddress
(Address value) The UDP address of a running DogStatsD compliant listener.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(DogStatsdSink other) mergeMaxBytesPerDatagram
(com.google.protobuf.UInt64Value value) Optional max datagram size to use when sending UDP messages.setAddress
(Address value) The UDP address of a running DogStatsD compliant listener.setAddress
(Address.Builder builderForValue) The UDP address of a running DogStatsD compliant listener.setMaxBytesPerDatagram
(com.google.protobuf.UInt64Value value) Optional max datagram size to use when sending UDP messages.setMaxBytesPerDatagram
(com.google.protobuf.UInt64Value.Builder builderForValue) Optional max datagram size to use when sending UDP messages.Optional custom metric name prefix.setPrefixBytes
(com.google.protobuf.ByteString value) Optional custom metric name prefix.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
dogStatsdSpecifierCase_
private int dogStatsdSpecifierCase_ -
dogStatsdSpecifier_
-
bitField0_
private int bitField0_ -
addressBuilder_
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, addressBuilder_AddressOrBuilder> -
prefix_
-
maxBytesPerDatagram_
private com.google.protobuf.UInt64Value maxBytesPerDatagram_ -
maxBytesPerDatagramBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder, maxBytesPerDatagramBuilder_com.google.protobuf.UInt64ValueOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DogStatsdSink.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
-
mergeFrom
public DogStatsdSink.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DogStatsdSink.Builder>
- Throws:
IOException
-
getDogStatsdSpecifierCase
- Specified by:
getDogStatsdSpecifierCase
in interfaceDogStatsdSinkOrBuilder
-
clearDogStatsdSpecifier
-
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 interfaceDogStatsdSinkOrBuilder
- Returns:
- Whether the address field is set.
-
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 interfaceDogStatsdSinkOrBuilder
- Returns:
- The address.
-
setAddress
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
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
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
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
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
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 interfaceDogStatsdSinkOrBuilder
-
internalGetAddressFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Address,Address.Builder, internalGetAddressFieldBuilder()AddressOrBuilder> 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
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 interfaceDogStatsdSinkOrBuilder
- 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 interfaceDogStatsdSinkOrBuilder
- Returns:
- The bytes for prefix.
-
setPrefix
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
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
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 interfaceDogStatsdSinkOrBuilder
- 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 interfaceDogStatsdSinkOrBuilder
- Returns:
- The maxBytesPerDatagram.
-
setMaxBytesPerDatagram
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
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
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 interfaceDogStatsdSinkOrBuilder
-
internalGetMaxBytesPerDatagramFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder, internalGetMaxBytesPerDatagramFieldBuilder()com.google.protobuf.UInt64ValueOrBuilder> 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) = { ... }
-