Class LoadStatsResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.service.load_stats.v2.LoadStatsResponse
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,LoadStatsResponseOrBuilder,Serializable
public final class LoadStatsResponse extends com.google.protobuf.GeneratedMessageV3 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoadStatsResponse.BuilderThe management server sends envoy a LoadStatsResponse with all clusters it is interested in learning load stats about.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCLUSTERS_FIELD_NUMBERstatic intLOAD_REPORTING_INTERVAL_FIELD_NUMBERstatic intREPORT_ENDPOINT_GRANULARITY_FIELD_NUMBERstatic intSEND_ALL_CLUSTERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)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.static LoadStatsResponsegetDefaultInstance()LoadStatsResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.DurationgetLoadReportingInterval()The minimum interval of time to collect stats over.com.google.protobuf.DurationOrBuildergetLoadReportingIntervalOrBuilder()The minimum interval of time to collect stats over.com.google.protobuf.Parser<LoadStatsResponse>getParserForType()booleangetReportEndpointGranularity()Set to *true* if the management server supports endpoint granularity report.booleangetSendAllClusters()If true, the client should send all clusters it knows about.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasLoadReportingInterval()The minimum interval of time to collect stats over.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static LoadStatsResponse.BuildernewBuilder()static LoadStatsResponse.BuildernewBuilder(LoadStatsResponse prototype)LoadStatsResponse.BuildernewBuilderForType()protected LoadStatsResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static LoadStatsResponseparseDelimitedFrom(InputStream input)static LoadStatsResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LoadStatsResponseparseFrom(byte[] data)static LoadStatsResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LoadStatsResponseparseFrom(com.google.protobuf.ByteString data)static LoadStatsResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LoadStatsResponseparseFrom(com.google.protobuf.CodedInputStream input)static LoadStatsResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LoadStatsResponseparseFrom(InputStream input)static LoadStatsResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static LoadStatsResponseparseFrom(ByteBuffer data)static LoadStatsResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<LoadStatsResponse>parser()LoadStatsResponse.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CLUSTERS_FIELD_NUMBER
public static final int CLUSTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEND_ALL_CLUSTERS_FIELD_NUMBER
public static final int SEND_ALL_CLUSTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOAD_REPORTING_INTERVAL_FIELD_NUMBER
public static final int LOAD_REPORTING_INTERVAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REPORT_ENDPOINT_GRANULARITY_FIELD_NUMBER
public static final int REPORT_ENDPOINT_GRANULARITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LoadStatsResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LoadStatsResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LoadStatsResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LoadStatsResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LoadStatsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LoadStatsResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LoadStatsResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LoadStatsResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LoadStatsResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static LoadStatsResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static LoadStatsResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static LoadStatsResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public LoadStatsResponse.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static LoadStatsResponse.Builder newBuilder()
-
newBuilder
public static LoadStatsResponse.Builder newBuilder(LoadStatsResponse prototype)
-
toBuilder
public LoadStatsResponse.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LoadStatsResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static LoadStatsResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<LoadStatsResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<LoadStatsResponse> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public LoadStatsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-