Class StatsdSink.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<StatsdSink.Builder>
com.google.protobuf.GeneratedMessage.Builder<StatsdSink.Builder>
io.envoyproxy.envoy.config.metrics.v3.StatsdSink.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StatsdSinkOrBuilder, Cloneable
- Enclosing class:
StatsdSink
public static final class StatsdSink.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StatsdSink.Builder>
implements StatsdSinkOrBuilder
Stats configuration proto schema for built-in ``envoy.stat_sinks.statsd`` sink. This sink does not support tagged metrics. [#extension: envoy.stat_sinks.statsd]Protobuf type
envoy.config.metrics.v3.StatsdSink-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.protobuf.SingleFieldBuilder<Address, Address.Builder, AddressOrBuilder> private intprivate Objectprivate Objectprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(StatsdSink result) private voidbuildPartialOneofs(StatsdSink result) clear()The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.Optional custom prefix for StatsdSink.The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener.The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional custom prefix for StatsdSink.com.google.protobuf.ByteStringOptional custom prefix for StatsdSink.The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener.com.google.protobuf.ByteStringThe name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener.booleanThe UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.booleanThe name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener.private com.google.protobuf.SingleFieldBuilder<Address, Address.Builder, AddressOrBuilder> The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAddress(Address value) The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(StatsdSink other) setAddress(Address value) The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.setAddress(Address.Builder builderForValue) The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener.Optional custom prefix for StatsdSink.setPrefixBytes(com.google.protobuf.ByteString value) Optional custom prefix for StatsdSink.setTcpClusterName(String value) The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener.setTcpClusterNameBytes(com.google.protobuf.ByteString value) The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener.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 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
-
statsdSpecifierCase_
private int statsdSpecifierCase_ -
statsdSpecifier_
-
bitField0_
private int bitField0_ -
addressBuilder_
private com.google.protobuf.SingleFieldBuilder<Address, Address.Builder, AddressOrBuilder> addressBuilder_ -
prefix_
-
-
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<StatsdSink.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StatsdSink.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<StatsdSink.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<StatsdSink.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StatsdSink.Builder>
-
mergeFrom
public StatsdSink.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<StatsdSink.Builder>- Throws:
IOException
-
getStatsdSpecifierCase
- Specified by:
getStatsdSpecifierCasein interfaceStatsdSinkOrBuilder
-
clearStatsdSpecifier
-
hasAddress
public boolean hasAddress()The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, statistics will be flushed to this address.
.envoy.config.core.v3.Address address = 1;- Specified by:
hasAddressin interfaceStatsdSinkOrBuilder- Returns:
- Whether the address field is set.
-
getAddress
The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, statistics will be flushed to this address.
.envoy.config.core.v3.Address address = 1;- Specified by:
getAddressin interfaceStatsdSinkOrBuilder- Returns:
- The address.
-
setAddress
The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ 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 `statsd <https://github.com/etsy/statsd>`_ 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 `statsd <https://github.com/etsy/statsd>`_ 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 `statsd <https://github.com/etsy/statsd>`_ 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 `statsd <https://github.com/etsy/statsd>`_ 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 `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, statistics will be flushed to this address.
.envoy.config.core.v3.Address address = 1;- Specified by:
getAddressOrBuilderin interfaceStatsdSinkOrBuilder
-
internalGetAddressFieldBuilder
private com.google.protobuf.SingleFieldBuilder<Address, Address.Builder, AddressOrBuilder> internalGetAddressFieldBuilder()The UDP address of a running `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, statistics will be flushed to this address.
.envoy.config.core.v3.Address address = 1; -
hasTcpClusterName
public boolean hasTcpClusterName()The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, Envoy will connect to this cluster to flush statistics.
string tcp_cluster_name = 2;- Specified by:
hasTcpClusterNamein interfaceStatsdSinkOrBuilder- Returns:
- Whether the tcpClusterName field is set.
-
getTcpClusterName
The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, Envoy will connect to this cluster to flush statistics.
string tcp_cluster_name = 2;- Specified by:
getTcpClusterNamein interfaceStatsdSinkOrBuilder- Returns:
- The tcpClusterName.
-
getTcpClusterNameBytes
public com.google.protobuf.ByteString getTcpClusterNameBytes()The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, Envoy will connect to this cluster to flush statistics.
string tcp_cluster_name = 2;- Specified by:
getTcpClusterNameBytesin interfaceStatsdSinkOrBuilder- Returns:
- The bytes for tcpClusterName.
-
setTcpClusterName
The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, Envoy will connect to this cluster to flush statistics.
string tcp_cluster_name = 2;- Parameters:
value- The tcpClusterName to set.- Returns:
- This builder for chaining.
-
clearTcpClusterName
The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, Envoy will connect to this cluster to flush statistics.
string tcp_cluster_name = 2;- Returns:
- This builder for chaining.
-
setTcpClusterNameBytes
The name of a cluster that is running a TCP `statsd <https://github.com/etsy/statsd>`_ compliant listener. If specified, Envoy will connect to this cluster to flush statistics.
string tcp_cluster_name = 2;- Parameters:
value- The bytes for tcpClusterName to set.- Returns:
- This builder for chaining.
-
getPrefix
Optional custom prefix for StatsdSink. If specified, this will override the default prefix. For example: .. code-block:: json { "prefix" : "envoy-prod" } will change emitted stats to .. code-block:: cpp envoy-prod.test_counter:1|c envoy-prod.test_timer:5|ms Note that the default prefix, "envoy", will be used if a prefix is not specified. Stats with default prefix: .. code-block:: cpp envoy.test_counter:1|c envoy.test_timer:5|msstring prefix = 3;- Specified by:
getPrefixin interfaceStatsdSinkOrBuilder- Returns:
- The prefix.
-
getPrefixBytes
public com.google.protobuf.ByteString getPrefixBytes()Optional custom prefix for StatsdSink. If specified, this will override the default prefix. For example: .. code-block:: json { "prefix" : "envoy-prod" } will change emitted stats to .. code-block:: cpp envoy-prod.test_counter:1|c envoy-prod.test_timer:5|ms Note that the default prefix, "envoy", will be used if a prefix is not specified. Stats with default prefix: .. code-block:: cpp envoy.test_counter:1|c envoy.test_timer:5|msstring prefix = 3;- Specified by:
getPrefixBytesin interfaceStatsdSinkOrBuilder- Returns:
- The bytes for prefix.
-
setPrefix
Optional custom prefix for StatsdSink. If specified, this will override the default prefix. For example: .. code-block:: json { "prefix" : "envoy-prod" } will change emitted stats to .. code-block:: cpp envoy-prod.test_counter:1|c envoy-prod.test_timer:5|ms Note that the default prefix, "envoy", will be used if a prefix is not specified. Stats with default prefix: .. code-block:: cpp envoy.test_counter:1|c envoy.test_timer:5|msstring prefix = 3;- Parameters:
value- The prefix to set.- Returns:
- This builder for chaining.
-
clearPrefix
Optional custom prefix for StatsdSink. If specified, this will override the default prefix. For example: .. code-block:: json { "prefix" : "envoy-prod" } will change emitted stats to .. code-block:: cpp envoy-prod.test_counter:1|c envoy-prod.test_timer:5|ms Note that the default prefix, "envoy", will be used if a prefix is not specified. Stats with default prefix: .. code-block:: cpp envoy.test_counter:1|c envoy.test_timer:5|msstring prefix = 3;- Returns:
- This builder for chaining.
-
setPrefixBytes
Optional custom prefix for StatsdSink. If specified, this will override the default prefix. For example: .. code-block:: json { "prefix" : "envoy-prod" } will change emitted stats to .. code-block:: cpp envoy-prod.test_counter:1|c envoy-prod.test_timer:5|ms Note that the default prefix, "envoy", will be used if a prefix is not specified. Stats with default prefix: .. code-block:: cpp envoy.test_counter:1|c envoy.test_timer:5|msstring prefix = 3;- Parameters:
value- The bytes for prefix to set.- Returns:
- This builder for chaining.
-