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 intprivate Objectprivate intprivate com.google.protobuf.UInt64Valueprivate 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 voidbuildPartial0(DogStatsdSink result) private voidbuildPartialOneofs(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.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.UInt64ValueOptional max datagram size to use when sending UDP messages.com.google.protobuf.UInt64Value.BuilderOptional max datagram size to use when sending UDP messages.com.google.protobuf.UInt64ValueOrBuilderOptional max datagram size to use when sending UDP messages.Optional custom metric name prefix.com.google.protobuf.ByteStringOptional custom metric name prefix.booleanThe UDP address of a running DogStatsD compliant listener.booleanOptional 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.FieldAccessorTableprivate 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 booleanprivate voidmergeAddress(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DogStatsdSink.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
buildPartialOneofs
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DogStatsdSink.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DogStatsdSink.Builder>- Throws:
IOException
-
getDogStatsdSpecifierCase
- Specified by:
getDogStatsdSpecifierCasein 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:
hasAddressin 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:
getAddressin 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:
getAddressOrBuilderin 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:
getPrefixin 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:
getPrefixBytesin 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:
hasMaxBytesPerDatagramin 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:
getMaxBytesPerDatagramin 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:
getMaxBytesPerDatagramOrBuilderin 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) = { ... }
-