io.ray.serve.generated.DeploymentArgs 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.DeploymentArgs}
*/
public final class DeploymentArgs extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.serve.DeploymentArgs)
DeploymentArgsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeploymentArgs.newBuilder() to construct.
private DeploymentArgs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeploymentArgs() {
deploymentName_ = "";
deploymentConfig_ = com.google.protobuf.ByteString.EMPTY;
replicaConfig_ = com.google.protobuf.ByteString.EMPTY;
deployerJobId_ = "";
routePrefix_ = "";
docsPath_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeploymentArgs();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeploymentArgs(
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 10: {
java.lang.String s = input.readStringRequireUtf8();
deploymentName_ = s;
break;
}
case 18: {
deploymentConfig_ = input.readBytes();
break;
}
case 26: {
replicaConfig_ = input.readBytes();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
deployerJobId_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
routePrefix_ = s;
break;
}
case 48: {
ingress_ = input.readBool();
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
docsPath_ = s;
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_DeploymentArgs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentArgs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.DeploymentArgs.class, io.ray.serve.generated.DeploymentArgs.Builder.class);
}
private int bitField0_;
public static final int DEPLOYMENT_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object deploymentName_;
/**
* string deployment_name = 1 [json_name = "deploymentName"];
* @return The deploymentName.
*/
@java.lang.Override
public java.lang.String getDeploymentName() {
java.lang.Object ref = deploymentName_;
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();
deploymentName_ = s;
return s;
}
}
/**
* string deployment_name = 1 [json_name = "deploymentName"];
* @return The bytes for deploymentName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeploymentNameBytes() {
java.lang.Object ref = deploymentName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deploymentName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEPLOYMENT_CONFIG_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString deploymentConfig_;
/**
* bytes deployment_config = 2 [json_name = "deploymentConfig"];
* @return The deploymentConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDeploymentConfig() {
return deploymentConfig_;
}
public static final int REPLICA_CONFIG_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString replicaConfig_;
/**
* bytes replica_config = 3 [json_name = "replicaConfig"];
* @return The replicaConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getReplicaConfig() {
return replicaConfig_;
}
public static final int DEPLOYER_JOB_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object deployerJobId_;
/**
* string deployer_job_id = 4 [json_name = "deployerJobId"];
* @return The deployerJobId.
*/
@java.lang.Override
public java.lang.String getDeployerJobId() {
java.lang.Object ref = deployerJobId_;
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();
deployerJobId_ = s;
return s;
}
}
/**
* string deployer_job_id = 4 [json_name = "deployerJobId"];
* @return The bytes for deployerJobId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeployerJobIdBytes() {
java.lang.Object ref = deployerJobId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deployerJobId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_PREFIX_FIELD_NUMBER = 5;
private volatile java.lang.Object routePrefix_;
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @return Whether the routePrefix field is set.
*/
@java.lang.Override
public boolean hasRoutePrefix() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @return The routePrefix.
*/
@java.lang.Override
public java.lang.String getRoutePrefix() {
java.lang.Object ref = routePrefix_;
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();
routePrefix_ = s;
return s;
}
}
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @return The bytes for routePrefix.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRoutePrefixBytes() {
java.lang.Object ref = routePrefix_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routePrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INGRESS_FIELD_NUMBER = 6;
private boolean ingress_;
/**
* bool ingress = 6 [json_name = "ingress"];
* @return The ingress.
*/
@java.lang.Override
public boolean getIngress() {
return ingress_;
}
public static final int DOCS_PATH_FIELD_NUMBER = 7;
private volatile java.lang.Object docsPath_;
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @return Whether the docsPath field is set.
*/
@java.lang.Override
public boolean hasDocsPath() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @return The docsPath.
*/
@java.lang.Override
public java.lang.String getDocsPath() {
java.lang.Object ref = docsPath_;
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();
docsPath_ = s;
return s;
}
}
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @return The bytes for docsPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDocsPathBytes() {
java.lang.Object ref = docsPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docsPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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(deploymentName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deploymentName_);
}
if (!deploymentConfig_.isEmpty()) {
output.writeBytes(2, deploymentConfig_);
}
if (!replicaConfig_.isEmpty()) {
output.writeBytes(3, replicaConfig_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployerJobId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deployerJobId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, routePrefix_);
}
if (ingress_ != false) {
output.writeBool(6, ingress_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, docsPath_);
}
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(deploymentName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deploymentName_);
}
if (!deploymentConfig_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, deploymentConfig_);
}
if (!replicaConfig_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, replicaConfig_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployerJobId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, deployerJobId_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, routePrefix_);
}
if (ingress_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, ingress_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, docsPath_);
}
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.DeploymentArgs)) {
return super.equals(obj);
}
io.ray.serve.generated.DeploymentArgs other = (io.ray.serve.generated.DeploymentArgs) obj;
if (!getDeploymentName()
.equals(other.getDeploymentName())) return false;
if (!getDeploymentConfig()
.equals(other.getDeploymentConfig())) return false;
if (!getReplicaConfig()
.equals(other.getReplicaConfig())) return false;
if (!getDeployerJobId()
.equals(other.getDeployerJobId())) return false;
if (hasRoutePrefix() != other.hasRoutePrefix()) return false;
if (hasRoutePrefix()) {
if (!getRoutePrefix()
.equals(other.getRoutePrefix())) return false;
}
if (getIngress()
!= other.getIngress()) return false;
if (hasDocsPath() != other.hasDocsPath()) return false;
if (hasDocsPath()) {
if (!getDocsPath()
.equals(other.getDocsPath())) 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_NAME_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentName().hashCode();
hash = (37 * hash) + DEPLOYMENT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDeploymentConfig().hashCode();
hash = (37 * hash) + REPLICA_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getReplicaConfig().hashCode();
hash = (37 * hash) + DEPLOYER_JOB_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeployerJobId().hashCode();
if (hasRoutePrefix()) {
hash = (37 * hash) + ROUTE_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + getRoutePrefix().hashCode();
}
hash = (37 * hash) + INGRESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIngress());
if (hasDocsPath()) {
hash = (37 * hash) + DOCS_PATH_FIELD_NUMBER;
hash = (53 * hash) + getDocsPath().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.serve.generated.DeploymentArgs parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentArgs 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.DeploymentArgs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentArgs 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.DeploymentArgs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.serve.generated.DeploymentArgs parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.serve.generated.DeploymentArgs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentArgs 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.DeploymentArgs parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentArgs 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.DeploymentArgs parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.serve.generated.DeploymentArgs 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.DeploymentArgs 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.DeploymentArgs}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.serve.DeploymentArgs)
io.ray.serve.generated.DeploymentArgsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentArgs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentArgs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.serve.generated.DeploymentArgs.class, io.ray.serve.generated.DeploymentArgs.Builder.class);
}
// Construct using io.ray.serve.generated.DeploymentArgs.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();
deploymentName_ = "";
deploymentConfig_ = com.google.protobuf.ByteString.EMPTY;
replicaConfig_ = com.google.protobuf.ByteString.EMPTY;
deployerJobId_ = "";
routePrefix_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
ingress_ = false;
docsPath_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.serve.generated.ServeProtos.internal_static_ray_serve_DeploymentArgs_descriptor;
}
@java.lang.Override
public io.ray.serve.generated.DeploymentArgs getDefaultInstanceForType() {
return io.ray.serve.generated.DeploymentArgs.getDefaultInstance();
}
@java.lang.Override
public io.ray.serve.generated.DeploymentArgs build() {
io.ray.serve.generated.DeploymentArgs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.serve.generated.DeploymentArgs buildPartial() {
io.ray.serve.generated.DeploymentArgs result = new io.ray.serve.generated.DeploymentArgs(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.deploymentName_ = deploymentName_;
result.deploymentConfig_ = deploymentConfig_;
result.replicaConfig_ = replicaConfig_;
result.deployerJobId_ = deployerJobId_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.routePrefix_ = routePrefix_;
result.ingress_ = ingress_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.docsPath_ = docsPath_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.ray.serve.generated.DeploymentArgs) {
return mergeFrom((io.ray.serve.generated.DeploymentArgs)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.serve.generated.DeploymentArgs other) {
if (other == io.ray.serve.generated.DeploymentArgs.getDefaultInstance()) return this;
if (!other.getDeploymentName().isEmpty()) {
deploymentName_ = other.deploymentName_;
onChanged();
}
if (other.getDeploymentConfig() != com.google.protobuf.ByteString.EMPTY) {
setDeploymentConfig(other.getDeploymentConfig());
}
if (other.getReplicaConfig() != com.google.protobuf.ByteString.EMPTY) {
setReplicaConfig(other.getReplicaConfig());
}
if (!other.getDeployerJobId().isEmpty()) {
deployerJobId_ = other.deployerJobId_;
onChanged();
}
if (other.hasRoutePrefix()) {
bitField0_ |= 0x00000001;
routePrefix_ = other.routePrefix_;
onChanged();
}
if (other.getIngress() != false) {
setIngress(other.getIngress());
}
if (other.hasDocsPath()) {
bitField0_ |= 0x00000002;
docsPath_ = other.docsPath_;
onChanged();
}
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.DeploymentArgs parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.serve.generated.DeploymentArgs) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object deploymentName_ = "";
/**
* string deployment_name = 1 [json_name = "deploymentName"];
* @return The deploymentName.
*/
public java.lang.String getDeploymentName() {
java.lang.Object ref = deploymentName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deploymentName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string deployment_name = 1 [json_name = "deploymentName"];
* @return The bytes for deploymentName.
*/
public com.google.protobuf.ByteString
getDeploymentNameBytes() {
java.lang.Object ref = deploymentName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deploymentName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string deployment_name = 1 [json_name = "deploymentName"];
* @param value The deploymentName to set.
* @return This builder for chaining.
*/
public Builder setDeploymentName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deploymentName_ = value;
onChanged();
return this;
}
/**
* string deployment_name = 1 [json_name = "deploymentName"];
* @return This builder for chaining.
*/
public Builder clearDeploymentName() {
deploymentName_ = getDefaultInstance().getDeploymentName();
onChanged();
return this;
}
/**
* string deployment_name = 1 [json_name = "deploymentName"];
* @param value The bytes for deploymentName to set.
* @return This builder for chaining.
*/
public Builder setDeploymentNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deploymentName_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString deploymentConfig_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes deployment_config = 2 [json_name = "deploymentConfig"];
* @return The deploymentConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDeploymentConfig() {
return deploymentConfig_;
}
/**
* bytes deployment_config = 2 [json_name = "deploymentConfig"];
* @param value The deploymentConfig to set.
* @return This builder for chaining.
*/
public Builder setDeploymentConfig(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
deploymentConfig_ = value;
onChanged();
return this;
}
/**
* bytes deployment_config = 2 [json_name = "deploymentConfig"];
* @return This builder for chaining.
*/
public Builder clearDeploymentConfig() {
deploymentConfig_ = getDefaultInstance().getDeploymentConfig();
onChanged();
return this;
}
private com.google.protobuf.ByteString replicaConfig_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes replica_config = 3 [json_name = "replicaConfig"];
* @return The replicaConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getReplicaConfig() {
return replicaConfig_;
}
/**
* bytes replica_config = 3 [json_name = "replicaConfig"];
* @param value The replicaConfig to set.
* @return This builder for chaining.
*/
public Builder setReplicaConfig(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
replicaConfig_ = value;
onChanged();
return this;
}
/**
* bytes replica_config = 3 [json_name = "replicaConfig"];
* @return This builder for chaining.
*/
public Builder clearReplicaConfig() {
replicaConfig_ = getDefaultInstance().getReplicaConfig();
onChanged();
return this;
}
private java.lang.Object deployerJobId_ = "";
/**
* string deployer_job_id = 4 [json_name = "deployerJobId"];
* @return The deployerJobId.
*/
public java.lang.String getDeployerJobId() {
java.lang.Object ref = deployerJobId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deployerJobId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string deployer_job_id = 4 [json_name = "deployerJobId"];
* @return The bytes for deployerJobId.
*/
public com.google.protobuf.ByteString
getDeployerJobIdBytes() {
java.lang.Object ref = deployerJobId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deployerJobId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string deployer_job_id = 4 [json_name = "deployerJobId"];
* @param value The deployerJobId to set.
* @return This builder for chaining.
*/
public Builder setDeployerJobId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deployerJobId_ = value;
onChanged();
return this;
}
/**
* string deployer_job_id = 4 [json_name = "deployerJobId"];
* @return This builder for chaining.
*/
public Builder clearDeployerJobId() {
deployerJobId_ = getDefaultInstance().getDeployerJobId();
onChanged();
return this;
}
/**
* string deployer_job_id = 4 [json_name = "deployerJobId"];
* @param value The bytes for deployerJobId to set.
* @return This builder for chaining.
*/
public Builder setDeployerJobIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deployerJobId_ = value;
onChanged();
return this;
}
private java.lang.Object routePrefix_ = "";
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @return Whether the routePrefix field is set.
*/
public boolean hasRoutePrefix() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @return The routePrefix.
*/
public java.lang.String getRoutePrefix() {
java.lang.Object ref = routePrefix_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
routePrefix_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @return The bytes for routePrefix.
*/
public com.google.protobuf.ByteString
getRoutePrefixBytes() {
java.lang.Object ref = routePrefix_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
routePrefix_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @param value The routePrefix to set.
* @return This builder for chaining.
*/
public Builder setRoutePrefix(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
routePrefix_ = value;
onChanged();
return this;
}
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @return This builder for chaining.
*/
public Builder clearRoutePrefix() {
bitField0_ = (bitField0_ & ~0x00000001);
routePrefix_ = getDefaultInstance().getRoutePrefix();
onChanged();
return this;
}
/**
* optional string route_prefix = 5 [json_name = "routePrefix"];
* @param value The bytes for routePrefix to set.
* @return This builder for chaining.
*/
public Builder setRoutePrefixBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
routePrefix_ = value;
onChanged();
return this;
}
private boolean ingress_ ;
/**
* bool ingress = 6 [json_name = "ingress"];
* @return The ingress.
*/
@java.lang.Override
public boolean getIngress() {
return ingress_;
}
/**
* bool ingress = 6 [json_name = "ingress"];
* @param value The ingress to set.
* @return This builder for chaining.
*/
public Builder setIngress(boolean value) {
ingress_ = value;
onChanged();
return this;
}
/**
* bool ingress = 6 [json_name = "ingress"];
* @return This builder for chaining.
*/
public Builder clearIngress() {
ingress_ = false;
onChanged();
return this;
}
private java.lang.Object docsPath_ = "";
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @return Whether the docsPath field is set.
*/
public boolean hasDocsPath() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @return The docsPath.
*/
public java.lang.String getDocsPath() {
java.lang.Object ref = docsPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
docsPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @return The bytes for docsPath.
*/
public com.google.protobuf.ByteString
getDocsPathBytes() {
java.lang.Object ref = docsPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
docsPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @param value The docsPath to set.
* @return This builder for chaining.
*/
public Builder setDocsPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
docsPath_ = value;
onChanged();
return this;
}
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @return This builder for chaining.
*/
public Builder clearDocsPath() {
bitField0_ = (bitField0_ & ~0x00000002);
docsPath_ = getDefaultInstance().getDocsPath();
onChanged();
return this;
}
/**
* optional string docs_path = 7 [json_name = "docsPath"];
* @param value The bytes for docsPath to set.
* @return This builder for chaining.
*/
public Builder setDocsPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
docsPath_ = value;
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.DeploymentArgs)
}
// @@protoc_insertion_point(class_scope:ray.serve.DeploymentArgs)
private static final io.ray.serve.generated.DeploymentArgs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.serve.generated.DeploymentArgs();
}
public static io.ray.serve.generated.DeploymentArgs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentArgs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeploymentArgs(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.DeploymentArgs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy