io.ray.serve.generated.DeploymentInfo 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.DeploymentInfo}
*/
public final class DeploymentInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.serve.DeploymentInfo)
DeploymentInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeploymentInfo.newBuilder() to construct.
private DeploymentInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeploymentInfo() {
name_ = "";
actorName_ = "";
version_ = "";
targetCapacityDirection_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeploymentInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeploymentInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
io.ray.serve.generated.DeploymentConfig.Builder subBuilder = null;
if (deploymentConfig_ != null) {
subBuilder = deploymentConfig_.toBuilder();
}
deploymentConfig_ = input.readMessage(io.ray.serve.generated.DeploymentConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(deploymentConfig_);
deploymentConfig_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.ray.serve.generated.ReplicaConfig.Builder subBuilder = null;
if (replicaConfig_ != null) {
subBuilder = replicaConfig_.toBuilder();
}
replicaConfig_ = input.readMessage(io.ray.serve.generated.ReplicaConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(replicaConfig_);
replicaConfig_ = subBuilder.buildPartial();
}
break;
}
case 32: {
startTimeMs_ = input.readInt64();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
actorName_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
break;
}
case 56: {
endTimeMs_ = input.readInt64();
break;
}
case 65: {
targetCapacity_ = input.readDouble();
break;
}
case 72: {
int rawValue = input.readEnum();
targetCapacityDirection_ = rawValue;
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_DeploymentInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.DeploymentInfo.class, io.ray.serve.generated.DeploymentInfo.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPLOYMENT_CONFIG_FIELD_NUMBER = 2;
private io.ray.serve.generated.DeploymentConfig deploymentConfig_;
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
* @return Whether the deploymentConfig field is set.
*/
@java.lang.Override
public boolean hasDeploymentConfig() {
return deploymentConfig_ != null;
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
* @return The deploymentConfig.
*/
@java.lang.Override
public io.ray.serve.generated.DeploymentConfig getDeploymentConfig() {
return deploymentConfig_ == null ? io.ray.serve.generated.DeploymentConfig.getDefaultInstance() : deploymentConfig_;
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
*/
@java.lang.Override
public io.ray.serve.generated.DeploymentConfigOrBuilder getDeploymentConfigOrBuilder() {
return getDeploymentConfig();
}
public static final int REPLICA_CONFIG_FIELD_NUMBER = 3;
private io.ray.serve.generated.ReplicaConfig replicaConfig_;
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
* @return Whether the replicaConfig field is set.
*/
@java.lang.Override
public boolean hasReplicaConfig() {
return replicaConfig_ != null;
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
* @return The replicaConfig.
*/
@java.lang.Override
public io.ray.serve.generated.ReplicaConfig getReplicaConfig() {
return replicaConfig_ == null ? io.ray.serve.generated.ReplicaConfig.getDefaultInstance() : replicaConfig_;
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
*/
@java.lang.Override
public io.ray.serve.generated.ReplicaConfigOrBuilder getReplicaConfigOrBuilder() {
return getReplicaConfig();
}
public static final int START_TIME_MS_FIELD_NUMBER = 4;
private long startTimeMs_;
/**
* int64 start_time_ms = 4 [json_name = "startTimeMs"];
* @return The startTimeMs.
*/
@java.lang.Override
public long getStartTimeMs() {
return startTimeMs_;
}
public static final int ACTOR_NAME_FIELD_NUMBER = 5;
private volatile java.lang.Object actorName_;
/**
* string actor_name = 5 [json_name = "actorName"];
* @return The actorName.
*/
@java.lang.Override
public java.lang.String getActorName() {
java.lang.Object ref = actorName_;
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();
actorName_ = s;
return s;
}
}
/**
* string actor_name = 5 [json_name = "actorName"];
* @return The bytes for actorName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getActorNameBytes() {
java.lang.Object ref = actorName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
actorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 6;
private volatile java.lang.Object version_;
/**
* string version = 6 [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 = 6 [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 END_TIME_MS_FIELD_NUMBER = 7;
private long endTimeMs_;
/**
* int64 end_time_ms = 7 [json_name = "endTimeMs"];
* @return The endTimeMs.
*/
@java.lang.Override
public long getEndTimeMs() {
return endTimeMs_;
}
public static final int TARGET_CAPACITY_FIELD_NUMBER = 8;
private double targetCapacity_;
/**
* double target_capacity = 8 [json_name = "targetCapacity"];
* @return The targetCapacity.
*/
@java.lang.Override
public double getTargetCapacity() {
return targetCapacity_;
}
public static final int TARGET_CAPACITY_DIRECTION_FIELD_NUMBER = 9;
private int targetCapacityDirection_;
/**
* .ray.serve.TargetCapacityDirection target_capacity_direction = 9 [json_name = "targetCapacityDirection"];
* @return The enum numeric value on the wire for targetCapacityDirection.
*/
@java.lang.Override public int getTargetCapacityDirectionValue() {
return targetCapacityDirection_;
}
/**
* .ray.serve.TargetCapacityDirection target_capacity_direction = 9 [json_name = "targetCapacityDirection"];
* @return The targetCapacityDirection.
*/
@java.lang.Override public io.ray.serve.generated.TargetCapacityDirection getTargetCapacityDirection() {
@SuppressWarnings("deprecation")
io.ray.serve.generated.TargetCapacityDirection result = io.ray.serve.generated.TargetCapacityDirection.valueOf(targetCapacityDirection_);
return result == null ? io.ray.serve.generated.TargetCapacityDirection.UNRECOGNIZED : result;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (deploymentConfig_ != null) {
output.writeMessage(2, getDeploymentConfig());
}
if (replicaConfig_ != null) {
output.writeMessage(3, getReplicaConfig());
}
if (startTimeMs_ != 0L) {
output.writeInt64(4, startTimeMs_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actorName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actorName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, version_);
}
if (endTimeMs_ != 0L) {
output.writeInt64(7, endTimeMs_);
}
if (java.lang.Double.doubleToRawLongBits(targetCapacity_) != 0) {
output.writeDouble(8, targetCapacity_);
}
if (targetCapacityDirection_ != io.ray.serve.generated.TargetCapacityDirection.UNSET.getNumber()) {
output.writeEnum(9, targetCapacityDirection_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (deploymentConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDeploymentConfig());
}
if (replicaConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getReplicaConfig());
}
if (startTimeMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, startTimeMs_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actorName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, actorName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, version_);
}
if (endTimeMs_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, endTimeMs_);
}
if (java.lang.Double.doubleToRawLongBits(targetCapacity_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, targetCapacity_);
}
if (targetCapacityDirection_ != io.ray.serve.generated.TargetCapacityDirection.UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, targetCapacityDirection_);
}
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.DeploymentInfo)) {
return super.equals(obj);
}
io.ray.serve.generated.DeploymentInfo other = (io.ray.serve.generated.DeploymentInfo) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasDeploymentConfig() != other.hasDeploymentConfig()) return false;
if (hasDeploymentConfig()) {
if (!getDeploymentConfig()
.equals(other.getDeploymentConfig())) return false;
}
if (hasReplicaConfig() != other.hasReplicaConfig()) return false;
if (hasReplicaConfig()) {
if (!getReplicaConfig()
.equals(other.getReplicaConfig())) return false;
}
if (getStartTimeMs()
!= other.getStartTimeMs()) return false;
if (!getActorName()
.equals(other.getActorName())) return false;
if (!getVersion()
.equals(other.getVersion())) return false;
if (getEndTimeMs()
!= other.getEndTimeMs()) return false;
if (java.lang.Double.doubleToLongBits(getTargetCapacity())
!= java.lang.Double.doubleToLongBits(
other.getTargetCapacity())) return false;
if (targetCapacityDirection_ != other.targetCapacityDirection_) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasDeploymentConfig()) {
hash = (37 * hash) + DEPLOYMENT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentConfig().hashCode();
}
if (hasReplicaConfig()) {
hash = (37 * hash) + REPLICA_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getReplicaConfig().hashCode();
}
hash = (37 * hash) + START_TIME_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTimeMs());
hash = (37 * hash) + ACTOR_NAME_FIELD_NUMBER;
hash = (53 * hash) + getActorName().hashCode();
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
hash = (37 * hash) + END_TIME_MS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getEndTimeMs());
hash = (37 * hash) + TARGET_CAPACITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTargetCapacity()));
hash = (37 * hash) + TARGET_CAPACITY_DIRECTION_FIELD_NUMBER;
hash = (53 * hash) + targetCapacityDirection_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.serve.generated.DeploymentInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentInfo 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.DeploymentInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentInfo 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.DeploymentInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.serve.generated.DeploymentInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentInfo 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.DeploymentInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentInfo 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.DeploymentInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentInfo 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.DeploymentInfo 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.DeploymentInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.serve.DeploymentInfo)
io.ray.serve.generated.DeploymentInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.DeploymentInfo.class, io.ray.serve.generated.DeploymentInfo.Builder.class);
}
// Construct using io.ray.serve.generated.DeploymentInfo.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();
name_ = "";
if (deploymentConfigBuilder_ == null) {
deploymentConfig_ = null;
} else {
deploymentConfig_ = null;
deploymentConfigBuilder_ = null;
}
if (replicaConfigBuilder_ == null) {
replicaConfig_ = null;
} else {
replicaConfig_ = null;
replicaConfigBuilder_ = null;
}
startTimeMs_ = 0L;
actorName_ = "";
version_ = "";
endTimeMs_ = 0L;
targetCapacity_ = 0D;
targetCapacityDirection_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentInfo_descriptor;
}
@java.lang.Override
public io.ray.serve.generated.DeploymentInfo getDefaultInstanceForType() {
return io.ray.serve.generated.DeploymentInfo.getDefaultInstance();
}
@java.lang.Override
public io.ray.serve.generated.DeploymentInfo build() {
io.ray.serve.generated.DeploymentInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.serve.generated.DeploymentInfo buildPartial() {
io.ray.serve.generated.DeploymentInfo result = new io.ray.serve.generated.DeploymentInfo(this);
result.name_ = name_;
if (deploymentConfigBuilder_ == null) {
result.deploymentConfig_ = deploymentConfig_;
} else {
result.deploymentConfig_ = deploymentConfigBuilder_.build();
}
if (replicaConfigBuilder_ == null) {
result.replicaConfig_ = replicaConfig_;
} else {
result.replicaConfig_ = replicaConfigBuilder_.build();
}
result.startTimeMs_ = startTimeMs_;
result.actorName_ = actorName_;
result.version_ = version_;
result.endTimeMs_ = endTimeMs_;
result.targetCapacity_ = targetCapacity_;
result.targetCapacityDirection_ = targetCapacityDirection_;
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.DeploymentInfo) {
return mergeFrom((io.ray.serve.generated.DeploymentInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.serve.generated.DeploymentInfo other) {
if (other == io.ray.serve.generated.DeploymentInfo.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasDeploymentConfig()) {
mergeDeploymentConfig(other.getDeploymentConfig());
}
if (other.hasReplicaConfig()) {
mergeReplicaConfig(other.getReplicaConfig());
}
if (other.getStartTimeMs() != 0L) {
setStartTimeMs(other.getStartTimeMs());
}
if (!other.getActorName().isEmpty()) {
actorName_ = other.actorName_;
onChanged();
}
if (!other.getVersion().isEmpty()) {
version_ = other.version_;
onChanged();
}
if (other.getEndTimeMs() != 0L) {
setEndTimeMs(other.getEndTimeMs());
}
if (other.getTargetCapacity() != 0D) {
setTargetCapacity(other.getTargetCapacity());
}
if (other.targetCapacityDirection_ != 0) {
setTargetCapacityDirectionValue(other.getTargetCapacityDirectionValue());
}
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.DeploymentInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.serve.generated.DeploymentInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1 [json_name = "name"];
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private io.ray.serve.generated.DeploymentConfig deploymentConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.DeploymentConfig, io.ray.serve.generated.DeploymentConfig.Builder, io.ray.serve.generated.DeploymentConfigOrBuilder> deploymentConfigBuilder_;
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
* @return Whether the deploymentConfig field is set.
*/
public boolean hasDeploymentConfig() {
return deploymentConfigBuilder_ != null || deploymentConfig_ != null;
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
* @return The deploymentConfig.
*/
public io.ray.serve.generated.DeploymentConfig getDeploymentConfig() {
if (deploymentConfigBuilder_ == null) {
return deploymentConfig_ == null ? io.ray.serve.generated.DeploymentConfig.getDefaultInstance() : deploymentConfig_;
} else {
return deploymentConfigBuilder_.getMessage();
}
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
*/
public Builder setDeploymentConfig(io.ray.serve.generated.DeploymentConfig value) {
if (deploymentConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deploymentConfig_ = value;
onChanged();
} else {
deploymentConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
*/
public Builder setDeploymentConfig(
io.ray.serve.generated.DeploymentConfig.Builder builderForValue) {
if (deploymentConfigBuilder_ == null) {
deploymentConfig_ = builderForValue.build();
onChanged();
} else {
deploymentConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
*/
public Builder mergeDeploymentConfig(io.ray.serve.generated.DeploymentConfig value) {
if (deploymentConfigBuilder_ == null) {
if (deploymentConfig_ != null) {
deploymentConfig_ =
io.ray.serve.generated.DeploymentConfig.newBuilder(deploymentConfig_).mergeFrom(value).buildPartial();
} else {
deploymentConfig_ = value;
}
onChanged();
} else {
deploymentConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
*/
public Builder clearDeploymentConfig() {
if (deploymentConfigBuilder_ == null) {
deploymentConfig_ = null;
onChanged();
} else {
deploymentConfig_ = null;
deploymentConfigBuilder_ = null;
}
return this;
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
*/
public io.ray.serve.generated.DeploymentConfig.Builder getDeploymentConfigBuilder() {
onChanged();
return getDeploymentConfigFieldBuilder().getBuilder();
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
*/
public io.ray.serve.generated.DeploymentConfigOrBuilder getDeploymentConfigOrBuilder() {
if (deploymentConfigBuilder_ != null) {
return deploymentConfigBuilder_.getMessageOrBuilder();
} else {
return deploymentConfig_ == null ?
io.ray.serve.generated.DeploymentConfig.getDefaultInstance() : deploymentConfig_;
}
}
/**
* .ray.serve.DeploymentConfig deployment_config = 2 [json_name = "deploymentConfig"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.DeploymentConfig, io.ray.serve.generated.DeploymentConfig.Builder, io.ray.serve.generated.DeploymentConfigOrBuilder>
getDeploymentConfigFieldBuilder() {
if (deploymentConfigBuilder_ == null) {
deploymentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.DeploymentConfig, io.ray.serve.generated.DeploymentConfig.Builder, io.ray.serve.generated.DeploymentConfigOrBuilder>(
getDeploymentConfig(),
getParentForChildren(),
isClean());
deploymentConfig_ = null;
}
return deploymentConfigBuilder_;
}
private io.ray.serve.generated.ReplicaConfig replicaConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.ReplicaConfig, io.ray.serve.generated.ReplicaConfig.Builder, io.ray.serve.generated.ReplicaConfigOrBuilder> replicaConfigBuilder_;
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
* @return Whether the replicaConfig field is set.
*/
public boolean hasReplicaConfig() {
return replicaConfigBuilder_ != null || replicaConfig_ != null;
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
* @return The replicaConfig.
*/
public io.ray.serve.generated.ReplicaConfig getReplicaConfig() {
if (replicaConfigBuilder_ == null) {
return replicaConfig_ == null ? io.ray.serve.generated.ReplicaConfig.getDefaultInstance() : replicaConfig_;
} else {
return replicaConfigBuilder_.getMessage();
}
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
*/
public Builder setReplicaConfig(io.ray.serve.generated.ReplicaConfig value) {
if (replicaConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
replicaConfig_ = value;
onChanged();
} else {
replicaConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
*/
public Builder setReplicaConfig(
io.ray.serve.generated.ReplicaConfig.Builder builderForValue) {
if (replicaConfigBuilder_ == null) {
replicaConfig_ = builderForValue.build();
onChanged();
} else {
replicaConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
*/
public Builder mergeReplicaConfig(io.ray.serve.generated.ReplicaConfig value) {
if (replicaConfigBuilder_ == null) {
if (replicaConfig_ != null) {
replicaConfig_ =
io.ray.serve.generated.ReplicaConfig.newBuilder(replicaConfig_).mergeFrom(value).buildPartial();
} else {
replicaConfig_ = value;
}
onChanged();
} else {
replicaConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
*/
public Builder clearReplicaConfig() {
if (replicaConfigBuilder_ == null) {
replicaConfig_ = null;
onChanged();
} else {
replicaConfig_ = null;
replicaConfigBuilder_ = null;
}
return this;
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
*/
public io.ray.serve.generated.ReplicaConfig.Builder getReplicaConfigBuilder() {
onChanged();
return getReplicaConfigFieldBuilder().getBuilder();
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
*/
public io.ray.serve.generated.ReplicaConfigOrBuilder getReplicaConfigOrBuilder() {
if (replicaConfigBuilder_ != null) {
return replicaConfigBuilder_.getMessageOrBuilder();
} else {
return replicaConfig_ == null ?
io.ray.serve.generated.ReplicaConfig.getDefaultInstance() : replicaConfig_;
}
}
/**
* .ray.serve.ReplicaConfig replica_config = 3 [json_name = "replicaConfig"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.ReplicaConfig, io.ray.serve.generated.ReplicaConfig.Builder, io.ray.serve.generated.ReplicaConfigOrBuilder>
getReplicaConfigFieldBuilder() {
if (replicaConfigBuilder_ == null) {
replicaConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.serve.generated.ReplicaConfig, io.ray.serve.generated.ReplicaConfig.Builder, io.ray.serve.generated.ReplicaConfigOrBuilder>(
getReplicaConfig(),
getParentForChildren(),
isClean());
replicaConfig_ = null;
}
return replicaConfigBuilder_;
}
private long startTimeMs_ ;
/**
* int64 start_time_ms = 4 [json_name = "startTimeMs"];
* @return The startTimeMs.
*/
@java.lang.Override
public long getStartTimeMs() {
return startTimeMs_;
}
/**
* int64 start_time_ms = 4 [json_name = "startTimeMs"];
* @param value The startTimeMs to set.
* @return This builder for chaining.
*/
public Builder setStartTimeMs(long value) {
startTimeMs_ = value;
onChanged();
return this;
}
/**
* int64 start_time_ms = 4 [json_name = "startTimeMs"];
* @return This builder for chaining.
*/
public Builder clearStartTimeMs() {
startTimeMs_ = 0L;
onChanged();
return this;
}
private java.lang.Object actorName_ = "";
/**
* string actor_name = 5 [json_name = "actorName"];
* @return The actorName.
*/
public java.lang.String getActorName() {
java.lang.Object ref = actorName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
actorName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string actor_name = 5 [json_name = "actorName"];
* @return The bytes for actorName.
*/
public com.google.protobuf.ByteString
getActorNameBytes() {
java.lang.Object ref = actorName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
actorName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string actor_name = 5 [json_name = "actorName"];
* @param value The actorName to set.
* @return This builder for chaining.
*/
public Builder setActorName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
actorName_ = value;
onChanged();
return this;
}
/**
* string actor_name = 5 [json_name = "actorName"];
* @return This builder for chaining.
*/
public Builder clearActorName() {
actorName_ = getDefaultInstance().getActorName();
onChanged();
return this;
}
/**
* string actor_name = 5 [json_name = "actorName"];
* @param value The bytes for actorName to set.
* @return This builder for chaining.
*/
public Builder setActorNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
actorName_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* string version = 6 [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 = 6 [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 = 6 [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 = 6 [json_name = "version"];
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* string version = 6 [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 long endTimeMs_ ;
/**
* int64 end_time_ms = 7 [json_name = "endTimeMs"];
* @return The endTimeMs.
*/
@java.lang.Override
public long getEndTimeMs() {
return endTimeMs_;
}
/**
* int64 end_time_ms = 7 [json_name = "endTimeMs"];
* @param value The endTimeMs to set.
* @return This builder for chaining.
*/
public Builder setEndTimeMs(long value) {
endTimeMs_ = value;
onChanged();
return this;
}
/**
* int64 end_time_ms = 7 [json_name = "endTimeMs"];
* @return This builder for chaining.
*/
public Builder clearEndTimeMs() {
endTimeMs_ = 0L;
onChanged();
return this;
}
private double targetCapacity_ ;
/**
* double target_capacity = 8 [json_name = "targetCapacity"];
* @return The targetCapacity.
*/
@java.lang.Override
public double getTargetCapacity() {
return targetCapacity_;
}
/**
* double target_capacity = 8 [json_name = "targetCapacity"];
* @param value The targetCapacity to set.
* @return This builder for chaining.
*/
public Builder setTargetCapacity(double value) {
targetCapacity_ = value;
onChanged();
return this;
}
/**
* double target_capacity = 8 [json_name = "targetCapacity"];
* @return This builder for chaining.
*/
public Builder clearTargetCapacity() {
targetCapacity_ = 0D;
onChanged();
return this;
}
private int targetCapacityDirection_ = 0;
/**
* .ray.serve.TargetCapacityDirection target_capacity_direction = 9 [json_name = "targetCapacityDirection"];
* @return The enum numeric value on the wire for targetCapacityDirection.
*/
@java.lang.Override public int getTargetCapacityDirectionValue() {
return targetCapacityDirection_;
}
/**
* .ray.serve.TargetCapacityDirection target_capacity_direction = 9 [json_name = "targetCapacityDirection"];
* @param value The enum numeric value on the wire for targetCapacityDirection to set.
* @return This builder for chaining.
*/
public Builder setTargetCapacityDirectionValue(int value) {
targetCapacityDirection_ = value;
onChanged();
return this;
}
/**
* .ray.serve.TargetCapacityDirection target_capacity_direction = 9 [json_name = "targetCapacityDirection"];
* @return The targetCapacityDirection.
*/
@java.lang.Override
public io.ray.serve.generated.TargetCapacityDirection getTargetCapacityDirection() {
@SuppressWarnings("deprecation")
io.ray.serve.generated.TargetCapacityDirection result = io.ray.serve.generated.TargetCapacityDirection.valueOf(targetCapacityDirection_);
return result == null ? io.ray.serve.generated.TargetCapacityDirection.UNRECOGNIZED : result;
}
/**
* .ray.serve.TargetCapacityDirection target_capacity_direction = 9 [json_name = "targetCapacityDirection"];
* @param value The targetCapacityDirection to set.
* @return This builder for chaining.
*/
public Builder setTargetCapacityDirection(io.ray.serve.generated.TargetCapacityDirection value) {
if (value == null) {
throw new NullPointerException();
}
targetCapacityDirection_ = value.getNumber();
onChanged();
return this;
}
/**
* .ray.serve.TargetCapacityDirection target_capacity_direction = 9 [json_name = "targetCapacityDirection"];
* @return This builder for chaining.
*/
public Builder clearTargetCapacityDirection() {
targetCapacityDirection_ = 0;
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.DeploymentInfo)
}
// @@protoc_insertion_point(class_scope:ray.serve.DeploymentInfo)
private static final io.ray.serve.generated.DeploymentInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.serve.generated.DeploymentInfo();
}
public static io.ray.serve.generated.DeploymentInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentInfo(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.DeploymentInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy