io.ray.serve.generated.AutoscalingConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/ray/protobuf/serve.proto
package io.ray.serve.generated;
/**
* Protobuf type {@code ray.serve.AutoscalingConfig}
*/
public final class AutoscalingConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.serve.AutoscalingConfig)
AutoscalingConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use AutoscalingConfig.newBuilder() to construct.
private AutoscalingConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AutoscalingConfig() {
SerializedPolicyDef_ = com.google.protobuf.ByteString.EMPTY;
Policy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AutoscalingConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AutoscalingConfig(
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 8: {
minReplicas_ = input.readUInt32();
break;
}
case 16: {
maxReplicas_ = input.readUInt32();
break;
}
case 25: {
metricsIntervalS_ = input.readDouble();
break;
}
case 33: {
lookBackPeriodS_ = input.readDouble();
break;
}
case 41: {
smoothingFactor_ = input.readDouble();
break;
}
case 49: {
downscaleDelayS_ = input.readDouble();
break;
}
case 57: {
upscaleDelayS_ = input.readDouble();
break;
}
case 64: {
bitField0_ |= 0x00000001;
initialReplicas_ = input.readUInt32();
break;
}
case 73: {
bitField0_ |= 0x00000002;
upscaleSmoothingFactor_ = input.readDouble();
break;
}
case 81: {
bitField0_ |= 0x00000004;
downscaleSmoothingFactor_ = input.readDouble();
break;
}
case 90: {
SerializedPolicyDef_ = input.readBytes();
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
Policy_ = s;
break;
}
case 105: {
targetOngoingRequests_ = input.readDouble();
break;
}
case 113: {
bitField0_ |= 0x00000008;
upscalingFactor_ = input.readDouble();
break;
}
case 121: {
bitField0_ |= 0x00000010;
downscalingFactor_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.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 io.ray.serve.generated.ServeProtos.internal_static_ray_serve_AutoscalingConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_AutoscalingConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.AutoscalingConfig.class, io.ray.serve.generated.AutoscalingConfig.Builder.class);
}
private int bitField0_;
public static final int MIN_REPLICAS_FIELD_NUMBER = 1;
private int minReplicas_;
/**
* uint32 min_replicas = 1 [json_name = "minReplicas"];
* @return The minReplicas.
*/
@java.lang.Override
public int getMinReplicas() {
return minReplicas_;
}
public static final int MAX_REPLICAS_FIELD_NUMBER = 2;
private int maxReplicas_;
/**
* uint32 max_replicas = 2 [json_name = "maxReplicas"];
* @return The maxReplicas.
*/
@java.lang.Override
public int getMaxReplicas() {
return maxReplicas_;
}
public static final int METRICS_INTERVAL_S_FIELD_NUMBER = 3;
private double metricsIntervalS_;
/**
* double metrics_interval_s = 3 [json_name = "metricsIntervalS"];
* @return The metricsIntervalS.
*/
@java.lang.Override
public double getMetricsIntervalS() {
return metricsIntervalS_;
}
public static final int LOOK_BACK_PERIOD_S_FIELD_NUMBER = 4;
private double lookBackPeriodS_;
/**
* double look_back_period_s = 4 [json_name = "lookBackPeriodS"];
* @return The lookBackPeriodS.
*/
@java.lang.Override
public double getLookBackPeriodS() {
return lookBackPeriodS_;
}
public static final int SMOOTHING_FACTOR_FIELD_NUMBER = 5;
private double smoothingFactor_;
/**
* double smoothing_factor = 5 [json_name = "smoothingFactor"];
* @return The smoothingFactor.
*/
@java.lang.Override
public double getSmoothingFactor() {
return smoothingFactor_;
}
public static final int DOWNSCALE_DELAY_S_FIELD_NUMBER = 6;
private double downscaleDelayS_;
/**
* double downscale_delay_s = 6 [json_name = "downscaleDelayS"];
* @return The downscaleDelayS.
*/
@java.lang.Override
public double getDownscaleDelayS() {
return downscaleDelayS_;
}
public static final int UPSCALE_DELAY_S_FIELD_NUMBER = 7;
private double upscaleDelayS_;
/**
* double upscale_delay_s = 7 [json_name = "upscaleDelayS"];
* @return The upscaleDelayS.
*/
@java.lang.Override
public double getUpscaleDelayS() {
return upscaleDelayS_;
}
public static final int INITIAL_REPLICAS_FIELD_NUMBER = 8;
private int initialReplicas_;
/**
* optional uint32 initial_replicas = 8 [json_name = "initialReplicas"];
* @return Whether the initialReplicas field is set.
*/
@java.lang.Override
public boolean hasInitialReplicas() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 initial_replicas = 8 [json_name = "initialReplicas"];
* @return The initialReplicas.
*/
@java.lang.Override
public int getInitialReplicas() {
return initialReplicas_;
}
public static final int UPSCALE_SMOOTHING_FACTOR_FIELD_NUMBER = 9;
private double upscaleSmoothingFactor_;
/**
* optional double upscale_smoothing_factor = 9 [json_name = "upscaleSmoothingFactor"];
* @return Whether the upscaleSmoothingFactor field is set.
*/
@java.lang.Override
public boolean hasUpscaleSmoothingFactor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double upscale_smoothing_factor = 9 [json_name = "upscaleSmoothingFactor"];
* @return The upscaleSmoothingFactor.
*/
@java.lang.Override
public double getUpscaleSmoothingFactor() {
return upscaleSmoothingFactor_;
}
public static final int DOWNSCALE_SMOOTHING_FACTOR_FIELD_NUMBER = 10;
private double downscaleSmoothingFactor_;
/**
* optional double downscale_smoothing_factor = 10 [json_name = "downscaleSmoothingFactor"];
* @return Whether the downscaleSmoothingFactor field is set.
*/
@java.lang.Override
public boolean hasDownscaleSmoothingFactor() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double downscale_smoothing_factor = 10 [json_name = "downscaleSmoothingFactor"];
* @return The downscaleSmoothingFactor.
*/
@java.lang.Override
public double getDownscaleSmoothingFactor() {
return downscaleSmoothingFactor_;
}
public static final int _SERIALIZED_POLICY_DEF_FIELD_NUMBER = 11;
private com.google.protobuf.ByteString SerializedPolicyDef_;
/**
* bytes _serialized_policy_def = 11 [json_name = "SerializedPolicyDef"];
* @return The serializedPolicyDef.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSerializedPolicyDef() {
return SerializedPolicyDef_;
}
public static final int _POLICY_FIELD_NUMBER = 12;
private volatile java.lang.Object Policy_;
/**
* string _policy = 12 [json_name = "Policy"];
* @return The policy.
*/
@java.lang.Override
public java.lang.String getPolicy() {
java.lang.Object ref = Policy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
Policy_ = s;
return s;
}
}
/**
* string _policy = 12 [json_name = "Policy"];
* @return The bytes for policy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPolicyBytes() {
java.lang.Object ref = Policy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
Policy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGET_ONGOING_REQUESTS_FIELD_NUMBER = 13;
private double targetOngoingRequests_;
/**
* double target_ongoing_requests = 13 [json_name = "targetOngoingRequests"];
* @return The targetOngoingRequests.
*/
@java.lang.Override
public double getTargetOngoingRequests() {
return targetOngoingRequests_;
}
public static final int UPSCALING_FACTOR_FIELD_NUMBER = 14;
private double upscalingFactor_;
/**
* optional double upscaling_factor = 14 [json_name = "upscalingFactor"];
* @return Whether the upscalingFactor field is set.
*/
@java.lang.Override
public boolean hasUpscalingFactor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional double upscaling_factor = 14 [json_name = "upscalingFactor"];
* @return The upscalingFactor.
*/
@java.lang.Override
public double getUpscalingFactor() {
return upscalingFactor_;
}
public static final int DOWNSCALING_FACTOR_FIELD_NUMBER = 15;
private double downscalingFactor_;
/**
* optional double downscaling_factor = 15 [json_name = "downscalingFactor"];
* @return Whether the downscalingFactor field is set.
*/
@java.lang.Override
public boolean hasDownscalingFactor() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional double downscaling_factor = 15 [json_name = "downscalingFactor"];
* @return The downscalingFactor.
*/
@java.lang.Override
public double getDownscalingFactor() {
return downscalingFactor_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (minReplicas_ != 0) {
output.writeUInt32(1, minReplicas_);
}
if (maxReplicas_ != 0) {
output.writeUInt32(2, maxReplicas_);
}
if (java.lang.Double.doubleToRawLongBits(metricsIntervalS_) != 0) {
output.writeDouble(3, metricsIntervalS_);
}
if (java.lang.Double.doubleToRawLongBits(lookBackPeriodS_) != 0) {
output.writeDouble(4, lookBackPeriodS_);
}
if (java.lang.Double.doubleToRawLongBits(smoothingFactor_) != 0) {
output.writeDouble(5, smoothingFactor_);
}
if (java.lang.Double.doubleToRawLongBits(downscaleDelayS_) != 0) {
output.writeDouble(6, downscaleDelayS_);
}
if (java.lang.Double.doubleToRawLongBits(upscaleDelayS_) != 0) {
output.writeDouble(7, upscaleDelayS_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt32(8, initialReplicas_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(9, upscaleSmoothingFactor_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(10, downscaleSmoothingFactor_);
}
if (!SerializedPolicyDef_.isEmpty()) {
output.writeBytes(11, SerializedPolicyDef_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(Policy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, Policy_);
}
if (java.lang.Double.doubleToRawLongBits(targetOngoingRequests_) != 0) {
output.writeDouble(13, targetOngoingRequests_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(14, upscalingFactor_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeDouble(15, downscalingFactor_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (minReplicas_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, minReplicas_);
}
if (maxReplicas_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, maxReplicas_);
}
if (java.lang.Double.doubleToRawLongBits(metricsIntervalS_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, metricsIntervalS_);
}
if (java.lang.Double.doubleToRawLongBits(lookBackPeriodS_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, lookBackPeriodS_);
}
if (java.lang.Double.doubleToRawLongBits(smoothingFactor_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, smoothingFactor_);
}
if (java.lang.Double.doubleToRawLongBits(downscaleDelayS_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, downscaleDelayS_);
}
if (java.lang.Double.doubleToRawLongBits(upscaleDelayS_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, upscaleDelayS_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, initialReplicas_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, upscaleSmoothingFactor_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, downscaleSmoothingFactor_);
}
if (!SerializedPolicyDef_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(11, SerializedPolicyDef_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(Policy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, Policy_);
}
if (java.lang.Double.doubleToRawLongBits(targetOngoingRequests_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(13, targetOngoingRequests_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(14, upscalingFactor_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(15, downscalingFactor_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.ray.serve.generated.AutoscalingConfig)) {
return super.equals(obj);
}
io.ray.serve.generated.AutoscalingConfig other = (io.ray.serve.generated.AutoscalingConfig) obj;
if (getMinReplicas()
!= other.getMinReplicas()) return false;
if (getMaxReplicas()
!= other.getMaxReplicas()) return false;
if (java.lang.Double.doubleToLongBits(getMetricsIntervalS())
!= java.lang.Double.doubleToLongBits(
other.getMetricsIntervalS())) return false;
if (java.lang.Double.doubleToLongBits(getLookBackPeriodS())
!= java.lang.Double.doubleToLongBits(
other.getLookBackPeriodS())) return false;
if (java.lang.Double.doubleToLongBits(getSmoothingFactor())
!= java.lang.Double.doubleToLongBits(
other.getSmoothingFactor())) return false;
if (java.lang.Double.doubleToLongBits(getDownscaleDelayS())
!= java.lang.Double.doubleToLongBits(
other.getDownscaleDelayS())) return false;
if (java.lang.Double.doubleToLongBits(getUpscaleDelayS())
!= java.lang.Double.doubleToLongBits(
other.getUpscaleDelayS())) return false;
if (hasInitialReplicas() != other.hasInitialReplicas()) return false;
if (hasInitialReplicas()) {
if (getInitialReplicas()
!= other.getInitialReplicas()) return false;
}
if (hasUpscaleSmoothingFactor() != other.hasUpscaleSmoothingFactor()) return false;
if (hasUpscaleSmoothingFactor()) {
if (java.lang.Double.doubleToLongBits(getUpscaleSmoothingFactor())
!= java.lang.Double.doubleToLongBits(
other.getUpscaleSmoothingFactor())) return false;
}
if (hasDownscaleSmoothingFactor() != other.hasDownscaleSmoothingFactor()) return false;
if (hasDownscaleSmoothingFactor()) {
if (java.lang.Double.doubleToLongBits(getDownscaleSmoothingFactor())
!= java.lang.Double.doubleToLongBits(
other.getDownscaleSmoothingFactor())) return false;
}
if (!getSerializedPolicyDef()
.equals(other.getSerializedPolicyDef())) return false;
if (!getPolicy()
.equals(other.getPolicy())) return false;
if (java.lang.Double.doubleToLongBits(getTargetOngoingRequests())
!= java.lang.Double.doubleToLongBits(
other.getTargetOngoingRequests())) return false;
if (hasUpscalingFactor() != other.hasUpscalingFactor()) return false;
if (hasUpscalingFactor()) {
if (java.lang.Double.doubleToLongBits(getUpscalingFactor())
!= java.lang.Double.doubleToLongBits(
other.getUpscalingFactor())) return false;
}
if (hasDownscalingFactor() != other.hasDownscalingFactor()) return false;
if (hasDownscalingFactor()) {
if (java.lang.Double.doubleToLongBits(getDownscalingFactor())
!= java.lang.Double.doubleToLongBits(
other.getDownscalingFactor())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getMinReplicas();
hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getMaxReplicas();
hash = (37 * hash) + METRICS_INTERVAL_S_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMetricsIntervalS()));
hash = (37 * hash) + LOOK_BACK_PERIOD_S_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLookBackPeriodS()));
hash = (37 * hash) + SMOOTHING_FACTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSmoothingFactor()));
hash = (37 * hash) + DOWNSCALE_DELAY_S_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDownscaleDelayS()));
hash = (37 * hash) + UPSCALE_DELAY_S_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getUpscaleDelayS()));
if (hasInitialReplicas()) {
hash = (37 * hash) + INITIAL_REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getInitialReplicas();
}
if (hasUpscaleSmoothingFactor()) {
hash = (37 * hash) + UPSCALE_SMOOTHING_FACTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getUpscaleSmoothingFactor()));
}
if (hasDownscaleSmoothingFactor()) {
hash = (37 * hash) + DOWNSCALE_SMOOTHING_FACTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDownscaleSmoothingFactor()));
}
hash = (37 * hash) + _SERIALIZED_POLICY_DEF_FIELD_NUMBER;
hash = (53 * hash) + getSerializedPolicyDef().hashCode();
hash = (37 * hash) + _POLICY_FIELD_NUMBER;
hash = (53 * hash) + getPolicy().hashCode();
hash = (37 * hash) + TARGET_ONGOING_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTargetOngoingRequests()));
if (hasUpscalingFactor()) {
hash = (37 * hash) + UPSCALING_FACTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getUpscalingFactor()));
}
if (hasDownscalingFactor()) {
hash = (37 * hash) + DOWNSCALING_FACTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDownscalingFactor()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.ray.serve.generated.AutoscalingConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.serve.generated.AutoscalingConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.AutoscalingConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.ray.serve.generated.AutoscalingConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ray.serve.AutoscalingConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.serve.AutoscalingConfig)
io.ray.serve.generated.AutoscalingConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_AutoscalingConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_AutoscalingConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.AutoscalingConfig.class, io.ray.serve.generated.AutoscalingConfig.Builder.class);
}
// Construct using io.ray.serve.generated.AutoscalingConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
minReplicas_ = 0;
maxReplicas_ = 0;
metricsIntervalS_ = 0D;
lookBackPeriodS_ = 0D;
smoothingFactor_ = 0D;
downscaleDelayS_ = 0D;
upscaleDelayS_ = 0D;
initialReplicas_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
upscaleSmoothingFactor_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
downscaleSmoothingFactor_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
SerializedPolicyDef_ = com.google.protobuf.ByteString.EMPTY;
Policy_ = "";
targetOngoingRequests_ = 0D;
upscalingFactor_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
downscalingFactor_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_AutoscalingConfig_descriptor;
}
@java.lang.Override
public io.ray.serve.generated.AutoscalingConfig getDefaultInstanceForType() {
return io.ray.serve.generated.AutoscalingConfig.getDefaultInstance();
}
@java.lang.Override
public io.ray.serve.generated.AutoscalingConfig build() {
io.ray.serve.generated.AutoscalingConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.serve.generated.AutoscalingConfig buildPartial() {
io.ray.serve.generated.AutoscalingConfig result = new io.ray.serve.generated.AutoscalingConfig(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.minReplicas_ = minReplicas_;
result.maxReplicas_ = maxReplicas_;
result.metricsIntervalS_ = metricsIntervalS_;
result.lookBackPeriodS_ = lookBackPeriodS_;
result.smoothingFactor_ = smoothingFactor_;
result.downscaleDelayS_ = downscaleDelayS_;
result.upscaleDelayS_ = upscaleDelayS_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.initialReplicas_ = initialReplicas_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.upscaleSmoothingFactor_ = upscaleSmoothingFactor_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.downscaleSmoothingFactor_ = downscaleSmoothingFactor_;
to_bitField0_ |= 0x00000004;
}
result.SerializedPolicyDef_ = SerializedPolicyDef_;
result.Policy_ = Policy_;
result.targetOngoingRequests_ = targetOngoingRequests_;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.upscalingFactor_ = upscalingFactor_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.downscalingFactor_ = downscalingFactor_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.ray.serve.generated.AutoscalingConfig) {
return mergeFrom((io.ray.serve.generated.AutoscalingConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.serve.generated.AutoscalingConfig other) {
if (other == io.ray.serve.generated.AutoscalingConfig.getDefaultInstance()) return this;
if (other.getMinReplicas() != 0) {
setMinReplicas(other.getMinReplicas());
}
if (other.getMaxReplicas() != 0) {
setMaxReplicas(other.getMaxReplicas());
}
if (other.getMetricsIntervalS() != 0D) {
setMetricsIntervalS(other.getMetricsIntervalS());
}
if (other.getLookBackPeriodS() != 0D) {
setLookBackPeriodS(other.getLookBackPeriodS());
}
if (other.getSmoothingFactor() != 0D) {
setSmoothingFactor(other.getSmoothingFactor());
}
if (other.getDownscaleDelayS() != 0D) {
setDownscaleDelayS(other.getDownscaleDelayS());
}
if (other.getUpscaleDelayS() != 0D) {
setUpscaleDelayS(other.getUpscaleDelayS());
}
if (other.hasInitialReplicas()) {
setInitialReplicas(other.getInitialReplicas());
}
if (other.hasUpscaleSmoothingFactor()) {
setUpscaleSmoothingFactor(other.getUpscaleSmoothingFactor());
}
if (other.hasDownscaleSmoothingFactor()) {
setDownscaleSmoothingFactor(other.getDownscaleSmoothingFactor());
}
if (other.getSerializedPolicyDef() != com.google.protobuf.ByteString.EMPTY) {
setSerializedPolicyDef(other.getSerializedPolicyDef());
}
if (!other.getPolicy().isEmpty()) {
Policy_ = other.Policy_;
onChanged();
}
if (other.getTargetOngoingRequests() != 0D) {
setTargetOngoingRequests(other.getTargetOngoingRequests());
}
if (other.hasUpscalingFactor()) {
setUpscalingFactor(other.getUpscalingFactor());
}
if (other.hasDownscalingFactor()) {
setDownscalingFactor(other.getDownscalingFactor());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.ray.serve.generated.AutoscalingConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.serve.generated.AutoscalingConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int minReplicas_ ;
/**
* uint32 min_replicas = 1 [json_name = "minReplicas"];
* @return The minReplicas.
*/
@java.lang.Override
public int getMinReplicas() {
return minReplicas_;
}
/**
* uint32 min_replicas = 1 [json_name = "minReplicas"];
* @param value The minReplicas to set.
* @return This builder for chaining.
*/
public Builder setMinReplicas(int value) {
minReplicas_ = value;
onChanged();
return this;
}
/**
* uint32 min_replicas = 1 [json_name = "minReplicas"];
* @return This builder for chaining.
*/
public Builder clearMinReplicas() {
minReplicas_ = 0;
onChanged();
return this;
}
private int maxReplicas_ ;
/**
* uint32 max_replicas = 2 [json_name = "maxReplicas"];
* @return The maxReplicas.
*/
@java.lang.Override
public int getMaxReplicas() {
return maxReplicas_;
}
/**
* uint32 max_replicas = 2 [json_name = "maxReplicas"];
* @param value The maxReplicas to set.
* @return This builder for chaining.
*/
public Builder setMaxReplicas(int value) {
maxReplicas_ = value;
onChanged();
return this;
}
/**
* uint32 max_replicas = 2 [json_name = "maxReplicas"];
* @return This builder for chaining.
*/
public Builder clearMaxReplicas() {
maxReplicas_ = 0;
onChanged();
return this;
}
private double metricsIntervalS_ ;
/**
* double metrics_interval_s = 3 [json_name = "metricsIntervalS"];
* @return The metricsIntervalS.
*/
@java.lang.Override
public double getMetricsIntervalS() {
return metricsIntervalS_;
}
/**
* double metrics_interval_s = 3 [json_name = "metricsIntervalS"];
* @param value The metricsIntervalS to set.
* @return This builder for chaining.
*/
public Builder setMetricsIntervalS(double value) {
metricsIntervalS_ = value;
onChanged();
return this;
}
/**
* double metrics_interval_s = 3 [json_name = "metricsIntervalS"];
* @return This builder for chaining.
*/
public Builder clearMetricsIntervalS() {
metricsIntervalS_ = 0D;
onChanged();
return this;
}
private double lookBackPeriodS_ ;
/**
* double look_back_period_s = 4 [json_name = "lookBackPeriodS"];
* @return The lookBackPeriodS.
*/
@java.lang.Override
public double getLookBackPeriodS() {
return lookBackPeriodS_;
}
/**
* double look_back_period_s = 4 [json_name = "lookBackPeriodS"];
* @param value The lookBackPeriodS to set.
* @return This builder for chaining.
*/
public Builder setLookBackPeriodS(double value) {
lookBackPeriodS_ = value;
onChanged();
return this;
}
/**
* double look_back_period_s = 4 [json_name = "lookBackPeriodS"];
* @return This builder for chaining.
*/
public Builder clearLookBackPeriodS() {
lookBackPeriodS_ = 0D;
onChanged();
return this;
}
private double smoothingFactor_ ;
/**
* double smoothing_factor = 5 [json_name = "smoothingFactor"];
* @return The smoothingFactor.
*/
@java.lang.Override
public double getSmoothingFactor() {
return smoothingFactor_;
}
/**
* double smoothing_factor = 5 [json_name = "smoothingFactor"];
* @param value The smoothingFactor to set.
* @return This builder for chaining.
*/
public Builder setSmoothingFactor(double value) {
smoothingFactor_ = value;
onChanged();
return this;
}
/**
* double smoothing_factor = 5 [json_name = "smoothingFactor"];
* @return This builder for chaining.
*/
public Builder clearSmoothingFactor() {
smoothingFactor_ = 0D;
onChanged();
return this;
}
private double downscaleDelayS_ ;
/**
* double downscale_delay_s = 6 [json_name = "downscaleDelayS"];
* @return The downscaleDelayS.
*/
@java.lang.Override
public double getDownscaleDelayS() {
return downscaleDelayS_;
}
/**
* double downscale_delay_s = 6 [json_name = "downscaleDelayS"];
* @param value The downscaleDelayS to set.
* @return This builder for chaining.
*/
public Builder setDownscaleDelayS(double value) {
downscaleDelayS_ = value;
onChanged();
return this;
}
/**
* double downscale_delay_s = 6 [json_name = "downscaleDelayS"];
* @return This builder for chaining.
*/
public Builder clearDownscaleDelayS() {
downscaleDelayS_ = 0D;
onChanged();
return this;
}
private double upscaleDelayS_ ;
/**
* double upscale_delay_s = 7 [json_name = "upscaleDelayS"];
* @return The upscaleDelayS.
*/
@java.lang.Override
public double getUpscaleDelayS() {
return upscaleDelayS_;
}
/**
* double upscale_delay_s = 7 [json_name = "upscaleDelayS"];
* @param value The upscaleDelayS to set.
* @return This builder for chaining.
*/
public Builder setUpscaleDelayS(double value) {
upscaleDelayS_ = value;
onChanged();
return this;
}
/**
* double upscale_delay_s = 7 [json_name = "upscaleDelayS"];
* @return This builder for chaining.
*/
public Builder clearUpscaleDelayS() {
upscaleDelayS_ = 0D;
onChanged();
return this;
}
private int initialReplicas_ ;
/**
* optional uint32 initial_replicas = 8 [json_name = "initialReplicas"];
* @return Whether the initialReplicas field is set.
*/
@java.lang.Override
public boolean hasInitialReplicas() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 initial_replicas = 8 [json_name = "initialReplicas"];
* @return The initialReplicas.
*/
@java.lang.Override
public int getInitialReplicas() {
return initialReplicas_;
}
/**
* optional uint32 initial_replicas = 8 [json_name = "initialReplicas"];
* @param value The initialReplicas to set.
* @return This builder for chaining.
*/
public Builder setInitialReplicas(int value) {
bitField0_ |= 0x00000001;
initialReplicas_ = value;
onChanged();
return this;
}
/**
* optional uint32 initial_replicas = 8 [json_name = "initialReplicas"];
* @return This builder for chaining.
*/
public Builder clearInitialReplicas() {
bitField0_ = (bitField0_ & ~0x00000001);
initialReplicas_ = 0;
onChanged();
return this;
}
private double upscaleSmoothingFactor_ ;
/**
* optional double upscale_smoothing_factor = 9 [json_name = "upscaleSmoothingFactor"];
* @return Whether the upscaleSmoothingFactor field is set.
*/
@java.lang.Override
public boolean hasUpscaleSmoothingFactor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double upscale_smoothing_factor = 9 [json_name = "upscaleSmoothingFactor"];
* @return The upscaleSmoothingFactor.
*/
@java.lang.Override
public double getUpscaleSmoothingFactor() {
return upscaleSmoothingFactor_;
}
/**
* optional double upscale_smoothing_factor = 9 [json_name = "upscaleSmoothingFactor"];
* @param value The upscaleSmoothingFactor to set.
* @return This builder for chaining.
*/
public Builder setUpscaleSmoothingFactor(double value) {
bitField0_ |= 0x00000002;
upscaleSmoothingFactor_ = value;
onChanged();
return this;
}
/**
* optional double upscale_smoothing_factor = 9 [json_name = "upscaleSmoothingFactor"];
* @return This builder for chaining.
*/
public Builder clearUpscaleSmoothingFactor() {
bitField0_ = (bitField0_ & ~0x00000002);
upscaleSmoothingFactor_ = 0D;
onChanged();
return this;
}
private double downscaleSmoothingFactor_ ;
/**
* optional double downscale_smoothing_factor = 10 [json_name = "downscaleSmoothingFactor"];
* @return Whether the downscaleSmoothingFactor field is set.
*/
@java.lang.Override
public boolean hasDownscaleSmoothingFactor() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double downscale_smoothing_factor = 10 [json_name = "downscaleSmoothingFactor"];
* @return The downscaleSmoothingFactor.
*/
@java.lang.Override
public double getDownscaleSmoothingFactor() {
return downscaleSmoothingFactor_;
}
/**
* optional double downscale_smoothing_factor = 10 [json_name = "downscaleSmoothingFactor"];
* @param value The downscaleSmoothingFactor to set.
* @return This builder for chaining.
*/
public Builder setDownscaleSmoothingFactor(double value) {
bitField0_ |= 0x00000004;
downscaleSmoothingFactor_ = value;
onChanged();
return this;
}
/**
* optional double downscale_smoothing_factor = 10 [json_name = "downscaleSmoothingFactor"];
* @return This builder for chaining.
*/
public Builder clearDownscaleSmoothingFactor() {
bitField0_ = (bitField0_ & ~0x00000004);
downscaleSmoothingFactor_ = 0D;
onChanged();
return this;
}
private com.google.protobuf.ByteString SerializedPolicyDef_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes _serialized_policy_def = 11 [json_name = "SerializedPolicyDef"];
* @return The serializedPolicyDef.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSerializedPolicyDef() {
return SerializedPolicyDef_;
}
/**
* bytes _serialized_policy_def = 11 [json_name = "SerializedPolicyDef"];
* @param value The serializedPolicyDef to set.
* @return This builder for chaining.
*/
public Builder setSerializedPolicyDef(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
SerializedPolicyDef_ = value;
onChanged();
return this;
}
/**
* bytes _serialized_policy_def = 11 [json_name = "SerializedPolicyDef"];
* @return This builder for chaining.
*/
public Builder clearSerializedPolicyDef() {
SerializedPolicyDef_ = getDefaultInstance().getSerializedPolicyDef();
onChanged();
return this;
}
private java.lang.Object Policy_ = "";
/**
* string _policy = 12 [json_name = "Policy"];
* @return The policy.
*/
public java.lang.String getPolicy() {
java.lang.Object ref = Policy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
Policy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string _policy = 12 [json_name = "Policy"];
* @return The bytes for policy.
*/
public com.google.protobuf.ByteString
getPolicyBytes() {
java.lang.Object ref = Policy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
Policy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string _policy = 12 [json_name = "Policy"];
* @param value The policy to set.
* @return This builder for chaining.
*/
public Builder setPolicy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
Policy_ = value;
onChanged();
return this;
}
/**
* string _policy = 12 [json_name = "Policy"];
* @return This builder for chaining.
*/
public Builder clearPolicy() {
Policy_ = getDefaultInstance().getPolicy();
onChanged();
return this;
}
/**
* string _policy = 12 [json_name = "Policy"];
* @param value The bytes for policy to set.
* @return This builder for chaining.
*/
public Builder setPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
Policy_ = value;
onChanged();
return this;
}
private double targetOngoingRequests_ ;
/**
* double target_ongoing_requests = 13 [json_name = "targetOngoingRequests"];
* @return The targetOngoingRequests.
*/
@java.lang.Override
public double getTargetOngoingRequests() {
return targetOngoingRequests_;
}
/**
* double target_ongoing_requests = 13 [json_name = "targetOngoingRequests"];
* @param value The targetOngoingRequests to set.
* @return This builder for chaining.
*/
public Builder setTargetOngoingRequests(double value) {
targetOngoingRequests_ = value;
onChanged();
return this;
}
/**
* double target_ongoing_requests = 13 [json_name = "targetOngoingRequests"];
* @return This builder for chaining.
*/
public Builder clearTargetOngoingRequests() {
targetOngoingRequests_ = 0D;
onChanged();
return this;
}
private double upscalingFactor_ ;
/**
* optional double upscaling_factor = 14 [json_name = "upscalingFactor"];
* @return Whether the upscalingFactor field is set.
*/
@java.lang.Override
public boolean hasUpscalingFactor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional double upscaling_factor = 14 [json_name = "upscalingFactor"];
* @return The upscalingFactor.
*/
@java.lang.Override
public double getUpscalingFactor() {
return upscalingFactor_;
}
/**
* optional double upscaling_factor = 14 [json_name = "upscalingFactor"];
* @param value The upscalingFactor to set.
* @return This builder for chaining.
*/
public Builder setUpscalingFactor(double value) {
bitField0_ |= 0x00000008;
upscalingFactor_ = value;
onChanged();
return this;
}
/**
* optional double upscaling_factor = 14 [json_name = "upscalingFactor"];
* @return This builder for chaining.
*/
public Builder clearUpscalingFactor() {
bitField0_ = (bitField0_ & ~0x00000008);
upscalingFactor_ = 0D;
onChanged();
return this;
}
private double downscalingFactor_ ;
/**
* optional double downscaling_factor = 15 [json_name = "downscalingFactor"];
* @return Whether the downscalingFactor field is set.
*/
@java.lang.Override
public boolean hasDownscalingFactor() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional double downscaling_factor = 15 [json_name = "downscalingFactor"];
* @return The downscalingFactor.
*/
@java.lang.Override
public double getDownscalingFactor() {
return downscalingFactor_;
}
/**
* optional double downscaling_factor = 15 [json_name = "downscalingFactor"];
* @param value The downscalingFactor to set.
* @return This builder for chaining.
*/
public Builder setDownscalingFactor(double value) {
bitField0_ |= 0x00000010;
downscalingFactor_ = value;
onChanged();
return this;
}
/**
* optional double downscaling_factor = 15 [json_name = "downscalingFactor"];
* @return This builder for chaining.
*/
public Builder clearDownscalingFactor() {
bitField0_ = (bitField0_ & ~0x00000010);
downscalingFactor_ = 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:ray.serve.AutoscalingConfig)
}
// @@protoc_insertion_point(class_scope:ray.serve.AutoscalingConfig)
private static final io.ray.serve.generated.AutoscalingConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.serve.generated.AutoscalingConfig();
}
public static io.ray.serve.generated.AutoscalingConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AutoscalingConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AutoscalingConfig(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 io.ray.serve.generated.AutoscalingConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy