Package io.grpc.testing.integration
Class Messages.TestOrcaReport
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.grpc.testing.integration.Messages.TestOrcaReport
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Messages.TestOrcaReportOrBuilder,java.io.Serializable
- Enclosing class:
- Messages
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 typegrpc.testing.TestOrcaReport- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessages.TestOrcaReport.BuilderMetrics data the server will update and send to the client.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intCPU_UTILIZATION_FIELD_NUMBERstatic intMEMORY_UTILIZATION_FIELD_NUMBERstatic intREQUEST_COST_FIELD_NUMBERstatic intUTILIZATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsRequestCost(java.lang.String key)map<string, double> request_cost = 3;booleancontainsUtilization(java.lang.String key)map<string, double> utilization = 4;booleanequals(java.lang.Object obj)doublegetCpuUtilization()double cpu_utilization = 1;static Messages.TestOrcaReportgetDefaultInstance()Messages.TestOrcaReportgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()doublegetMemoryUtilization()double memory_utilization = 2;com.google.protobuf.Parser<Messages.TestOrcaReport>getParserForType()java.util.Map<java.lang.String,java.lang.Double>getRequestCost()Deprecated.intgetRequestCostCount()map<string, double> request_cost = 3;java.util.Map<java.lang.String,java.lang.Double>getRequestCostMap()map<string, double> request_cost = 3;doublegetRequestCostOrDefault(java.lang.String key, double defaultValue)map<string, double> request_cost = 3;doublegetRequestCostOrThrow(java.lang.String key)map<string, double> request_cost = 3;intgetSerializedSize()java.util.Map<java.lang.String,java.lang.Double>getUtilization()Deprecated.intgetUtilizationCount()map<string, double> utilization = 4;java.util.Map<java.lang.String,java.lang.Double>getUtilizationMap()map<string, double> utilization = 4;doublegetUtilizationOrDefault(java.lang.String key, double defaultValue)map<string, double> utilization = 4;doublegetUtilizationOrThrow(java.lang.String key)map<string, double> utilization = 4;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Messages.TestOrcaReport.BuildernewBuilder()static Messages.TestOrcaReport.BuildernewBuilder(Messages.TestOrcaReport prototype)Messages.TestOrcaReport.BuildernewBuilderForType()protected Messages.TestOrcaReport.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Messages.TestOrcaReportparseDelimitedFrom(java.io.InputStream input)static Messages.TestOrcaReportparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.TestOrcaReportparseFrom(byte[] data)static Messages.TestOrcaReportparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.TestOrcaReportparseFrom(com.google.protobuf.ByteString data)static Messages.TestOrcaReportparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.TestOrcaReportparseFrom(com.google.protobuf.CodedInputStream input)static Messages.TestOrcaReportparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.TestOrcaReportparseFrom(java.io.InputStream input)static Messages.TestOrcaReportparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Messages.TestOrcaReportparseFrom(java.nio.ByteBuffer data)static Messages.TestOrcaReportparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Messages.TestOrcaReport>parser()Messages.TestOrcaReport.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, 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, 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
-
CPU_UTILIZATION_FIELD_NUMBER
public static final int CPU_UTILIZATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEMORY_UTILIZATION_FIELD_NUMBER
public static final int MEMORY_UTILIZATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_COST_FIELD_NUMBER
public static final int REQUEST_COST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UTILIZATION_FIELD_NUMBER
public static final int UTILIZATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCpuUtilization
public double getCpuUtilization()
double cpu_utilization = 1;- Specified by:
getCpuUtilizationin interfaceMessages.TestOrcaReportOrBuilder- Returns:
- The cpuUtilization.
-
getMemoryUtilization
public double getMemoryUtilization()
double memory_utilization = 2;- Specified by:
getMemoryUtilizationin interfaceMessages.TestOrcaReportOrBuilder- Returns:
- The memoryUtilization.
-
getRequestCostCount
public int getRequestCostCount()
Description copied from interface:Messages.TestOrcaReportOrBuildermap<string, double> request_cost = 3;- Specified by:
getRequestCostCountin interfaceMessages.TestOrcaReportOrBuilder
-
containsRequestCost
public boolean containsRequestCost(java.lang.String key)
map<string, double> request_cost = 3;- Specified by:
containsRequestCostin interfaceMessages.TestOrcaReportOrBuilder
-
getRequestCost
@Deprecated public java.util.Map<java.lang.String,java.lang.Double> getRequestCost()
Deprecated.UsegetRequestCostMap()instead.- Specified by:
getRequestCostin interfaceMessages.TestOrcaReportOrBuilder
-
getRequestCostMap
public java.util.Map<java.lang.String,java.lang.Double> getRequestCostMap()
map<string, double> request_cost = 3;- Specified by:
getRequestCostMapin interfaceMessages.TestOrcaReportOrBuilder
-
getRequestCostOrDefault
public double getRequestCostOrDefault(java.lang.String key, double defaultValue)map<string, double> request_cost = 3;- Specified by:
getRequestCostOrDefaultin interfaceMessages.TestOrcaReportOrBuilder
-
getRequestCostOrThrow
public double getRequestCostOrThrow(java.lang.String key)
map<string, double> request_cost = 3;- Specified by:
getRequestCostOrThrowin interfaceMessages.TestOrcaReportOrBuilder
-
getUtilizationCount
public int getUtilizationCount()
Description copied from interface:Messages.TestOrcaReportOrBuildermap<string, double> utilization = 4;- Specified by:
getUtilizationCountin interfaceMessages.TestOrcaReportOrBuilder
-
containsUtilization
public boolean containsUtilization(java.lang.String key)
map<string, double> utilization = 4;- Specified by:
containsUtilizationin interfaceMessages.TestOrcaReportOrBuilder
-
getUtilization
@Deprecated public java.util.Map<java.lang.String,java.lang.Double> getUtilization()
Deprecated.UsegetUtilizationMap()instead.- Specified by:
getUtilizationin interfaceMessages.TestOrcaReportOrBuilder
-
getUtilizationMap
public java.util.Map<java.lang.String,java.lang.Double> getUtilizationMap()
map<string, double> utilization = 4;- Specified by:
getUtilizationMapin interfaceMessages.TestOrcaReportOrBuilder
-
getUtilizationOrDefault
public double getUtilizationOrDefault(java.lang.String key, double defaultValue)map<string, double> utilization = 4;- Specified by:
getUtilizationOrDefaultin interfaceMessages.TestOrcaReportOrBuilder
-
getUtilizationOrThrow
public double getUtilizationOrThrow(java.lang.String key)
map<string, double> utilization = 4;- Specified by:
getUtilizationOrThrowin interfaceMessages.TestOrcaReportOrBuilder
-
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 java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.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 Messages.TestOrcaReport parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Messages.TestOrcaReport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Messages.TestOrcaReport parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Messages.TestOrcaReport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Messages.TestOrcaReport.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Messages.TestOrcaReport.Builder newBuilder()
-
newBuilder
public static Messages.TestOrcaReport.Builder newBuilder(Messages.TestOrcaReport prototype)
-
toBuilder
public Messages.TestOrcaReport.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Messages.TestOrcaReport.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Messages.TestOrcaReport getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Messages.TestOrcaReport> parser()
-
getParserForType
public com.google.protobuf.Parser<Messages.TestOrcaReport> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Messages.TestOrcaReport getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-