Class LoadStatsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LoadStatsResponse.Builder>
-
- io.envoyproxy.envoy.service.load_stats.v2.LoadStatsResponse.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LoadStatsResponseOrBuilder,Cloneable
- Enclosing class:
- LoadStatsResponse
public static final class LoadStatsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LoadStatsResponse.Builder> implements LoadStatsResponseOrBuilder
The management server sends envoy a LoadStatsResponse with all clusters it is interested in learning load stats about. [#not-implemented-hide:] Not configuration. TBD how to doc proto APIs.
Protobuf typeenvoy.service.load_stats.v2.LoadStatsResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadStatsResponse.BuilderaddAllClusters(Iterable<String> values)Clusters to report stats for.LoadStatsResponse.BuilderaddClusters(String value)Clusters to report stats for.LoadStatsResponse.BuilderaddClustersBytes(com.google.protobuf.ByteString value)Clusters to report stats for.LoadStatsResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LoadStatsResponsebuild()LoadStatsResponsebuildPartial()LoadStatsResponse.Builderclear()LoadStatsResponse.BuilderclearClusters()Clusters to report stats for.LoadStatsResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LoadStatsResponse.BuilderclearLoadReportingInterval()The minimum interval of time to collect stats over.LoadStatsResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LoadStatsResponse.BuilderclearReportEndpointGranularity()Set to *true* if the management server supports endpoint granularity report.LoadStatsResponse.BuilderclearSendAllClusters()If true, the client should send all clusters it knows about.LoadStatsResponse.Builderclone()StringgetClusters(int index)Clusters to report stats for.com.google.protobuf.ByteStringgetClustersBytes(int index)Clusters to report stats for.intgetClustersCount()Clusters to report stats for.com.google.protobuf.ProtocolStringListgetClustersList()Clusters to report stats for.LoadStatsResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetLoadReportingInterval()The minimum interval of time to collect stats over.com.google.protobuf.Duration.BuildergetLoadReportingIntervalBuilder()The minimum interval of time to collect stats over.com.google.protobuf.DurationOrBuildergetLoadReportingIntervalOrBuilder()The minimum interval of time to collect stats over.booleangetReportEndpointGranularity()Set to *true* if the management server supports endpoint granularity report.booleangetSendAllClusters()If true, the client should send all clusters it knows about.booleanhasLoadReportingInterval()The minimum interval of time to collect stats over.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LoadStatsResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LoadStatsResponse.BuildermergeFrom(com.google.protobuf.Message other)LoadStatsResponse.BuildermergeFrom(LoadStatsResponse other)LoadStatsResponse.BuildermergeLoadReportingInterval(com.google.protobuf.Duration value)The minimum interval of time to collect stats over.LoadStatsResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LoadStatsResponse.BuildersetClusters(int index, String value)Clusters to report stats for.LoadStatsResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LoadStatsResponse.BuildersetLoadReportingInterval(com.google.protobuf.Duration value)The minimum interval of time to collect stats over.LoadStatsResponse.BuildersetLoadReportingInterval(com.google.protobuf.Duration.Builder builderForValue)The minimum interval of time to collect stats over.LoadStatsResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LoadStatsResponse.BuildersetReportEndpointGranularity(boolean value)Set to *true* if the management server supports endpoint granularity report.LoadStatsResponse.BuildersetSendAllClusters(boolean value)If true, the client should send all clusters it knows about.LoadStatsResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LoadStatsResponse.Builder>
-
clear
public LoadStatsResponse.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<LoadStatsResponse.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<LoadStatsResponse.Builder>
-
getDefaultInstanceForType
public LoadStatsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LoadStatsResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LoadStatsResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LoadStatsResponse.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<LoadStatsResponse.Builder>
-
setField
public LoadStatsResponse.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<LoadStatsResponse.Builder>
-
clearField
public LoadStatsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadStatsResponse.Builder>
-
clearOneof
public LoadStatsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadStatsResponse.Builder>
-
setRepeatedField
public LoadStatsResponse.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<LoadStatsResponse.Builder>
-
addRepeatedField
public LoadStatsResponse.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<LoadStatsResponse.Builder>
-
mergeFrom
public LoadStatsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LoadStatsResponse.Builder>
-
mergeFrom
public LoadStatsResponse.Builder mergeFrom(LoadStatsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadStatsResponse.Builder>
-
mergeFrom
public LoadStatsResponse.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<LoadStatsResponse.Builder>- Throws:
IOException
-
getClustersList
public com.google.protobuf.ProtocolStringList getClustersList()
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Specified by:
getClustersListin interfaceLoadStatsResponseOrBuilder- Returns:
- A list containing the clusters.
-
getClustersCount
public int getClustersCount()
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Specified by:
getClustersCountin interfaceLoadStatsResponseOrBuilder- Returns:
- The count of clusters.
-
getClusters
public String getClusters(int index)
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Specified by:
getClustersin interfaceLoadStatsResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The clusters at the given index.
-
getClustersBytes
public com.google.protobuf.ByteString getClustersBytes(int index)
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Specified by:
getClustersBytesin interfaceLoadStatsResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the clusters at the given index.
-
setClusters
public LoadStatsResponse.Builder setClusters(int index, String value)
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Parameters:
index- The index to set the value at.value- The clusters to set.- Returns:
- This builder for chaining.
-
addClusters
public LoadStatsResponse.Builder addClusters(String value)
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Parameters:
value- The clusters to add.- Returns:
- This builder for chaining.
-
addAllClusters
public LoadStatsResponse.Builder addAllClusters(Iterable<String> values)
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Parameters:
values- The clusters to add.- Returns:
- This builder for chaining.
-
clearClusters
public LoadStatsResponse.Builder clearClusters()
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Returns:
- This builder for chaining.
-
addClustersBytes
public LoadStatsResponse.Builder addClustersBytes(com.google.protobuf.ByteString value)
Clusters to report stats for. Not populated if *send_all_clusters* is true.
repeated string clusters = 1;- Parameters:
value- The bytes of the clusters to add.- Returns:
- This builder for chaining.
-
getSendAllClusters
public boolean getSendAllClusters()
If true, the client should send all clusters it knows about. Only clients that advertise the "envoy.lrs.supports_send_all_clusters" capability in their :ref:`client_features<envoy_api_field_core.Node.client_features>` field will honor this field.
bool send_all_clusters = 4;- Specified by:
getSendAllClustersin interfaceLoadStatsResponseOrBuilder- Returns:
- The sendAllClusters.
-
setSendAllClusters
public LoadStatsResponse.Builder setSendAllClusters(boolean value)
If true, the client should send all clusters it knows about. Only clients that advertise the "envoy.lrs.supports_send_all_clusters" capability in their :ref:`client_features<envoy_api_field_core.Node.client_features>` field will honor this field.
bool send_all_clusters = 4;- Parameters:
value- The sendAllClusters to set.- Returns:
- This builder for chaining.
-
clearSendAllClusters
public LoadStatsResponse.Builder clearSendAllClusters()
If true, the client should send all clusters it knows about. Only clients that advertise the "envoy.lrs.supports_send_all_clusters" capability in their :ref:`client_features<envoy_api_field_core.Node.client_features>` field will honor this field.
bool send_all_clusters = 4;- Returns:
- This builder for chaining.
-
hasLoadReportingInterval
public boolean hasLoadReportingInterval()
The minimum interval of time to collect stats over. This is only a minimum for two reasons: 1. There may be some delay from when the timer fires until stats sampling occurs. 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic that is observed in between the corresponding previous *LoadStatsRequest* and this *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period of inobservability that might otherwise exists between the messages. New clusters are not subject to this consideration..google.protobuf.Duration load_reporting_interval = 2;- Specified by:
hasLoadReportingIntervalin interfaceLoadStatsResponseOrBuilder- Returns:
- Whether the loadReportingInterval field is set.
-
getLoadReportingInterval
public com.google.protobuf.Duration getLoadReportingInterval()
The minimum interval of time to collect stats over. This is only a minimum for two reasons: 1. There may be some delay from when the timer fires until stats sampling occurs. 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic that is observed in between the corresponding previous *LoadStatsRequest* and this *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period of inobservability that might otherwise exists between the messages. New clusters are not subject to this consideration..google.protobuf.Duration load_reporting_interval = 2;- Specified by:
getLoadReportingIntervalin interfaceLoadStatsResponseOrBuilder- Returns:
- The loadReportingInterval.
-
setLoadReportingInterval
public LoadStatsResponse.Builder setLoadReportingInterval(com.google.protobuf.Duration value)
The minimum interval of time to collect stats over. This is only a minimum for two reasons: 1. There may be some delay from when the timer fires until stats sampling occurs. 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic that is observed in between the corresponding previous *LoadStatsRequest* and this *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period of inobservability that might otherwise exists between the messages. New clusters are not subject to this consideration..google.protobuf.Duration load_reporting_interval = 2;
-
setLoadReportingInterval
public LoadStatsResponse.Builder setLoadReportingInterval(com.google.protobuf.Duration.Builder builderForValue)
The minimum interval of time to collect stats over. This is only a minimum for two reasons: 1. There may be some delay from when the timer fires until stats sampling occurs. 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic that is observed in between the corresponding previous *LoadStatsRequest* and this *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period of inobservability that might otherwise exists between the messages. New clusters are not subject to this consideration..google.protobuf.Duration load_reporting_interval = 2;
-
mergeLoadReportingInterval
public LoadStatsResponse.Builder mergeLoadReportingInterval(com.google.protobuf.Duration value)
The minimum interval of time to collect stats over. This is only a minimum for two reasons: 1. There may be some delay from when the timer fires until stats sampling occurs. 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic that is observed in between the corresponding previous *LoadStatsRequest* and this *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period of inobservability that might otherwise exists between the messages. New clusters are not subject to this consideration..google.protobuf.Duration load_reporting_interval = 2;
-
clearLoadReportingInterval
public LoadStatsResponse.Builder clearLoadReportingInterval()
The minimum interval of time to collect stats over. This is only a minimum for two reasons: 1. There may be some delay from when the timer fires until stats sampling occurs. 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic that is observed in between the corresponding previous *LoadStatsRequest* and this *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period of inobservability that might otherwise exists between the messages. New clusters are not subject to this consideration..google.protobuf.Duration load_reporting_interval = 2;
-
getLoadReportingIntervalBuilder
public com.google.protobuf.Duration.Builder getLoadReportingIntervalBuilder()
The minimum interval of time to collect stats over. This is only a minimum for two reasons: 1. There may be some delay from when the timer fires until stats sampling occurs. 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic that is observed in between the corresponding previous *LoadStatsRequest* and this *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period of inobservability that might otherwise exists between the messages. New clusters are not subject to this consideration..google.protobuf.Duration load_reporting_interval = 2;
-
getLoadReportingIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getLoadReportingIntervalOrBuilder()
The minimum interval of time to collect stats over. This is only a minimum for two reasons: 1. There may be some delay from when the timer fires until stats sampling occurs. 2. For clusters that were already feature in the previous *LoadStatsResponse*, any traffic that is observed in between the corresponding previous *LoadStatsRequest* and this *LoadStatsResponse* will also be accumulated and billed to the cluster. This avoids a period of inobservability that might otherwise exists between the messages. New clusters are not subject to this consideration..google.protobuf.Duration load_reporting_interval = 2;- Specified by:
getLoadReportingIntervalOrBuilderin interfaceLoadStatsResponseOrBuilder
-
getReportEndpointGranularity
public boolean getReportEndpointGranularity()
Set to *true* if the management server supports endpoint granularity report.
bool report_endpoint_granularity = 3;- Specified by:
getReportEndpointGranularityin interfaceLoadStatsResponseOrBuilder- Returns:
- The reportEndpointGranularity.
-
setReportEndpointGranularity
public LoadStatsResponse.Builder setReportEndpointGranularity(boolean value)
Set to *true* if the management server supports endpoint granularity report.
bool report_endpoint_granularity = 3;- Parameters:
value- The reportEndpointGranularity to set.- Returns:
- This builder for chaining.
-
clearReportEndpointGranularity
public LoadStatsResponse.Builder clearReportEndpointGranularity()
Set to *true* if the management server supports endpoint granularity report.
bool report_endpoint_granularity = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final LoadStatsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadStatsResponse.Builder>
-
mergeUnknownFields
public final LoadStatsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LoadStatsResponse.Builder>
-
-