public static final class Messages.TestOrcaReport extends com.google.protobuf.GeneratedMessageV3 implements Messages.TestOrcaReportOrBuilder
Metrics data the server will update and send to the client. It mirrors orca load report https://github.com/cncf/xds/blob/eded343319d09f30032952beda9840bbd3dcf7ac/xds/data/orca/v3/orca_load_report.proto#L15, but avoids orca dependency. Used by both per-query and out-of-band reporting tests.Protobuf type
grpc.testing.TestOrcaReport| Modifier and Type | Class and Description |
|---|---|
static class |
Messages.TestOrcaReport.Builder
Metrics data the server will update and send to the client.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CPU_UTILIZATION_FIELD_NUMBER |
static int |
MEMORY_UTILIZATION_FIELD_NUMBER |
static int |
REQUEST_COST_FIELD_NUMBER |
static int |
UTILIZATION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsRequestCost(String key)
map<string, double> request_cost = 3; |
boolean |
containsUtilization(String key)
map<string, double> utilization = 4; |
boolean |
equals(Object obj) |
double |
getCpuUtilization()
double cpu_utilization = 1; |
static Messages.TestOrcaReport |
getDefaultInstance() |
Messages.TestOrcaReport |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getMemoryUtilization()
double memory_utilization = 2; |
com.google.protobuf.Parser<Messages.TestOrcaReport> |
getParserForType() |
Map<String,Double> |
getRequestCost()
Deprecated.
|
int |
getRequestCostCount()
map<string, double> request_cost = 3; |
Map<String,Double> |
getRequestCostMap()
map<string, double> request_cost = 3; |
double |
getRequestCostOrDefault(String key,
double defaultValue)
map<string, double> request_cost = 3; |
double |
getRequestCostOrThrow(String key)
map<string, double> request_cost = 3; |
int |
getSerializedSize() |
Map<String,Double> |
getUtilization()
Deprecated.
|
int |
getUtilizationCount()
map<string, double> utilization = 4; |
Map<String,Double> |
getUtilizationMap()
map<string, double> utilization = 4; |
double |
getUtilizationOrDefault(String key,
double defaultValue)
map<string, double> utilization = 4; |
double |
getUtilizationOrThrow(String key)
map<string, double> utilization = 4; |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Messages.TestOrcaReport.Builder |
newBuilder() |
static Messages.TestOrcaReport.Builder |
newBuilder(Messages.TestOrcaReport prototype) |
Messages.TestOrcaReport.Builder |
newBuilderForType() |
protected Messages.TestOrcaReport.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Messages.TestOrcaReport |
parseDelimitedFrom(InputStream input) |
static Messages.TestOrcaReport |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Messages.TestOrcaReport |
parseFrom(byte[] data) |
static Messages.TestOrcaReport |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Messages.TestOrcaReport |
parseFrom(ByteBuffer data) |
static Messages.TestOrcaReport |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Messages.TestOrcaReport |
parseFrom(com.google.protobuf.ByteString data) |
static Messages.TestOrcaReport |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Messages.TestOrcaReport |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Messages.TestOrcaReport |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Messages.TestOrcaReport |
parseFrom(InputStream input) |
static Messages.TestOrcaReport |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Messages.TestOrcaReport> |
parser() |
Messages.TestOrcaReport.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CPU_UTILIZATION_FIELD_NUMBER
public static final int MEMORY_UTILIZATION_FIELD_NUMBER
public static final int REQUEST_COST_FIELD_NUMBER
public static final int UTILIZATION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public double getCpuUtilization()
double cpu_utilization = 1;getCpuUtilization in interface Messages.TestOrcaReportOrBuilderpublic double getMemoryUtilization()
double memory_utilization = 2;getMemoryUtilization in interface Messages.TestOrcaReportOrBuilderpublic int getRequestCostCount()
Messages.TestOrcaReportOrBuildermap<string, double> request_cost = 3;getRequestCostCount in interface Messages.TestOrcaReportOrBuilderpublic boolean containsRequestCost(String key)
map<string, double> request_cost = 3;containsRequestCost in interface Messages.TestOrcaReportOrBuilder@Deprecated public Map<String,Double> getRequestCost()
getRequestCostMap() instead.getRequestCost in interface Messages.TestOrcaReportOrBuilderpublic Map<String,Double> getRequestCostMap()
map<string, double> request_cost = 3;getRequestCostMap in interface Messages.TestOrcaReportOrBuilderpublic double getRequestCostOrDefault(String key, double defaultValue)
map<string, double> request_cost = 3;getRequestCostOrDefault in interface Messages.TestOrcaReportOrBuilderpublic double getRequestCostOrThrow(String key)
map<string, double> request_cost = 3;getRequestCostOrThrow in interface Messages.TestOrcaReportOrBuilderpublic int getUtilizationCount()
Messages.TestOrcaReportOrBuildermap<string, double> utilization = 4;getUtilizationCount in interface Messages.TestOrcaReportOrBuilderpublic boolean containsUtilization(String key)
map<string, double> utilization = 4;containsUtilization in interface Messages.TestOrcaReportOrBuilder@Deprecated public Map<String,Double> getUtilization()
getUtilizationMap() instead.getUtilization in interface Messages.TestOrcaReportOrBuilderpublic Map<String,Double> getUtilizationMap()
map<string, double> utilization = 4;getUtilizationMap in interface Messages.TestOrcaReportOrBuilderpublic double getUtilizationOrDefault(String key, double defaultValue)
map<string, double> utilization = 4;getUtilizationOrDefault in interface Messages.TestOrcaReportOrBuilderpublic double getUtilizationOrThrow(String key)
map<string, double> utilization = 4;getUtilizationOrThrow in interface Messages.TestOrcaReportOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Messages.TestOrcaReport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.TestOrcaReport parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.TestOrcaReport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.TestOrcaReport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.TestOrcaReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.TestOrcaReport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Messages.TestOrcaReport parseFrom(InputStream input) throws IOException
IOExceptionpublic static Messages.TestOrcaReport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Messages.TestOrcaReport parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Messages.TestOrcaReport parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Messages.TestOrcaReport parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Messages.TestOrcaReport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Messages.TestOrcaReport.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Messages.TestOrcaReport.Builder newBuilder()
public static Messages.TestOrcaReport.Builder newBuilder(Messages.TestOrcaReport prototype)
public Messages.TestOrcaReport.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Messages.TestOrcaReport.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Messages.TestOrcaReport getDefaultInstance()
public static com.google.protobuf.Parser<Messages.TestOrcaReport> parser()
public com.google.protobuf.Parser<Messages.TestOrcaReport> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Messages.TestOrcaReport getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder