Class ZooKeeperProxy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.network.zookeeper_proxy.v3.ZooKeeperProxy
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ZooKeeperProxyOrBuilder,Serializable
public final class ZooKeeperProxy
extends com.google.protobuf.GeneratedMessageV3
implements ZooKeeperProxyOrBuilder
[#next-free-field: 10]Protobuf type
envoy.extensions.filters.network.zookeeper_proxy.v3.ZooKeeperProxy- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class[#next-free-field: 10]Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionboolean[#not-implemented-hide:] The optional path to use for writing ZooKeeper access logs.com.google.protobuf.ByteString[#not-implemented-hide:] The optional path to use for writing ZooKeeper access logs.static ZooKeeperProxycom.google.protobuf.DurationThe default latency threshold to decide the fast/slow responses and emit metrics (used for error budget calculation).com.google.protobuf.DurationOrBuilderThe default latency threshold to decide the fast/slow responses and emit metrics (used for error budget calculation).static final com.google.protobuf.Descriptors.DescriptorbooleanWhether to emit latency threshold metrics.booleanWhether to emit per opcode decoder error metrics.booleanWhether to emit per opcode request bytes metrics.booleanWhether to emit per opcode response bytes metrics.getLatencyThresholdOverrides(int index) List of latency threshold overrides for opcodes.intList of latency threshold overrides for opcodes.List of latency threshold overrides for opcodes.getLatencyThresholdOverridesOrBuilder(int index) List of latency threshold overrides for opcodes.List<? extends LatencyThresholdOverrideOrBuilder>List of latency threshold overrides for opcodes.com.google.protobuf.UInt32ValueMessages — requests, responses and events — that are bigger than this value will be ignored.com.google.protobuf.UInt32ValueOrBuilderMessages — requests, responses and events — that are bigger than this value will be ignored.com.google.protobuf.Parser<ZooKeeperProxy>intThe human readable prefix to use when emitting :ref:`statistics <config_network_filters_zookeeper_proxy_stats>`.com.google.protobuf.ByteStringThe human readable prefix to use when emitting :ref:`statistics <config_network_filters_zookeeper_proxy_stats>`.booleanThe default latency threshold to decide the fast/slow responses and emit metrics (used for error budget calculation).inthashCode()booleanMessages — requests, responses and events — that are bigger than this value will be ignored.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic ZooKeeperProxy.Builderstatic ZooKeeperProxy.BuildernewBuilder(ZooKeeperProxy prototype) protected ZooKeeperProxy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static ZooKeeperProxyparseDelimitedFrom(InputStream input) static ZooKeeperProxyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ZooKeeperProxyparseFrom(byte[] data) static ZooKeeperProxyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ZooKeeperProxyparseFrom(com.google.protobuf.ByteString data) static ZooKeeperProxyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ZooKeeperProxyparseFrom(com.google.protobuf.CodedInputStream input) static ZooKeeperProxyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ZooKeeperProxyparseFrom(InputStream input) static ZooKeeperProxyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ZooKeeperProxyparseFrom(ByteBuffer data) static ZooKeeperProxyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ZooKeeperProxy>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
STAT_PREFIX_FIELD_NUMBER
public static final int STAT_PREFIX_FIELD_NUMBER- See Also:
-
ACCESS_LOG_FIELD_NUMBER
public static final int ACCESS_LOG_FIELD_NUMBER- See Also:
-
MAX_PACKET_BYTES_FIELD_NUMBER
public static final int MAX_PACKET_BYTES_FIELD_NUMBER- See Also:
-
ENABLE_LATENCY_THRESHOLD_METRICS_FIELD_NUMBER
public static final int ENABLE_LATENCY_THRESHOLD_METRICS_FIELD_NUMBER- See Also:
-
DEFAULT_LATENCY_THRESHOLD_FIELD_NUMBER
public static final int DEFAULT_LATENCY_THRESHOLD_FIELD_NUMBER- See Also:
-
LATENCY_THRESHOLD_OVERRIDES_FIELD_NUMBER
public static final int LATENCY_THRESHOLD_OVERRIDES_FIELD_NUMBER- See Also:
-
ENABLE_PER_OPCODE_REQUEST_BYTES_METRICS_FIELD_NUMBER
public static final int ENABLE_PER_OPCODE_REQUEST_BYTES_METRICS_FIELD_NUMBER- See Also:
-
ENABLE_PER_OPCODE_RESPONSE_BYTES_METRICS_FIELD_NUMBER
public static final int ENABLE_PER_OPCODE_RESPONSE_BYTES_METRICS_FIELD_NUMBER- See Also:
-
ENABLE_PER_OPCODE_DECODER_ERROR_METRICS_FIELD_NUMBER
public static final int ENABLE_PER_OPCODE_DECODER_ERROR_METRICS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getStatPrefix
The human readable prefix to use when emitting :ref:`statistics <config_network_filters_zookeeper_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixin interfaceZooKeeperProxyOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()The human readable prefix to use when emitting :ref:`statistics <config_network_filters_zookeeper_proxy_stats>`.
string stat_prefix = 1 [(.validate.rules) = { ... }- Specified by:
getStatPrefixBytesin interfaceZooKeeperProxyOrBuilder- Returns:
- The bytes for statPrefix.
-
getAccessLog
[#not-implemented-hide:] The optional path to use for writing ZooKeeper access logs. If the access log field is empty, access logs will not be written.
string access_log = 2;- Specified by:
getAccessLogin interfaceZooKeeperProxyOrBuilder- Returns:
- The accessLog.
-
getAccessLogBytes
public com.google.protobuf.ByteString getAccessLogBytes()[#not-implemented-hide:] The optional path to use for writing ZooKeeper access logs. If the access log field is empty, access logs will not be written.
string access_log = 2;- Specified by:
getAccessLogBytesin interfaceZooKeeperProxyOrBuilder- Returns:
- The bytes for accessLog.
-
hasMaxPacketBytes
public boolean hasMaxPacketBytes()Messages — requests, responses and events — that are bigger than this value will be ignored. If it is not set, the default value is 1Mb. The value here should match the jute.maxbuffer property in your cluster configuration: https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#Unsafe+Options if that is set. If it isn't, ZooKeeper's default is also 1Mb.
.google.protobuf.UInt32Value max_packet_bytes = 3;- Specified by:
hasMaxPacketBytesin interfaceZooKeeperProxyOrBuilder- Returns:
- Whether the maxPacketBytes field is set.
-
getMaxPacketBytes
public com.google.protobuf.UInt32Value getMaxPacketBytes()Messages — requests, responses and events — that are bigger than this value will be ignored. If it is not set, the default value is 1Mb. The value here should match the jute.maxbuffer property in your cluster configuration: https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#Unsafe+Options if that is set. If it isn't, ZooKeeper's default is also 1Mb.
.google.protobuf.UInt32Value max_packet_bytes = 3;- Specified by:
getMaxPacketBytesin interfaceZooKeeperProxyOrBuilder- Returns:
- The maxPacketBytes.
-
getMaxPacketBytesOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxPacketBytesOrBuilder()Messages — requests, responses and events — that are bigger than this value will be ignored. If it is not set, the default value is 1Mb. The value here should match the jute.maxbuffer property in your cluster configuration: https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#Unsafe+Options if that is set. If it isn't, ZooKeeper's default is also 1Mb.
.google.protobuf.UInt32Value max_packet_bytes = 3;- Specified by:
getMaxPacketBytesOrBuilderin interfaceZooKeeperProxyOrBuilder
-
getEnableLatencyThresholdMetrics
public boolean getEnableLatencyThresholdMetrics()Whether to emit latency threshold metrics. If not set, it defaults to false. If false, setting ``default_latency_threshold`` and ``latency_threshold_overrides`` will not have effect.
bool enable_latency_threshold_metrics = 4;- Specified by:
getEnableLatencyThresholdMetricsin interfaceZooKeeperProxyOrBuilder- Returns:
- The enableLatencyThresholdMetrics.
-
hasDefaultLatencyThreshold
public boolean hasDefaultLatencyThreshold()The default latency threshold to decide the fast/slow responses and emit metrics (used for error budget calculation). https://sre.google/workbook/implementing-slos/ If it is not set, the default value is 100 milliseconds.
.google.protobuf.Duration default_latency_threshold = 5 [(.validate.rules) = { ... }- Specified by:
hasDefaultLatencyThresholdin interfaceZooKeeperProxyOrBuilder- Returns:
- Whether the defaultLatencyThreshold field is set.
-
getDefaultLatencyThreshold
public com.google.protobuf.Duration getDefaultLatencyThreshold()The default latency threshold to decide the fast/slow responses and emit metrics (used for error budget calculation). https://sre.google/workbook/implementing-slos/ If it is not set, the default value is 100 milliseconds.
.google.protobuf.Duration default_latency_threshold = 5 [(.validate.rules) = { ... }- Specified by:
getDefaultLatencyThresholdin interfaceZooKeeperProxyOrBuilder- Returns:
- The defaultLatencyThreshold.
-
getDefaultLatencyThresholdOrBuilder
public com.google.protobuf.DurationOrBuilder getDefaultLatencyThresholdOrBuilder()The default latency threshold to decide the fast/slow responses and emit metrics (used for error budget calculation). https://sre.google/workbook/implementing-slos/ If it is not set, the default value is 100 milliseconds.
.google.protobuf.Duration default_latency_threshold = 5 [(.validate.rules) = { ... }- Specified by:
getDefaultLatencyThresholdOrBuilderin interfaceZooKeeperProxyOrBuilder
-
getLatencyThresholdOverridesList
List of latency threshold overrides for opcodes. If the threshold override of one opcode is not set, it will fallback to the default latency threshold. Specifying latency threshold overrides multiple times for one opcode is not allowed.
repeated .envoy.extensions.filters.network.zookeeper_proxy.v3.LatencyThresholdOverride latency_threshold_overrides = 6;- Specified by:
getLatencyThresholdOverridesListin interfaceZooKeeperProxyOrBuilder
-
getLatencyThresholdOverridesOrBuilderList
public List<? extends LatencyThresholdOverrideOrBuilder> getLatencyThresholdOverridesOrBuilderList()List of latency threshold overrides for opcodes. If the threshold override of one opcode is not set, it will fallback to the default latency threshold. Specifying latency threshold overrides multiple times for one opcode is not allowed.
repeated .envoy.extensions.filters.network.zookeeper_proxy.v3.LatencyThresholdOverride latency_threshold_overrides = 6;- Specified by:
getLatencyThresholdOverridesOrBuilderListin interfaceZooKeeperProxyOrBuilder
-
getLatencyThresholdOverridesCount
public int getLatencyThresholdOverridesCount()List of latency threshold overrides for opcodes. If the threshold override of one opcode is not set, it will fallback to the default latency threshold. Specifying latency threshold overrides multiple times for one opcode is not allowed.
repeated .envoy.extensions.filters.network.zookeeper_proxy.v3.LatencyThresholdOverride latency_threshold_overrides = 6;- Specified by:
getLatencyThresholdOverridesCountin interfaceZooKeeperProxyOrBuilder
-
getLatencyThresholdOverrides
List of latency threshold overrides for opcodes. If the threshold override of one opcode is not set, it will fallback to the default latency threshold. Specifying latency threshold overrides multiple times for one opcode is not allowed.
repeated .envoy.extensions.filters.network.zookeeper_proxy.v3.LatencyThresholdOverride latency_threshold_overrides = 6;- Specified by:
getLatencyThresholdOverridesin interfaceZooKeeperProxyOrBuilder
-
getLatencyThresholdOverridesOrBuilder
List of latency threshold overrides for opcodes. If the threshold override of one opcode is not set, it will fallback to the default latency threshold. Specifying latency threshold overrides multiple times for one opcode is not allowed.
repeated .envoy.extensions.filters.network.zookeeper_proxy.v3.LatencyThresholdOverride latency_threshold_overrides = 6;- Specified by:
getLatencyThresholdOverridesOrBuilderin interfaceZooKeeperProxyOrBuilder
-
getEnablePerOpcodeRequestBytesMetrics
public boolean getEnablePerOpcodeRequestBytesMetrics()Whether to emit per opcode request bytes metrics. If not set, it defaults to false.
bool enable_per_opcode_request_bytes_metrics = 7;- Specified by:
getEnablePerOpcodeRequestBytesMetricsin interfaceZooKeeperProxyOrBuilder- Returns:
- The enablePerOpcodeRequestBytesMetrics.
-
getEnablePerOpcodeResponseBytesMetrics
public boolean getEnablePerOpcodeResponseBytesMetrics()Whether to emit per opcode response bytes metrics. If not set, it defaults to false.
bool enable_per_opcode_response_bytes_metrics = 8;- Specified by:
getEnablePerOpcodeResponseBytesMetricsin interfaceZooKeeperProxyOrBuilder- Returns:
- The enablePerOpcodeResponseBytesMetrics.
-
getEnablePerOpcodeDecoderErrorMetrics
public boolean getEnablePerOpcodeDecoderErrorMetrics()Whether to emit per opcode decoder error metrics. If not set, it defaults to false.
bool enable_per_opcode_decoder_error_metrics = 9;- Specified by:
getEnablePerOpcodeDecoderErrorMetricsin interfaceZooKeeperProxyOrBuilder- Returns:
- The enablePerOpcodeDecoderErrorMetrics.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ZooKeeperProxy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ZooKeeperProxy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ZooKeeperProxy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ZooKeeperProxy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ZooKeeperProxy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ZooKeeperProxy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ZooKeeperProxy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ZooKeeperProxy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ZooKeeperProxy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ZooKeeperProxy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ZooKeeperProxy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-