Class FilterConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.filters.http.grpc_stats.v3.FilterConfig
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FilterConfigOrBuilder,Serializable
public final class FilterConfig
extends com.google.protobuf.GeneratedMessageV3
implements FilterConfigOrBuilder
gRPC statistics filter configuration [#next-free-field: 6]Protobuf type
envoy.extensions.filters.http.grpc_stats.v3.FilterConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classgRPC statistics filter configuration [#next-free-field: 6]static enumNested 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 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 TypeMethodDescriptionbooleanstatic FilterConfigstatic final com.google.protobuf.Descriptors.DescriptorbooleanIf true, the filter maintains a filter state object with the request and response message counts.booleanIf true, the filter will gather a histogram for the request time of the upstream.If set, specifies an allowlist of service/methods that will have individual stats emitted for them.If set, specifies an allowlist of service/methods that will have individual stats emitted for them.com.google.protobuf.Parser<FilterConfig>booleanIf true, the filter will replace dots in the grpc_service_name with underscores before emitting the metrics.intcom.google.protobuf.BoolValueIf set to true, emit stats for all service/method names.com.google.protobuf.BoolValueOrBuilderIf set to true, emit stats for all service/method names.inthashCode()booleanIf set, specifies an allowlist of service/methods that will have individual stats emitted for them.booleanIf set to true, emit stats for all service/method names.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic FilterConfig.Builderstatic FilterConfig.BuildernewBuilder(FilterConfig prototype) protected FilterConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static FilterConfigparseDelimitedFrom(InputStream input) static FilterConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterConfigparseFrom(byte[] data) static FilterConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterConfigparseFrom(com.google.protobuf.ByteString data) static FilterConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterConfigparseFrom(com.google.protobuf.CodedInputStream input) static FilterConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterConfigparseFrom(InputStream input) static FilterConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FilterConfigparseFrom(ByteBuffer data) static FilterConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FilterConfig>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
-
EMIT_FILTER_STATE_FIELD_NUMBER
public static final int EMIT_FILTER_STATE_FIELD_NUMBER- See Also:
-
INDIVIDUAL_METHOD_STATS_ALLOWLIST_FIELD_NUMBER
public static final int INDIVIDUAL_METHOD_STATS_ALLOWLIST_FIELD_NUMBER- See Also:
-
STATS_FOR_ALL_METHODS_FIELD_NUMBER
public static final int STATS_FOR_ALL_METHODS_FIELD_NUMBER- See Also:
-
ENABLE_UPSTREAM_STATS_FIELD_NUMBER
public static final int ENABLE_UPSTREAM_STATS_FIELD_NUMBER- See Also:
-
REPLACE_DOTS_IN_GRPC_SERVICE_NAME_FIELD_NUMBER
public static final int REPLACE_DOTS_IN_GRPC_SERVICE_NAME_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
-
getPerMethodStatSpecifierCase
- Specified by:
getPerMethodStatSpecifierCasein interfaceFilterConfigOrBuilder
-
getEmitFilterState
public boolean getEmitFilterState()If true, the filter maintains a filter state object with the request and response message counts.
bool emit_filter_state = 1;- Specified by:
getEmitFilterStatein interfaceFilterConfigOrBuilder- Returns:
- The emitFilterState.
-
hasIndividualMethodStatsAllowlist
public boolean hasIndividualMethodStatsAllowlist()If set, specifies an allowlist of service/methods that will have individual stats emitted for them. Any call that does not match the allowlist will be counted in a stat with no method specifier: ``cluster.<name>.grpc.*``.
.envoy.config.core.v3.GrpcMethodList individual_method_stats_allowlist = 2;- Specified by:
hasIndividualMethodStatsAllowlistin interfaceFilterConfigOrBuilder- Returns:
- Whether the individualMethodStatsAllowlist field is set.
-
getIndividualMethodStatsAllowlist
If set, specifies an allowlist of service/methods that will have individual stats emitted for them. Any call that does not match the allowlist will be counted in a stat with no method specifier: ``cluster.<name>.grpc.*``.
.envoy.config.core.v3.GrpcMethodList individual_method_stats_allowlist = 2;- Specified by:
getIndividualMethodStatsAllowlistin interfaceFilterConfigOrBuilder- Returns:
- The individualMethodStatsAllowlist.
-
getIndividualMethodStatsAllowlistOrBuilder
If set, specifies an allowlist of service/methods that will have individual stats emitted for them. Any call that does not match the allowlist will be counted in a stat with no method specifier: ``cluster.<name>.grpc.*``.
.envoy.config.core.v3.GrpcMethodList individual_method_stats_allowlist = 2;- Specified by:
getIndividualMethodStatsAllowlistOrBuilderin interfaceFilterConfigOrBuilder
-
hasStatsForAllMethods
public boolean hasStatsForAllMethods()If set to true, emit stats for all service/method names. If set to false, emit stats for all service/message types to the same stats without including the service/method in the name, with prefix ``cluster.<name>.grpc``. This can be useful if service/method granularity is not needed, or if each cluster only receives a single method. .. attention:: This option is only safe if all clients are trusted. If this option is enabled with untrusted clients, the clients could cause unbounded growth in the number of stats in Envoy, using unbounded memory and potentially slowing down stats pipelines. .. attention:: If neither ``individual_method_stats_allowlist`` nor ``stats_for_all_methods`` is set, the behavior will default to ``stats_for_all_methods=false``.
.google.protobuf.BoolValue stats_for_all_methods = 3;- Specified by:
hasStatsForAllMethodsin interfaceFilterConfigOrBuilder- Returns:
- Whether the statsForAllMethods field is set.
-
getStatsForAllMethods
public com.google.protobuf.BoolValue getStatsForAllMethods()If set to true, emit stats for all service/method names. If set to false, emit stats for all service/message types to the same stats without including the service/method in the name, with prefix ``cluster.<name>.grpc``. This can be useful if service/method granularity is not needed, or if each cluster only receives a single method. .. attention:: This option is only safe if all clients are trusted. If this option is enabled with untrusted clients, the clients could cause unbounded growth in the number of stats in Envoy, using unbounded memory and potentially slowing down stats pipelines. .. attention:: If neither ``individual_method_stats_allowlist`` nor ``stats_for_all_methods`` is set, the behavior will default to ``stats_for_all_methods=false``.
.google.protobuf.BoolValue stats_for_all_methods = 3;- Specified by:
getStatsForAllMethodsin interfaceFilterConfigOrBuilder- Returns:
- The statsForAllMethods.
-
getStatsForAllMethodsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getStatsForAllMethodsOrBuilder()If set to true, emit stats for all service/method names. If set to false, emit stats for all service/message types to the same stats without including the service/method in the name, with prefix ``cluster.<name>.grpc``. This can be useful if service/method granularity is not needed, or if each cluster only receives a single method. .. attention:: This option is only safe if all clients are trusted. If this option is enabled with untrusted clients, the clients could cause unbounded growth in the number of stats in Envoy, using unbounded memory and potentially slowing down stats pipelines. .. attention:: If neither ``individual_method_stats_allowlist`` nor ``stats_for_all_methods`` is set, the behavior will default to ``stats_for_all_methods=false``.
.google.protobuf.BoolValue stats_for_all_methods = 3;- Specified by:
getStatsForAllMethodsOrBuilderin interfaceFilterConfigOrBuilder
-
getEnableUpstreamStats
public boolean getEnableUpstreamStats()If true, the filter will gather a histogram for the request time of the upstream. It works with :ref:`stats_for_all_methods <envoy_v3_api_field_extensions.filters.http.grpc_stats.v3.FilterConfig.stats_for_all_methods>` and :ref:`individual_method_stats_allowlist <envoy_v3_api_field_extensions.filters.http.grpc_stats.v3.FilterConfig.individual_method_stats_allowlist>` the same way request_message_count and response_message_count works.
bool enable_upstream_stats = 4;- Specified by:
getEnableUpstreamStatsin interfaceFilterConfigOrBuilder- Returns:
- The enableUpstreamStats.
-
getReplaceDotsInGrpcServiceName
public boolean getReplaceDotsInGrpcServiceName()If true, the filter will replace dots in the grpc_service_name with underscores before emitting the metrics. Only works when :ref:`stats_for_all_methods <envoy_v3_api_field_extensions.filters.http.grpc_stats.v3.FilterConfig.stats_for_all_methods>` is set to true. It could cause metrics to be merged if the edited service name conflicts with an existing service. For example there are both service "foo.bar" & "foo_bar" running. This config can fix incorrect gRPC metrics with dots because the existing stats tag extractor assumes no dots in the gRPC service name. By default this is set as false.
bool replace_dots_in_grpc_service_name = 5;- Specified by:
getReplaceDotsInGrpcServiceNamein interfaceFilterConfigOrBuilder- Returns:
- The replaceDotsInGrpcServiceName.
-
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 FilterConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FilterConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FilterConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FilterConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FilterConfig 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 FilterConfig.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
-