public class SbcMetricsData extends ReadOnlyMessage
message MetricsData { repeated ResourceMetrics resource_metrics = 1; }
Constructor and Description |
---|
SbcMetricsData(List<SbcResourceMetrics> resourceMetrics) |
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.MessageLite |
getDefaultInstanceForType()
This method provides the default instance for the object.
|
com.google.protobuf.Parser<? extends com.google.protobuf.MessageLite> |
getParserForType()
This is coming from protobuf's message life format.
|
boolean |
isInitialized()
As the name of the method suggests, it says if the object is fully initialised.
|
com.google.protobuf.MessageLite.Builder |
newBuilderForType()
This is coming from protobuf's message life format.
|
static SbcMetricsData |
parseFrom(byte[] metricsData)
A convenience method (copied the idea entirely from the original protobuf generated code) instead of
calling SbcMetricsData.getDefaultInstanceForType().getParserForType().parsePartialFrom(metricsData).
|
List<SbcResourceMetrics> |
resourceMetrics()
The resource metrics.
|
getSerializedSize, toBuilder, toByteArray, toByteString, writeDelimitedTo, writeTo, writeTo
public SbcMetricsData(List<SbcResourceMetrics> resourceMetrics)
public static SbcMetricsData parseFrom(byte[] metricsData) throws IOException
metricsData
- the MetricsData compatible message as bytes array.SbcMetricsData
IOException
- This shouldn't be thrown under any circumstances but is part of the interface of the parser,
because it allows also reading of streams of bytes.public List<SbcResourceMetrics> resourceMetrics()
public com.google.protobuf.Parser<? extends com.google.protobuf.MessageLite> getParserForType()
public com.google.protobuf.MessageLite.Builder newBuilderForType()
public com.google.protobuf.MessageLite getDefaultInstanceForType()
public boolean isInitialized()