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| Modifier and Type | Method and Description |
|---|---|
FilterConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FilterConfig |
build() |
FilterConfig |
buildPartial() |
FilterConfig.Builder |
clear() |
FilterConfig.Builder |
clearEmitFilterState()
If true, the filter maintains a filter state object with the request and response message
counts.
|
FilterConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
FilterConfig.Builder |
clearIndividualMethodStatsAllowlist()
If set, specifies an allowlist of service/methods that will have individual stats
emitted for them.
|
FilterConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
FilterConfig.Builder |
clearPerMethodStatSpecifier() |
FilterConfig.Builder |
clearStatsForAllMethods()
If set to true, emit stats for all service/method names.
|
FilterConfig.Builder |
clone() |
FilterConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEmitFilterState()
If true, the filter maintains a filter state object with the request and response message
counts.
|
GrpcMethodList |
getIndividualMethodStatsAllowlist()
If set, specifies an allowlist of service/methods that will have individual stats
emitted for them.
|
GrpcMethodList.Builder |
getIndividualMethodStatsAllowlistBuilder()
If set, specifies an allowlist of service/methods that will have individual stats
emitted for them.
|
GrpcMethodListOrBuilder |
getIndividualMethodStatsAllowlistOrBuilder()
If set, specifies an allowlist of service/methods that will have individual stats
emitted for them.
|
FilterConfig.PerMethodStatSpecifierCase |
getPerMethodStatSpecifierCase() |
com.google.protobuf.BoolValue |
getStatsForAllMethods()
If set to true, emit stats for all service/method names.
|
com.google.protobuf.BoolValue.Builder |
getStatsForAllMethodsBuilder()
If set to true, emit stats for all service/method names.
|
com.google.protobuf.BoolValueOrBuilder |
getStatsForAllMethodsOrBuilder()
If set to true, emit stats for all service/method names.
|
boolean |
hasIndividualMethodStatsAllowlist()
If set, specifies an allowlist of service/methods that will have individual stats
emitted for them.
|
boolean |
hasStatsForAllMethods()
If set to true, emit stats for all service/method names.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FilterConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FilterConfig.Builder |
mergeFrom(FilterConfig other) |
FilterConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
FilterConfig.Builder |
mergeIndividualMethodStatsAllowlist(GrpcMethodList value)
If set, specifies an allowlist of service/methods that will have individual stats
emitted for them.
|
FilterConfig.Builder |
mergeStatsForAllMethods(com.google.protobuf.BoolValue value)
If set to true, emit stats for all service/method names.
|
FilterConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FilterConfig.Builder |
setEmitFilterState(boolean value)
If true, the filter maintains a filter state object with the request and response message
counts.
|
FilterConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
FilterConfig.Builder |
setIndividualMethodStatsAllowlist(GrpcMethodList.Builder builderForValue)
If set, specifies an allowlist of service/methods that will have individual stats
emitted for them.
|
FilterConfig.Builder |
setIndividualMethodStatsAllowlist(GrpcMethodList value)
If set, specifies an allowlist of service/methods that will have individual stats
emitted for them.
|
FilterConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
FilterConfig.Builder |
setStatsForAllMethods(com.google.protobuf.BoolValue.Builder builderForValue)
If set to true, emit stats for all service/method names.
|
FilterConfig.Builder |
setStatsForAllMethods(com.google.protobuf.BoolValue value)
If set to true, emit stats for all service/method names.
|
FilterConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FilterConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FilterConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FilterConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>public FilterConfig.Builder mergeFrom(FilterConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public FilterConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FilterConfig.Builder>IOExceptionpublic FilterConfig.PerMethodStatSpecifierCase getPerMethodStatSpecifierCase()
getPerMethodStatSpecifierCase in interface FilterConfigOrBuilderpublic FilterConfig.Builder clearPerMethodStatSpecifier()
public boolean getEmitFilterState()
If true, the filter maintains a filter state object with the request and response message counts.
bool emit_filter_state = 1;getEmitFilterState in interface FilterConfigOrBuilderpublic FilterConfig.Builder setEmitFilterState(boolean value)
If true, the filter maintains a filter state object with the request and response message counts.
bool emit_filter_state = 1;public FilterConfig.Builder clearEmitFilterState()
If true, the filter maintains a filter state object with the request and response message counts.
bool emit_filter_state = 1;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;hasIndividualMethodStatsAllowlist in interface FilterConfigOrBuilderpublic GrpcMethodList 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;getIndividualMethodStatsAllowlist in interface FilterConfigOrBuilderpublic FilterConfig.Builder setIndividualMethodStatsAllowlist(GrpcMethodList value)
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;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;public FilterConfig.Builder mergeIndividualMethodStatsAllowlist(GrpcMethodList value)
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;public FilterConfig.Builder 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;public GrpcMethodList.Builder 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;public GrpcMethodListOrBuilder 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;getIndividualMethodStatsAllowlistOrBuilder in interface FilterConfigOrBuilderpublic 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=true`. This default value is deprecated, and in a future release, if neither field is set, it will default to `stats_for_all_methods=false` in order to be safe by default. This behavior can be controlled with runtime override `envoy.deprecated_features.grpc_stats_filter_enable_stats_for_all_methods_by_default`.
.google.protobuf.BoolValue stats_for_all_methods = 3;hasStatsForAllMethods in interface FilterConfigOrBuilderpublic 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=true`. This default value is deprecated, and in a future release, if neither field is set, it will default to `stats_for_all_methods=false` in order to be safe by default. This behavior can be controlled with runtime override `envoy.deprecated_features.grpc_stats_filter_enable_stats_for_all_methods_by_default`.
.google.protobuf.BoolValue stats_for_all_methods = 3;getStatsForAllMethods in interface FilterConfigOrBuilderpublic FilterConfig.Builder setStatsForAllMethods(com.google.protobuf.BoolValue value)
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=true`. This default value is deprecated, and in a future release, if neither field is set, it will default to `stats_for_all_methods=false` in order to be safe by default. This behavior can be controlled with runtime override `envoy.deprecated_features.grpc_stats_filter_enable_stats_for_all_methods_by_default`.
.google.protobuf.BoolValue stats_for_all_methods = 3;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=true`. This default value is deprecated, and in a future release, if neither field is set, it will default to `stats_for_all_methods=false` in order to be safe by default. This behavior can be controlled with runtime override `envoy.deprecated_features.grpc_stats_filter_enable_stats_for_all_methods_by_default`.
.google.protobuf.BoolValue stats_for_all_methods = 3;public FilterConfig.Builder mergeStatsForAllMethods(com.google.protobuf.BoolValue value)
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=true`. This default value is deprecated, and in a future release, if neither field is set, it will default to `stats_for_all_methods=false` in order to be safe by default. This behavior can be controlled with runtime override `envoy.deprecated_features.grpc_stats_filter_enable_stats_for_all_methods_by_default`.
.google.protobuf.BoolValue stats_for_all_methods = 3;public FilterConfig.Builder 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=true`. This default value is deprecated, and in a future release, if neither field is set, it will default to `stats_for_all_methods=false` in order to be safe by default. This behavior can be controlled with runtime override `envoy.deprecated_features.grpc_stats_filter_enable_stats_for_all_methods_by_default`.
.google.protobuf.BoolValue stats_for_all_methods = 3;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=true`. This default value is deprecated, and in a future release, if neither field is set, it will default to `stats_for_all_methods=false` in order to be safe by default. This behavior can be controlled with runtime override `envoy.deprecated_features.grpc_stats_filter_enable_stats_for_all_methods_by_default`.
.google.protobuf.BoolValue stats_for_all_methods = 3;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=true`. This default value is deprecated, and in a future release, if neither field is set, it will default to `stats_for_all_methods=false` in order to be safe by default. This behavior can be controlled with runtime override `envoy.deprecated_features.grpc_stats_filter_enable_stats_for_all_methods_by_default`.
.google.protobuf.BoolValue stats_for_all_methods = 3;getStatsForAllMethodsOrBuilder in interface FilterConfigOrBuilderpublic final FilterConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>public final FilterConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FilterConfig.Builder>Copyright © 2018–2021 The Envoy Project. All rights reserved.