Class FilterConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
io.envoyproxy.envoy.config.filter.http.grpc_stats.v2alpha.FilterConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FilterConfigOrBuilder,Cloneable
- Enclosing class:
- FilterConfig
public static final class FilterConfig.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
implements FilterConfigOrBuilder
gRPC statistics filter configurationProtobuf type
envoy.config.filter.http.grpc_stats.v2alpha.FilterConfig-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()If true, the filter maintains a filter state object with the request and response message counts.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If set, specifies an allowlist of service/methods that will have individual stats emitted for them.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If set to true, emit stats for all service/method names.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, the filter maintains a filter state object with the request and response message counts.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.If set, specifies an allowlist of service/methods that will have individual stats emitted for them.com.google.protobuf.BoolValueIf set to true, emit stats for all service/method names.com.google.protobuf.BoolValue.BuilderIf set to true, emit stats for all service/method names.com.google.protobuf.BoolValueOrBuilderIf set to true, emit stats for all service/method names.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 booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FilterConfig other) If set, specifies an allowlist of service/methods that will have individual stats emitted for them.mergeStatsForAllMethods(com.google.protobuf.BoolValue value) If set to true, emit stats for all service/method names.final FilterConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setEmitFilterState(boolean value) If true, the filter maintains a filter state object with the request and response message counts.If set, specifies an allowlist of service/methods that will have individual stats emitted for them.setIndividualMethodStatsAllowlist(GrpcMethodList.Builder builderForValue) If set, specifies an allowlist of service/methods that will have individual stats emitted for them.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStatsForAllMethods(com.google.protobuf.BoolValue value) If set to true, emit stats for all service/method names.setStatsForAllMethods(com.google.protobuf.BoolValue.Builder builderForValue) If set to true, emit stats for all service/method names.final FilterConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
Method Details
-
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.Builder<FilterConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.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.GeneratedMessageV3.Builder<FilterConfig.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
setField
public FilterConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
setRepeatedField
public FilterConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
addRepeatedField
public FilterConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
mergeFrom
public FilterConfig.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<FilterConfig.Builder>- Throws:
IOException
-
getPerMethodStatSpecifierCase
- Specified by:
getPerMethodStatSpecifierCasein interfaceFilterConfigOrBuilder
-
clearPerMethodStatSpecifier
-
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.
-
setEmitFilterState
If true, the filter maintains a filter state object with the request and response message counts.
bool emit_filter_state = 1;- Parameters:
value- The emitFilterState to set.- Returns:
- This builder for chaining.
-
clearEmitFilterState
If true, the filter maintains a filter state object with the request and response message counts.
bool emit_filter_state = 1;- Returns:
- This builder for chaining.
-
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.api.v2.core.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.api.v2.core.GrpcMethodList individual_method_stats_allowlist = 2;- Specified by:
getIndividualMethodStatsAllowlistin interfaceFilterConfigOrBuilder- Returns:
- The individualMethodStatsAllowlist.
-
setIndividualMethodStatsAllowlist
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.api.v2.core.GrpcMethodList individual_method_stats_allowlist = 2; -
setIndividualMethodStatsAllowlist
public FilterConfig.Builder setIndividualMethodStatsAllowlist(GrpcMethodList.Builder builderForValue) 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.api.v2.core.GrpcMethodList individual_method_stats_allowlist = 2; -
mergeIndividualMethodStatsAllowlist
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.api.v2.core.GrpcMethodList individual_method_stats_allowlist = 2; -
clearIndividualMethodStatsAllowlist
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.api.v2.core.GrpcMethodList individual_method_stats_allowlist = 2; -
getIndividualMethodStatsAllowlistBuilder
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.api.v2.core.GrpcMethodList individual_method_stats_allowlist = 2; -
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.api.v2.core.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.
-
setStatsForAllMethods
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; -
setStatsForAllMethods
public FilterConfig.Builder setStatsForAllMethods(com.google.protobuf.BoolValue.Builder builderForValue) 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; -
mergeStatsForAllMethods
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; -
clearStatsForAllMethods
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; -
getStatsForAllMethodsBuilder
public com.google.protobuf.BoolValue.Builder getStatsForAllMethodsBuilder()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; -
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
-
setUnknownFields
public final FilterConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-
mergeUnknownFields
public final FilterConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>
-