Package com.github.xds.data.orca.v3
Class OrcaLoadReport.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<OrcaLoadReport.Builder>
com.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
com.github.xds.data.orca.v3.OrcaLoadReport.Builder
- All Implemented Interfaces:
OrcaLoadReportOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
OrcaLoadReport
public static final class OrcaLoadReport.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
implements OrcaLoadReportOrBuilder
Protobuf type
xds.data.orca.v3.OrcaLoadReport-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate intprivate doubleprivate doubleprivate doubleprivate longprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidbuildPartial0(OrcaLoadReport result) clear()Application specific utilization expressed as a fraction of available resources.CPU utilization expressed as a fraction of available CPU resources.clearEps()Total EPS (errors/second) being served by an endpoint.Memory utilization expressed as a fraction of available memory resources.clearRps()Deprecated.xds.data.orca.v3.OrcaLoadReport.rps is deprecated.Total RPS being served by an endpoint.booleanApplication specific opaque metrics.booleanApplication specific requests costs.booleanResource utilization values.doubleApplication specific utilization expressed as a fraction of available resources.doubleCPU utilization expressed as a fraction of available CPU resources.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoublegetEps()Total EPS (errors/second) being served by an endpoint.doubleMemory utilization expressed as a fraction of available memory resources.Deprecated.Deprecated.Deprecated.Deprecated.intApplication specific opaque metrics.Application specific opaque metrics.doublegetNamedMetricsOrDefault(String key, double defaultValue) Application specific opaque metrics.doubleApplication specific opaque metrics.Deprecated.intApplication specific requests costs.Application specific requests costs.doublegetRequestCostOrDefault(String key, double defaultValue) Application specific requests costs.doubleApplication specific requests costs.longgetRps()Deprecated.xds.data.orca.v3.OrcaLoadReport.rps is deprecated.doubleTotal RPS being served by an endpoint.Deprecated.intResource utilization values.Resource utilization values.doublegetUtilizationOrDefault(String key, double defaultValue) Resource utilization values.doubleResource utilization values.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(OrcaLoadReport other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllNamedMetrics(Map<String, Double> values) Application specific opaque metrics.putAllRequestCost(Map<String, Double> values) Application specific requests costs.putAllUtilization(Map<String, Double> values) Resource utilization values.putNamedMetrics(String key, double value) Application specific opaque metrics.putRequestCost(String key, double value) Application specific requests costs.putUtilization(String key, double value) Resource utilization values.removeNamedMetrics(String key) Application specific opaque metrics.removeRequestCost(String key) Application specific requests costs.removeUtilization(String key) Resource utilization values.setApplicationUtilization(double value) Application specific utilization expressed as a fraction of available resources.setCpuUtilization(double value) CPU utilization expressed as a fraction of available CPU resources.setEps(double value) Total EPS (errors/second) being served by an endpoint.setMemUtilization(double value) Memory utilization expressed as a fraction of available memory resources.setRps(long value) Deprecated.xds.data.orca.v3.OrcaLoadReport.rps is deprecated.setRpsFractional(double value) Total RPS being served by an endpoint.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, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
cpuUtilization_
private double cpuUtilization_ -
memUtilization_
private double memUtilization_ -
rps_
private long rps_ -
requestCost_
-
utilization_
-
rpsFractional_
private double rpsFractional_ -
eps_
private double eps_ -
namedMetrics_
-
applicationUtilization_
private double applicationUtilization_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OrcaLoadReport.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
mergeFrom
public OrcaLoadReport.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OrcaLoadReport.Builder>- Throws:
IOException
-
getCpuUtilization
public double getCpuUtilization()CPU utilization expressed as a fraction of available CPU resources. This should be derived from the latest sample or measurement. The value may be larger than 1.0 when the usage exceeds the reporter dependent notion of soft limits.
double cpu_utilization = 1 [(.validate.rules) = { ... }- Specified by:
getCpuUtilizationin interfaceOrcaLoadReportOrBuilder- Returns:
- The cpuUtilization.
-
setCpuUtilization
CPU utilization expressed as a fraction of available CPU resources. This should be derived from the latest sample or measurement. The value may be larger than 1.0 when the usage exceeds the reporter dependent notion of soft limits.
double cpu_utilization = 1 [(.validate.rules) = { ... }- Parameters:
value- The cpuUtilization to set.- Returns:
- This builder for chaining.
-
clearCpuUtilization
CPU utilization expressed as a fraction of available CPU resources. This should be derived from the latest sample or measurement. The value may be larger than 1.0 when the usage exceeds the reporter dependent notion of soft limits.
double cpu_utilization = 1 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getMemUtilization
public double getMemUtilization()Memory utilization expressed as a fraction of available memory resources. This should be derived from the latest sample or measurement.
double mem_utilization = 2 [(.validate.rules) = { ... }- Specified by:
getMemUtilizationin interfaceOrcaLoadReportOrBuilder- Returns:
- The memUtilization.
-
setMemUtilization
Memory utilization expressed as a fraction of available memory resources. This should be derived from the latest sample or measurement.
double mem_utilization = 2 [(.validate.rules) = { ... }- Parameters:
value- The memUtilization to set.- Returns:
- This builder for chaining.
-
clearMemUtilization
Memory utilization expressed as a fraction of available memory resources. This should be derived from the latest sample or measurement.
double mem_utilization = 2 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getRps
Deprecated.xds.data.orca.v3.OrcaLoadReport.rps is deprecated. See xds/data/orca/v3/orca_load_report.proto;l=28Total RPS being served by an endpoint. This should cover all services that an endpoint is responsible for. Deprecated -- use ``rps_fractional`` field instead.
uint64 rps = 3 [deprecated = true];- Specified by:
getRpsin interfaceOrcaLoadReportOrBuilder- Returns:
- The rps.
-
setRps
Deprecated.xds.data.orca.v3.OrcaLoadReport.rps is deprecated. See xds/data/orca/v3/orca_load_report.proto;l=28Total RPS being served by an endpoint. This should cover all services that an endpoint is responsible for. Deprecated -- use ``rps_fractional`` field instead.
uint64 rps = 3 [deprecated = true];- Parameters:
value- The rps to set.- Returns:
- This builder for chaining.
-
clearRps
Deprecated.xds.data.orca.v3.OrcaLoadReport.rps is deprecated. See xds/data/orca/v3/orca_load_report.proto;l=28Total RPS being served by an endpoint. This should cover all services that an endpoint is responsible for. Deprecated -- use ``rps_fractional`` field instead.
uint64 rps = 3 [deprecated = true];- Returns:
- This builder for chaining.
-
internalGetRequestCost
-
internalGetMutableRequestCost
-
getRequestCostCount
public int getRequestCostCount()Description copied from interface:OrcaLoadReportOrBuilderApplication specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of storage) associated with the request.
map<string, double> request_cost = 4;- Specified by:
getRequestCostCountin interfaceOrcaLoadReportOrBuilder
-
containsRequestCost
Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of storage) associated with the request.
map<string, double> request_cost = 4;- Specified by:
containsRequestCostin interfaceOrcaLoadReportOrBuilder
-
getRequestCost
Deprecated.UsegetRequestCostMap()instead.- Specified by:
getRequestCostin interfaceOrcaLoadReportOrBuilder
-
getRequestCostMap
Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of storage) associated with the request.
map<string, double> request_cost = 4;- Specified by:
getRequestCostMapin interfaceOrcaLoadReportOrBuilder
-
getRequestCostOrDefault
Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of storage) associated with the request.
map<string, double> request_cost = 4;- Specified by:
getRequestCostOrDefaultin interfaceOrcaLoadReportOrBuilder
-
getRequestCostOrThrow
Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of storage) associated with the request.
map<string, double> request_cost = 4;- Specified by:
getRequestCostOrThrowin interfaceOrcaLoadReportOrBuilder
-
clearRequestCost
-
removeRequestCost
Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of storage) associated with the request.
map<string, double> request_cost = 4; -
getMutableRequestCost
Deprecated.Use alternate mutation accessors instead. -
putRequestCost
Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of storage) associated with the request.
map<string, double> request_cost = 4; -
putAllRequestCost
Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of storage) associated with the request.
map<string, double> request_cost = 4; -
internalGetUtilization
-
internalGetMutableUtilization
-
getUtilizationCount
public int getUtilizationCount()Description copied from interface:OrcaLoadReportOrBuilderResource utilization values. Each value is expressed as a fraction of total resources available, derived from the latest sample or measurement.
map<string, double> utilization = 5 [(.validate.rules) = { ... }- Specified by:
getUtilizationCountin interfaceOrcaLoadReportOrBuilder
-
containsUtilization
Resource utilization values. Each value is expressed as a fraction of total resources available, derived from the latest sample or measurement.
map<string, double> utilization = 5 [(.validate.rules) = { ... }- Specified by:
containsUtilizationin interfaceOrcaLoadReportOrBuilder
-
getUtilization
Deprecated.UsegetUtilizationMap()instead.- Specified by:
getUtilizationin interfaceOrcaLoadReportOrBuilder
-
getUtilizationMap
Resource utilization values. Each value is expressed as a fraction of total resources available, derived from the latest sample or measurement.
map<string, double> utilization = 5 [(.validate.rules) = { ... }- Specified by:
getUtilizationMapin interfaceOrcaLoadReportOrBuilder
-
getUtilizationOrDefault
Resource utilization values. Each value is expressed as a fraction of total resources available, derived from the latest sample or measurement.
map<string, double> utilization = 5 [(.validate.rules) = { ... }- Specified by:
getUtilizationOrDefaultin interfaceOrcaLoadReportOrBuilder
-
getUtilizationOrThrow
Resource utilization values. Each value is expressed as a fraction of total resources available, derived from the latest sample or measurement.
map<string, double> utilization = 5 [(.validate.rules) = { ... }- Specified by:
getUtilizationOrThrowin interfaceOrcaLoadReportOrBuilder
-
clearUtilization
-
removeUtilization
Resource utilization values. Each value is expressed as a fraction of total resources available, derived from the latest sample or measurement.
map<string, double> utilization = 5 [(.validate.rules) = { ... } -
getMutableUtilization
Deprecated.Use alternate mutation accessors instead. -
putUtilization
Resource utilization values. Each value is expressed as a fraction of total resources available, derived from the latest sample or measurement.
map<string, double> utilization = 5 [(.validate.rules) = { ... } -
putAllUtilization
Resource utilization values. Each value is expressed as a fraction of total resources available, derived from the latest sample or measurement.
map<string, double> utilization = 5 [(.validate.rules) = { ... } -
getRpsFractional
public double getRpsFractional()Total RPS being served by an endpoint. This should cover all services that an endpoint is responsible for.
double rps_fractional = 6 [(.validate.rules) = { ... }- Specified by:
getRpsFractionalin interfaceOrcaLoadReportOrBuilder- Returns:
- The rpsFractional.
-
setRpsFractional
Total RPS being served by an endpoint. This should cover all services that an endpoint is responsible for.
double rps_fractional = 6 [(.validate.rules) = { ... }- Parameters:
value- The rpsFractional to set.- Returns:
- This builder for chaining.
-
clearRpsFractional
Total RPS being served by an endpoint. This should cover all services that an endpoint is responsible for.
double rps_fractional = 6 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
getEps
public double getEps()Total EPS (errors/second) being served by an endpoint. This should cover all services that an endpoint is responsible for.
double eps = 7 [(.validate.rules) = { ... }- Specified by:
getEpsin interfaceOrcaLoadReportOrBuilder- Returns:
- The eps.
-
setEps
Total EPS (errors/second) being served by an endpoint. This should cover all services that an endpoint is responsible for.
double eps = 7 [(.validate.rules) = { ... }- Parameters:
value- The eps to set.- Returns:
- This builder for chaining.
-
clearEps
Total EPS (errors/second) being served by an endpoint. This should cover all services that an endpoint is responsible for.
double eps = 7 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
internalGetNamedMetrics
-
internalGetMutableNamedMetrics
-
getNamedMetricsCount
public int getNamedMetricsCount()Description copied from interface:OrcaLoadReportOrBuilderApplication specific opaque metrics.
map<string, double> named_metrics = 8;- Specified by:
getNamedMetricsCountin interfaceOrcaLoadReportOrBuilder
-
containsNamedMetrics
Application specific opaque metrics.
map<string, double> named_metrics = 8;- Specified by:
containsNamedMetricsin interfaceOrcaLoadReportOrBuilder
-
getNamedMetrics
Deprecated.UsegetNamedMetricsMap()instead.- Specified by:
getNamedMetricsin interfaceOrcaLoadReportOrBuilder
-
getNamedMetricsMap
Application specific opaque metrics.
map<string, double> named_metrics = 8;- Specified by:
getNamedMetricsMapin interfaceOrcaLoadReportOrBuilder
-
getNamedMetricsOrDefault
Application specific opaque metrics.
map<string, double> named_metrics = 8;- Specified by:
getNamedMetricsOrDefaultin interfaceOrcaLoadReportOrBuilder
-
getNamedMetricsOrThrow
Application specific opaque metrics.
map<string, double> named_metrics = 8;- Specified by:
getNamedMetricsOrThrowin interfaceOrcaLoadReportOrBuilder
-
clearNamedMetrics
-
removeNamedMetrics
Application specific opaque metrics.
map<string, double> named_metrics = 8; -
getMutableNamedMetrics
Deprecated.Use alternate mutation accessors instead. -
putNamedMetrics
Application specific opaque metrics.
map<string, double> named_metrics = 8; -
putAllNamedMetrics
Application specific opaque metrics.
map<string, double> named_metrics = 8; -
getApplicationUtilization
public double getApplicationUtilization()Application specific utilization expressed as a fraction of available resources. For example, an application may report the max of CPU and memory utilization for better load balancing if it is both CPU and memory bound. This should be derived from the latest sample or measurement. The value may be larger than 1.0 when the usage exceeds the reporter dependent notion of soft limits.
double application_utilization = 9 [(.validate.rules) = { ... }- Specified by:
getApplicationUtilizationin interfaceOrcaLoadReportOrBuilder- Returns:
- The applicationUtilization.
-
setApplicationUtilization
Application specific utilization expressed as a fraction of available resources. For example, an application may report the max of CPU and memory utilization for better load balancing if it is both CPU and memory bound. This should be derived from the latest sample or measurement. The value may be larger than 1.0 when the usage exceeds the reporter dependent notion of soft limits.
double application_utilization = 9 [(.validate.rules) = { ... }- Parameters:
value- The applicationUtilization to set.- Returns:
- This builder for chaining.
-
clearApplicationUtilization
Application specific utilization expressed as a fraction of available resources. For example, an application may report the max of CPU and memory utilization for better load balancing if it is both CPU and memory bound. This should be derived from the latest sample or measurement. The value may be larger than 1.0 when the usage exceeds the reporter dependent notion of soft limits.
double application_utilization = 9 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-