Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xds/data/orca/v3/orca_load_report.proto
package com.github.xds.data.orca.v3;
/**
* Protobuf type {@code xds.data.orca.v3.OrcaLoadReport}
*/
public final class OrcaLoadReport extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:xds.data.orca.v3.OrcaLoadReport)
OrcaLoadReportOrBuilder {
private static final long serialVersionUID = 0L;
// Use OrcaLoadReport.newBuilder() to construct.
private OrcaLoadReport(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OrcaLoadReport() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OrcaLoadReport();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OrcaLoadReport(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
cpuUtilization_ = input.readDouble();
break;
}
case 17: {
memUtilization_ = input.readDouble();
break;
}
case 24: {
rps_ = input.readUInt64();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
requestCost_ = com.google.protobuf.MapField.newMapField(
RequestCostDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
requestCost__ = input.readMessage(
RequestCostDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
requestCost_.getMutableMap().put(
requestCost__.getKey(), requestCost__.getValue());
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
utilization_ = com.google.protobuf.MapField.newMapField(
UtilizationDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
utilization__ = input.readMessage(
UtilizationDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
utilization_.getMutableMap().put(
utilization__.getKey(), utilization__.getValue());
break;
}
case 49: {
rpsFractional_ = input.readDouble();
break;
}
case 57: {
eps_ = input.readDouble();
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
namedMetrics_ = com.google.protobuf.MapField.newMapField(
NamedMetricsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
namedMetrics__ = input.readMessage(
NamedMetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
namedMetrics_.getMutableMap().put(
namedMetrics__.getKey(), namedMetrics__.getValue());
break;
}
case 73: {
applicationUtilization_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.xds.data.orca.v3.OrcaLoadReportProto.internal_static_xds_data_orca_v3_OrcaLoadReport_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 4:
return internalGetRequestCost();
case 5:
return internalGetUtilization();
case 8:
return internalGetNamedMetrics();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.xds.data.orca.v3.OrcaLoadReportProto.internal_static_xds_data_orca_v3_OrcaLoadReport_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.xds.data.orca.v3.OrcaLoadReport.class, com.github.xds.data.orca.v3.OrcaLoadReport.Builder.class);
}
public static final int CPU_UTILIZATION_FIELD_NUMBER = 1;
private double cpuUtilization_;
/**
*
* 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) = { ... }
* @return The cpuUtilization.
*/
@java.lang.Override
public double getCpuUtilization() {
return cpuUtilization_;
}
public static final int MEM_UTILIZATION_FIELD_NUMBER = 2;
private double memUtilization_;
/**
*
* 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) = { ... }
* @return The memUtilization.
*/
@java.lang.Override
public double getMemUtilization() {
return memUtilization_;
}
public static final int RPS_FIELD_NUMBER = 3;
private long rps_;
/**
*
* Total 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];
* @deprecated xds.data.orca.v3.OrcaLoadReport.rps is deprecated.
* See xds/data/orca/v3/orca_load_report.proto;l=28
* @return The rps.
*/
@java.lang.Override
@java.lang.Deprecated public long getRps() {
return rps_;
}
public static final int REQUEST_COST_FIELD_NUMBER = 4;
private static final class RequestCostDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Double> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.github.xds.data.orca.v3.OrcaLoadReportProto.internal_static_xds_data_orca_v3_OrcaLoadReport_RequestCostEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.DOUBLE,
0D);
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Double> requestCost_;
private com.google.protobuf.MapField
internalGetRequestCost() {
if (requestCost_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequestCostDefaultEntryHolder.defaultEntry);
}
return requestCost_;
}
public int getRequestCostCount() {
return internalGetRequestCost().getMap().size();
}
/**
*
* 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;
*/
@java.lang.Override
public boolean containsRequestCost(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequestCost().getMap().containsKey(key);
}
/**
* Use {@link #getRequestCostMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getRequestCost() {
return getRequestCostMap();
}
/**
*
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*
*
* map<string, double> named_metrics = 8;
*/
@java.lang.Override
public double getNamedMetricsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetNamedMetrics().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int APPLICATION_UTILIZATION_FIELD_NUMBER = 9;
private double applicationUtilization_;
/**
*
* 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.
*
* 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.
*
* 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) = { ... }
* @param value The cpuUtilization to set.
* @return This builder for chaining.
*/
public Builder setCpuUtilization(double value) {
cpuUtilization_ = value;
onChanged();
return this;
}
/**
*
* 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.
*
* 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) = { ... }
* @param value The memUtilization to set.
* @return This builder for chaining.
*/
public Builder setMemUtilization(double value) {
memUtilization_ = value;
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @return This builder for chaining.
*/
public Builder clearMemUtilization() {
memUtilization_ = 0D;
onChanged();
return this;
}
private long rps_ ;
/**
*
* Total 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];
* @deprecated xds.data.orca.v3.OrcaLoadReport.rps is deprecated.
* See xds/data/orca/v3/orca_load_report.proto;l=28
* @return The rps.
*/
@java.lang.Override
@java.lang.Deprecated public long getRps() {
return rps_;
}
/**
*
* Total 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];
* @deprecated xds.data.orca.v3.OrcaLoadReport.rps is deprecated.
* See xds/data/orca/v3/orca_load_report.proto;l=28
* @param value The rps to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setRps(long value) {
rps_ = value;
onChanged();
return this;
}
/**
*
* Total 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];
* @deprecated xds.data.orca.v3.OrcaLoadReport.rps is deprecated.
* See xds/data/orca/v3/orca_load_report.proto;l=28
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearRps() {
rps_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Double> requestCost_;
private com.google.protobuf.MapField
internalGetRequestCost() {
if (requestCost_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequestCostDefaultEntryHolder.defaultEntry);
}
return requestCost_;
}
private com.google.protobuf.MapField
internalGetMutableRequestCost() {
onChanged();;
if (requestCost_ == null) {
requestCost_ = com.google.protobuf.MapField.newMapField(
RequestCostDefaultEntryHolder.defaultEntry);
}
if (!requestCost_.isMutable()) {
requestCost_ = requestCost_.copy();
}
return requestCost_;
}
public int getRequestCostCount() {
return internalGetRequestCost().getMap().size();
}
/**
*
* 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;
*/
@java.lang.Override
public boolean containsRequestCost(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequestCost().getMap().containsKey(key);
}
/**
* Use {@link #getRequestCostMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getRequestCost() {
return getRequestCostMap();
}
/**
*
* Application specific requests costs. Each value is an absolute cost (e.g. 3487 bytes of
* storage) associated with the request.
*
* 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.
*
* 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) = { ... }
* @param value The applicationUtilization to set.
* @return This builder for chaining.
*/
public Builder setApplicationUtilization(double value) {
applicationUtilization_ = value;
onChanged();
return this;
}
/**
*
* 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) = { ... }
* @return This builder for chaining.
*/
public Builder clearApplicationUtilization() {
applicationUtilization_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:xds.data.orca.v3.OrcaLoadReport)
}
// @@protoc_insertion_point(class_scope:xds.data.orca.v3.OrcaLoadReport)
private static final com.github.xds.data.orca.v3.OrcaLoadReport DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.xds.data.orca.v3.OrcaLoadReport();
}
public static com.github.xds.data.orca.v3.OrcaLoadReport getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OrcaLoadReport parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OrcaLoadReport(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.github.xds.data.orca.v3.OrcaLoadReport getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}