Class TrackClusterStats.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<TrackClusterStats.Builder>
-
- io.envoyproxy.envoy.config.cluster.v3.TrackClusterStats.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TrackClusterStatsOrBuilder,java.lang.Cloneable
- Enclosing class:
- TrackClusterStats
public static final class TrackClusterStats.Builder extends com.google.protobuf.GeneratedMessage.Builder<TrackClusterStats.Builder> implements TrackClusterStatsOrBuilder
Protobuf typeenvoy.config.cluster.v3.TrackClusterStats
-
-
Field Summary
Fields Modifier and Type Field Description private intbitField0_private booleanperEndpointStats_private booleanrequestResponseSizes_private booleantimeoutBudgets_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TrackClusterStatsbuild()TrackClusterStatsbuildPartial()private voidbuildPartial0(TrackClusterStats result)TrackClusterStats.Builderclear()TrackClusterStats.BuilderclearPerEndpointStats()If true, some stats will be emitted per-endpoint, similar to the stats in admin ``/clusters`` output.TrackClusterStats.BuilderclearRequestResponseSizes()If request_response_sizes is true, then the :ref:`histograms <config_cluster_manager_cluster_stats_request_response_sizes>` tracking header and body sizes of requests and responses will be published.TrackClusterStats.BuilderclearTimeoutBudgets()If timeout_budgets is true, the :ref:`timeout budget histograms <config_cluster_manager_cluster_stats_timeout_budgets>` will be published for each request.TrackClusterStatsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetPerEndpointStats()If true, some stats will be emitted per-endpoint, similar to the stats in admin ``/clusters`` output.booleangetRequestResponseSizes()If request_response_sizes is true, then the :ref:`histograms <config_cluster_manager_cluster_stats_request_response_sizes>` tracking header and body sizes of requests and responses will be published.booleangetTimeoutBudgets()If timeout_budgets is true, the :ref:`timeout budget histograms <config_cluster_manager_cluster_stats_timeout_budgets>` will be published for each request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TrackClusterStats.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TrackClusterStats.BuildermergeFrom(com.google.protobuf.Message other)TrackClusterStats.BuildermergeFrom(TrackClusterStats other)TrackClusterStats.BuildersetPerEndpointStats(boolean value)If true, some stats will be emitted per-endpoint, similar to the stats in admin ``/clusters`` output.TrackClusterStats.BuildersetRequestResponseSizes(boolean value)If request_response_sizes is true, then the :ref:`histograms <config_cluster_manager_cluster_stats_request_response_sizes>` tracking header and body sizes of requests and responses will be published.TrackClusterStats.BuildersetTimeoutBudgets(boolean value)If timeout_budgets is true, the :ref:`timeout budget histograms <config_cluster_manager_cluster_stats_timeout_budgets>` will be published for each request.-
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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<TrackClusterStats.Builder>
-
clear
public TrackClusterStats.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<TrackClusterStats.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<TrackClusterStats.Builder>
-
getDefaultInstanceForType
public TrackClusterStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TrackClusterStats build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TrackClusterStats buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(TrackClusterStats result)
-
mergeFrom
public TrackClusterStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TrackClusterStats.Builder>
-
mergeFrom
public TrackClusterStats.Builder mergeFrom(TrackClusterStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TrackClusterStats.Builder>
-
mergeFrom
public TrackClusterStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TrackClusterStats.Builder>- Throws:
java.io.IOException
-
getTimeoutBudgets
public boolean getTimeoutBudgets()
If timeout_budgets is true, the :ref:`timeout budget histograms <config_cluster_manager_cluster_stats_timeout_budgets>` will be published for each request. These show what percentage of a request's per try and global timeout was used. A value of 0 would indicate that none of the timeout was used or that the timeout was infinite. A value of 100 would indicate that the request took the entirety of the timeout given to it.
bool timeout_budgets = 1;- Specified by:
getTimeoutBudgetsin interfaceTrackClusterStatsOrBuilder- Returns:
- The timeoutBudgets.
-
setTimeoutBudgets
public TrackClusterStats.Builder setTimeoutBudgets(boolean value)
If timeout_budgets is true, the :ref:`timeout budget histograms <config_cluster_manager_cluster_stats_timeout_budgets>` will be published for each request. These show what percentage of a request's per try and global timeout was used. A value of 0 would indicate that none of the timeout was used or that the timeout was infinite. A value of 100 would indicate that the request took the entirety of the timeout given to it.
bool timeout_budgets = 1;- Parameters:
value- The timeoutBudgets to set.- Returns:
- This builder for chaining.
-
clearTimeoutBudgets
public TrackClusterStats.Builder clearTimeoutBudgets()
If timeout_budgets is true, the :ref:`timeout budget histograms <config_cluster_manager_cluster_stats_timeout_budgets>` will be published for each request. These show what percentage of a request's per try and global timeout was used. A value of 0 would indicate that none of the timeout was used or that the timeout was infinite. A value of 100 would indicate that the request took the entirety of the timeout given to it.
bool timeout_budgets = 1;- Returns:
- This builder for chaining.
-
getRequestResponseSizes
public boolean getRequestResponseSizes()
If request_response_sizes is true, then the :ref:`histograms <config_cluster_manager_cluster_stats_request_response_sizes>` tracking header and body sizes of requests and responses will be published.
bool request_response_sizes = 2;- Specified by:
getRequestResponseSizesin interfaceTrackClusterStatsOrBuilder- Returns:
- The requestResponseSizes.
-
setRequestResponseSizes
public TrackClusterStats.Builder setRequestResponseSizes(boolean value)
If request_response_sizes is true, then the :ref:`histograms <config_cluster_manager_cluster_stats_request_response_sizes>` tracking header and body sizes of requests and responses will be published.
bool request_response_sizes = 2;- Parameters:
value- The requestResponseSizes to set.- Returns:
- This builder for chaining.
-
clearRequestResponseSizes
public TrackClusterStats.Builder clearRequestResponseSizes()
If request_response_sizes is true, then the :ref:`histograms <config_cluster_manager_cluster_stats_request_response_sizes>` tracking header and body sizes of requests and responses will be published.
bool request_response_sizes = 2;- Returns:
- This builder for chaining.
-
getPerEndpointStats
public boolean getPerEndpointStats()
If true, some stats will be emitted per-endpoint, similar to the stats in admin ``/clusters`` output. This does not currently output correct stats during a hot-restart. This is not currently implemented by all stat sinks. These stats do not honor filtering or tag extraction rules in :ref:`StatsConfig <envoy_v3_api_msg_config.metrics.v3.StatsConfig>` (but fixed-value tags are supported). Admin endpoint filtering is supported. This may not be used at the same time as :ref:`load_stats_config <envoy_v3_api_field_config.bootstrap.v3.ClusterManager.load_stats_config>`.
bool per_endpoint_stats = 3;- Specified by:
getPerEndpointStatsin interfaceTrackClusterStatsOrBuilder- Returns:
- The perEndpointStats.
-
setPerEndpointStats
public TrackClusterStats.Builder setPerEndpointStats(boolean value)
If true, some stats will be emitted per-endpoint, similar to the stats in admin ``/clusters`` output. This does not currently output correct stats during a hot-restart. This is not currently implemented by all stat sinks. These stats do not honor filtering or tag extraction rules in :ref:`StatsConfig <envoy_v3_api_msg_config.metrics.v3.StatsConfig>` (but fixed-value tags are supported). Admin endpoint filtering is supported. This may not be used at the same time as :ref:`load_stats_config <envoy_v3_api_field_config.bootstrap.v3.ClusterManager.load_stats_config>`.
bool per_endpoint_stats = 3;- Parameters:
value- The perEndpointStats to set.- Returns:
- This builder for chaining.
-
clearPerEndpointStats
public TrackClusterStats.Builder clearPerEndpointStats()
If true, some stats will be emitted per-endpoint, similar to the stats in admin ``/clusters`` output. This does not currently output correct stats during a hot-restart. This is not currently implemented by all stat sinks. These stats do not honor filtering or tag extraction rules in :ref:`StatsConfig <envoy_v3_api_msg_config.metrics.v3.StatsConfig>` (but fixed-value tags are supported). Admin endpoint filtering is supported. This may not be used at the same time as :ref:`load_stats_config <envoy_v3_api_field_config.bootstrap.v3.ClusterManager.load_stats_config>`.
bool per_endpoint_stats = 3;- Returns:
- This builder for chaining.
-
-