io.ray.serve.generated.ReplicaConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/ray/protobuf/serve.proto
package io.ray.serve.generated;
/**
* Protobuf type {@code ray.serve.ReplicaConfig}
*/
public final class ReplicaConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.serve.ReplicaConfig)
ReplicaConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReplicaConfig.newBuilder() to construct.
private ReplicaConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReplicaConfig() {
deploymentDefName_ = "";
deploymentDef_ = com.google.protobuf.ByteString.EMPTY;
initArgs_ = com.google.protobuf.ByteString.EMPTY;
initKwargs_ = com.google.protobuf.ByteString.EMPTY;
rayActorOptions_ = "";
placementGroupBundles_ = "";
placementGroupStrategy_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReplicaConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReplicaConfig(
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();
deploymentDefName_ = s;
break;
}
case 18: {
deploymentDef_ = input.readBytes();
break;
}
case 26: {
initArgs_ = input.readBytes();
break;
}
case 34: {
initKwargs_ = input.readBytes();
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
rayActorOptions_ = s;
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
placementGroupBundles_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
placementGroupStrategy_ = s;
break;
}
case 64: {
maxReplicasPerNode_ = input.readInt32();
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_ReplicaConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_ReplicaConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.ReplicaConfig.class, io.ray.serve.generated.ReplicaConfig.Builder.class);
}
public static final int DEPLOYMENT_DEF_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object deploymentDefName_;
/**
* string deployment_def_name = 1 [json_name = "deploymentDefName"];
* @return The deploymentDefName.
*/
@java.lang.Override
public java.lang.String getDeploymentDefName() {
java.lang.Object ref = deploymentDefName_;
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();
deploymentDefName_ = s;
return s;
}
}
/**
* string deployment_def_name = 1 [json_name = "deploymentDefName"];
* @return The bytes for deploymentDefName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeploymentDefNameBytes() {
java.lang.Object ref = deploymentDefName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deploymentDefName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPLOYMENT_DEF_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString deploymentDef_;
/**
* bytes deployment_def = 2 [json_name = "deploymentDef"];
* @return The deploymentDef.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDeploymentDef() {
return deploymentDef_;
}
public static final int INIT_ARGS_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString initArgs_;
/**
* bytes init_args = 3 [json_name = "initArgs"];
* @return The initArgs.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInitArgs() {
return initArgs_;
}
public static final int INIT_KWARGS_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString initKwargs_;
/**
* bytes init_kwargs = 4 [json_name = "initKwargs"];
* @return The initKwargs.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInitKwargs() {
return initKwargs_;
}
public static final int RAY_ACTOR_OPTIONS_FIELD_NUMBER = 5;
private volatile java.lang.Object rayActorOptions_;
/**
* string ray_actor_options = 5 [json_name = "rayActorOptions"];
* @return The rayActorOptions.
*/
@java.lang.Override
public java.lang.String getRayActorOptions() {
java.lang.Object ref = rayActorOptions_;
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();
rayActorOptions_ = s;
return s;
}
}
/**
* string ray_actor_options = 5 [json_name = "rayActorOptions"];
* @return The bytes for rayActorOptions.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRayActorOptionsBytes() {
java.lang.Object ref = rayActorOptions_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rayActorOptions_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLACEMENT_GROUP_BUNDLES_FIELD_NUMBER = 6;
private volatile java.lang.Object placementGroupBundles_;
/**
* string placement_group_bundles = 6 [json_name = "placementGroupBundles"];
* @return The placementGroupBundles.
*/
@java.lang.Override
public java.lang.String getPlacementGroupBundles() {
java.lang.Object ref = placementGroupBundles_;
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();
placementGroupBundles_ = s;
return s;
}
}
/**
* string placement_group_bundles = 6 [json_name = "placementGroupBundles"];
* @return The bytes for placementGroupBundles.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlacementGroupBundlesBytes() {
java.lang.Object ref = placementGroupBundles_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
placementGroupBundles_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PLACEMENT_GROUP_STRATEGY_FIELD_NUMBER = 7;
private volatile java.lang.Object placementGroupStrategy_;
/**
* string placement_group_strategy = 7 [json_name = "placementGroupStrategy"];
* @return The placementGroupStrategy.
*/
@java.lang.Override
public java.lang.String getPlacementGroupStrategy() {
java.lang.Object ref = placementGroupStrategy_;
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();
placementGroupStrategy_ = s;
return s;
}
}
/**
* string placement_group_strategy = 7 [json_name = "placementGroupStrategy"];
* @return The bytes for placementGroupStrategy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlacementGroupStrategyBytes() {
java.lang.Object ref = placementGroupStrategy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
placementGroupStrategy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAX_REPLICAS_PER_NODE_FIELD_NUMBER = 8;
private int maxReplicasPerNode_;
/**
* int32 max_replicas_per_node = 8 [json_name = "maxReplicasPerNode"];
* @return The maxReplicasPerNode.
*/
@java.lang.Override
public int getMaxReplicasPerNode() {
return maxReplicasPerNode_;
}
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(deploymentDefName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deploymentDefName_);
}
if (!deploymentDef_.isEmpty()) {
output.writeBytes(2, deploymentDef_);
}
if (!initArgs_.isEmpty()) {
output.writeBytes(3, initArgs_);
}
if (!initKwargs_.isEmpty()) {
output.writeBytes(4, initKwargs_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rayActorOptions_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, rayActorOptions_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placementGroupBundles_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, placementGroupBundles_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placementGroupStrategy_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, placementGroupStrategy_);
}
if (maxReplicasPerNode_ != 0) {
output.writeInt32(8, maxReplicasPerNode_);
}
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(deploymentDefName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deploymentDefName_);
}
if (!deploymentDef_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, deploymentDef_);
}
if (!initArgs_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, initArgs_);
}
if (!initKwargs_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, initKwargs_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rayActorOptions_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rayActorOptions_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placementGroupBundles_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, placementGroupBundles_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(placementGroupStrategy_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, placementGroupStrategy_);
}
if (maxReplicasPerNode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, maxReplicasPerNode_);
}
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.ReplicaConfig)) {
return super.equals(obj);
}
io.ray.serve.generated.ReplicaConfig other = (io.ray.serve.generated.ReplicaConfig) obj;
if (!getDeploymentDefName()
.equals(other.getDeploymentDefName())) return false;
if (!getDeploymentDef()
.equals(other.getDeploymentDef())) return false;
if (!getInitArgs()
.equals(other.getInitArgs())) return false;
if (!getInitKwargs()
.equals(other.getInitKwargs())) return false;
if (!getRayActorOptions()
.equals(other.getRayActorOptions())) return false;
if (!getPlacementGroupBundles()
.equals(other.getPlacementGroupBundles())) return false;
if (!getPlacementGroupStrategy()
.equals(other.getPlacementGroupStrategy())) return false;
if (getMaxReplicasPerNode()
!= other.getMaxReplicasPerNode()) 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) + DEPLOYMENT_DEF_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentDefName().hashCode();
hash = (37 * hash) + DEPLOYMENT_DEF_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentDef().hashCode();
hash = (37 * hash) + INIT_ARGS_FIELD_NUMBER;
hash = (53 * hash) + getInitArgs().hashCode();
hash = (37 * hash) + INIT_KWARGS_FIELD_NUMBER;
hash = (53 * hash) + getInitKwargs().hashCode();
hash = (37 * hash) + RAY_ACTOR_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getRayActorOptions().hashCode();
hash = (37 * hash) + PLACEMENT_GROUP_BUNDLES_FIELD_NUMBER;
hash = (53 * hash) + getPlacementGroupBundles().hashCode();
hash = (37 * hash) + PLACEMENT_GROUP_STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getPlacementGroupStrategy().hashCode();
hash = (37 * hash) + MAX_REPLICAS_PER_NODE_FIELD_NUMBER;
hash = (53 * hash) + getMaxReplicasPerNode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.serve.generated.ReplicaConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.ReplicaConfig 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.ReplicaConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.ReplicaConfig 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.ReplicaConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.ReplicaConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.serve.generated.ReplicaConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.ReplicaConfig 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.ReplicaConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.serve.generated.ReplicaConfig 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.ReplicaConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.ReplicaConfig 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.ReplicaConfig 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.ReplicaConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.serve.ReplicaConfig)
io.ray.serve.generated.ReplicaConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_ReplicaConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_ReplicaConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.ReplicaConfig.class, io.ray.serve.generated.ReplicaConfig.Builder.class);
}
// Construct using io.ray.serve.generated.ReplicaConfig.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();
deploymentDefName_ = "";
deploymentDef_ = com.google.protobuf.ByteString.EMPTY;
initArgs_ = com.google.protobuf.ByteString.EMPTY;
initKwargs_ = com.google.protobuf.ByteString.EMPTY;
rayActorOptions_ = "";
placementGroupBundles_ = "";
placementGroupStrategy_ = "";
maxReplicasPerNode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_ReplicaConfig_descriptor;
}
@java.lang.Override
public io.ray.serve.generated.ReplicaConfig getDefaultInstanceForType() {
return io.ray.serve.generated.ReplicaConfig.getDefaultInstance();
}
@java.lang.Override
public io.ray.serve.generated.ReplicaConfig build() {
io.ray.serve.generated.ReplicaConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.serve.generated.ReplicaConfig buildPartial() {
io.ray.serve.generated.ReplicaConfig result = new io.ray.serve.generated.ReplicaConfig(this);
result.deploymentDefName_ = deploymentDefName_;
result.deploymentDef_ = deploymentDef_;
result.initArgs_ = initArgs_;
result.initKwargs_ = initKwargs_;
result.rayActorOptions_ = rayActorOptions_;
result.placementGroupBundles_ = placementGroupBundles_;
result.placementGroupStrategy_ = placementGroupStrategy_;
result.maxReplicasPerNode_ = maxReplicasPerNode_;
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.ReplicaConfig) {
return mergeFrom((io.ray.serve.generated.ReplicaConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.serve.generated.ReplicaConfig other) {
if (other == io.ray.serve.generated.ReplicaConfig.getDefaultInstance()) return this;
if (!other.getDeploymentDefName().isEmpty()) {
deploymentDefName_ = other.deploymentDefName_;
onChanged();
}
if (other.getDeploymentDef() != com.google.protobuf.ByteString.EMPTY) {
setDeploymentDef(other.getDeploymentDef());
}
if (other.getInitArgs() != com.google.protobuf.ByteString.EMPTY) {
setInitArgs(other.getInitArgs());
}
if (other.getInitKwargs() != com.google.protobuf.ByteString.EMPTY) {
setInitKwargs(other.getInitKwargs());
}
if (!other.getRayActorOptions().isEmpty()) {
rayActorOptions_ = other.rayActorOptions_;
onChanged();
}
if (!other.getPlacementGroupBundles().isEmpty()) {
placementGroupBundles_ = other.placementGroupBundles_;
onChanged();
}
if (!other.getPlacementGroupStrategy().isEmpty()) {
placementGroupStrategy_ = other.placementGroupStrategy_;
onChanged();
}
if (other.getMaxReplicasPerNode() != 0) {
setMaxReplicasPerNode(other.getMaxReplicasPerNode());
}
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.ReplicaConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.serve.generated.ReplicaConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object deploymentDefName_ = "";
/**
* string deployment_def_name = 1 [json_name = "deploymentDefName"];
* @return The deploymentDefName.
*/
public java.lang.String getDeploymentDefName() {
java.lang.Object ref = deploymentDefName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deploymentDefName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string deployment_def_name = 1 [json_name = "deploymentDefName"];
* @return The bytes for deploymentDefName.
*/
public com.google.protobuf.ByteString
getDeploymentDefNameBytes() {
java.lang.Object ref = deploymentDefName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deploymentDefName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string deployment_def_name = 1 [json_name = "deploymentDefName"];
* @param value The deploymentDefName to set.
* @return This builder for chaining.
*/
public Builder setDeploymentDefName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deploymentDefName_ = value;
onChanged();
return this;
}
/**
* string deployment_def_name = 1 [json_name = "deploymentDefName"];
* @return This builder for chaining.
*/
public Builder clearDeploymentDefName() {
deploymentDefName_ = getDefaultInstance().getDeploymentDefName();
onChanged();
return this;
}
/**
* string deployment_def_name = 1 [json_name = "deploymentDefName"];
* @param value The bytes for deploymentDefName to set.
* @return This builder for chaining.
*/
public Builder setDeploymentDefNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deploymentDefName_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString deploymentDef_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes deployment_def = 2 [json_name = "deploymentDef"];
* @return The deploymentDef.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDeploymentDef() {
return deploymentDef_;
}
/**
* bytes deployment_def = 2 [json_name = "deploymentDef"];
* @param value The deploymentDef to set.
* @return This builder for chaining.
*/
public Builder setDeploymentDef(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
deploymentDef_ = value;
onChanged();
return this;
}
/**
* bytes deployment_def = 2 [json_name = "deploymentDef"];
* @return This builder for chaining.
*/
public Builder clearDeploymentDef() {
deploymentDef_ = getDefaultInstance().getDeploymentDef();
onChanged();
return this;
}
private com.google.protobuf.ByteString initArgs_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes init_args = 3 [json_name = "initArgs"];
* @return The initArgs.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInitArgs() {
return initArgs_;
}
/**
* bytes init_args = 3 [json_name = "initArgs"];
* @param value The initArgs to set.
* @return This builder for chaining.
*/
public Builder setInitArgs(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
initArgs_ = value;
onChanged();
return this;
}
/**
* bytes init_args = 3 [json_name = "initArgs"];
* @return This builder for chaining.
*/
public Builder clearInitArgs() {
initArgs_ = getDefaultInstance().getInitArgs();
onChanged();
return this;
}
private com.google.protobuf.ByteString initKwargs_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes init_kwargs = 4 [json_name = "initKwargs"];
* @return The initKwargs.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInitKwargs() {
return initKwargs_;
}
/**
* bytes init_kwargs = 4 [json_name = "initKwargs"];
* @param value The initKwargs to set.
* @return This builder for chaining.
*/
public Builder setInitKwargs(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
initKwargs_ = value;
onChanged();
return this;
}
/**
* bytes init_kwargs = 4 [json_name = "initKwargs"];
* @return This builder for chaining.
*/
public Builder clearInitKwargs() {
initKwargs_ = getDefaultInstance().getInitKwargs();
onChanged();
return this;
}
private java.lang.Object rayActorOptions_ = "";
/**
* string ray_actor_options = 5 [json_name = "rayActorOptions"];
* @return The rayActorOptions.
*/
public java.lang.String getRayActorOptions() {
java.lang.Object ref = rayActorOptions_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rayActorOptions_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ray_actor_options = 5 [json_name = "rayActorOptions"];
* @return The bytes for rayActorOptions.
*/
public com.google.protobuf.ByteString
getRayActorOptionsBytes() {
java.lang.Object ref = rayActorOptions_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rayActorOptions_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ray_actor_options = 5 [json_name = "rayActorOptions"];
* @param value The rayActorOptions to set.
* @return This builder for chaining.
*/
public Builder setRayActorOptions(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rayActorOptions_ = value;
onChanged();
return this;
}
/**
* string ray_actor_options = 5 [json_name = "rayActorOptions"];
* @return This builder for chaining.
*/
public Builder clearRayActorOptions() {
rayActorOptions_ = getDefaultInstance().getRayActorOptions();
onChanged();
return this;
}
/**
* string ray_actor_options = 5 [json_name = "rayActorOptions"];
* @param value The bytes for rayActorOptions to set.
* @return This builder for chaining.
*/
public Builder setRayActorOptionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rayActorOptions_ = value;
onChanged();
return this;
}
private java.lang.Object placementGroupBundles_ = "";
/**
* string placement_group_bundles = 6 [json_name = "placementGroupBundles"];
* @return The placementGroupBundles.
*/
public java.lang.String getPlacementGroupBundles() {
java.lang.Object ref = placementGroupBundles_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
placementGroupBundles_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string placement_group_bundles = 6 [json_name = "placementGroupBundles"];
* @return The bytes for placementGroupBundles.
*/
public com.google.protobuf.ByteString
getPlacementGroupBundlesBytes() {
java.lang.Object ref = placementGroupBundles_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
placementGroupBundles_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string placement_group_bundles = 6 [json_name = "placementGroupBundles"];
* @param value The placementGroupBundles to set.
* @return This builder for chaining.
*/
public Builder setPlacementGroupBundles(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
placementGroupBundles_ = value;
onChanged();
return this;
}
/**
* string placement_group_bundles = 6 [json_name = "placementGroupBundles"];
* @return This builder for chaining.
*/
public Builder clearPlacementGroupBundles() {
placementGroupBundles_ = getDefaultInstance().getPlacementGroupBundles();
onChanged();
return this;
}
/**
* string placement_group_bundles = 6 [json_name = "placementGroupBundles"];
* @param value The bytes for placementGroupBundles to set.
* @return This builder for chaining.
*/
public Builder setPlacementGroupBundlesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
placementGroupBundles_ = value;
onChanged();
return this;
}
private java.lang.Object placementGroupStrategy_ = "";
/**
* string placement_group_strategy = 7 [json_name = "placementGroupStrategy"];
* @return The placementGroupStrategy.
*/
public java.lang.String getPlacementGroupStrategy() {
java.lang.Object ref = placementGroupStrategy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
placementGroupStrategy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string placement_group_strategy = 7 [json_name = "placementGroupStrategy"];
* @return The bytes for placementGroupStrategy.
*/
public com.google.protobuf.ByteString
getPlacementGroupStrategyBytes() {
java.lang.Object ref = placementGroupStrategy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
placementGroupStrategy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string placement_group_strategy = 7 [json_name = "placementGroupStrategy"];
* @param value The placementGroupStrategy to set.
* @return This builder for chaining.
*/
public Builder setPlacementGroupStrategy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
placementGroupStrategy_ = value;
onChanged();
return this;
}
/**
* string placement_group_strategy = 7 [json_name = "placementGroupStrategy"];
* @return This builder for chaining.
*/
public Builder clearPlacementGroupStrategy() {
placementGroupStrategy_ = getDefaultInstance().getPlacementGroupStrategy();
onChanged();
return this;
}
/**
* string placement_group_strategy = 7 [json_name = "placementGroupStrategy"];
* @param value The bytes for placementGroupStrategy to set.
* @return This builder for chaining.
*/
public Builder setPlacementGroupStrategyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
placementGroupStrategy_ = value;
onChanged();
return this;
}
private int maxReplicasPerNode_ ;
/**
* int32 max_replicas_per_node = 8 [json_name = "maxReplicasPerNode"];
* @return The maxReplicasPerNode.
*/
@java.lang.Override
public int getMaxReplicasPerNode() {
return maxReplicasPerNode_;
}
/**
* int32 max_replicas_per_node = 8 [json_name = "maxReplicasPerNode"];
* @param value The maxReplicasPerNode to set.
* @return This builder for chaining.
*/
public Builder setMaxReplicasPerNode(int value) {
maxReplicasPerNode_ = value;
onChanged();
return this;
}
/**
* int32 max_replicas_per_node = 8 [json_name = "maxReplicasPerNode"];
* @return This builder for chaining.
*/
public Builder clearMaxReplicasPerNode() {
maxReplicasPerNode_ = 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.ReplicaConfig)
}
// @@protoc_insertion_point(class_scope:ray.serve.ReplicaConfig)
private static final io.ray.serve.generated.ReplicaConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.serve.generated.ReplicaConfig();
}
public static io.ray.serve.generated.ReplicaConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReplicaConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReplicaConfig(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.ReplicaConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy