Class LoadStatsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<LoadStatsResponse.Builder>
-
- io.envoyproxy.envoy.service.load_stats.v3.LoadStatsResponse.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,LoadStatsResponseOrBuilder
,java.lang.Cloneable
- Enclosing class:
- LoadStatsResponse
public static final class LoadStatsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<LoadStatsResponse.Builder> implements LoadStatsResponseOrBuilder
The management server sends envoy a LoadStatsResponse with all clusters it is interested in learning load stats about.
Protobuf typeenvoy.service.load_stats.v3.LoadStatsResponse
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private com.google.protobuf.LazyStringArrayList
clusters_
private com.google.protobuf.Duration
loadReportingInterval_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
loadReportingIntervalBuilder_
private boolean
reportEndpointGranularity_
private boolean
sendAllClusters_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadStatsResponse.Builder
addAllClusters(java.lang.Iterable<java.lang.String> values)
Clusters to report stats for.LoadStatsResponse.Builder
addClusters(java.lang.String value)
Clusters to report stats for.LoadStatsResponse.Builder
addClustersBytes(com.google.protobuf.ByteString value)
Clusters to report stats for.LoadStatsResponse
build()
LoadStatsResponse
buildPartial()
private void
buildPartial0(LoadStatsResponse result)
LoadStatsResponse.Builder
clear()
LoadStatsResponse.Builder
clearClusters()
Clusters to report stats for.LoadStatsResponse.Builder
clearLoadReportingInterval()
The minimum interval of time to collect stats over.LoadStatsResponse.Builder
clearReportEndpointGranularity()
Set to ``true`` if the management server supports endpoint granularity report.LoadStatsResponse.Builder
clearSendAllClusters()
If true, the client should send all clusters it knows about.private void
ensureClustersIsMutable()
java.lang.String
getClusters(int index)
Clusters to report stats for.com.google.protobuf.ByteString
getClustersBytes(int index)
Clusters to report stats for.int
getClustersCount()
Clusters to report stats for.com.google.protobuf.ProtocolStringList
getClustersList()
Clusters to report stats for.LoadStatsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Duration
getLoadReportingInterval()
The minimum interval of time to collect stats over.com.google.protobuf.Duration.Builder
getLoadReportingIntervalBuilder()
The minimum interval of time to collect stats over.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
getLoadReportingIntervalFieldBuilder()
The minimum interval of time to collect stats over.com.google.protobuf.DurationOrBuilder
getLoadReportingIntervalOrBuilder()
The minimum interval of time to collect stats over.boolean
getReportEndpointGranularity()
Set to ``true`` if the management server supports endpoint granularity report.boolean
getSendAllClusters()
If true, the client should send all clusters it knows about.boolean
hasLoadReportingInterval()
The minimum interval of time to collect stats over.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
LoadStatsResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
LoadStatsResponse.Builder
mergeFrom(com.google.protobuf.Message other)
LoadStatsResponse.Builder
mergeFrom(LoadStatsResponse other)
LoadStatsResponse.Builder
mergeLoadReportingInterval(com.google.protobuf.Duration value)
The minimum interval of time to collect stats over.LoadStatsResponse.Builder
setClusters(int index, java.lang.String value)
Clusters to report stats for.LoadStatsResponse.Builder
setLoadReportingInterval(com.google.protobuf.Duration value)
The minimum interval of time to collect stats over.LoadStatsResponse.Builder
setLoadReportingInterval(com.google.protobuf.Duration.Builder builderForValue)
The minimum interval of time to collect stats over.LoadStatsResponse.Builder
setReportEndpointGranularity(boolean value)
Set to ``true`` if the management server supports endpoint granularity report.LoadStatsResponse.Builder
setSendAllClusters(boolean value)
If true, the client should send all clusters it knows about.-
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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
clusters_
private com.google.protobuf.LazyStringArrayList clusters_
-
sendAllClusters_
private boolean sendAllClusters_
-
loadReportingInterval_
private com.google.protobuf.Duration loadReportingInterval_
-
loadReportingIntervalBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> loadReportingIntervalBuilder_
-
reportEndpointGranularity_
private boolean reportEndpointGranularity_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<LoadStatsResponse.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public LoadStatsResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<LoadStatsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<LoadStatsResponse.Builder>
-
getDefaultInstanceForType
public LoadStatsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LoadStatsResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LoadStatsResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(LoadStatsResponse result)
-
mergeFrom
public LoadStatsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LoadStatsResponse.Builder>
-
mergeFrom
public LoadStatsResponse.Builder mergeFrom(LoadStatsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<LoadStatsResponse.Builder>
-
mergeFrom
public LoadStatsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LoadStatsResponse.Builder>
- Throws:
java.io.IOException
-
ensureClustersIsMutable
private void ensureClustersIsMutable()
-
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:
getClustersList
in 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:
getClustersCount
in interfaceLoadStatsResponseOrBuilder
- Returns:
- The count of clusters.
-
getClusters
public java.lang.String getClusters(int index)
Clusters to report stats for. Not populated if ``send_all_clusters`` is true.
repeated string clusters = 1;
- Specified by:
getClusters
in 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:
getClustersBytes
in 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, java.lang.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(java.lang.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(java.lang.Iterable<java.lang.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_v3_api_field_config.core.v3.Node.client_features>` field will honor this field.
bool send_all_clusters = 4;
- Specified by:
getSendAllClusters
in 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_v3_api_field_config.core.v3.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_v3_api_field_config.core.v3.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:
hasLoadReportingInterval
in 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:
getLoadReportingInterval
in 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:
getLoadReportingIntervalOrBuilder
in interfaceLoadStatsResponseOrBuilder
-
getLoadReportingIntervalFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> getLoadReportingIntervalFieldBuilder()
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;
-
getReportEndpointGranularity
public boolean getReportEndpointGranularity()
Set to ``true`` if the management server supports endpoint granularity report.
bool report_endpoint_granularity = 3;
- Specified by:
getReportEndpointGranularity
in 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.
-
-