io.ray.serve.generated.DeploymentConfig Maven / Gradle / Ivy
The newest version!
// 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.DeploymentConfig}
*/
public final class DeploymentConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.serve.DeploymentConfig)
DeploymentConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeploymentConfig.newBuilder() to construct.
private DeploymentConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeploymentConfig() {
userConfig_ = com.google.protobuf.ByteString.EMPTY;
deploymentLanguage_ = 0;
version_ = "";
userConfiguredOptionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeploymentConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeploymentConfig(
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: {
numReplicas_ = input.readInt32();
break;
}
case 16: {
maxOngoingRequests_ = input.readInt32();
break;
}
case 24: {
maxQueuedRequests_ = input.readInt32();
break;
}
case 34: {
userConfig_ = input.readBytes();
break;
}
case 41: {
gracefulShutdownWaitLoopS_ = input.readDouble();
break;
}
case 49: {
gracefulShutdownTimeoutS_ = input.readDouble();
break;
}
case 57: {
healthCheckPeriodS_ = input.readDouble();
break;
}
case 65: {
healthCheckTimeoutS_ = input.readDouble();
break;
}
case 72: {
isCrossLanguage_ = input.readBool();
break;
}
case 80: {
int rawValue = input.readEnum();
deploymentLanguage_ = rawValue;
break;
}
case 90: {
io.ray.serve.generated.AutoscalingConfig.Builder subBuilder = null;
if (autoscalingConfig_ != null) {
subBuilder = autoscalingConfig_.toBuilder();
}
autoscalingConfig_ = input.readMessage(io.ray.serve.generated.AutoscalingConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(autoscalingConfig_);
autoscalingConfig_ = subBuilder.buildPartial();
}
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 106: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
userConfiguredOptionNames_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
userConfiguredOptionNames_.add(s);
break;
}
case 114: {
io.ray.serve.generated.LoggingConfig.Builder subBuilder = null;
if (loggingConfig_ != null) {
subBuilder = loggingConfig_.toBuilder();
}
loggingConfig_ = input.readMessage(io.ray.serve.generated.LoggingConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(loggingConfig_);
loggingConfig_ = subBuilder.buildPartial();
}
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
userConfiguredOptionNames_ = userConfiguredOptionNames_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.DeploymentConfig.class, io.ray.serve.generated.DeploymentConfig.Builder.class);
}
public static final int NUM_REPLICAS_FIELD_NUMBER = 1;
private int numReplicas_;
/**
* int32 num_replicas = 1 [json_name = "numReplicas"];
* @return The numReplicas.
*/
@java.lang.Override
public int getNumReplicas() {
return numReplicas_;
}
public static final int MAX_ONGOING_REQUESTS_FIELD_NUMBER = 2;
private int maxOngoingRequests_;
/**
* int32 max_ongoing_requests = 2 [json_name = "maxOngoingRequests"];
* @return The maxOngoingRequests.
*/
@java.lang.Override
public int getMaxOngoingRequests() {
return maxOngoingRequests_;
}
public static final int MAX_QUEUED_REQUESTS_FIELD_NUMBER = 3;
private int maxQueuedRequests_;
/**
* int32 max_queued_requests = 3 [json_name = "maxQueuedRequests"];
* @return The maxQueuedRequests.
*/
@java.lang.Override
public int getMaxQueuedRequests() {
return maxQueuedRequests_;
}
public static final int USER_CONFIG_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString userConfig_;
/**
* bytes user_config = 4 [json_name = "userConfig"];
* @return The userConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUserConfig() {
return userConfig_;
}
public static final int GRACEFUL_SHUTDOWN_WAIT_LOOP_S_FIELD_NUMBER = 5;
private double gracefulShutdownWaitLoopS_;
/**
* double graceful_shutdown_wait_loop_s = 5 [json_name = "gracefulShutdownWaitLoopS"];
* @return The gracefulShutdownWaitLoopS.
*/
@java.lang.Override
public double getGracefulShutdownWaitLoopS() {
return gracefulShutdownWaitLoopS_;
}
public static final int GRACEFUL_SHUTDOWN_TIMEOUT_S_FIELD_NUMBER = 6;
private double gracefulShutdownTimeoutS_;
/**
* double graceful_shutdown_timeout_s = 6 [json_name = "gracefulShutdownTimeoutS"];
* @return The gracefulShutdownTimeoutS.
*/
@java.lang.Override
public double getGracefulShutdownTimeoutS() {
return gracefulShutdownTimeoutS_;
}
public static final int HEALTH_CHECK_PERIOD_S_FIELD_NUMBER = 7;
private double healthCheckPeriodS_;
/**
* double health_check_period_s = 7 [json_name = "healthCheckPeriodS"];
* @return The healthCheckPeriodS.
*/
@java.lang.Override
public double getHealthCheckPeriodS() {
return healthCheckPeriodS_;
}
public static final int HEALTH_CHECK_TIMEOUT_S_FIELD_NUMBER = 8;
private double healthCheckTimeoutS_;
/**
* double health_check_timeout_s = 8 [json_name = "healthCheckTimeoutS"];
* @return The healthCheckTimeoutS.
*/
@java.lang.Override
public double getHealthCheckTimeoutS() {
return healthCheckTimeoutS_;
}
public static final int IS_CROSS_LANGUAGE_FIELD_NUMBER = 9;
private boolean isCrossLanguage_;
/**
* bool is_cross_language = 9 [json_name = "isCrossLanguage"];
* @return The isCrossLanguage.
*/
@java.lang.Override
public boolean getIsCrossLanguage() {
return isCrossLanguage_;
}
public static final int DEPLOYMENT_LANGUAGE_FIELD_NUMBER = 10;
private int deploymentLanguage_;
/**
* .ray.serve.DeploymentLanguage deployment_language = 10 [json_name = "deploymentLanguage"];
* @return The enum numeric value on the wire for deploymentLanguage.
*/
@java.lang.Override public int getDeploymentLanguageValue() {
return deploymentLanguage_;
}
/**
* .ray.serve.DeploymentLanguage deployment_language = 10 [json_name = "deploymentLanguage"];
* @return The deploymentLanguage.
*/
@java.lang.Override public io.ray.serve.generated.DeploymentLanguage getDeploymentLanguage() {
@SuppressWarnings("deprecation")
io.ray.serve.generated.DeploymentLanguage result = io.ray.serve.generated.DeploymentLanguage.valueOf(deploymentLanguage_);
return result == null ? io.ray.serve.generated.DeploymentLanguage.UNRECOGNIZED : result;
}
public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 11;
private io.ray.serve.generated.AutoscalingConfig autoscalingConfig_;
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
* @return Whether the autoscalingConfig field is set.
*/
@java.lang.Override
public boolean hasAutoscalingConfig() {
return autoscalingConfig_ != null;
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
* @return The autoscalingConfig.
*/
@java.lang.Override
public io.ray.serve.generated.AutoscalingConfig getAutoscalingConfig() {
return autoscalingConfig_ == null ? io.ray.serve.generated.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_;
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
*/
@java.lang.Override
public io.ray.serve.generated.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() {
return getAutoscalingConfig();
}
public static final int VERSION_FIELD_NUMBER = 12;
private volatile java.lang.Object version_;
/**
* string version = 12 [json_name = "version"];
* @return The version.
*/
@java.lang.Override
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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();
version_ = s;
return s;
}
}
/**
* string version = 12 [json_name = "version"];
* @return The bytes for version.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_CONFIGURED_OPTION_NAMES_FIELD_NUMBER = 13;
private com.google.protobuf.LazyStringList userConfiguredOptionNames_;
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @return A list containing the userConfiguredOptionNames.
*/
public com.google.protobuf.ProtocolStringList
getUserConfiguredOptionNamesList() {
return userConfiguredOptionNames_;
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @return The count of userConfiguredOptionNames.
*/
public int getUserConfiguredOptionNamesCount() {
return userConfiguredOptionNames_.size();
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @param index The index of the element to return.
* @return The userConfiguredOptionNames at the given index.
*/
public java.lang.String getUserConfiguredOptionNames(int index) {
return userConfiguredOptionNames_.get(index);
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @param index The index of the value to return.
* @return The bytes of the userConfiguredOptionNames at the given index.
*/
public com.google.protobuf.ByteString
getUserConfiguredOptionNamesBytes(int index) {
return userConfiguredOptionNames_.getByteString(index);
}
public static final int LOGGING_CONFIG_FIELD_NUMBER = 14;
private io.ray.serve.generated.LoggingConfig loggingConfig_;
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
* @return Whether the loggingConfig field is set.
*/
@java.lang.Override
public boolean hasLoggingConfig() {
return loggingConfig_ != null;
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
* @return The loggingConfig.
*/
@java.lang.Override
public io.ray.serve.generated.LoggingConfig getLoggingConfig() {
return loggingConfig_ == null ? io.ray.serve.generated.LoggingConfig.getDefaultInstance() : loggingConfig_;
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
*/
@java.lang.Override
public io.ray.serve.generated.LoggingConfigOrBuilder getLoggingConfigOrBuilder() {
return getLoggingConfig();
}
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 (numReplicas_ != 0) {
output.writeInt32(1, numReplicas_);
}
if (maxOngoingRequests_ != 0) {
output.writeInt32(2, maxOngoingRequests_);
}
if (maxQueuedRequests_ != 0) {
output.writeInt32(3, maxQueuedRequests_);
}
if (!userConfig_.isEmpty()) {
output.writeBytes(4, userConfig_);
}
if (java.lang.Double.doubleToRawLongBits(gracefulShutdownWaitLoopS_) != 0) {
output.writeDouble(5, gracefulShutdownWaitLoopS_);
}
if (java.lang.Double.doubleToRawLongBits(gracefulShutdownTimeoutS_) != 0) {
output.writeDouble(6, gracefulShutdownTimeoutS_);
}
if (java.lang.Double.doubleToRawLongBits(healthCheckPeriodS_) != 0) {
output.writeDouble(7, healthCheckPeriodS_);
}
if (java.lang.Double.doubleToRawLongBits(healthCheckTimeoutS_) != 0) {
output.writeDouble(8, healthCheckTimeoutS_);
}
if (isCrossLanguage_ != false) {
output.writeBool(9, isCrossLanguage_);
}
if (deploymentLanguage_ != io.ray.serve.generated.DeploymentLanguage.PYTHON.getNumber()) {
output.writeEnum(10, deploymentLanguage_);
}
if (autoscalingConfig_ != null) {
output.writeMessage(11, getAutoscalingConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, version_);
}
for (int i = 0; i < userConfiguredOptionNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, userConfiguredOptionNames_.getRaw(i));
}
if (loggingConfig_ != null) {
output.writeMessage(14, getLoggingConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (numReplicas_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, numReplicas_);
}
if (maxOngoingRequests_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, maxOngoingRequests_);
}
if (maxQueuedRequests_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, maxQueuedRequests_);
}
if (!userConfig_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, userConfig_);
}
if (java.lang.Double.doubleToRawLongBits(gracefulShutdownWaitLoopS_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, gracefulShutdownWaitLoopS_);
}
if (java.lang.Double.doubleToRawLongBits(gracefulShutdownTimeoutS_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, gracefulShutdownTimeoutS_);
}
if (java.lang.Double.doubleToRawLongBits(healthCheckPeriodS_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, healthCheckPeriodS_);
}
if (java.lang.Double.doubleToRawLongBits(healthCheckTimeoutS_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, healthCheckTimeoutS_);
}
if (isCrossLanguage_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, isCrossLanguage_);
}
if (deploymentLanguage_ != io.ray.serve.generated.DeploymentLanguage.PYTHON.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, deploymentLanguage_);
}
if (autoscalingConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getAutoscalingConfig());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, version_);
}
{
int dataSize = 0;
for (int i = 0; i < userConfiguredOptionNames_.size(); i++) {
dataSize += computeStringSizeNoTag(userConfiguredOptionNames_.getRaw(i));
}
size += dataSize;
size += 1 * getUserConfiguredOptionNamesList().size();
}
if (loggingConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getLoggingConfig());
}
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.DeploymentConfig)) {
return super.equals(obj);
}
io.ray.serve.generated.DeploymentConfig other = (io.ray.serve.generated.DeploymentConfig) obj;
if (getNumReplicas()
!= other.getNumReplicas()) return false;
if (getMaxOngoingRequests()
!= other.getMaxOngoingRequests()) return false;
if (getMaxQueuedRequests()
!= other.getMaxQueuedRequests()) return false;
if (!getUserConfig()
.equals(other.getUserConfig())) return false;
if (java.lang.Double.doubleToLongBits(getGracefulShutdownWaitLoopS())
!= java.lang.Double.doubleToLongBits(
other.getGracefulShutdownWaitLoopS())) return false;
if (java.lang.Double.doubleToLongBits(getGracefulShutdownTimeoutS())
!= java.lang.Double.doubleToLongBits(
other.getGracefulShutdownTimeoutS())) return false;
if (java.lang.Double.doubleToLongBits(getHealthCheckPeriodS())
!= java.lang.Double.doubleToLongBits(
other.getHealthCheckPeriodS())) return false;
if (java.lang.Double.doubleToLongBits(getHealthCheckTimeoutS())
!= java.lang.Double.doubleToLongBits(
other.getHealthCheckTimeoutS())) return false;
if (getIsCrossLanguage()
!= other.getIsCrossLanguage()) return false;
if (deploymentLanguage_ != other.deploymentLanguage_) return false;
if (hasAutoscalingConfig() != other.hasAutoscalingConfig()) return false;
if (hasAutoscalingConfig()) {
if (!getAutoscalingConfig()
.equals(other.getAutoscalingConfig())) return false;
}
if (!getVersion()
.equals(other.getVersion())) return false;
if (!getUserConfiguredOptionNamesList()
.equals(other.getUserConfiguredOptionNamesList())) return false;
if (hasLoggingConfig() != other.hasLoggingConfig()) return false;
if (hasLoggingConfig()) {
if (!getLoggingConfig()
.equals(other.getLoggingConfig())) 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) + NUM_REPLICAS_FIELD_NUMBER;
hash = (53 * hash) + getNumReplicas();
hash = (37 * hash) + MAX_ONGOING_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getMaxOngoingRequests();
hash = (37 * hash) + MAX_QUEUED_REQUESTS_FIELD_NUMBER;
hash = (53 * hash) + getMaxQueuedRequests();
hash = (37 * hash) + USER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getUserConfig().hashCode();
hash = (37 * hash) + GRACEFUL_SHUTDOWN_WAIT_LOOP_S_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGracefulShutdownWaitLoopS()));
hash = (37 * hash) + GRACEFUL_SHUTDOWN_TIMEOUT_S_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGracefulShutdownTimeoutS()));
hash = (37 * hash) + HEALTH_CHECK_PERIOD_S_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getHealthCheckPeriodS()));
hash = (37 * hash) + HEALTH_CHECK_TIMEOUT_S_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getHealthCheckTimeoutS()));
hash = (37 * hash) + IS_CROSS_LANGUAGE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsCrossLanguage());
hash = (37 * hash) + DEPLOYMENT_LANGUAGE_FIELD_NUMBER;
hash = (53 * hash) + deploymentLanguage_;
if (hasAutoscalingConfig()) {
hash = (37 * hash) + AUTOSCALING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getAutoscalingConfig().hashCode();
}
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
if (getUserConfiguredOptionNamesCount() > 0) {
hash = (37 * hash) + USER_CONFIGURED_OPTION_NAMES_FIELD_NUMBER;
hash = (53 * hash) + getUserConfiguredOptionNamesList().hashCode();
}
if (hasLoggingConfig()) {
hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getLoggingConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.serve.generated.DeploymentConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentConfig 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.DeploymentConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentConfig 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.DeploymentConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.serve.generated.DeploymentConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentConfig 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.DeploymentConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentConfig 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.DeploymentConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentConfig 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.DeploymentConfig 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.DeploymentConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.serve.DeploymentConfig)
io.ray.serve.generated.DeploymentConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.DeploymentConfig.class, io.ray.serve.generated.DeploymentConfig.Builder.class);
}
// Construct using io.ray.serve.generated.DeploymentConfig.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();
numReplicas_ = 0;
maxOngoingRequests_ = 0;
maxQueuedRequests_ = 0;
userConfig_ = com.google.protobuf.ByteString.EMPTY;
gracefulShutdownWaitLoopS_ = 0D;
gracefulShutdownTimeoutS_ = 0D;
healthCheckPeriodS_ = 0D;
healthCheckTimeoutS_ = 0D;
isCrossLanguage_ = false;
deploymentLanguage_ = 0;
if (autoscalingConfigBuilder_ == null) {
autoscalingConfig_ = null;
} else {
autoscalingConfig_ = null;
autoscalingConfigBuilder_ = null;
}
version_ = "";
userConfiguredOptionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (loggingConfigBuilder_ == null) {
loggingConfig_ = null;
} else {
loggingConfig_ = null;
loggingConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentConfig_descriptor;
}
@java.lang.Override
public io.ray.serve.generated.DeploymentConfig getDefaultInstanceForType() {
return io.ray.serve.generated.DeploymentConfig.getDefaultInstance();
}
@java.lang.Override
public io.ray.serve.generated.DeploymentConfig build() {
io.ray.serve.generated.DeploymentConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.serve.generated.DeploymentConfig buildPartial() {
io.ray.serve.generated.DeploymentConfig result = new io.ray.serve.generated.DeploymentConfig(this);
int from_bitField0_ = bitField0_;
result.numReplicas_ = numReplicas_;
result.maxOngoingRequests_ = maxOngoingRequests_;
result.maxQueuedRequests_ = maxQueuedRequests_;
result.userConfig_ = userConfig_;
result.gracefulShutdownWaitLoopS_ = gracefulShutdownWaitLoopS_;
result.gracefulShutdownTimeoutS_ = gracefulShutdownTimeoutS_;
result.healthCheckPeriodS_ = healthCheckPeriodS_;
result.healthCheckTimeoutS_ = healthCheckTimeoutS_;
result.isCrossLanguage_ = isCrossLanguage_;
result.deploymentLanguage_ = deploymentLanguage_;
if (autoscalingConfigBuilder_ == null) {
result.autoscalingConfig_ = autoscalingConfig_;
} else {
result.autoscalingConfig_ = autoscalingConfigBuilder_.build();
}
result.version_ = version_;
if (((bitField0_ & 0x00000001) != 0)) {
userConfiguredOptionNames_ = userConfiguredOptionNames_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.userConfiguredOptionNames_ = userConfiguredOptionNames_;
if (loggingConfigBuilder_ == null) {
result.loggingConfig_ = loggingConfig_;
} else {
result.loggingConfig_ = loggingConfigBuilder_.build();
}
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.DeploymentConfig) {
return mergeFrom((io.ray.serve.generated.DeploymentConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.serve.generated.DeploymentConfig other) {
if (other == io.ray.serve.generated.DeploymentConfig.getDefaultInstance()) return this;
if (other.getNumReplicas() != 0) {
setNumReplicas(other.getNumReplicas());
}
if (other.getMaxOngoingRequests() != 0) {
setMaxOngoingRequests(other.getMaxOngoingRequests());
}
if (other.getMaxQueuedRequests() != 0) {
setMaxQueuedRequests(other.getMaxQueuedRequests());
}
if (other.getUserConfig() != com.google.protobuf.ByteString.EMPTY) {
setUserConfig(other.getUserConfig());
}
if (other.getGracefulShutdownWaitLoopS() != 0D) {
setGracefulShutdownWaitLoopS(other.getGracefulShutdownWaitLoopS());
}
if (other.getGracefulShutdownTimeoutS() != 0D) {
setGracefulShutdownTimeoutS(other.getGracefulShutdownTimeoutS());
}
if (other.getHealthCheckPeriodS() != 0D) {
setHealthCheckPeriodS(other.getHealthCheckPeriodS());
}
if (other.getHealthCheckTimeoutS() != 0D) {
setHealthCheckTimeoutS(other.getHealthCheckTimeoutS());
}
if (other.getIsCrossLanguage() != false) {
setIsCrossLanguage(other.getIsCrossLanguage());
}
if (other.deploymentLanguage_ != 0) {
setDeploymentLanguageValue(other.getDeploymentLanguageValue());
}
if (other.hasAutoscalingConfig()) {
mergeAutoscalingConfig(other.getAutoscalingConfig());
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (!other.userConfiguredOptionNames_.isEmpty()) {
if (userConfiguredOptionNames_.isEmpty()) {
userConfiguredOptionNames_ = other.userConfiguredOptionNames_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureUserConfiguredOptionNamesIsMutable();
userConfiguredOptionNames_.addAll(other.userConfiguredOptionNames_);
}
onChanged();
}
if (other.hasLoggingConfig()) {
mergeLoggingConfig(other.getLoggingConfig());
}
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.DeploymentConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.serve.generated.DeploymentConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int numReplicas_ ;
/**
* int32 num_replicas = 1 [json_name = "numReplicas"];
* @return The numReplicas.
*/
@java.lang.Override
public int getNumReplicas() {
return numReplicas_;
}
/**
* int32 num_replicas = 1 [json_name = "numReplicas"];
* @param value The numReplicas to set.
* @return This builder for chaining.
*/
public Builder setNumReplicas(int value) {
numReplicas_ = value;
onChanged();
return this;
}
/**
* int32 num_replicas = 1 [json_name = "numReplicas"];
* @return This builder for chaining.
*/
public Builder clearNumReplicas() {
numReplicas_ = 0;
onChanged();
return this;
}
private int maxOngoingRequests_ ;
/**
* int32 max_ongoing_requests = 2 [json_name = "maxOngoingRequests"];
* @return The maxOngoingRequests.
*/
@java.lang.Override
public int getMaxOngoingRequests() {
return maxOngoingRequests_;
}
/**
* int32 max_ongoing_requests = 2 [json_name = "maxOngoingRequests"];
* @param value The maxOngoingRequests to set.
* @return This builder for chaining.
*/
public Builder setMaxOngoingRequests(int value) {
maxOngoingRequests_ = value;
onChanged();
return this;
}
/**
* int32 max_ongoing_requests = 2 [json_name = "maxOngoingRequests"];
* @return This builder for chaining.
*/
public Builder clearMaxOngoingRequests() {
maxOngoingRequests_ = 0;
onChanged();
return this;
}
private int maxQueuedRequests_ ;
/**
* int32 max_queued_requests = 3 [json_name = "maxQueuedRequests"];
* @return The maxQueuedRequests.
*/
@java.lang.Override
public int getMaxQueuedRequests() {
return maxQueuedRequests_;
}
/**
* int32 max_queued_requests = 3 [json_name = "maxQueuedRequests"];
* @param value The maxQueuedRequests to set.
* @return This builder for chaining.
*/
public Builder setMaxQueuedRequests(int value) {
maxQueuedRequests_ = value;
onChanged();
return this;
}
/**
* int32 max_queued_requests = 3 [json_name = "maxQueuedRequests"];
* @return This builder for chaining.
*/
public Builder clearMaxQueuedRequests() {
maxQueuedRequests_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString userConfig_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes user_config = 4 [json_name = "userConfig"];
* @return The userConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUserConfig() {
return userConfig_;
}
/**
* bytes user_config = 4 [json_name = "userConfig"];
* @param value The userConfig to set.
* @return This builder for chaining.
*/
public Builder setUserConfig(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
userConfig_ = value;
onChanged();
return this;
}
/**
* bytes user_config = 4 [json_name = "userConfig"];
* @return This builder for chaining.
*/
public Builder clearUserConfig() {
userConfig_ = getDefaultInstance().getUserConfig();
onChanged();
return this;
}
private double gracefulShutdownWaitLoopS_ ;
/**
* double graceful_shutdown_wait_loop_s = 5 [json_name = "gracefulShutdownWaitLoopS"];
* @return The gracefulShutdownWaitLoopS.
*/
@java.lang.Override
public double getGracefulShutdownWaitLoopS() {
return gracefulShutdownWaitLoopS_;
}
/**
* double graceful_shutdown_wait_loop_s = 5 [json_name = "gracefulShutdownWaitLoopS"];
* @param value The gracefulShutdownWaitLoopS to set.
* @return This builder for chaining.
*/
public Builder setGracefulShutdownWaitLoopS(double value) {
gracefulShutdownWaitLoopS_ = value;
onChanged();
return this;
}
/**
* double graceful_shutdown_wait_loop_s = 5 [json_name = "gracefulShutdownWaitLoopS"];
* @return This builder for chaining.
*/
public Builder clearGracefulShutdownWaitLoopS() {
gracefulShutdownWaitLoopS_ = 0D;
onChanged();
return this;
}
private double gracefulShutdownTimeoutS_ ;
/**
* double graceful_shutdown_timeout_s = 6 [json_name = "gracefulShutdownTimeoutS"];
* @return The gracefulShutdownTimeoutS.
*/
@java.lang.Override
public double getGracefulShutdownTimeoutS() {
return gracefulShutdownTimeoutS_;
}
/**
* double graceful_shutdown_timeout_s = 6 [json_name = "gracefulShutdownTimeoutS"];
* @param value The gracefulShutdownTimeoutS to set.
* @return This builder for chaining.
*/
public Builder setGracefulShutdownTimeoutS(double value) {
gracefulShutdownTimeoutS_ = value;
onChanged();
return this;
}
/**
* double graceful_shutdown_timeout_s = 6 [json_name = "gracefulShutdownTimeoutS"];
* @return This builder for chaining.
*/
public Builder clearGracefulShutdownTimeoutS() {
gracefulShutdownTimeoutS_ = 0D;
onChanged();
return this;
}
private double healthCheckPeriodS_ ;
/**
* double health_check_period_s = 7 [json_name = "healthCheckPeriodS"];
* @return The healthCheckPeriodS.
*/
@java.lang.Override
public double getHealthCheckPeriodS() {
return healthCheckPeriodS_;
}
/**
* double health_check_period_s = 7 [json_name = "healthCheckPeriodS"];
* @param value The healthCheckPeriodS to set.
* @return This builder for chaining.
*/
public Builder setHealthCheckPeriodS(double value) {
healthCheckPeriodS_ = value;
onChanged();
return this;
}
/**
* double health_check_period_s = 7 [json_name = "healthCheckPeriodS"];
* @return This builder for chaining.
*/
public Builder clearHealthCheckPeriodS() {
healthCheckPeriodS_ = 0D;
onChanged();
return this;
}
private double healthCheckTimeoutS_ ;
/**
* double health_check_timeout_s = 8 [json_name = "healthCheckTimeoutS"];
* @return The healthCheckTimeoutS.
*/
@java.lang.Override
public double getHealthCheckTimeoutS() {
return healthCheckTimeoutS_;
}
/**
* double health_check_timeout_s = 8 [json_name = "healthCheckTimeoutS"];
* @param value The healthCheckTimeoutS to set.
* @return This builder for chaining.
*/
public Builder setHealthCheckTimeoutS(double value) {
healthCheckTimeoutS_ = value;
onChanged();
return this;
}
/**
* double health_check_timeout_s = 8 [json_name = "healthCheckTimeoutS"];
* @return This builder for chaining.
*/
public Builder clearHealthCheckTimeoutS() {
healthCheckTimeoutS_ = 0D;
onChanged();
return this;
}
private boolean isCrossLanguage_ ;
/**
* bool is_cross_language = 9 [json_name = "isCrossLanguage"];
* @return The isCrossLanguage.
*/
@java.lang.Override
public boolean getIsCrossLanguage() {
return isCrossLanguage_;
}
/**
* bool is_cross_language = 9 [json_name = "isCrossLanguage"];
* @param value The isCrossLanguage to set.
* @return This builder for chaining.
*/
public Builder setIsCrossLanguage(boolean value) {
isCrossLanguage_ = value;
onChanged();
return this;
}
/**
* bool is_cross_language = 9 [json_name = "isCrossLanguage"];
* @return This builder for chaining.
*/
public Builder clearIsCrossLanguage() {
isCrossLanguage_ = false;
onChanged();
return this;
}
private int deploymentLanguage_ = 0;
/**
* .ray.serve.DeploymentLanguage deployment_language = 10 [json_name = "deploymentLanguage"];
* @return The enum numeric value on the wire for deploymentLanguage.
*/
@java.lang.Override public int getDeploymentLanguageValue() {
return deploymentLanguage_;
}
/**
* .ray.serve.DeploymentLanguage deployment_language = 10 [json_name = "deploymentLanguage"];
* @param value The enum numeric value on the wire for deploymentLanguage to set.
* @return This builder for chaining.
*/
public Builder setDeploymentLanguageValue(int value) {
deploymentLanguage_ = value;
onChanged();
return this;
}
/**
* .ray.serve.DeploymentLanguage deployment_language = 10 [json_name = "deploymentLanguage"];
* @return The deploymentLanguage.
*/
@java.lang.Override
public io.ray.serve.generated.DeploymentLanguage getDeploymentLanguage() {
@SuppressWarnings("deprecation")
io.ray.serve.generated.DeploymentLanguage result = io.ray.serve.generated.DeploymentLanguage.valueOf(deploymentLanguage_);
return result == null ? io.ray.serve.generated.DeploymentLanguage.UNRECOGNIZED : result;
}
/**
* .ray.serve.DeploymentLanguage deployment_language = 10 [json_name = "deploymentLanguage"];
* @param value The deploymentLanguage to set.
* @return This builder for chaining.
*/
public Builder setDeploymentLanguage(io.ray.serve.generated.DeploymentLanguage value) {
if (value == null) {
throw new NullPointerException();
}
deploymentLanguage_ = value.getNumber();
onChanged();
return this;
}
/**
* .ray.serve.DeploymentLanguage deployment_language = 10 [json_name = "deploymentLanguage"];
* @return This builder for chaining.
*/
public Builder clearDeploymentLanguage() {
deploymentLanguage_ = 0;
onChanged();
return this;
}
private io.ray.serve.generated.AutoscalingConfig autoscalingConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.AutoscalingConfig, io.ray.serve.generated.AutoscalingConfig.Builder, io.ray.serve.generated.AutoscalingConfigOrBuilder> autoscalingConfigBuilder_;
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
* @return Whether the autoscalingConfig field is set.
*/
public boolean hasAutoscalingConfig() {
return autoscalingConfigBuilder_ != null || autoscalingConfig_ != null;
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
* @return The autoscalingConfig.
*/
public io.ray.serve.generated.AutoscalingConfig getAutoscalingConfig() {
if (autoscalingConfigBuilder_ == null) {
return autoscalingConfig_ == null ? io.ray.serve.generated.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_;
} else {
return autoscalingConfigBuilder_.getMessage();
}
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
*/
public Builder setAutoscalingConfig(io.ray.serve.generated.AutoscalingConfig value) {
if (autoscalingConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
autoscalingConfig_ = value;
onChanged();
} else {
autoscalingConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
*/
public Builder setAutoscalingConfig(
io.ray.serve.generated.AutoscalingConfig.Builder builderForValue) {
if (autoscalingConfigBuilder_ == null) {
autoscalingConfig_ = builderForValue.build();
onChanged();
} else {
autoscalingConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
*/
public Builder mergeAutoscalingConfig(io.ray.serve.generated.AutoscalingConfig value) {
if (autoscalingConfigBuilder_ == null) {
if (autoscalingConfig_ != null) {
autoscalingConfig_ =
io.ray.serve.generated.AutoscalingConfig.newBuilder(autoscalingConfig_).mergeFrom(value).buildPartial();
} else {
autoscalingConfig_ = value;
}
onChanged();
} else {
autoscalingConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
*/
public Builder clearAutoscalingConfig() {
if (autoscalingConfigBuilder_ == null) {
autoscalingConfig_ = null;
onChanged();
} else {
autoscalingConfig_ = null;
autoscalingConfigBuilder_ = null;
}
return this;
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
*/
public io.ray.serve.generated.AutoscalingConfig.Builder getAutoscalingConfigBuilder() {
onChanged();
return getAutoscalingConfigFieldBuilder().getBuilder();
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
*/
public io.ray.serve.generated.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder() {
if (autoscalingConfigBuilder_ != null) {
return autoscalingConfigBuilder_.getMessageOrBuilder();
} else {
return autoscalingConfig_ == null ?
io.ray.serve.generated.AutoscalingConfig.getDefaultInstance() : autoscalingConfig_;
}
}
/**
* .ray.serve.AutoscalingConfig autoscaling_config = 11 [json_name = "autoscalingConfig"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.AutoscalingConfig, io.ray.serve.generated.AutoscalingConfig.Builder, io.ray.serve.generated.AutoscalingConfigOrBuilder>
getAutoscalingConfigFieldBuilder() {
if (autoscalingConfigBuilder_ == null) {
autoscalingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.AutoscalingConfig, io.ray.serve.generated.AutoscalingConfig.Builder, io.ray.serve.generated.AutoscalingConfigOrBuilder>(
getAutoscalingConfig(),
getParentForChildren(),
isClean());
autoscalingConfig_ = null;
}
return autoscalingConfigBuilder_;
}
private java.lang.Object version_ = "";
/**
* string version = 12 [json_name = "version"];
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
version_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string version = 12 [json_name = "version"];
* @return The bytes for version.
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string version = 12 [json_name = "version"];
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
* string version = 12 [json_name = "version"];
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* string version = 12 [json_name = "version"];
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList userConfiguredOptionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureUserConfiguredOptionNamesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
userConfiguredOptionNames_ = new com.google.protobuf.LazyStringArrayList(userConfiguredOptionNames_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @return A list containing the userConfiguredOptionNames.
*/
public com.google.protobuf.ProtocolStringList
getUserConfiguredOptionNamesList() {
return userConfiguredOptionNames_.getUnmodifiableView();
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @return The count of userConfiguredOptionNames.
*/
public int getUserConfiguredOptionNamesCount() {
return userConfiguredOptionNames_.size();
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @param index The index of the element to return.
* @return The userConfiguredOptionNames at the given index.
*/
public java.lang.String getUserConfiguredOptionNames(int index) {
return userConfiguredOptionNames_.get(index);
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @param index The index of the value to return.
* @return The bytes of the userConfiguredOptionNames at the given index.
*/
public com.google.protobuf.ByteString
getUserConfiguredOptionNamesBytes(int index) {
return userConfiguredOptionNames_.getByteString(index);
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @param index The index to set the value at.
* @param value The userConfiguredOptionNames to set.
* @return This builder for chaining.
*/
public Builder setUserConfiguredOptionNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserConfiguredOptionNamesIsMutable();
userConfiguredOptionNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @param value The userConfiguredOptionNames to add.
* @return This builder for chaining.
*/
public Builder addUserConfiguredOptionNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserConfiguredOptionNamesIsMutable();
userConfiguredOptionNames_.add(value);
onChanged();
return this;
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @param values The userConfiguredOptionNames to add.
* @return This builder for chaining.
*/
public Builder addAllUserConfiguredOptionNames(
java.lang.Iterable values) {
ensureUserConfiguredOptionNamesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, userConfiguredOptionNames_);
onChanged();
return this;
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @return This builder for chaining.
*/
public Builder clearUserConfiguredOptionNames() {
userConfiguredOptionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string user_configured_option_names = 13 [json_name = "userConfiguredOptionNames"];
* @param value The bytes of the userConfiguredOptionNames to add.
* @return This builder for chaining.
*/
public Builder addUserConfiguredOptionNamesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUserConfiguredOptionNamesIsMutable();
userConfiguredOptionNames_.add(value);
onChanged();
return this;
}
private io.ray.serve.generated.LoggingConfig loggingConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.LoggingConfig, io.ray.serve.generated.LoggingConfig.Builder, io.ray.serve.generated.LoggingConfigOrBuilder> loggingConfigBuilder_;
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
* @return Whether the loggingConfig field is set.
*/
public boolean hasLoggingConfig() {
return loggingConfigBuilder_ != null || loggingConfig_ != null;
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
* @return The loggingConfig.
*/
public io.ray.serve.generated.LoggingConfig getLoggingConfig() {
if (loggingConfigBuilder_ == null) {
return loggingConfig_ == null ? io.ray.serve.generated.LoggingConfig.getDefaultInstance() : loggingConfig_;
} else {
return loggingConfigBuilder_.getMessage();
}
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
*/
public Builder setLoggingConfig(io.ray.serve.generated.LoggingConfig value) {
if (loggingConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
loggingConfig_ = value;
onChanged();
} else {
loggingConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
*/
public Builder setLoggingConfig(
io.ray.serve.generated.LoggingConfig.Builder builderForValue) {
if (loggingConfigBuilder_ == null) {
loggingConfig_ = builderForValue.build();
onChanged();
} else {
loggingConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
*/
public Builder mergeLoggingConfig(io.ray.serve.generated.LoggingConfig value) {
if (loggingConfigBuilder_ == null) {
if (loggingConfig_ != null) {
loggingConfig_ =
io.ray.serve.generated.LoggingConfig.newBuilder(loggingConfig_).mergeFrom(value).buildPartial();
} else {
loggingConfig_ = value;
}
onChanged();
} else {
loggingConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
*/
public Builder clearLoggingConfig() {
if (loggingConfigBuilder_ == null) {
loggingConfig_ = null;
onChanged();
} else {
loggingConfig_ = null;
loggingConfigBuilder_ = null;
}
return this;
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
*/
public io.ray.serve.generated.LoggingConfig.Builder getLoggingConfigBuilder() {
onChanged();
return getLoggingConfigFieldBuilder().getBuilder();
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
*/
public io.ray.serve.generated.LoggingConfigOrBuilder getLoggingConfigOrBuilder() {
if (loggingConfigBuilder_ != null) {
return loggingConfigBuilder_.getMessageOrBuilder();
} else {
return loggingConfig_ == null ?
io.ray.serve.generated.LoggingConfig.getDefaultInstance() : loggingConfig_;
}
}
/**
* .ray.serve.LoggingConfig logging_config = 14 [json_name = "loggingConfig"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.LoggingConfig, io.ray.serve.generated.LoggingConfig.Builder, io.ray.serve.generated.LoggingConfigOrBuilder>
getLoggingConfigFieldBuilder() {
if (loggingConfigBuilder_ == null) {
loggingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.LoggingConfig, io.ray.serve.generated.LoggingConfig.Builder, io.ray.serve.generated.LoggingConfigOrBuilder>(
getLoggingConfig(),
getParentForChildren(),
isClean());
loggingConfig_ = null;
}
return loggingConfigBuilder_;
}
@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.DeploymentConfig)
}
// @@protoc_insertion_point(class_scope:ray.serve.DeploymentConfig)
private static final io.ray.serve.generated.DeploymentConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.serve.generated.DeploymentConfig();
}
public static io.ray.serve.generated.DeploymentConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentConfig(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.DeploymentConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy