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 double
private int
private double
private double
private double
private long
private double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(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.boolean
Application specific opaque metrics.boolean
Application specific requests costs.boolean
Resource utilization values.double
Application specific utilization expressed as a fraction of available resources.double
CPU utilization expressed as a fraction of available CPU resources.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
double
getEps()
Total EPS (errors/second) being served by an endpoint.double
Memory utilization expressed as a fraction of available memory resources.Deprecated.Deprecated.Deprecated.Deprecated.int
Application specific opaque metrics.Application specific opaque metrics.double
getNamedMetricsOrDefault
(String key, double defaultValue) Application specific opaque metrics.double
Application specific opaque metrics.Deprecated.int
Application specific requests costs.Application specific requests costs.double
getRequestCostOrDefault
(String key, double defaultValue) Application specific requests costs.double
Application specific requests costs.long
getRps()
Deprecated.xds.data.orca.v3.OrcaLoadReport.rps is deprecated.double
Total RPS being served by an endpoint.Deprecated.int
Resource utilization values.Resource utilization values.double
getUtilizationOrDefault
(String key, double defaultValue) Resource utilization values.double
Resource utilization values.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection
(int number) protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection
(int number) final boolean
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<OrcaLoadReport.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OrcaLoadReport.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCpuUtilization
in 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:
getMemUtilization
in 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:
getRps
in 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:OrcaLoadReportOrBuilder
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:
getRequestCostCount
in 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:
containsRequestCost
in interfaceOrcaLoadReportOrBuilder
-
getRequestCost
Deprecated.UsegetRequestCostMap()
instead.- Specified by:
getRequestCost
in 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:
getRequestCostMap
in 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:
getRequestCostOrDefault
in 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:
getRequestCostOrThrow
in 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:OrcaLoadReportOrBuilder
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:
getUtilizationCount
in 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:
containsUtilization
in interfaceOrcaLoadReportOrBuilder
-
getUtilization
Deprecated.UsegetUtilizationMap()
instead.- Specified by:
getUtilization
in 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:
getUtilizationMap
in 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:
getUtilizationOrDefault
in 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:
getUtilizationOrThrow
in 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:
getRpsFractional
in 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:
getEps
in 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:OrcaLoadReportOrBuilder
Application specific opaque metrics.
map<string, double> named_metrics = 8;
- Specified by:
getNamedMetricsCount
in interfaceOrcaLoadReportOrBuilder
-
containsNamedMetrics
Application specific opaque metrics.
map<string, double> named_metrics = 8;
- Specified by:
containsNamedMetrics
in interfaceOrcaLoadReportOrBuilder
-
getNamedMetrics
Deprecated.UsegetNamedMetricsMap()
instead.- Specified by:
getNamedMetrics
in interfaceOrcaLoadReportOrBuilder
-
getNamedMetricsMap
Application specific opaque metrics.
map<string, double> named_metrics = 8;
- Specified by:
getNamedMetricsMap
in interfaceOrcaLoadReportOrBuilder
-
getNamedMetricsOrDefault
Application specific opaque metrics.
map<string, double> named_metrics = 8;
- Specified by:
getNamedMetricsOrDefault
in interfaceOrcaLoadReportOrBuilder
-
getNamedMetricsOrThrow
Application specific opaque metrics.
map<string, double> named_metrics = 8;
- Specified by:
getNamedMetricsOrThrow
in 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:
getApplicationUtilization
in 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.
-