io.ray.runtime.generated.Common Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ray-runtime Show documentation
Show all versions of ray-runtime Show documentation
ray runtime implementation
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/ray/protobuf/common.proto
package io.ray.runtime.generated;
public final class Common {
private Common() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code ray.rpc.Language}
*/
public enum Language
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PYTHON = 0;
*/
PYTHON(0),
/**
* JAVA = 1;
*/
JAVA(1),
/**
* CPP = 2;
*/
CPP(2),
UNRECOGNIZED(-1),
;
/**
* PYTHON = 0;
*/
public static final int PYTHON_VALUE = 0;
/**
* JAVA = 1;
*/
public static final int JAVA_VALUE = 1;
/**
* CPP = 2;
*/
public static final int CPP_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Language valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Language forNumber(int value) {
switch (value) {
case 0: return PYTHON;
case 1: return JAVA;
case 2: return CPP;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Language> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Language findValueByNumber(int number) {
return Language.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.getDescriptor().getEnumTypes().get(0);
}
private static final Language[] VALUES = values();
public static Language valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Language(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.Language)
}
/**
* Protobuf enum {@code ray.rpc.WorkerType}
*/
public enum WorkerType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* WORKER = 0;
*/
WORKER(0),
/**
* DRIVER = 1;
*/
DRIVER(1),
/**
* SPILL_WORKER = 2;
*/
SPILL_WORKER(2),
/**
* RESTORE_WORKER = 3;
*/
RESTORE_WORKER(3),
UNRECOGNIZED(-1),
;
/**
* WORKER = 0;
*/
public static final int WORKER_VALUE = 0;
/**
* DRIVER = 1;
*/
public static final int DRIVER_VALUE = 1;
/**
* SPILL_WORKER = 2;
*/
public static final int SPILL_WORKER_VALUE = 2;
/**
* RESTORE_WORKER = 3;
*/
public static final int RESTORE_WORKER_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static WorkerType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static WorkerType forNumber(int value) {
switch (value) {
case 0: return WORKER;
case 1: return DRIVER;
case 2: return SPILL_WORKER;
case 3: return RESTORE_WORKER;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
WorkerType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public WorkerType findValueByNumber(int number) {
return WorkerType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.getDescriptor().getEnumTypes().get(1);
}
private static final WorkerType[] VALUES = values();
public static WorkerType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private WorkerType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.WorkerType)
}
/**
* Protobuf enum {@code ray.rpc.TaskType}
*/
public enum TaskType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NORMAL_TASK = 0;
*/
NORMAL_TASK(0),
/**
* ACTOR_CREATION_TASK = 1;
*/
ACTOR_CREATION_TASK(1),
/**
* ACTOR_TASK = 2;
*/
ACTOR_TASK(2),
/**
* DRIVER_TASK = 3;
*/
DRIVER_TASK(3),
UNRECOGNIZED(-1),
;
/**
* NORMAL_TASK = 0;
*/
public static final int NORMAL_TASK_VALUE = 0;
/**
* ACTOR_CREATION_TASK = 1;
*/
public static final int ACTOR_CREATION_TASK_VALUE = 1;
/**
* ACTOR_TASK = 2;
*/
public static final int ACTOR_TASK_VALUE = 2;
/**
* DRIVER_TASK = 3;
*/
public static final int DRIVER_TASK_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TaskType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TaskType forNumber(int value) {
switch (value) {
case 0: return NORMAL_TASK;
case 1: return ACTOR_CREATION_TASK;
case 2: return ACTOR_TASK;
case 3: return DRIVER_TASK;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TaskType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TaskType findValueByNumber(int number) {
return TaskType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.getDescriptor().getEnumTypes().get(2);
}
private static final TaskType[] VALUES = values();
public static TaskType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TaskType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.TaskType)
}
/**
* Protobuf enum {@code ray.rpc.ErrorType}
*/
public enum ErrorType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* WORKER_DIED = 0;
*/
WORKER_DIED(0),
/**
* ACTOR_DIED = 1;
*/
ACTOR_DIED(1),
/**
* OBJECT_UNRECONSTRUCTABLE = 2;
*/
OBJECT_UNRECONSTRUCTABLE(2),
/**
* TASK_EXECUTION_EXCEPTION = 3;
*/
TASK_EXECUTION_EXCEPTION(3),
/**
* OBJECT_IN_PLASMA = 4;
*/
OBJECT_IN_PLASMA(4),
/**
* TASK_CANCELLED = 5;
*/
TASK_CANCELLED(5),
/**
* ACTOR_CREATION_FAILED = 6;
*/
ACTOR_CREATION_FAILED(6),
/**
* RUNTIME_ENV_SETUP_FAILED = 7;
*/
RUNTIME_ENV_SETUP_FAILED(7),
/**
* OBJECT_LOST = 8;
*/
OBJECT_LOST(8),
/**
* OWNER_DIED = 9;
*/
OWNER_DIED(9),
/**
* OBJECT_DELETED = 10;
*/
OBJECT_DELETED(10),
/**
* DEPENDENCY_RESOLUTION_FAILED = 11;
*/
DEPENDENCY_RESOLUTION_FAILED(11),
/**
* OBJECT_UNRECONSTRUCTABLE_MAX_ATTEMPTS_EXCEEDED = 12;
*/
OBJECT_UNRECONSTRUCTABLE_MAX_ATTEMPTS_EXCEEDED(12),
/**
* OBJECT_UNRECONSTRUCTABLE_LINEAGE_EVICTED = 13;
*/
OBJECT_UNRECONSTRUCTABLE_LINEAGE_EVICTED(13),
/**
* OBJECT_FETCH_TIMED_OUT = 14;
*/
OBJECT_FETCH_TIMED_OUT(14),
/**
* LOCAL_RAYLET_DIED = 15;
*/
LOCAL_RAYLET_DIED(15),
/**
* TASK_PLACEMENT_GROUP_REMOVED = 16;
*/
TASK_PLACEMENT_GROUP_REMOVED(16),
/**
* ACTOR_PLACEMENT_GROUP_REMOVED = 17;
*/
ACTOR_PLACEMENT_GROUP_REMOVED(17),
/**
* TASK_UNSCHEDULABLE_ERROR = 18;
*/
TASK_UNSCHEDULABLE_ERROR(18),
/**
* ACTOR_UNSCHEDULABLE_ERROR = 19;
*/
ACTOR_UNSCHEDULABLE_ERROR(19),
/**
* OUT_OF_DISK_ERROR = 20;
*/
OUT_OF_DISK_ERROR(20),
/**
* OBJECT_FREED = 21;
*/
OBJECT_FREED(21),
/**
* OUT_OF_MEMORY = 22;
*/
OUT_OF_MEMORY(22),
/**
* NODE_DIED = 23;
*/
NODE_DIED(23),
/**
* END_OF_STREAMING_GENERATOR = 24;
*/
END_OF_STREAMING_GENERATOR(24),
/**
* ACTOR_UNAVAILABLE = 25;
*/
ACTOR_UNAVAILABLE(25),
UNRECOGNIZED(-1),
;
/**
* WORKER_DIED = 0;
*/
public static final int WORKER_DIED_VALUE = 0;
/**
* ACTOR_DIED = 1;
*/
public static final int ACTOR_DIED_VALUE = 1;
/**
* OBJECT_UNRECONSTRUCTABLE = 2;
*/
public static final int OBJECT_UNRECONSTRUCTABLE_VALUE = 2;
/**
* TASK_EXECUTION_EXCEPTION = 3;
*/
public static final int TASK_EXECUTION_EXCEPTION_VALUE = 3;
/**
* OBJECT_IN_PLASMA = 4;
*/
public static final int OBJECT_IN_PLASMA_VALUE = 4;
/**
* TASK_CANCELLED = 5;
*/
public static final int TASK_CANCELLED_VALUE = 5;
/**
* ACTOR_CREATION_FAILED = 6;
*/
public static final int ACTOR_CREATION_FAILED_VALUE = 6;
/**
* RUNTIME_ENV_SETUP_FAILED = 7;
*/
public static final int RUNTIME_ENV_SETUP_FAILED_VALUE = 7;
/**
* OBJECT_LOST = 8;
*/
public static final int OBJECT_LOST_VALUE = 8;
/**
* OWNER_DIED = 9;
*/
public static final int OWNER_DIED_VALUE = 9;
/**
* OBJECT_DELETED = 10;
*/
public static final int OBJECT_DELETED_VALUE = 10;
/**
* DEPENDENCY_RESOLUTION_FAILED = 11;
*/
public static final int DEPENDENCY_RESOLUTION_FAILED_VALUE = 11;
/**
* OBJECT_UNRECONSTRUCTABLE_MAX_ATTEMPTS_EXCEEDED = 12;
*/
public static final int OBJECT_UNRECONSTRUCTABLE_MAX_ATTEMPTS_EXCEEDED_VALUE = 12;
/**
* OBJECT_UNRECONSTRUCTABLE_LINEAGE_EVICTED = 13;
*/
public static final int OBJECT_UNRECONSTRUCTABLE_LINEAGE_EVICTED_VALUE = 13;
/**
* OBJECT_FETCH_TIMED_OUT = 14;
*/
public static final int OBJECT_FETCH_TIMED_OUT_VALUE = 14;
/**
* LOCAL_RAYLET_DIED = 15;
*/
public static final int LOCAL_RAYLET_DIED_VALUE = 15;
/**
* TASK_PLACEMENT_GROUP_REMOVED = 16;
*/
public static final int TASK_PLACEMENT_GROUP_REMOVED_VALUE = 16;
/**
* ACTOR_PLACEMENT_GROUP_REMOVED = 17;
*/
public static final int ACTOR_PLACEMENT_GROUP_REMOVED_VALUE = 17;
/**
* TASK_UNSCHEDULABLE_ERROR = 18;
*/
public static final int TASK_UNSCHEDULABLE_ERROR_VALUE = 18;
/**
* ACTOR_UNSCHEDULABLE_ERROR = 19;
*/
public static final int ACTOR_UNSCHEDULABLE_ERROR_VALUE = 19;
/**
* OUT_OF_DISK_ERROR = 20;
*/
public static final int OUT_OF_DISK_ERROR_VALUE = 20;
/**
* OBJECT_FREED = 21;
*/
public static final int OBJECT_FREED_VALUE = 21;
/**
* OUT_OF_MEMORY = 22;
*/
public static final int OUT_OF_MEMORY_VALUE = 22;
/**
* NODE_DIED = 23;
*/
public static final int NODE_DIED_VALUE = 23;
/**
* END_OF_STREAMING_GENERATOR = 24;
*/
public static final int END_OF_STREAMING_GENERATOR_VALUE = 24;
/**
* ACTOR_UNAVAILABLE = 25;
*/
public static final int ACTOR_UNAVAILABLE_VALUE = 25;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ErrorType forNumber(int value) {
switch (value) {
case 0: return WORKER_DIED;
case 1: return ACTOR_DIED;
case 2: return OBJECT_UNRECONSTRUCTABLE;
case 3: return TASK_EXECUTION_EXCEPTION;
case 4: return OBJECT_IN_PLASMA;
case 5: return TASK_CANCELLED;
case 6: return ACTOR_CREATION_FAILED;
case 7: return RUNTIME_ENV_SETUP_FAILED;
case 8: return OBJECT_LOST;
case 9: return OWNER_DIED;
case 10: return OBJECT_DELETED;
case 11: return DEPENDENCY_RESOLUTION_FAILED;
case 12: return OBJECT_UNRECONSTRUCTABLE_MAX_ATTEMPTS_EXCEEDED;
case 13: return OBJECT_UNRECONSTRUCTABLE_LINEAGE_EVICTED;
case 14: return OBJECT_FETCH_TIMED_OUT;
case 15: return LOCAL_RAYLET_DIED;
case 16: return TASK_PLACEMENT_GROUP_REMOVED;
case 17: return ACTOR_PLACEMENT_GROUP_REMOVED;
case 18: return TASK_UNSCHEDULABLE_ERROR;
case 19: return ACTOR_UNSCHEDULABLE_ERROR;
case 20: return OUT_OF_DISK_ERROR;
case 21: return OBJECT_FREED;
case 22: return OUT_OF_MEMORY;
case 23: return NODE_DIED;
case 24: return END_OF_STREAMING_GENERATOR;
case 25: return ACTOR_UNAVAILABLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ErrorType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ErrorType findValueByNumber(int number) {
return ErrorType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.getDescriptor().getEnumTypes().get(3);
}
private static final ErrorType[] VALUES = values();
public static ErrorType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ErrorType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.ErrorType)
}
/**
* Protobuf enum {@code ray.rpc.TaskStatus}
*/
public enum TaskStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NIL = 0;
*/
NIL(0),
/**
* PENDING_ARGS_AVAIL = 1;
*/
PENDING_ARGS_AVAIL(1),
/**
* PENDING_NODE_ASSIGNMENT = 2;
*/
PENDING_NODE_ASSIGNMENT(2),
/**
* PENDING_OBJ_STORE_MEM_AVAIL = 3;
*/
PENDING_OBJ_STORE_MEM_AVAIL(3),
/**
* PENDING_ARGS_FETCH = 4;
*/
PENDING_ARGS_FETCH(4),
/**
* SUBMITTED_TO_WORKER = 5;
*/
SUBMITTED_TO_WORKER(5),
/**
* RUNNING = 6;
*/
RUNNING(6),
/**
* RUNNING_IN_RAY_GET = 7;
*/
RUNNING_IN_RAY_GET(7),
/**
* RUNNING_IN_RAY_WAIT = 8;
*/
RUNNING_IN_RAY_WAIT(8),
/**
* FINISHED = 9;
*/
FINISHED(9),
/**
* FAILED = 10;
*/
FAILED(10),
UNRECOGNIZED(-1),
;
/**
* NIL = 0;
*/
public static final int NIL_VALUE = 0;
/**
* PENDING_ARGS_AVAIL = 1;
*/
public static final int PENDING_ARGS_AVAIL_VALUE = 1;
/**
* PENDING_NODE_ASSIGNMENT = 2;
*/
public static final int PENDING_NODE_ASSIGNMENT_VALUE = 2;
/**
* PENDING_OBJ_STORE_MEM_AVAIL = 3;
*/
public static final int PENDING_OBJ_STORE_MEM_AVAIL_VALUE = 3;
/**
* PENDING_ARGS_FETCH = 4;
*/
public static final int PENDING_ARGS_FETCH_VALUE = 4;
/**
* SUBMITTED_TO_WORKER = 5;
*/
public static final int SUBMITTED_TO_WORKER_VALUE = 5;
/**
* RUNNING = 6;
*/
public static final int RUNNING_VALUE = 6;
/**
* RUNNING_IN_RAY_GET = 7;
*/
public static final int RUNNING_IN_RAY_GET_VALUE = 7;
/**
* RUNNING_IN_RAY_WAIT = 8;
*/
public static final int RUNNING_IN_RAY_WAIT_VALUE = 8;
/**
* FINISHED = 9;
*/
public static final int FINISHED_VALUE = 9;
/**
* FAILED = 10;
*/
public static final int FAILED_VALUE = 10;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TaskStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TaskStatus forNumber(int value) {
switch (value) {
case 0: return NIL;
case 1: return PENDING_ARGS_AVAIL;
case 2: return PENDING_NODE_ASSIGNMENT;
case 3: return PENDING_OBJ_STORE_MEM_AVAIL;
case 4: return PENDING_ARGS_FETCH;
case 5: return SUBMITTED_TO_WORKER;
case 6: return RUNNING;
case 7: return RUNNING_IN_RAY_GET;
case 8: return RUNNING_IN_RAY_WAIT;
case 9: return FINISHED;
case 10: return FAILED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TaskStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TaskStatus findValueByNumber(int number) {
return TaskStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.getDescriptor().getEnumTypes().get(4);
}
private static final TaskStatus[] VALUES = values();
public static TaskStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TaskStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.TaskStatus)
}
/**
* Protobuf enum {@code ray.rpc.WorkerExitType}
*/
public enum WorkerExitType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SYSTEM_ERROR = 0;
*/
SYSTEM_ERROR(0),
/**
* INTENDED_SYSTEM_EXIT = 1;
*/
INTENDED_SYSTEM_EXIT(1),
/**
* USER_ERROR = 2;
*/
USER_ERROR(2),
/**
* INTENDED_USER_EXIT = 3;
*/
INTENDED_USER_EXIT(3),
/**
* NODE_OUT_OF_MEMORY = 4;
*/
NODE_OUT_OF_MEMORY(4),
UNRECOGNIZED(-1),
;
/**
* SYSTEM_ERROR = 0;
*/
public static final int SYSTEM_ERROR_VALUE = 0;
/**
* INTENDED_SYSTEM_EXIT = 1;
*/
public static final int INTENDED_SYSTEM_EXIT_VALUE = 1;
/**
* USER_ERROR = 2;
*/
public static final int USER_ERROR_VALUE = 2;
/**
* INTENDED_USER_EXIT = 3;
*/
public static final int INTENDED_USER_EXIT_VALUE = 3;
/**
* NODE_OUT_OF_MEMORY = 4;
*/
public static final int NODE_OUT_OF_MEMORY_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static WorkerExitType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static WorkerExitType forNumber(int value) {
switch (value) {
case 0: return SYSTEM_ERROR;
case 1: return INTENDED_SYSTEM_EXIT;
case 2: return USER_ERROR;
case 3: return INTENDED_USER_EXIT;
case 4: return NODE_OUT_OF_MEMORY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
WorkerExitType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public WorkerExitType findValueByNumber(int number) {
return WorkerExitType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.getDescriptor().getEnumTypes().get(5);
}
private static final WorkerExitType[] VALUES = values();
public static WorkerExitType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private WorkerExitType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.WorkerExitType)
}
/**
* Protobuf enum {@code ray.rpc.PlacementStrategy}
*/
public enum PlacementStrategy
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PACK = 0;
*/
PACK(0),
/**
* SPREAD = 1;
*/
SPREAD(1),
/**
* STRICT_PACK = 2;
*/
STRICT_PACK(2),
/**
* STRICT_SPREAD = 3;
*/
STRICT_SPREAD(3),
UNRECOGNIZED(-1),
;
/**
* PACK = 0;
*/
public static final int PACK_VALUE = 0;
/**
* SPREAD = 1;
*/
public static final int SPREAD_VALUE = 1;
/**
* STRICT_PACK = 2;
*/
public static final int STRICT_PACK_VALUE = 2;
/**
* STRICT_SPREAD = 3;
*/
public static final int STRICT_SPREAD_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PlacementStrategy valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static PlacementStrategy forNumber(int value) {
switch (value) {
case 0: return PACK;
case 1: return SPREAD;
case 2: return STRICT_PACK;
case 3: return STRICT_SPREAD;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
PlacementStrategy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public PlacementStrategy findValueByNumber(int number) {
return PlacementStrategy.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.getDescriptor().getEnumTypes().get(6);
}
private static final PlacementStrategy[] VALUES = values();
public static PlacementStrategy valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private PlacementStrategy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.PlacementStrategy)
}
public interface LabelInOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.LabelIn)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string values = 1 [json_name = "values"];
* @return A list containing the values.
*/
java.util.List
getValuesList();
/**
* repeated string values = 1 [json_name = "values"];
* @return The count of values.
*/
int getValuesCount();
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the element to return.
* @return The values at the given index.
*/
java.lang.String getValues(int index);
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
com.google.protobuf.ByteString
getValuesBytes(int index);
}
/**
* Protobuf type {@code ray.rpc.LabelIn}
*/
public static final class LabelIn extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.LabelIn)
LabelInOrBuilder {
private static final long serialVersionUID = 0L;
// Use LabelIn.newBuilder() to construct.
private LabelIn(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LabelIn() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LabelIn();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LabelIn(
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();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelIn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelIn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelIn.class, io.ray.runtime.generated.Common.LabelIn.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList values_;
/**
* repeated string values = 1 [json_name = "values"];
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_;
}
/**
* repeated string values = 1 [json_name = "values"];
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
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 {
for (int i = 0; i < values_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += computeStringSizeNoTag(values_.getRaw(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
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.runtime.generated.Common.LabelIn)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.LabelIn other = (io.ray.runtime.generated.Common.LabelIn) obj;
if (!getValuesList()
.equals(other.getValuesList())) 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();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.LabelIn parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelIn parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelIn parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelIn 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.runtime.generated.Common.LabelIn parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelIn parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelIn parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelIn 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.runtime.generated.Common.LabelIn parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelIn 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.runtime.generated.Common.LabelIn parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelIn 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.runtime.generated.Common.LabelIn 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.rpc.LabelIn}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.LabelIn)
io.ray.runtime.generated.Common.LabelInOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelIn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelIn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelIn.class, io.ray.runtime.generated.Common.LabelIn.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.LabelIn.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();
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelIn_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelIn getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.LabelIn.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelIn build() {
io.ray.runtime.generated.Common.LabelIn result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelIn buildPartial() {
io.ray.runtime.generated.Common.LabelIn result = new io.ray.runtime.generated.Common.LabelIn(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
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.runtime.generated.Common.LabelIn) {
return mergeFrom((io.ray.runtime.generated.Common.LabelIn)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.LabelIn other) {
if (other == io.ray.runtime.generated.Common.LabelIn.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
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.runtime.generated.Common.LabelIn parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.LabelIn) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string values = 1 [json_name = "values"];
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_.getUnmodifiableView();
}
/**
* repeated string values = 1 [json_name = "values"];
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
return this;
}
/**
* repeated string values = 1 [json_name = "values"];
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
/**
* repeated string values = 1 [json_name = "values"];
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated string values = 1 [json_name = "values"];
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string values = 1 [json_name = "values"];
* @param value The bytes of the values to add.
* @return This builder for chaining.
*/
public Builder addValuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValuesIsMutable();
values_.add(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.rpc.LabelIn)
}
// @@protoc_insertion_point(class_scope:ray.rpc.LabelIn)
private static final io.ray.runtime.generated.Common.LabelIn DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.LabelIn();
}
public static io.ray.runtime.generated.Common.LabelIn getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LabelIn parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LabelIn(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.runtime.generated.Common.LabelIn getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LabelNotInOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.LabelNotIn)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string values = 1 [json_name = "values"];
* @return A list containing the values.
*/
java.util.List
getValuesList();
/**
* repeated string values = 1 [json_name = "values"];
* @return The count of values.
*/
int getValuesCount();
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the element to return.
* @return The values at the given index.
*/
java.lang.String getValues(int index);
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
com.google.protobuf.ByteString
getValuesBytes(int index);
}
/**
* Protobuf type {@code ray.rpc.LabelNotIn}
*/
public static final class LabelNotIn extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.LabelNotIn)
LabelNotInOrBuilder {
private static final long serialVersionUID = 0L;
// Use LabelNotIn.newBuilder() to construct.
private LabelNotIn(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LabelNotIn() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LabelNotIn();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LabelNotIn(
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();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
values_.add(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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelNotIn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelNotIn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelNotIn.class, io.ray.runtime.generated.Common.LabelNotIn.Builder.class);
}
public static final int VALUES_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList values_;
/**
* repeated string values = 1 [json_name = "values"];
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_;
}
/**
* repeated string values = 1 [json_name = "values"];
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
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 {
for (int i = 0; i < values_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < values_.size(); i++) {
dataSize += computeStringSizeNoTag(values_.getRaw(i));
}
size += dataSize;
size += 1 * getValuesList().size();
}
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.runtime.generated.Common.LabelNotIn)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.LabelNotIn other = (io.ray.runtime.generated.Common.LabelNotIn) obj;
if (!getValuesList()
.equals(other.getValuesList())) 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();
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.LabelNotIn parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelNotIn parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelNotIn parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelNotIn 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.runtime.generated.Common.LabelNotIn parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelNotIn parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelNotIn parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelNotIn 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.runtime.generated.Common.LabelNotIn parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelNotIn 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.runtime.generated.Common.LabelNotIn parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelNotIn 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.runtime.generated.Common.LabelNotIn 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.rpc.LabelNotIn}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.LabelNotIn)
io.ray.runtime.generated.Common.LabelNotInOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelNotIn_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelNotIn_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelNotIn.class, io.ray.runtime.generated.Common.LabelNotIn.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.LabelNotIn.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();
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelNotIn_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelNotIn getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelNotIn build() {
io.ray.runtime.generated.Common.LabelNotIn result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelNotIn buildPartial() {
io.ray.runtime.generated.Common.LabelNotIn result = new io.ray.runtime.generated.Common.LabelNotIn(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
values_ = values_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.values_ = values_;
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.runtime.generated.Common.LabelNotIn) {
return mergeFrom((io.ray.runtime.generated.Common.LabelNotIn)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.LabelNotIn other) {
if (other == io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance()) return this;
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
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.runtime.generated.Common.LabelNotIn parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.LabelNotIn) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
values_ = new com.google.protobuf.LazyStringArrayList(values_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string values = 1 [json_name = "values"];
* @return A list containing the values.
*/
public com.google.protobuf.ProtocolStringList
getValuesList() {
return values_.getUnmodifiableView();
}
/**
* repeated string values = 1 [json_name = "values"];
* @return The count of values.
*/
public int getValuesCount() {
return values_.size();
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the element to return.
* @return The values at the given index.
*/
public java.lang.String getValues(int index) {
return values_.get(index);
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index of the value to return.
* @return The bytes of the values at the given index.
*/
public com.google.protobuf.ByteString
getValuesBytes(int index) {
return values_.getByteString(index);
}
/**
* repeated string values = 1 [json_name = "values"];
* @param index The index to set the value at.
* @param value The values to set.
* @return This builder for chaining.
*/
public Builder setValues(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
return this;
}
/**
* repeated string values = 1 [json_name = "values"];
* @param value The values to add.
* @return This builder for chaining.
*/
public Builder addValues(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
return this;
}
/**
* repeated string values = 1 [json_name = "values"];
* @param values The values to add.
* @return This builder for chaining.
*/
public Builder addAllValues(
java.lang.Iterable values) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
return this;
}
/**
* repeated string values = 1 [json_name = "values"];
* @return This builder for chaining.
*/
public Builder clearValues() {
values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string values = 1 [json_name = "values"];
* @param value The bytes of the values to add.
* @return This builder for chaining.
*/
public Builder addValuesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureValuesIsMutable();
values_.add(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.rpc.LabelNotIn)
}
// @@protoc_insertion_point(class_scope:ray.rpc.LabelNotIn)
private static final io.ray.runtime.generated.Common.LabelNotIn DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.LabelNotIn();
}
public static io.ray.runtime.generated.Common.LabelNotIn getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LabelNotIn parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LabelNotIn(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.runtime.generated.Common.LabelNotIn getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LabelExistsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.LabelExists)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code ray.rpc.LabelExists}
*/
public static final class LabelExists extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.LabelExists)
LabelExistsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LabelExists.newBuilder() to construct.
private LabelExists(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LabelExists() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LabelExists();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LabelExists(
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;
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.runtime.generated.Common.internal_static_ray_rpc_LabelExists_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelExists_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelExists.class, io.ray.runtime.generated.Common.LabelExists.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.runtime.generated.Common.LabelExists)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.LabelExists other = (io.ray.runtime.generated.Common.LabelExists) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.LabelExists parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelExists parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelExists parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelExists 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.runtime.generated.Common.LabelExists parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelExists parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelExists parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelExists 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.runtime.generated.Common.LabelExists parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelExists 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.runtime.generated.Common.LabelExists parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelExists 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.runtime.generated.Common.LabelExists 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.rpc.LabelExists}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.LabelExists)
io.ray.runtime.generated.Common.LabelExistsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelExists_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelExists_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelExists.class, io.ray.runtime.generated.Common.LabelExists.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.LabelExists.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelExists_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelExists getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.LabelExists.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelExists build() {
io.ray.runtime.generated.Common.LabelExists result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelExists buildPartial() {
io.ray.runtime.generated.Common.LabelExists result = new io.ray.runtime.generated.Common.LabelExists(this);
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.runtime.generated.Common.LabelExists) {
return mergeFrom((io.ray.runtime.generated.Common.LabelExists)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.LabelExists other) {
if (other == io.ray.runtime.generated.Common.LabelExists.getDefaultInstance()) return this;
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.runtime.generated.Common.LabelExists parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.LabelExists) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.rpc.LabelExists)
}
// @@protoc_insertion_point(class_scope:ray.rpc.LabelExists)
private static final io.ray.runtime.generated.Common.LabelExists DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.LabelExists();
}
public static io.ray.runtime.generated.Common.LabelExists getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LabelExists parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LabelExists(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.runtime.generated.Common.LabelExists getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LabelDoesNotExistOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.LabelDoesNotExist)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code ray.rpc.LabelDoesNotExist}
*/
public static final class LabelDoesNotExist extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.LabelDoesNotExist)
LabelDoesNotExistOrBuilder {
private static final long serialVersionUID = 0L;
// Use LabelDoesNotExist.newBuilder() to construct.
private LabelDoesNotExist(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LabelDoesNotExist() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LabelDoesNotExist();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LabelDoesNotExist(
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;
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.runtime.generated.Common.internal_static_ray_rpc_LabelDoesNotExist_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelDoesNotExist_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelDoesNotExist.class, io.ray.runtime.generated.Common.LabelDoesNotExist.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.runtime.generated.Common.LabelDoesNotExist)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.LabelDoesNotExist other = (io.ray.runtime.generated.Common.LabelDoesNotExist) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist 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.runtime.generated.Common.LabelDoesNotExist parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist 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.runtime.generated.Common.LabelDoesNotExist parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist 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.runtime.generated.Common.LabelDoesNotExist parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist 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.runtime.generated.Common.LabelDoesNotExist 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.rpc.LabelDoesNotExist}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.LabelDoesNotExist)
io.ray.runtime.generated.Common.LabelDoesNotExistOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelDoesNotExist_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelDoesNotExist_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelDoesNotExist.class, io.ray.runtime.generated.Common.LabelDoesNotExist.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.LabelDoesNotExist.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelDoesNotExist_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelDoesNotExist getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelDoesNotExist build() {
io.ray.runtime.generated.Common.LabelDoesNotExist result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelDoesNotExist buildPartial() {
io.ray.runtime.generated.Common.LabelDoesNotExist result = new io.ray.runtime.generated.Common.LabelDoesNotExist(this);
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.runtime.generated.Common.LabelDoesNotExist) {
return mergeFrom((io.ray.runtime.generated.Common.LabelDoesNotExist)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.LabelDoesNotExist other) {
if (other == io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance()) return this;
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.runtime.generated.Common.LabelDoesNotExist parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.LabelDoesNotExist) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.rpc.LabelDoesNotExist)
}
// @@protoc_insertion_point(class_scope:ray.rpc.LabelDoesNotExist)
private static final io.ray.runtime.generated.Common.LabelDoesNotExist DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.LabelDoesNotExist();
}
public static io.ray.runtime.generated.Common.LabelDoesNotExist getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LabelDoesNotExist parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LabelDoesNotExist(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.runtime.generated.Common.LabelDoesNotExist getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LabelOperatorOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.LabelOperator)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
* @return Whether the labelIn field is set.
*/
boolean hasLabelIn();
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
* @return The labelIn.
*/
io.ray.runtime.generated.Common.LabelIn getLabelIn();
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
io.ray.runtime.generated.Common.LabelInOrBuilder getLabelInOrBuilder();
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
* @return Whether the labelNotIn field is set.
*/
boolean hasLabelNotIn();
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
* @return The labelNotIn.
*/
io.ray.runtime.generated.Common.LabelNotIn getLabelNotIn();
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
io.ray.runtime.generated.Common.LabelNotInOrBuilder getLabelNotInOrBuilder();
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
* @return Whether the labelExists field is set.
*/
boolean hasLabelExists();
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
* @return The labelExists.
*/
io.ray.runtime.generated.Common.LabelExists getLabelExists();
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
io.ray.runtime.generated.Common.LabelExistsOrBuilder getLabelExistsOrBuilder();
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
* @return Whether the labelDoesNotExist field is set.
*/
boolean hasLabelDoesNotExist();
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
* @return The labelDoesNotExist.
*/
io.ray.runtime.generated.Common.LabelDoesNotExist getLabelDoesNotExist();
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
io.ray.runtime.generated.Common.LabelDoesNotExistOrBuilder getLabelDoesNotExistOrBuilder();
public io.ray.runtime.generated.Common.LabelOperator.LabelOperatorCase getLabelOperatorCase();
}
/**
* Protobuf type {@code ray.rpc.LabelOperator}
*/
public static final class LabelOperator extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.LabelOperator)
LabelOperatorOrBuilder {
private static final long serialVersionUID = 0L;
// Use LabelOperator.newBuilder() to construct.
private LabelOperator(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LabelOperator() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LabelOperator();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LabelOperator(
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: {
io.ray.runtime.generated.Common.LabelIn.Builder subBuilder = null;
if (labelOperatorCase_ == 1) {
subBuilder = ((io.ray.runtime.generated.Common.LabelIn) labelOperator_).toBuilder();
}
labelOperator_ =
input.readMessage(io.ray.runtime.generated.Common.LabelIn.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.LabelIn) labelOperator_);
labelOperator_ = subBuilder.buildPartial();
}
labelOperatorCase_ = 1;
break;
}
case 18: {
io.ray.runtime.generated.Common.LabelNotIn.Builder subBuilder = null;
if (labelOperatorCase_ == 2) {
subBuilder = ((io.ray.runtime.generated.Common.LabelNotIn) labelOperator_).toBuilder();
}
labelOperator_ =
input.readMessage(io.ray.runtime.generated.Common.LabelNotIn.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.LabelNotIn) labelOperator_);
labelOperator_ = subBuilder.buildPartial();
}
labelOperatorCase_ = 2;
break;
}
case 26: {
io.ray.runtime.generated.Common.LabelExists.Builder subBuilder = null;
if (labelOperatorCase_ == 3) {
subBuilder = ((io.ray.runtime.generated.Common.LabelExists) labelOperator_).toBuilder();
}
labelOperator_ =
input.readMessage(io.ray.runtime.generated.Common.LabelExists.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.LabelExists) labelOperator_);
labelOperator_ = subBuilder.buildPartial();
}
labelOperatorCase_ = 3;
break;
}
case 34: {
io.ray.runtime.generated.Common.LabelDoesNotExist.Builder subBuilder = null;
if (labelOperatorCase_ == 4) {
subBuilder = ((io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_).toBuilder();
}
labelOperator_ =
input.readMessage(io.ray.runtime.generated.Common.LabelDoesNotExist.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_);
labelOperator_ = subBuilder.buildPartial();
}
labelOperatorCase_ = 4;
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.runtime.generated.Common.internal_static_ray_rpc_LabelOperator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelOperator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelOperator.class, io.ray.runtime.generated.Common.LabelOperator.Builder.class);
}
private int labelOperatorCase_ = 0;
private java.lang.Object labelOperator_;
public enum LabelOperatorCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LABEL_IN(1),
LABEL_NOT_IN(2),
LABEL_EXISTS(3),
LABEL_DOES_NOT_EXIST(4),
LABELOPERATOR_NOT_SET(0);
private final int value;
private LabelOperatorCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static LabelOperatorCase valueOf(int value) {
return forNumber(value);
}
public static LabelOperatorCase forNumber(int value) {
switch (value) {
case 1: return LABEL_IN;
case 2: return LABEL_NOT_IN;
case 3: return LABEL_EXISTS;
case 4: return LABEL_DOES_NOT_EXIST;
case 0: return LABELOPERATOR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public LabelOperatorCase
getLabelOperatorCase() {
return LabelOperatorCase.forNumber(
labelOperatorCase_);
}
public static final int LABEL_IN_FIELD_NUMBER = 1;
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
* @return Whether the labelIn field is set.
*/
@java.lang.Override
public boolean hasLabelIn() {
return labelOperatorCase_ == 1;
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
* @return The labelIn.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelIn getLabelIn() {
if (labelOperatorCase_ == 1) {
return (io.ray.runtime.generated.Common.LabelIn) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelIn.getDefaultInstance();
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelInOrBuilder getLabelInOrBuilder() {
if (labelOperatorCase_ == 1) {
return (io.ray.runtime.generated.Common.LabelIn) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelIn.getDefaultInstance();
}
public static final int LABEL_NOT_IN_FIELD_NUMBER = 2;
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
* @return Whether the labelNotIn field is set.
*/
@java.lang.Override
public boolean hasLabelNotIn() {
return labelOperatorCase_ == 2;
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
* @return The labelNotIn.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelNotIn getLabelNotIn() {
if (labelOperatorCase_ == 2) {
return (io.ray.runtime.generated.Common.LabelNotIn) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance();
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelNotInOrBuilder getLabelNotInOrBuilder() {
if (labelOperatorCase_ == 2) {
return (io.ray.runtime.generated.Common.LabelNotIn) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance();
}
public static final int LABEL_EXISTS_FIELD_NUMBER = 3;
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
* @return Whether the labelExists field is set.
*/
@java.lang.Override
public boolean hasLabelExists() {
return labelOperatorCase_ == 3;
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
* @return The labelExists.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelExists getLabelExists() {
if (labelOperatorCase_ == 3) {
return (io.ray.runtime.generated.Common.LabelExists) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelExists.getDefaultInstance();
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelExistsOrBuilder getLabelExistsOrBuilder() {
if (labelOperatorCase_ == 3) {
return (io.ray.runtime.generated.Common.LabelExists) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelExists.getDefaultInstance();
}
public static final int LABEL_DOES_NOT_EXIST_FIELD_NUMBER = 4;
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
* @return Whether the labelDoesNotExist field is set.
*/
@java.lang.Override
public boolean hasLabelDoesNotExist() {
return labelOperatorCase_ == 4;
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
* @return The labelDoesNotExist.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelDoesNotExist getLabelDoesNotExist() {
if (labelOperatorCase_ == 4) {
return (io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance();
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelDoesNotExistOrBuilder getLabelDoesNotExistOrBuilder() {
if (labelOperatorCase_ == 4) {
return (io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance();
}
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 (labelOperatorCase_ == 1) {
output.writeMessage(1, (io.ray.runtime.generated.Common.LabelIn) labelOperator_);
}
if (labelOperatorCase_ == 2) {
output.writeMessage(2, (io.ray.runtime.generated.Common.LabelNotIn) labelOperator_);
}
if (labelOperatorCase_ == 3) {
output.writeMessage(3, (io.ray.runtime.generated.Common.LabelExists) labelOperator_);
}
if (labelOperatorCase_ == 4) {
output.writeMessage(4, (io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (labelOperatorCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.ray.runtime.generated.Common.LabelIn) labelOperator_);
}
if (labelOperatorCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.ray.runtime.generated.Common.LabelNotIn) labelOperator_);
}
if (labelOperatorCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.ray.runtime.generated.Common.LabelExists) labelOperator_);
}
if (labelOperatorCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_);
}
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.runtime.generated.Common.LabelOperator)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.LabelOperator other = (io.ray.runtime.generated.Common.LabelOperator) obj;
if (!getLabelOperatorCase().equals(other.getLabelOperatorCase())) return false;
switch (labelOperatorCase_) {
case 1:
if (!getLabelIn()
.equals(other.getLabelIn())) return false;
break;
case 2:
if (!getLabelNotIn()
.equals(other.getLabelNotIn())) return false;
break;
case 3:
if (!getLabelExists()
.equals(other.getLabelExists())) return false;
break;
case 4:
if (!getLabelDoesNotExist()
.equals(other.getLabelDoesNotExist())) return false;
break;
case 0:
default:
}
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();
switch (labelOperatorCase_) {
case 1:
hash = (37 * hash) + LABEL_IN_FIELD_NUMBER;
hash = (53 * hash) + getLabelIn().hashCode();
break;
case 2:
hash = (37 * hash) + LABEL_NOT_IN_FIELD_NUMBER;
hash = (53 * hash) + getLabelNotIn().hashCode();
break;
case 3:
hash = (37 * hash) + LABEL_EXISTS_FIELD_NUMBER;
hash = (53 * hash) + getLabelExists().hashCode();
break;
case 4:
hash = (37 * hash) + LABEL_DOES_NOT_EXIST_FIELD_NUMBER;
hash = (53 * hash) + getLabelDoesNotExist().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.LabelOperator parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelOperator parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelOperator parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelOperator 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.runtime.generated.Common.LabelOperator parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelOperator parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelOperator parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelOperator 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.runtime.generated.Common.LabelOperator parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelOperator 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.runtime.generated.Common.LabelOperator parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelOperator 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.runtime.generated.Common.LabelOperator 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.rpc.LabelOperator}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.LabelOperator)
io.ray.runtime.generated.Common.LabelOperatorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelOperator_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelOperator_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelOperator.class, io.ray.runtime.generated.Common.LabelOperator.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.LabelOperator.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();
labelOperatorCase_ = 0;
labelOperator_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelOperator_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelOperator getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.LabelOperator.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelOperator build() {
io.ray.runtime.generated.Common.LabelOperator result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelOperator buildPartial() {
io.ray.runtime.generated.Common.LabelOperator result = new io.ray.runtime.generated.Common.LabelOperator(this);
if (labelOperatorCase_ == 1) {
if (labelInBuilder_ == null) {
result.labelOperator_ = labelOperator_;
} else {
result.labelOperator_ = labelInBuilder_.build();
}
}
if (labelOperatorCase_ == 2) {
if (labelNotInBuilder_ == null) {
result.labelOperator_ = labelOperator_;
} else {
result.labelOperator_ = labelNotInBuilder_.build();
}
}
if (labelOperatorCase_ == 3) {
if (labelExistsBuilder_ == null) {
result.labelOperator_ = labelOperator_;
} else {
result.labelOperator_ = labelExistsBuilder_.build();
}
}
if (labelOperatorCase_ == 4) {
if (labelDoesNotExistBuilder_ == null) {
result.labelOperator_ = labelOperator_;
} else {
result.labelOperator_ = labelDoesNotExistBuilder_.build();
}
}
result.labelOperatorCase_ = labelOperatorCase_;
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.runtime.generated.Common.LabelOperator) {
return mergeFrom((io.ray.runtime.generated.Common.LabelOperator)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.LabelOperator other) {
if (other == io.ray.runtime.generated.Common.LabelOperator.getDefaultInstance()) return this;
switch (other.getLabelOperatorCase()) {
case LABEL_IN: {
mergeLabelIn(other.getLabelIn());
break;
}
case LABEL_NOT_IN: {
mergeLabelNotIn(other.getLabelNotIn());
break;
}
case LABEL_EXISTS: {
mergeLabelExists(other.getLabelExists());
break;
}
case LABEL_DOES_NOT_EXIST: {
mergeLabelDoesNotExist(other.getLabelDoesNotExist());
break;
}
case LABELOPERATOR_NOT_SET: {
break;
}
}
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.runtime.generated.Common.LabelOperator parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.LabelOperator) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int labelOperatorCase_ = 0;
private java.lang.Object labelOperator_;
public LabelOperatorCase
getLabelOperatorCase() {
return LabelOperatorCase.forNumber(
labelOperatorCase_);
}
public Builder clearLabelOperator() {
labelOperatorCase_ = 0;
labelOperator_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelIn, io.ray.runtime.generated.Common.LabelIn.Builder, io.ray.runtime.generated.Common.LabelInOrBuilder> labelInBuilder_;
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
* @return Whether the labelIn field is set.
*/
@java.lang.Override
public boolean hasLabelIn() {
return labelOperatorCase_ == 1;
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
* @return The labelIn.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelIn getLabelIn() {
if (labelInBuilder_ == null) {
if (labelOperatorCase_ == 1) {
return (io.ray.runtime.generated.Common.LabelIn) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelIn.getDefaultInstance();
} else {
if (labelOperatorCase_ == 1) {
return labelInBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.LabelIn.getDefaultInstance();
}
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
public Builder setLabelIn(io.ray.runtime.generated.Common.LabelIn value) {
if (labelInBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
labelOperator_ = value;
onChanged();
} else {
labelInBuilder_.setMessage(value);
}
labelOperatorCase_ = 1;
return this;
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
public Builder setLabelIn(
io.ray.runtime.generated.Common.LabelIn.Builder builderForValue) {
if (labelInBuilder_ == null) {
labelOperator_ = builderForValue.build();
onChanged();
} else {
labelInBuilder_.setMessage(builderForValue.build());
}
labelOperatorCase_ = 1;
return this;
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
public Builder mergeLabelIn(io.ray.runtime.generated.Common.LabelIn value) {
if (labelInBuilder_ == null) {
if (labelOperatorCase_ == 1 &&
labelOperator_ != io.ray.runtime.generated.Common.LabelIn.getDefaultInstance()) {
labelOperator_ = io.ray.runtime.generated.Common.LabelIn.newBuilder((io.ray.runtime.generated.Common.LabelIn) labelOperator_)
.mergeFrom(value).buildPartial();
} else {
labelOperator_ = value;
}
onChanged();
} else {
if (labelOperatorCase_ == 1) {
labelInBuilder_.mergeFrom(value);
}
labelInBuilder_.setMessage(value);
}
labelOperatorCase_ = 1;
return this;
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
public Builder clearLabelIn() {
if (labelInBuilder_ == null) {
if (labelOperatorCase_ == 1) {
labelOperatorCase_ = 0;
labelOperator_ = null;
onChanged();
}
} else {
if (labelOperatorCase_ == 1) {
labelOperatorCase_ = 0;
labelOperator_ = null;
}
labelInBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
public io.ray.runtime.generated.Common.LabelIn.Builder getLabelInBuilder() {
return getLabelInFieldBuilder().getBuilder();
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelInOrBuilder getLabelInOrBuilder() {
if ((labelOperatorCase_ == 1) && (labelInBuilder_ != null)) {
return labelInBuilder_.getMessageOrBuilder();
} else {
if (labelOperatorCase_ == 1) {
return (io.ray.runtime.generated.Common.LabelIn) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelIn.getDefaultInstance();
}
}
/**
* .ray.rpc.LabelIn label_in = 1 [json_name = "labelIn"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelIn, io.ray.runtime.generated.Common.LabelIn.Builder, io.ray.runtime.generated.Common.LabelInOrBuilder>
getLabelInFieldBuilder() {
if (labelInBuilder_ == null) {
if (!(labelOperatorCase_ == 1)) {
labelOperator_ = io.ray.runtime.generated.Common.LabelIn.getDefaultInstance();
}
labelInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelIn, io.ray.runtime.generated.Common.LabelIn.Builder, io.ray.runtime.generated.Common.LabelInOrBuilder>(
(io.ray.runtime.generated.Common.LabelIn) labelOperator_,
getParentForChildren(),
isClean());
labelOperator_ = null;
}
labelOperatorCase_ = 1;
onChanged();;
return labelInBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelNotIn, io.ray.runtime.generated.Common.LabelNotIn.Builder, io.ray.runtime.generated.Common.LabelNotInOrBuilder> labelNotInBuilder_;
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
* @return Whether the labelNotIn field is set.
*/
@java.lang.Override
public boolean hasLabelNotIn() {
return labelOperatorCase_ == 2;
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
* @return The labelNotIn.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelNotIn getLabelNotIn() {
if (labelNotInBuilder_ == null) {
if (labelOperatorCase_ == 2) {
return (io.ray.runtime.generated.Common.LabelNotIn) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance();
} else {
if (labelOperatorCase_ == 2) {
return labelNotInBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance();
}
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
public Builder setLabelNotIn(io.ray.runtime.generated.Common.LabelNotIn value) {
if (labelNotInBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
labelOperator_ = value;
onChanged();
} else {
labelNotInBuilder_.setMessage(value);
}
labelOperatorCase_ = 2;
return this;
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
public Builder setLabelNotIn(
io.ray.runtime.generated.Common.LabelNotIn.Builder builderForValue) {
if (labelNotInBuilder_ == null) {
labelOperator_ = builderForValue.build();
onChanged();
} else {
labelNotInBuilder_.setMessage(builderForValue.build());
}
labelOperatorCase_ = 2;
return this;
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
public Builder mergeLabelNotIn(io.ray.runtime.generated.Common.LabelNotIn value) {
if (labelNotInBuilder_ == null) {
if (labelOperatorCase_ == 2 &&
labelOperator_ != io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance()) {
labelOperator_ = io.ray.runtime.generated.Common.LabelNotIn.newBuilder((io.ray.runtime.generated.Common.LabelNotIn) labelOperator_)
.mergeFrom(value).buildPartial();
} else {
labelOperator_ = value;
}
onChanged();
} else {
if (labelOperatorCase_ == 2) {
labelNotInBuilder_.mergeFrom(value);
}
labelNotInBuilder_.setMessage(value);
}
labelOperatorCase_ = 2;
return this;
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
public Builder clearLabelNotIn() {
if (labelNotInBuilder_ == null) {
if (labelOperatorCase_ == 2) {
labelOperatorCase_ = 0;
labelOperator_ = null;
onChanged();
}
} else {
if (labelOperatorCase_ == 2) {
labelOperatorCase_ = 0;
labelOperator_ = null;
}
labelNotInBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
public io.ray.runtime.generated.Common.LabelNotIn.Builder getLabelNotInBuilder() {
return getLabelNotInFieldBuilder().getBuilder();
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelNotInOrBuilder getLabelNotInOrBuilder() {
if ((labelOperatorCase_ == 2) && (labelNotInBuilder_ != null)) {
return labelNotInBuilder_.getMessageOrBuilder();
} else {
if (labelOperatorCase_ == 2) {
return (io.ray.runtime.generated.Common.LabelNotIn) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance();
}
}
/**
* .ray.rpc.LabelNotIn label_not_in = 2 [json_name = "labelNotIn"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelNotIn, io.ray.runtime.generated.Common.LabelNotIn.Builder, io.ray.runtime.generated.Common.LabelNotInOrBuilder>
getLabelNotInFieldBuilder() {
if (labelNotInBuilder_ == null) {
if (!(labelOperatorCase_ == 2)) {
labelOperator_ = io.ray.runtime.generated.Common.LabelNotIn.getDefaultInstance();
}
labelNotInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelNotIn, io.ray.runtime.generated.Common.LabelNotIn.Builder, io.ray.runtime.generated.Common.LabelNotInOrBuilder>(
(io.ray.runtime.generated.Common.LabelNotIn) labelOperator_,
getParentForChildren(),
isClean());
labelOperator_ = null;
}
labelOperatorCase_ = 2;
onChanged();;
return labelNotInBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelExists, io.ray.runtime.generated.Common.LabelExists.Builder, io.ray.runtime.generated.Common.LabelExistsOrBuilder> labelExistsBuilder_;
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
* @return Whether the labelExists field is set.
*/
@java.lang.Override
public boolean hasLabelExists() {
return labelOperatorCase_ == 3;
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
* @return The labelExists.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelExists getLabelExists() {
if (labelExistsBuilder_ == null) {
if (labelOperatorCase_ == 3) {
return (io.ray.runtime.generated.Common.LabelExists) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelExists.getDefaultInstance();
} else {
if (labelOperatorCase_ == 3) {
return labelExistsBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.LabelExists.getDefaultInstance();
}
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
public Builder setLabelExists(io.ray.runtime.generated.Common.LabelExists value) {
if (labelExistsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
labelOperator_ = value;
onChanged();
} else {
labelExistsBuilder_.setMessage(value);
}
labelOperatorCase_ = 3;
return this;
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
public Builder setLabelExists(
io.ray.runtime.generated.Common.LabelExists.Builder builderForValue) {
if (labelExistsBuilder_ == null) {
labelOperator_ = builderForValue.build();
onChanged();
} else {
labelExistsBuilder_.setMessage(builderForValue.build());
}
labelOperatorCase_ = 3;
return this;
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
public Builder mergeLabelExists(io.ray.runtime.generated.Common.LabelExists value) {
if (labelExistsBuilder_ == null) {
if (labelOperatorCase_ == 3 &&
labelOperator_ != io.ray.runtime.generated.Common.LabelExists.getDefaultInstance()) {
labelOperator_ = io.ray.runtime.generated.Common.LabelExists.newBuilder((io.ray.runtime.generated.Common.LabelExists) labelOperator_)
.mergeFrom(value).buildPartial();
} else {
labelOperator_ = value;
}
onChanged();
} else {
if (labelOperatorCase_ == 3) {
labelExistsBuilder_.mergeFrom(value);
}
labelExistsBuilder_.setMessage(value);
}
labelOperatorCase_ = 3;
return this;
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
public Builder clearLabelExists() {
if (labelExistsBuilder_ == null) {
if (labelOperatorCase_ == 3) {
labelOperatorCase_ = 0;
labelOperator_ = null;
onChanged();
}
} else {
if (labelOperatorCase_ == 3) {
labelOperatorCase_ = 0;
labelOperator_ = null;
}
labelExistsBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
public io.ray.runtime.generated.Common.LabelExists.Builder getLabelExistsBuilder() {
return getLabelExistsFieldBuilder().getBuilder();
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelExistsOrBuilder getLabelExistsOrBuilder() {
if ((labelOperatorCase_ == 3) && (labelExistsBuilder_ != null)) {
return labelExistsBuilder_.getMessageOrBuilder();
} else {
if (labelOperatorCase_ == 3) {
return (io.ray.runtime.generated.Common.LabelExists) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelExists.getDefaultInstance();
}
}
/**
* .ray.rpc.LabelExists label_exists = 3 [json_name = "labelExists"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelExists, io.ray.runtime.generated.Common.LabelExists.Builder, io.ray.runtime.generated.Common.LabelExistsOrBuilder>
getLabelExistsFieldBuilder() {
if (labelExistsBuilder_ == null) {
if (!(labelOperatorCase_ == 3)) {
labelOperator_ = io.ray.runtime.generated.Common.LabelExists.getDefaultInstance();
}
labelExistsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelExists, io.ray.runtime.generated.Common.LabelExists.Builder, io.ray.runtime.generated.Common.LabelExistsOrBuilder>(
(io.ray.runtime.generated.Common.LabelExists) labelOperator_,
getParentForChildren(),
isClean());
labelOperator_ = null;
}
labelOperatorCase_ = 3;
onChanged();;
return labelExistsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelDoesNotExist, io.ray.runtime.generated.Common.LabelDoesNotExist.Builder, io.ray.runtime.generated.Common.LabelDoesNotExistOrBuilder> labelDoesNotExistBuilder_;
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
* @return Whether the labelDoesNotExist field is set.
*/
@java.lang.Override
public boolean hasLabelDoesNotExist() {
return labelOperatorCase_ == 4;
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
* @return The labelDoesNotExist.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelDoesNotExist getLabelDoesNotExist() {
if (labelDoesNotExistBuilder_ == null) {
if (labelOperatorCase_ == 4) {
return (io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance();
} else {
if (labelOperatorCase_ == 4) {
return labelDoesNotExistBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance();
}
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
public Builder setLabelDoesNotExist(io.ray.runtime.generated.Common.LabelDoesNotExist value) {
if (labelDoesNotExistBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
labelOperator_ = value;
onChanged();
} else {
labelDoesNotExistBuilder_.setMessage(value);
}
labelOperatorCase_ = 4;
return this;
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
public Builder setLabelDoesNotExist(
io.ray.runtime.generated.Common.LabelDoesNotExist.Builder builderForValue) {
if (labelDoesNotExistBuilder_ == null) {
labelOperator_ = builderForValue.build();
onChanged();
} else {
labelDoesNotExistBuilder_.setMessage(builderForValue.build());
}
labelOperatorCase_ = 4;
return this;
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
public Builder mergeLabelDoesNotExist(io.ray.runtime.generated.Common.LabelDoesNotExist value) {
if (labelDoesNotExistBuilder_ == null) {
if (labelOperatorCase_ == 4 &&
labelOperator_ != io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance()) {
labelOperator_ = io.ray.runtime.generated.Common.LabelDoesNotExist.newBuilder((io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_)
.mergeFrom(value).buildPartial();
} else {
labelOperator_ = value;
}
onChanged();
} else {
if (labelOperatorCase_ == 4) {
labelDoesNotExistBuilder_.mergeFrom(value);
}
labelDoesNotExistBuilder_.setMessage(value);
}
labelOperatorCase_ = 4;
return this;
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
public Builder clearLabelDoesNotExist() {
if (labelDoesNotExistBuilder_ == null) {
if (labelOperatorCase_ == 4) {
labelOperatorCase_ = 0;
labelOperator_ = null;
onChanged();
}
} else {
if (labelOperatorCase_ == 4) {
labelOperatorCase_ = 0;
labelOperator_ = null;
}
labelDoesNotExistBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
public io.ray.runtime.generated.Common.LabelDoesNotExist.Builder getLabelDoesNotExistBuilder() {
return getLabelDoesNotExistFieldBuilder().getBuilder();
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelDoesNotExistOrBuilder getLabelDoesNotExistOrBuilder() {
if ((labelOperatorCase_ == 4) && (labelDoesNotExistBuilder_ != null)) {
return labelDoesNotExistBuilder_.getMessageOrBuilder();
} else {
if (labelOperatorCase_ == 4) {
return (io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_;
}
return io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance();
}
}
/**
* .ray.rpc.LabelDoesNotExist label_does_not_exist = 4 [json_name = "labelDoesNotExist"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelDoesNotExist, io.ray.runtime.generated.Common.LabelDoesNotExist.Builder, io.ray.runtime.generated.Common.LabelDoesNotExistOrBuilder>
getLabelDoesNotExistFieldBuilder() {
if (labelDoesNotExistBuilder_ == null) {
if (!(labelOperatorCase_ == 4)) {
labelOperator_ = io.ray.runtime.generated.Common.LabelDoesNotExist.getDefaultInstance();
}
labelDoesNotExistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelDoesNotExist, io.ray.runtime.generated.Common.LabelDoesNotExist.Builder, io.ray.runtime.generated.Common.LabelDoesNotExistOrBuilder>(
(io.ray.runtime.generated.Common.LabelDoesNotExist) labelOperator_,
getParentForChildren(),
isClean());
labelOperator_ = null;
}
labelOperatorCase_ = 4;
onChanged();;
return labelDoesNotExistBuilder_;
}
@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.rpc.LabelOperator)
}
// @@protoc_insertion_point(class_scope:ray.rpc.LabelOperator)
private static final io.ray.runtime.generated.Common.LabelOperator DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.LabelOperator();
}
public static io.ray.runtime.generated.Common.LabelOperator getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LabelOperator parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LabelOperator(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.runtime.generated.Common.LabelOperator getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LabelMatchExpressionOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.LabelMatchExpression)
com.google.protobuf.MessageOrBuilder {
/**
* string key = 1 [json_name = "key"];
* @return The key.
*/
java.lang.String getKey();
/**
* string key = 1 [json_name = "key"];
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
* @return Whether the operator field is set.
*/
boolean hasOperator();
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
* @return The operator.
*/
io.ray.runtime.generated.Common.LabelOperator getOperator();
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
io.ray.runtime.generated.Common.LabelOperatorOrBuilder getOperatorOrBuilder();
}
/**
* Protobuf type {@code ray.rpc.LabelMatchExpression}
*/
public static final class LabelMatchExpression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.LabelMatchExpression)
LabelMatchExpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use LabelMatchExpression.newBuilder() to construct.
private LabelMatchExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LabelMatchExpression() {
key_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LabelMatchExpression();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LabelMatchExpression(
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();
key_ = s;
break;
}
case 18: {
io.ray.runtime.generated.Common.LabelOperator.Builder subBuilder = null;
if (operator_ != null) {
subBuilder = operator_.toBuilder();
}
operator_ = input.readMessage(io.ray.runtime.generated.Common.LabelOperator.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operator_);
operator_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelMatchExpression.class, io.ray.runtime.generated.Common.LabelMatchExpression.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* string key = 1 [json_name = "key"];
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
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();
key_ = s;
return s;
}
}
/**
* string key = 1 [json_name = "key"];
* @return The bytes for key.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPERATOR_FIELD_NUMBER = 2;
private io.ray.runtime.generated.Common.LabelOperator operator_;
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
* @return Whether the operator field is set.
*/
@java.lang.Override
public boolean hasOperator() {
return operator_ != null;
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
* @return The operator.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelOperator getOperator() {
return operator_ == null ? io.ray.runtime.generated.Common.LabelOperator.getDefaultInstance() : operator_;
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelOperatorOrBuilder getOperatorOrBuilder() {
return getOperator();
}
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(key_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (operator_ != null) {
output.writeMessage(2, getOperator());
}
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(key_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (operator_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOperator());
}
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.runtime.generated.Common.LabelMatchExpression)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.LabelMatchExpression other = (io.ray.runtime.generated.Common.LabelMatchExpression) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (hasOperator() != other.hasOperator()) return false;
if (hasOperator()) {
if (!getOperator()
.equals(other.getOperator())) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
if (hasOperator()) {
hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
hash = (53 * hash) + getOperator().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.LabelMatchExpression parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelMatchExpression parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelMatchExpression parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelMatchExpression 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.runtime.generated.Common.LabelMatchExpression parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelMatchExpression parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelMatchExpression parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelMatchExpression 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.runtime.generated.Common.LabelMatchExpression parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelMatchExpression 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.runtime.generated.Common.LabelMatchExpression parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelMatchExpression 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.runtime.generated.Common.LabelMatchExpression 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.rpc.LabelMatchExpression}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.LabelMatchExpression)
io.ray.runtime.generated.Common.LabelMatchExpressionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelMatchExpression.class, io.ray.runtime.generated.Common.LabelMatchExpression.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.LabelMatchExpression.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();
key_ = "";
if (operatorBuilder_ == null) {
operator_ = null;
} else {
operator_ = null;
operatorBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpression_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpression getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.LabelMatchExpression.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpression build() {
io.ray.runtime.generated.Common.LabelMatchExpression result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpression buildPartial() {
io.ray.runtime.generated.Common.LabelMatchExpression result = new io.ray.runtime.generated.Common.LabelMatchExpression(this);
result.key_ = key_;
if (operatorBuilder_ == null) {
result.operator_ = operator_;
} else {
result.operator_ = operatorBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.ray.runtime.generated.Common.LabelMatchExpression) {
return mergeFrom((io.ray.runtime.generated.Common.LabelMatchExpression)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.LabelMatchExpression other) {
if (other == io.ray.runtime.generated.Common.LabelMatchExpression.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (other.hasOperator()) {
mergeOperator(other.getOperator());
}
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.runtime.generated.Common.LabelMatchExpression parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.LabelMatchExpression) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
* string key = 1 [json_name = "key"];
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
key_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string key = 1 [json_name = "key"];
* @return The bytes for key.
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string key = 1 [json_name = "key"];
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
key_ = value;
onChanged();
return this;
}
/**
* string key = 1 [json_name = "key"];
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* string key = 1 [json_name = "key"];
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
key_ = value;
onChanged();
return this;
}
private io.ray.runtime.generated.Common.LabelOperator operator_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelOperator, io.ray.runtime.generated.Common.LabelOperator.Builder, io.ray.runtime.generated.Common.LabelOperatorOrBuilder> operatorBuilder_;
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
* @return Whether the operator field is set.
*/
public boolean hasOperator() {
return operatorBuilder_ != null || operator_ != null;
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
* @return The operator.
*/
public io.ray.runtime.generated.Common.LabelOperator getOperator() {
if (operatorBuilder_ == null) {
return operator_ == null ? io.ray.runtime.generated.Common.LabelOperator.getDefaultInstance() : operator_;
} else {
return operatorBuilder_.getMessage();
}
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
public Builder setOperator(io.ray.runtime.generated.Common.LabelOperator value) {
if (operatorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operator_ = value;
onChanged();
} else {
operatorBuilder_.setMessage(value);
}
return this;
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
public Builder setOperator(
io.ray.runtime.generated.Common.LabelOperator.Builder builderForValue) {
if (operatorBuilder_ == null) {
operator_ = builderForValue.build();
onChanged();
} else {
operatorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
public Builder mergeOperator(io.ray.runtime.generated.Common.LabelOperator value) {
if (operatorBuilder_ == null) {
if (operator_ != null) {
operator_ =
io.ray.runtime.generated.Common.LabelOperator.newBuilder(operator_).mergeFrom(value).buildPartial();
} else {
operator_ = value;
}
onChanged();
} else {
operatorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
public Builder clearOperator() {
if (operatorBuilder_ == null) {
operator_ = null;
onChanged();
} else {
operator_ = null;
operatorBuilder_ = null;
}
return this;
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
public io.ray.runtime.generated.Common.LabelOperator.Builder getOperatorBuilder() {
onChanged();
return getOperatorFieldBuilder().getBuilder();
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
public io.ray.runtime.generated.Common.LabelOperatorOrBuilder getOperatorOrBuilder() {
if (operatorBuilder_ != null) {
return operatorBuilder_.getMessageOrBuilder();
} else {
return operator_ == null ?
io.ray.runtime.generated.Common.LabelOperator.getDefaultInstance() : operator_;
}
}
/**
* .ray.rpc.LabelOperator operator = 2 [json_name = "operator"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelOperator, io.ray.runtime.generated.Common.LabelOperator.Builder, io.ray.runtime.generated.Common.LabelOperatorOrBuilder>
getOperatorFieldBuilder() {
if (operatorBuilder_ == null) {
operatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelOperator, io.ray.runtime.generated.Common.LabelOperator.Builder, io.ray.runtime.generated.Common.LabelOperatorOrBuilder>(
getOperator(),
getParentForChildren(),
isClean());
operator_ = null;
}
return operatorBuilder_;
}
@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.rpc.LabelMatchExpression)
}
// @@protoc_insertion_point(class_scope:ray.rpc.LabelMatchExpression)
private static final io.ray.runtime.generated.Common.LabelMatchExpression DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.LabelMatchExpression();
}
public static io.ray.runtime.generated.Common.LabelMatchExpression getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LabelMatchExpression parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LabelMatchExpression(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.runtime.generated.Common.LabelMatchExpression getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LabelMatchExpressionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.LabelMatchExpressions)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
java.util.List
getExpressionsList();
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
io.ray.runtime.generated.Common.LabelMatchExpression getExpressions(int index);
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
int getExpressionsCount();
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
java.util.List
getExpressionsOrBuilderList();
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
io.ray.runtime.generated.Common.LabelMatchExpressionOrBuilder getExpressionsOrBuilder(
int index);
}
/**
* Protobuf type {@code ray.rpc.LabelMatchExpressions}
*/
public static final class LabelMatchExpressions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.LabelMatchExpressions)
LabelMatchExpressionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LabelMatchExpressions.newBuilder() to construct.
private LabelMatchExpressions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private LabelMatchExpressions() {
expressions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LabelMatchExpressions();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LabelMatchExpressions(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
expressions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
expressions_.add(
input.readMessage(io.ray.runtime.generated.Common.LabelMatchExpression.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
expressions_ = java.util.Collections.unmodifiableList(expressions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpressions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpressions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelMatchExpressions.class, io.ray.runtime.generated.Common.LabelMatchExpressions.Builder.class);
}
public static final int EXPRESSIONS_FIELD_NUMBER = 1;
private java.util.List expressions_;
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
@java.lang.Override
public java.util.List getExpressionsList() {
return expressions_;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
@java.lang.Override
public java.util.List
getExpressionsOrBuilderList() {
return expressions_;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
@java.lang.Override
public int getExpressionsCount() {
return expressions_.size();
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpression getExpressions(int index) {
return expressions_.get(index);
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpressionOrBuilder getExpressionsOrBuilder(
int index) {
return expressions_.get(index);
}
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 {
for (int i = 0; i < expressions_.size(); i++) {
output.writeMessage(1, expressions_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < expressions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, expressions_.get(i));
}
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.runtime.generated.Common.LabelMatchExpressions)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.LabelMatchExpressions other = (io.ray.runtime.generated.Common.LabelMatchExpressions) obj;
if (!getExpressionsList()
.equals(other.getExpressionsList())) 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();
if (getExpressionsCount() > 0) {
hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER;
hash = (53 * hash) + getExpressionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions 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.runtime.generated.Common.LabelMatchExpressions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions 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.runtime.generated.Common.LabelMatchExpressions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions 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.runtime.generated.Common.LabelMatchExpressions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions 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.runtime.generated.Common.LabelMatchExpressions 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.rpc.LabelMatchExpressions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.LabelMatchExpressions)
io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpressions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpressions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.LabelMatchExpressions.class, io.ray.runtime.generated.Common.LabelMatchExpressions.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.LabelMatchExpressions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getExpressionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (expressionsBuilder_ == null) {
expressions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
expressionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_LabelMatchExpressions_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpressions getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.LabelMatchExpressions.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpressions build() {
io.ray.runtime.generated.Common.LabelMatchExpressions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpressions buildPartial() {
io.ray.runtime.generated.Common.LabelMatchExpressions result = new io.ray.runtime.generated.Common.LabelMatchExpressions(this);
int from_bitField0_ = bitField0_;
if (expressionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
expressions_ = java.util.Collections.unmodifiableList(expressions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.expressions_ = expressions_;
} else {
result.expressions_ = expressionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.ray.runtime.generated.Common.LabelMatchExpressions) {
return mergeFrom((io.ray.runtime.generated.Common.LabelMatchExpressions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.LabelMatchExpressions other) {
if (other == io.ray.runtime.generated.Common.LabelMatchExpressions.getDefaultInstance()) return this;
if (expressionsBuilder_ == null) {
if (!other.expressions_.isEmpty()) {
if (expressions_.isEmpty()) {
expressions_ = other.expressions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureExpressionsIsMutable();
expressions_.addAll(other.expressions_);
}
onChanged();
}
} else {
if (!other.expressions_.isEmpty()) {
if (expressionsBuilder_.isEmpty()) {
expressionsBuilder_.dispose();
expressionsBuilder_ = null;
expressions_ = other.expressions_;
bitField0_ = (bitField0_ & ~0x00000001);
expressionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getExpressionsFieldBuilder() : null;
} else {
expressionsBuilder_.addAllMessages(other.expressions_);
}
}
}
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.runtime.generated.Common.LabelMatchExpressions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.LabelMatchExpressions) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List expressions_ =
java.util.Collections.emptyList();
private void ensureExpressionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
expressions_ = new java.util.ArrayList(expressions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpression, io.ray.runtime.generated.Common.LabelMatchExpression.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionOrBuilder> expressionsBuilder_;
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public java.util.List getExpressionsList() {
if (expressionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(expressions_);
} else {
return expressionsBuilder_.getMessageList();
}
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public int getExpressionsCount() {
if (expressionsBuilder_ == null) {
return expressions_.size();
} else {
return expressionsBuilder_.getCount();
}
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpression getExpressions(int index) {
if (expressionsBuilder_ == null) {
return expressions_.get(index);
} else {
return expressionsBuilder_.getMessage(index);
}
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder setExpressions(
int index, io.ray.runtime.generated.Common.LabelMatchExpression value) {
if (expressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionsIsMutable();
expressions_.set(index, value);
onChanged();
} else {
expressionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder setExpressions(
int index, io.ray.runtime.generated.Common.LabelMatchExpression.Builder builderForValue) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.set(index, builderForValue.build());
onChanged();
} else {
expressionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder addExpressions(io.ray.runtime.generated.Common.LabelMatchExpression value) {
if (expressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionsIsMutable();
expressions_.add(value);
onChanged();
} else {
expressionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder addExpressions(
int index, io.ray.runtime.generated.Common.LabelMatchExpression value) {
if (expressionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureExpressionsIsMutable();
expressions_.add(index, value);
onChanged();
} else {
expressionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder addExpressions(
io.ray.runtime.generated.Common.LabelMatchExpression.Builder builderForValue) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.add(builderForValue.build());
onChanged();
} else {
expressionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder addExpressions(
int index, io.ray.runtime.generated.Common.LabelMatchExpression.Builder builderForValue) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.add(index, builderForValue.build());
onChanged();
} else {
expressionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder addAllExpressions(
java.lang.Iterable values) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, expressions_);
onChanged();
} else {
expressionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder clearExpressions() {
if (expressionsBuilder_ == null) {
expressions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
expressionsBuilder_.clear();
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public Builder removeExpressions(int index) {
if (expressionsBuilder_ == null) {
ensureExpressionsIsMutable();
expressions_.remove(index);
onChanged();
} else {
expressionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpression.Builder getExpressionsBuilder(
int index) {
return getExpressionsFieldBuilder().getBuilder(index);
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpressionOrBuilder getExpressionsOrBuilder(
int index) {
if (expressionsBuilder_ == null) {
return expressions_.get(index); } else {
return expressionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public java.util.List
getExpressionsOrBuilderList() {
if (expressionsBuilder_ != null) {
return expressionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(expressions_);
}
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpression.Builder addExpressionsBuilder() {
return getExpressionsFieldBuilder().addBuilder(
io.ray.runtime.generated.Common.LabelMatchExpression.getDefaultInstance());
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpression.Builder addExpressionsBuilder(
int index) {
return getExpressionsFieldBuilder().addBuilder(
index, io.ray.runtime.generated.Common.LabelMatchExpression.getDefaultInstance());
}
/**
* repeated .ray.rpc.LabelMatchExpression expressions = 1 [json_name = "expressions"];
*/
public java.util.List
getExpressionsBuilderList() {
return getExpressionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpression, io.ray.runtime.generated.Common.LabelMatchExpression.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionOrBuilder>
getExpressionsFieldBuilder() {
if (expressionsBuilder_ == null) {
expressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpression, io.ray.runtime.generated.Common.LabelMatchExpression.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionOrBuilder>(
expressions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
expressions_ = null;
}
return expressionsBuilder_;
}
@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.rpc.LabelMatchExpressions)
}
// @@protoc_insertion_point(class_scope:ray.rpc.LabelMatchExpressions)
private static final io.ray.runtime.generated.Common.LabelMatchExpressions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.LabelMatchExpressions();
}
public static io.ray.runtime.generated.Common.LabelMatchExpressions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LabelMatchExpressions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LabelMatchExpressions(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.runtime.generated.Common.LabelMatchExpressions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeLabelSchedulingStrategyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.NodeLabelSchedulingStrategy)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
* @return Whether the hard field is set.
*/
boolean hasHard();
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
* @return The hard.
*/
io.ray.runtime.generated.Common.LabelMatchExpressions getHard();
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder getHardOrBuilder();
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
* @return Whether the soft field is set.
*/
boolean hasSoft();
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
* @return The soft.
*/
io.ray.runtime.generated.Common.LabelMatchExpressions getSoft();
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder getSoftOrBuilder();
}
/**
* Protobuf type {@code ray.rpc.NodeLabelSchedulingStrategy}
*/
public static final class NodeLabelSchedulingStrategy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.NodeLabelSchedulingStrategy)
NodeLabelSchedulingStrategyOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeLabelSchedulingStrategy.newBuilder() to construct.
private NodeLabelSchedulingStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private NodeLabelSchedulingStrategy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeLabelSchedulingStrategy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeLabelSchedulingStrategy(
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: {
io.ray.runtime.generated.Common.LabelMatchExpressions.Builder subBuilder = null;
if (hard_ != null) {
subBuilder = hard_.toBuilder();
}
hard_ = input.readMessage(io.ray.runtime.generated.Common.LabelMatchExpressions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(hard_);
hard_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.ray.runtime.generated.Common.LabelMatchExpressions.Builder subBuilder = null;
if (soft_ != null) {
subBuilder = soft_.toBuilder();
}
soft_ = input.readMessage(io.ray.runtime.generated.Common.LabelMatchExpressions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(soft_);
soft_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeLabelSchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeLabelSchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.class, io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.Builder.class);
}
public static final int HARD_FIELD_NUMBER = 1;
private io.ray.runtime.generated.Common.LabelMatchExpressions hard_;
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
* @return Whether the hard field is set.
*/
@java.lang.Override
public boolean hasHard() {
return hard_ != null;
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
* @return The hard.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpressions getHard() {
return hard_ == null ? io.ray.runtime.generated.Common.LabelMatchExpressions.getDefaultInstance() : hard_;
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder getHardOrBuilder() {
return getHard();
}
public static final int SOFT_FIELD_NUMBER = 2;
private io.ray.runtime.generated.Common.LabelMatchExpressions soft_;
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
* @return Whether the soft field is set.
*/
@java.lang.Override
public boolean hasSoft() {
return soft_ != null;
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
* @return The soft.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpressions getSoft() {
return soft_ == null ? io.ray.runtime.generated.Common.LabelMatchExpressions.getDefaultInstance() : soft_;
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder getSoftOrBuilder() {
return getSoft();
}
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 (hard_ != null) {
output.writeMessage(1, getHard());
}
if (soft_ != null) {
output.writeMessage(2, getSoft());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (hard_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHard());
}
if (soft_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSoft());
}
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.runtime.generated.Common.NodeLabelSchedulingStrategy)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy other = (io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) obj;
if (hasHard() != other.hasHard()) return false;
if (hasHard()) {
if (!getHard()
.equals(other.getHard())) return false;
}
if (hasSoft() != other.hasSoft()) return false;
if (hasSoft()) {
if (!getSoft()
.equals(other.getSoft())) 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();
if (hasHard()) {
hash = (37 * hash) + HARD_FIELD_NUMBER;
hash = (53 * hash) + getHard().hashCode();
}
if (hasSoft()) {
hash = (37 * hash) + SOFT_FIELD_NUMBER;
hash = (53 * hash) + getSoft().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy 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.runtime.generated.Common.NodeLabelSchedulingStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy 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.runtime.generated.Common.NodeLabelSchedulingStrategy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy 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.runtime.generated.Common.NodeLabelSchedulingStrategy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy 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.runtime.generated.Common.NodeLabelSchedulingStrategy 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.rpc.NodeLabelSchedulingStrategy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.NodeLabelSchedulingStrategy)
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeLabelSchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeLabelSchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.class, io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.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();
if (hardBuilder_ == null) {
hard_ = null;
} else {
hard_ = null;
hardBuilder_ = null;
}
if (softBuilder_ == null) {
soft_ = null;
} else {
soft_ = null;
softBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeLabelSchedulingStrategy_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy build() {
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy buildPartial() {
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy result = new io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy(this);
if (hardBuilder_ == null) {
result.hard_ = hard_;
} else {
result.hard_ = hardBuilder_.build();
}
if (softBuilder_ == null) {
result.soft_ = soft_;
} else {
result.soft_ = softBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) {
return mergeFrom((io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy other) {
if (other == io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance()) return this;
if (other.hasHard()) {
mergeHard(other.getHard());
}
if (other.hasSoft()) {
mergeSoft(other.getSoft());
}
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.runtime.generated.Common.NodeLabelSchedulingStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.ray.runtime.generated.Common.LabelMatchExpressions hard_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpressions, io.ray.runtime.generated.Common.LabelMatchExpressions.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder> hardBuilder_;
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
* @return Whether the hard field is set.
*/
public boolean hasHard() {
return hardBuilder_ != null || hard_ != null;
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
* @return The hard.
*/
public io.ray.runtime.generated.Common.LabelMatchExpressions getHard() {
if (hardBuilder_ == null) {
return hard_ == null ? io.ray.runtime.generated.Common.LabelMatchExpressions.getDefaultInstance() : hard_;
} else {
return hardBuilder_.getMessage();
}
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
public Builder setHard(io.ray.runtime.generated.Common.LabelMatchExpressions value) {
if (hardBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
hard_ = value;
onChanged();
} else {
hardBuilder_.setMessage(value);
}
return this;
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
public Builder setHard(
io.ray.runtime.generated.Common.LabelMatchExpressions.Builder builderForValue) {
if (hardBuilder_ == null) {
hard_ = builderForValue.build();
onChanged();
} else {
hardBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
public Builder mergeHard(io.ray.runtime.generated.Common.LabelMatchExpressions value) {
if (hardBuilder_ == null) {
if (hard_ != null) {
hard_ =
io.ray.runtime.generated.Common.LabelMatchExpressions.newBuilder(hard_).mergeFrom(value).buildPartial();
} else {
hard_ = value;
}
onChanged();
} else {
hardBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
public Builder clearHard() {
if (hardBuilder_ == null) {
hard_ = null;
onChanged();
} else {
hard_ = null;
hardBuilder_ = null;
}
return this;
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpressions.Builder getHardBuilder() {
onChanged();
return getHardFieldBuilder().getBuilder();
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder getHardOrBuilder() {
if (hardBuilder_ != null) {
return hardBuilder_.getMessageOrBuilder();
} else {
return hard_ == null ?
io.ray.runtime.generated.Common.LabelMatchExpressions.getDefaultInstance() : hard_;
}
}
/**
* .ray.rpc.LabelMatchExpressions hard = 1 [json_name = "hard"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpressions, io.ray.runtime.generated.Common.LabelMatchExpressions.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder>
getHardFieldBuilder() {
if (hardBuilder_ == null) {
hardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpressions, io.ray.runtime.generated.Common.LabelMatchExpressions.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder>(
getHard(),
getParentForChildren(),
isClean());
hard_ = null;
}
return hardBuilder_;
}
private io.ray.runtime.generated.Common.LabelMatchExpressions soft_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpressions, io.ray.runtime.generated.Common.LabelMatchExpressions.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder> softBuilder_;
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
* @return Whether the soft field is set.
*/
public boolean hasSoft() {
return softBuilder_ != null || soft_ != null;
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
* @return The soft.
*/
public io.ray.runtime.generated.Common.LabelMatchExpressions getSoft() {
if (softBuilder_ == null) {
return soft_ == null ? io.ray.runtime.generated.Common.LabelMatchExpressions.getDefaultInstance() : soft_;
} else {
return softBuilder_.getMessage();
}
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
public Builder setSoft(io.ray.runtime.generated.Common.LabelMatchExpressions value) {
if (softBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
soft_ = value;
onChanged();
} else {
softBuilder_.setMessage(value);
}
return this;
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
public Builder setSoft(
io.ray.runtime.generated.Common.LabelMatchExpressions.Builder builderForValue) {
if (softBuilder_ == null) {
soft_ = builderForValue.build();
onChanged();
} else {
softBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
public Builder mergeSoft(io.ray.runtime.generated.Common.LabelMatchExpressions value) {
if (softBuilder_ == null) {
if (soft_ != null) {
soft_ =
io.ray.runtime.generated.Common.LabelMatchExpressions.newBuilder(soft_).mergeFrom(value).buildPartial();
} else {
soft_ = value;
}
onChanged();
} else {
softBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
public Builder clearSoft() {
if (softBuilder_ == null) {
soft_ = null;
onChanged();
} else {
soft_ = null;
softBuilder_ = null;
}
return this;
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpressions.Builder getSoftBuilder() {
onChanged();
return getSoftFieldBuilder().getBuilder();
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
public io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder getSoftOrBuilder() {
if (softBuilder_ != null) {
return softBuilder_.getMessageOrBuilder();
} else {
return soft_ == null ?
io.ray.runtime.generated.Common.LabelMatchExpressions.getDefaultInstance() : soft_;
}
}
/**
* .ray.rpc.LabelMatchExpressions soft = 2 [json_name = "soft"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpressions, io.ray.runtime.generated.Common.LabelMatchExpressions.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder>
getSoftFieldBuilder() {
if (softBuilder_ == null) {
softBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.LabelMatchExpressions, io.ray.runtime.generated.Common.LabelMatchExpressions.Builder, io.ray.runtime.generated.Common.LabelMatchExpressionsOrBuilder>(
getSoft(),
getParentForChildren(),
isClean());
soft_ = null;
}
return softBuilder_;
}
@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.rpc.NodeLabelSchedulingStrategy)
}
// @@protoc_insertion_point(class_scope:ray.rpc.NodeLabelSchedulingStrategy)
private static final io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy();
}
public static io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeLabelSchedulingStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeLabelSchedulingStrategy(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.runtime.generated.Common.NodeLabelSchedulingStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeAffinitySchedulingStrategyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.NodeAffinitySchedulingStrategy)
com.google.protobuf.MessageOrBuilder {
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @return The nodeId.
*/
com.google.protobuf.ByteString getNodeId();
/**
* bool soft = 2 [json_name = "soft"];
* @return The soft.
*/
boolean getSoft();
/**
* bool spill_on_unavailable = 3 [json_name = "spillOnUnavailable"];
* @return The spillOnUnavailable.
*/
boolean getSpillOnUnavailable();
/**
* bool fail_on_unavailable = 4 [json_name = "failOnUnavailable"];
* @return The failOnUnavailable.
*/
boolean getFailOnUnavailable();
}
/**
* Protobuf type {@code ray.rpc.NodeAffinitySchedulingStrategy}
*/
public static final class NodeAffinitySchedulingStrategy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.NodeAffinitySchedulingStrategy)
NodeAffinitySchedulingStrategyOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeAffinitySchedulingStrategy.newBuilder() to construct.
private NodeAffinitySchedulingStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private NodeAffinitySchedulingStrategy() {
nodeId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeAffinitySchedulingStrategy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeAffinitySchedulingStrategy(
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: {
nodeId_ = input.readBytes();
break;
}
case 16: {
soft_ = input.readBool();
break;
}
case 24: {
spillOnUnavailable_ = input.readBool();
break;
}
case 32: {
failOnUnavailable_ = input.readBool();
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.runtime.generated.Common.internal_static_ray_rpc_NodeAffinitySchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeAffinitySchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.class, io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.Builder.class);
}
public static final int NODE_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString nodeId_;
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @return The nodeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNodeId() {
return nodeId_;
}
public static final int SOFT_FIELD_NUMBER = 2;
private boolean soft_;
/**
* bool soft = 2 [json_name = "soft"];
* @return The soft.
*/
@java.lang.Override
public boolean getSoft() {
return soft_;
}
public static final int SPILL_ON_UNAVAILABLE_FIELD_NUMBER = 3;
private boolean spillOnUnavailable_;
/**
* bool spill_on_unavailable = 3 [json_name = "spillOnUnavailable"];
* @return The spillOnUnavailable.
*/
@java.lang.Override
public boolean getSpillOnUnavailable() {
return spillOnUnavailable_;
}
public static final int FAIL_ON_UNAVAILABLE_FIELD_NUMBER = 4;
private boolean failOnUnavailable_;
/**
* bool fail_on_unavailable = 4 [json_name = "failOnUnavailable"];
* @return The failOnUnavailable.
*/
@java.lang.Override
public boolean getFailOnUnavailable() {
return failOnUnavailable_;
}
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 (!nodeId_.isEmpty()) {
output.writeBytes(1, nodeId_);
}
if (soft_ != false) {
output.writeBool(2, soft_);
}
if (spillOnUnavailable_ != false) {
output.writeBool(3, spillOnUnavailable_);
}
if (failOnUnavailable_ != false) {
output.writeBool(4, failOnUnavailable_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!nodeId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, nodeId_);
}
if (soft_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, soft_);
}
if (spillOnUnavailable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, spillOnUnavailable_);
}
if (failOnUnavailable_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, failOnUnavailable_);
}
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.runtime.generated.Common.NodeAffinitySchedulingStrategy)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy other = (io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) obj;
if (!getNodeId()
.equals(other.getNodeId())) return false;
if (getSoft()
!= other.getSoft()) return false;
if (getSpillOnUnavailable()
!= other.getSpillOnUnavailable()) return false;
if (getFailOnUnavailable()
!= other.getFailOnUnavailable()) 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) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
hash = (37 * hash) + SOFT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSoft());
hash = (37 * hash) + SPILL_ON_UNAVAILABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSpillOnUnavailable());
hash = (37 * hash) + FAIL_ON_UNAVAILABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailOnUnavailable());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy 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.runtime.generated.Common.NodeAffinitySchedulingStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy 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.runtime.generated.Common.NodeAffinitySchedulingStrategy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy 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.runtime.generated.Common.NodeAffinitySchedulingStrategy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy 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.runtime.generated.Common.NodeAffinitySchedulingStrategy 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.rpc.NodeAffinitySchedulingStrategy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.NodeAffinitySchedulingStrategy)
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeAffinitySchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeAffinitySchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.class, io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.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();
nodeId_ = com.google.protobuf.ByteString.EMPTY;
soft_ = false;
spillOnUnavailable_ = false;
failOnUnavailable_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeAffinitySchedulingStrategy_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy build() {
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy buildPartial() {
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy result = new io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy(this);
result.nodeId_ = nodeId_;
result.soft_ = soft_;
result.spillOnUnavailable_ = spillOnUnavailable_;
result.failOnUnavailable_ = failOnUnavailable_;
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.runtime.generated.Common.NodeAffinitySchedulingStrategy) {
return mergeFrom((io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy other) {
if (other == io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance()) return this;
if (other.getNodeId() != com.google.protobuf.ByteString.EMPTY) {
setNodeId(other.getNodeId());
}
if (other.getSoft() != false) {
setSoft(other.getSoft());
}
if (other.getSpillOnUnavailable() != false) {
setSpillOnUnavailable(other.getSpillOnUnavailable());
}
if (other.getFailOnUnavailable() != false) {
setFailOnUnavailable(other.getFailOnUnavailable());
}
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.runtime.generated.Common.NodeAffinitySchedulingStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString nodeId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @return The nodeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNodeId() {
return nodeId_;
}
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nodeId_ = value;
onChanged();
return this;
}
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = getDefaultInstance().getNodeId();
onChanged();
return this;
}
private boolean soft_ ;
/**
* bool soft = 2 [json_name = "soft"];
* @return The soft.
*/
@java.lang.Override
public boolean getSoft() {
return soft_;
}
/**
* bool soft = 2 [json_name = "soft"];
* @param value The soft to set.
* @return This builder for chaining.
*/
public Builder setSoft(boolean value) {
soft_ = value;
onChanged();
return this;
}
/**
* bool soft = 2 [json_name = "soft"];
* @return This builder for chaining.
*/
public Builder clearSoft() {
soft_ = false;
onChanged();
return this;
}
private boolean spillOnUnavailable_ ;
/**
* bool spill_on_unavailable = 3 [json_name = "spillOnUnavailable"];
* @return The spillOnUnavailable.
*/
@java.lang.Override
public boolean getSpillOnUnavailable() {
return spillOnUnavailable_;
}
/**
* bool spill_on_unavailable = 3 [json_name = "spillOnUnavailable"];
* @param value The spillOnUnavailable to set.
* @return This builder for chaining.
*/
public Builder setSpillOnUnavailable(boolean value) {
spillOnUnavailable_ = value;
onChanged();
return this;
}
/**
* bool spill_on_unavailable = 3 [json_name = "spillOnUnavailable"];
* @return This builder for chaining.
*/
public Builder clearSpillOnUnavailable() {
spillOnUnavailable_ = false;
onChanged();
return this;
}
private boolean failOnUnavailable_ ;
/**
* bool fail_on_unavailable = 4 [json_name = "failOnUnavailable"];
* @return The failOnUnavailable.
*/
@java.lang.Override
public boolean getFailOnUnavailable() {
return failOnUnavailable_;
}
/**
* bool fail_on_unavailable = 4 [json_name = "failOnUnavailable"];
* @param value The failOnUnavailable to set.
* @return This builder for chaining.
*/
public Builder setFailOnUnavailable(boolean value) {
failOnUnavailable_ = value;
onChanged();
return this;
}
/**
* bool fail_on_unavailable = 4 [json_name = "failOnUnavailable"];
* @return This builder for chaining.
*/
public Builder clearFailOnUnavailable() {
failOnUnavailable_ = false;
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.rpc.NodeAffinitySchedulingStrategy)
}
// @@protoc_insertion_point(class_scope:ray.rpc.NodeAffinitySchedulingStrategy)
private static final io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy();
}
public static io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeAffinitySchedulingStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeAffinitySchedulingStrategy(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.runtime.generated.Common.NodeAffinitySchedulingStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PlacementGroupSchedulingStrategyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.PlacementGroupSchedulingStrategy)
com.google.protobuf.MessageOrBuilder {
/**
* bytes placement_group_id = 1 [json_name = "placementGroupId"];
* @return The placementGroupId.
*/
com.google.protobuf.ByteString getPlacementGroupId();
/**
* int64 placement_group_bundle_index = 2 [json_name = "placementGroupBundleIndex"];
* @return The placementGroupBundleIndex.
*/
long getPlacementGroupBundleIndex();
/**
* bool placement_group_capture_child_tasks = 3 [json_name = "placementGroupCaptureChildTasks"];
* @return The placementGroupCaptureChildTasks.
*/
boolean getPlacementGroupCaptureChildTasks();
}
/**
* Protobuf type {@code ray.rpc.PlacementGroupSchedulingStrategy}
*/
public static final class PlacementGroupSchedulingStrategy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.PlacementGroupSchedulingStrategy)
PlacementGroupSchedulingStrategyOrBuilder {
private static final long serialVersionUID = 0L;
// Use PlacementGroupSchedulingStrategy.newBuilder() to construct.
private PlacementGroupSchedulingStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PlacementGroupSchedulingStrategy() {
placementGroupId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PlacementGroupSchedulingStrategy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PlacementGroupSchedulingStrategy(
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: {
placementGroupId_ = input.readBytes();
break;
}
case 16: {
placementGroupBundleIndex_ = input.readInt64();
break;
}
case 24: {
placementGroupCaptureChildTasks_ = input.readBool();
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.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.class, io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.Builder.class);
}
public static final int PLACEMENT_GROUP_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString placementGroupId_;
/**
* bytes placement_group_id = 1 [json_name = "placementGroupId"];
* @return The placementGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPlacementGroupId() {
return placementGroupId_;
}
public static final int PLACEMENT_GROUP_BUNDLE_INDEX_FIELD_NUMBER = 2;
private long placementGroupBundleIndex_;
/**
* int64 placement_group_bundle_index = 2 [json_name = "placementGroupBundleIndex"];
* @return The placementGroupBundleIndex.
*/
@java.lang.Override
public long getPlacementGroupBundleIndex() {
return placementGroupBundleIndex_;
}
public static final int PLACEMENT_GROUP_CAPTURE_CHILD_TASKS_FIELD_NUMBER = 3;
private boolean placementGroupCaptureChildTasks_;
/**
* bool placement_group_capture_child_tasks = 3 [json_name = "placementGroupCaptureChildTasks"];
* @return The placementGroupCaptureChildTasks.
*/
@java.lang.Override
public boolean getPlacementGroupCaptureChildTasks() {
return placementGroupCaptureChildTasks_;
}
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 (!placementGroupId_.isEmpty()) {
output.writeBytes(1, placementGroupId_);
}
if (placementGroupBundleIndex_ != 0L) {
output.writeInt64(2, placementGroupBundleIndex_);
}
if (placementGroupCaptureChildTasks_ != false) {
output.writeBool(3, placementGroupCaptureChildTasks_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!placementGroupId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, placementGroupId_);
}
if (placementGroupBundleIndex_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, placementGroupBundleIndex_);
}
if (placementGroupCaptureChildTasks_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, placementGroupCaptureChildTasks_);
}
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.runtime.generated.Common.PlacementGroupSchedulingStrategy)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy other = (io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) obj;
if (!getPlacementGroupId()
.equals(other.getPlacementGroupId())) return false;
if (getPlacementGroupBundleIndex()
!= other.getPlacementGroupBundleIndex()) return false;
if (getPlacementGroupCaptureChildTasks()
!= other.getPlacementGroupCaptureChildTasks()) 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) + PLACEMENT_GROUP_ID_FIELD_NUMBER;
hash = (53 * hash) + getPlacementGroupId().hashCode();
hash = (37 * hash) + PLACEMENT_GROUP_BUNDLE_INDEX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPlacementGroupBundleIndex());
hash = (37 * hash) + PLACEMENT_GROUP_CAPTURE_CHILD_TASKS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPlacementGroupCaptureChildTasks());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy 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.runtime.generated.Common.PlacementGroupSchedulingStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy 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.runtime.generated.Common.PlacementGroupSchedulingStrategy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy 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.runtime.generated.Common.PlacementGroupSchedulingStrategy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy 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.runtime.generated.Common.PlacementGroupSchedulingStrategy 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.rpc.PlacementGroupSchedulingStrategy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.PlacementGroupSchedulingStrategy)
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.class, io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.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();
placementGroupId_ = com.google.protobuf.ByteString.EMPTY;
placementGroupBundleIndex_ = 0L;
placementGroupCaptureChildTasks_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSchedulingStrategy_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy build() {
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy buildPartial() {
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy result = new io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy(this);
result.placementGroupId_ = placementGroupId_;
result.placementGroupBundleIndex_ = placementGroupBundleIndex_;
result.placementGroupCaptureChildTasks_ = placementGroupCaptureChildTasks_;
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.runtime.generated.Common.PlacementGroupSchedulingStrategy) {
return mergeFrom((io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy other) {
if (other == io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance()) return this;
if (other.getPlacementGroupId() != com.google.protobuf.ByteString.EMPTY) {
setPlacementGroupId(other.getPlacementGroupId());
}
if (other.getPlacementGroupBundleIndex() != 0L) {
setPlacementGroupBundleIndex(other.getPlacementGroupBundleIndex());
}
if (other.getPlacementGroupCaptureChildTasks() != false) {
setPlacementGroupCaptureChildTasks(other.getPlacementGroupCaptureChildTasks());
}
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.runtime.generated.Common.PlacementGroupSchedulingStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString placementGroupId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes placement_group_id = 1 [json_name = "placementGroupId"];
* @return The placementGroupId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getPlacementGroupId() {
return placementGroupId_;
}
/**
* bytes placement_group_id = 1 [json_name = "placementGroupId"];
* @param value The placementGroupId to set.
* @return This builder for chaining.
*/
public Builder setPlacementGroupId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
placementGroupId_ = value;
onChanged();
return this;
}
/**
* bytes placement_group_id = 1 [json_name = "placementGroupId"];
* @return This builder for chaining.
*/
public Builder clearPlacementGroupId() {
placementGroupId_ = getDefaultInstance().getPlacementGroupId();
onChanged();
return this;
}
private long placementGroupBundleIndex_ ;
/**
* int64 placement_group_bundle_index = 2 [json_name = "placementGroupBundleIndex"];
* @return The placementGroupBundleIndex.
*/
@java.lang.Override
public long getPlacementGroupBundleIndex() {
return placementGroupBundleIndex_;
}
/**
* int64 placement_group_bundle_index = 2 [json_name = "placementGroupBundleIndex"];
* @param value The placementGroupBundleIndex to set.
* @return This builder for chaining.
*/
public Builder setPlacementGroupBundleIndex(long value) {
placementGroupBundleIndex_ = value;
onChanged();
return this;
}
/**
* int64 placement_group_bundle_index = 2 [json_name = "placementGroupBundleIndex"];
* @return This builder for chaining.
*/
public Builder clearPlacementGroupBundleIndex() {
placementGroupBundleIndex_ = 0L;
onChanged();
return this;
}
private boolean placementGroupCaptureChildTasks_ ;
/**
* bool placement_group_capture_child_tasks = 3 [json_name = "placementGroupCaptureChildTasks"];
* @return The placementGroupCaptureChildTasks.
*/
@java.lang.Override
public boolean getPlacementGroupCaptureChildTasks() {
return placementGroupCaptureChildTasks_;
}
/**
* bool placement_group_capture_child_tasks = 3 [json_name = "placementGroupCaptureChildTasks"];
* @param value The placementGroupCaptureChildTasks to set.
* @return This builder for chaining.
*/
public Builder setPlacementGroupCaptureChildTasks(boolean value) {
placementGroupCaptureChildTasks_ = value;
onChanged();
return this;
}
/**
* bool placement_group_capture_child_tasks = 3 [json_name = "placementGroupCaptureChildTasks"];
* @return This builder for chaining.
*/
public Builder clearPlacementGroupCaptureChildTasks() {
placementGroupCaptureChildTasks_ = false;
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.rpc.PlacementGroupSchedulingStrategy)
}
// @@protoc_insertion_point(class_scope:ray.rpc.PlacementGroupSchedulingStrategy)
private static final io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy();
}
public static io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PlacementGroupSchedulingStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PlacementGroupSchedulingStrategy(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.runtime.generated.Common.PlacementGroupSchedulingStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DefaultSchedulingStrategyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.DefaultSchedulingStrategy)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code ray.rpc.DefaultSchedulingStrategy}
*/
public static final class DefaultSchedulingStrategy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.DefaultSchedulingStrategy)
DefaultSchedulingStrategyOrBuilder {
private static final long serialVersionUID = 0L;
// Use DefaultSchedulingStrategy.newBuilder() to construct.
private DefaultSchedulingStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private DefaultSchedulingStrategy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DefaultSchedulingStrategy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DefaultSchedulingStrategy(
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;
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.runtime.generated.Common.internal_static_ray_rpc_DefaultSchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_DefaultSchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.DefaultSchedulingStrategy.class, io.ray.runtime.generated.Common.DefaultSchedulingStrategy.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.runtime.generated.Common.DefaultSchedulingStrategy)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.DefaultSchedulingStrategy other = (io.ray.runtime.generated.Common.DefaultSchedulingStrategy) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy 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.runtime.generated.Common.DefaultSchedulingStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy 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.runtime.generated.Common.DefaultSchedulingStrategy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy 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.runtime.generated.Common.DefaultSchedulingStrategy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy 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.runtime.generated.Common.DefaultSchedulingStrategy 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.rpc.DefaultSchedulingStrategy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.DefaultSchedulingStrategy)
io.ray.runtime.generated.Common.DefaultSchedulingStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_DefaultSchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_DefaultSchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.DefaultSchedulingStrategy.class, io.ray.runtime.generated.Common.DefaultSchedulingStrategy.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.DefaultSchedulingStrategy.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_DefaultSchedulingStrategy_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.DefaultSchedulingStrategy getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.DefaultSchedulingStrategy build() {
io.ray.runtime.generated.Common.DefaultSchedulingStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.DefaultSchedulingStrategy buildPartial() {
io.ray.runtime.generated.Common.DefaultSchedulingStrategy result = new io.ray.runtime.generated.Common.DefaultSchedulingStrategy(this);
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.runtime.generated.Common.DefaultSchedulingStrategy) {
return mergeFrom((io.ray.runtime.generated.Common.DefaultSchedulingStrategy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.DefaultSchedulingStrategy other) {
if (other == io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance()) return this;
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.runtime.generated.Common.DefaultSchedulingStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.DefaultSchedulingStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.rpc.DefaultSchedulingStrategy)
}
// @@protoc_insertion_point(class_scope:ray.rpc.DefaultSchedulingStrategy)
private static final io.ray.runtime.generated.Common.DefaultSchedulingStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.DefaultSchedulingStrategy();
}
public static io.ray.runtime.generated.Common.DefaultSchedulingStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DefaultSchedulingStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DefaultSchedulingStrategy(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.runtime.generated.Common.DefaultSchedulingStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpreadSchedulingStrategyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.SpreadSchedulingStrategy)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code ray.rpc.SpreadSchedulingStrategy}
*/
public static final class SpreadSchedulingStrategy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.SpreadSchedulingStrategy)
SpreadSchedulingStrategyOrBuilder {
private static final long serialVersionUID = 0L;
// Use SpreadSchedulingStrategy.newBuilder() to construct.
private SpreadSchedulingStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private SpreadSchedulingStrategy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SpreadSchedulingStrategy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SpreadSchedulingStrategy(
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;
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.runtime.generated.Common.internal_static_ray_rpc_SpreadSchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_SpreadSchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.SpreadSchedulingStrategy.class, io.ray.runtime.generated.Common.SpreadSchedulingStrategy.Builder.class);
}
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 {
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.runtime.generated.Common.SpreadSchedulingStrategy)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.SpreadSchedulingStrategy other = (io.ray.runtime.generated.Common.SpreadSchedulingStrategy) obj;
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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy 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.runtime.generated.Common.SpreadSchedulingStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy 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.runtime.generated.Common.SpreadSchedulingStrategy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy 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.runtime.generated.Common.SpreadSchedulingStrategy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy 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.runtime.generated.Common.SpreadSchedulingStrategy 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.rpc.SpreadSchedulingStrategy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.SpreadSchedulingStrategy)
io.ray.runtime.generated.Common.SpreadSchedulingStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_SpreadSchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_SpreadSchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.SpreadSchedulingStrategy.class, io.ray.runtime.generated.Common.SpreadSchedulingStrategy.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.SpreadSchedulingStrategy.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();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_SpreadSchedulingStrategy_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.SpreadSchedulingStrategy getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.SpreadSchedulingStrategy build() {
io.ray.runtime.generated.Common.SpreadSchedulingStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.SpreadSchedulingStrategy buildPartial() {
io.ray.runtime.generated.Common.SpreadSchedulingStrategy result = new io.ray.runtime.generated.Common.SpreadSchedulingStrategy(this);
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.runtime.generated.Common.SpreadSchedulingStrategy) {
return mergeFrom((io.ray.runtime.generated.Common.SpreadSchedulingStrategy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.SpreadSchedulingStrategy other) {
if (other == io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance()) return this;
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.runtime.generated.Common.SpreadSchedulingStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.SpreadSchedulingStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
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.rpc.SpreadSchedulingStrategy)
}
// @@protoc_insertion_point(class_scope:ray.rpc.SpreadSchedulingStrategy)
private static final io.ray.runtime.generated.Common.SpreadSchedulingStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.SpreadSchedulingStrategy();
}
public static io.ray.runtime.generated.Common.SpreadSchedulingStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SpreadSchedulingStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SpreadSchedulingStrategy(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.runtime.generated.Common.SpreadSchedulingStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SchedulingStrategyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.SchedulingStrategy)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
* @return Whether the defaultSchedulingStrategy field is set.
*/
boolean hasDefaultSchedulingStrategy();
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
* @return The defaultSchedulingStrategy.
*/
io.ray.runtime.generated.Common.DefaultSchedulingStrategy getDefaultSchedulingStrategy();
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
io.ray.runtime.generated.Common.DefaultSchedulingStrategyOrBuilder getDefaultSchedulingStrategyOrBuilder();
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
* @return Whether the placementGroupSchedulingStrategy field is set.
*/
boolean hasPlacementGroupSchedulingStrategy();
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
* @return The placementGroupSchedulingStrategy.
*/
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy getPlacementGroupSchedulingStrategy();
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategyOrBuilder getPlacementGroupSchedulingStrategyOrBuilder();
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
* @return Whether the spreadSchedulingStrategy field is set.
*/
boolean hasSpreadSchedulingStrategy();
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
* @return The spreadSchedulingStrategy.
*/
io.ray.runtime.generated.Common.SpreadSchedulingStrategy getSpreadSchedulingStrategy();
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
io.ray.runtime.generated.Common.SpreadSchedulingStrategyOrBuilder getSpreadSchedulingStrategyOrBuilder();
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
* @return Whether the nodeAffinitySchedulingStrategy field is set.
*/
boolean hasNodeAffinitySchedulingStrategy();
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
* @return The nodeAffinitySchedulingStrategy.
*/
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy getNodeAffinitySchedulingStrategy();
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategyOrBuilder getNodeAffinitySchedulingStrategyOrBuilder();
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
* @return Whether the nodeLabelSchedulingStrategy field is set.
*/
boolean hasNodeLabelSchedulingStrategy();
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
* @return The nodeLabelSchedulingStrategy.
*/
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy getNodeLabelSchedulingStrategy();
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategyOrBuilder getNodeLabelSchedulingStrategyOrBuilder();
public io.ray.runtime.generated.Common.SchedulingStrategy.SchedulingStrategyCase getSchedulingStrategyCase();
}
/**
* Protobuf type {@code ray.rpc.SchedulingStrategy}
*/
public static final class SchedulingStrategy extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.SchedulingStrategy)
SchedulingStrategyOrBuilder {
private static final long serialVersionUID = 0L;
// Use SchedulingStrategy.newBuilder() to construct.
private SchedulingStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private SchedulingStrategy() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SchedulingStrategy();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SchedulingStrategy(
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: {
io.ray.runtime.generated.Common.DefaultSchedulingStrategy.Builder subBuilder = null;
if (schedulingStrategyCase_ == 1) {
subBuilder = ((io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_).toBuilder();
}
schedulingStrategy_ =
input.readMessage(io.ray.runtime.generated.Common.DefaultSchedulingStrategy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_);
schedulingStrategy_ = subBuilder.buildPartial();
}
schedulingStrategyCase_ = 1;
break;
}
case 18: {
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.Builder subBuilder = null;
if (schedulingStrategyCase_ == 2) {
subBuilder = ((io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_).toBuilder();
}
schedulingStrategy_ =
input.readMessage(io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_);
schedulingStrategy_ = subBuilder.buildPartial();
}
schedulingStrategyCase_ = 2;
break;
}
case 26: {
io.ray.runtime.generated.Common.SpreadSchedulingStrategy.Builder subBuilder = null;
if (schedulingStrategyCase_ == 3) {
subBuilder = ((io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_).toBuilder();
}
schedulingStrategy_ =
input.readMessage(io.ray.runtime.generated.Common.SpreadSchedulingStrategy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_);
schedulingStrategy_ = subBuilder.buildPartial();
}
schedulingStrategyCase_ = 3;
break;
}
case 34: {
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.Builder subBuilder = null;
if (schedulingStrategyCase_ == 4) {
subBuilder = ((io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_).toBuilder();
}
schedulingStrategy_ =
input.readMessage(io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_);
schedulingStrategy_ = subBuilder.buildPartial();
}
schedulingStrategyCase_ = 4;
break;
}
case 42: {
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.Builder subBuilder = null;
if (schedulingStrategyCase_ == 5) {
subBuilder = ((io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_).toBuilder();
}
schedulingStrategy_ =
input.readMessage(io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_);
schedulingStrategy_ = subBuilder.buildPartial();
}
schedulingStrategyCase_ = 5;
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.runtime.generated.Common.internal_static_ray_rpc_SchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_SchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.SchedulingStrategy.class, io.ray.runtime.generated.Common.SchedulingStrategy.Builder.class);
}
private int schedulingStrategyCase_ = 0;
private java.lang.Object schedulingStrategy_;
public enum SchedulingStrategyCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
DEFAULT_SCHEDULING_STRATEGY(1),
PLACEMENT_GROUP_SCHEDULING_STRATEGY(2),
SPREAD_SCHEDULING_STRATEGY(3),
NODE_AFFINITY_SCHEDULING_STRATEGY(4),
NODE_LABEL_SCHEDULING_STRATEGY(5),
SCHEDULINGSTRATEGY_NOT_SET(0);
private final int value;
private SchedulingStrategyCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SchedulingStrategyCase valueOf(int value) {
return forNumber(value);
}
public static SchedulingStrategyCase forNumber(int value) {
switch (value) {
case 1: return DEFAULT_SCHEDULING_STRATEGY;
case 2: return PLACEMENT_GROUP_SCHEDULING_STRATEGY;
case 3: return SPREAD_SCHEDULING_STRATEGY;
case 4: return NODE_AFFINITY_SCHEDULING_STRATEGY;
case 5: return NODE_LABEL_SCHEDULING_STRATEGY;
case 0: return SCHEDULINGSTRATEGY_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SchedulingStrategyCase
getSchedulingStrategyCase() {
return SchedulingStrategyCase.forNumber(
schedulingStrategyCase_);
}
public static final int DEFAULT_SCHEDULING_STRATEGY_FIELD_NUMBER = 1;
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
* @return Whether the defaultSchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasDefaultSchedulingStrategy() {
return schedulingStrategyCase_ == 1;
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
* @return The defaultSchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.DefaultSchedulingStrategy getDefaultSchedulingStrategy() {
if (schedulingStrategyCase_ == 1) {
return (io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance();
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.DefaultSchedulingStrategyOrBuilder getDefaultSchedulingStrategyOrBuilder() {
if (schedulingStrategyCase_ == 1) {
return (io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance();
}
public static final int PLACEMENT_GROUP_SCHEDULING_STRATEGY_FIELD_NUMBER = 2;
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
* @return Whether the placementGroupSchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasPlacementGroupSchedulingStrategy() {
return schedulingStrategyCase_ == 2;
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
* @return The placementGroupSchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy getPlacementGroupSchedulingStrategy() {
if (schedulingStrategyCase_ == 2) {
return (io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance();
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategyOrBuilder getPlacementGroupSchedulingStrategyOrBuilder() {
if (schedulingStrategyCase_ == 2) {
return (io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance();
}
public static final int SPREAD_SCHEDULING_STRATEGY_FIELD_NUMBER = 3;
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
* @return Whether the spreadSchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasSpreadSchedulingStrategy() {
return schedulingStrategyCase_ == 3;
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
* @return The spreadSchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.SpreadSchedulingStrategy getSpreadSchedulingStrategy() {
if (schedulingStrategyCase_ == 3) {
return (io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance();
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.SpreadSchedulingStrategyOrBuilder getSpreadSchedulingStrategyOrBuilder() {
if (schedulingStrategyCase_ == 3) {
return (io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance();
}
public static final int NODE_AFFINITY_SCHEDULING_STRATEGY_FIELD_NUMBER = 4;
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
* @return Whether the nodeAffinitySchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasNodeAffinitySchedulingStrategy() {
return schedulingStrategyCase_ == 4;
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
* @return The nodeAffinitySchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy getNodeAffinitySchedulingStrategy() {
if (schedulingStrategyCase_ == 4) {
return (io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance();
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategyOrBuilder getNodeAffinitySchedulingStrategyOrBuilder() {
if (schedulingStrategyCase_ == 4) {
return (io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance();
}
public static final int NODE_LABEL_SCHEDULING_STRATEGY_FIELD_NUMBER = 5;
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
* @return Whether the nodeLabelSchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasNodeLabelSchedulingStrategy() {
return schedulingStrategyCase_ == 5;
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
* @return The nodeLabelSchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy getNodeLabelSchedulingStrategy() {
if (schedulingStrategyCase_ == 5) {
return (io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance();
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeLabelSchedulingStrategyOrBuilder getNodeLabelSchedulingStrategyOrBuilder() {
if (schedulingStrategyCase_ == 5) {
return (io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance();
}
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 (schedulingStrategyCase_ == 1) {
output.writeMessage(1, (io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_);
}
if (schedulingStrategyCase_ == 2) {
output.writeMessage(2, (io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_);
}
if (schedulingStrategyCase_ == 3) {
output.writeMessage(3, (io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_);
}
if (schedulingStrategyCase_ == 4) {
output.writeMessage(4, (io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_);
}
if (schedulingStrategyCase_ == 5) {
output.writeMessage(5, (io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (schedulingStrategyCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_);
}
if (schedulingStrategyCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_);
}
if (schedulingStrategyCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_);
}
if (schedulingStrategyCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_);
}
if (schedulingStrategyCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_);
}
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.runtime.generated.Common.SchedulingStrategy)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.SchedulingStrategy other = (io.ray.runtime.generated.Common.SchedulingStrategy) obj;
if (!getSchedulingStrategyCase().equals(other.getSchedulingStrategyCase())) return false;
switch (schedulingStrategyCase_) {
case 1:
if (!getDefaultSchedulingStrategy()
.equals(other.getDefaultSchedulingStrategy())) return false;
break;
case 2:
if (!getPlacementGroupSchedulingStrategy()
.equals(other.getPlacementGroupSchedulingStrategy())) return false;
break;
case 3:
if (!getSpreadSchedulingStrategy()
.equals(other.getSpreadSchedulingStrategy())) return false;
break;
case 4:
if (!getNodeAffinitySchedulingStrategy()
.equals(other.getNodeAffinitySchedulingStrategy())) return false;
break;
case 5:
if (!getNodeLabelSchedulingStrategy()
.equals(other.getNodeLabelSchedulingStrategy())) return false;
break;
case 0:
default:
}
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();
switch (schedulingStrategyCase_) {
case 1:
hash = (37 * hash) + DEFAULT_SCHEDULING_STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getDefaultSchedulingStrategy().hashCode();
break;
case 2:
hash = (37 * hash) + PLACEMENT_GROUP_SCHEDULING_STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getPlacementGroupSchedulingStrategy().hashCode();
break;
case 3:
hash = (37 * hash) + SPREAD_SCHEDULING_STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getSpreadSchedulingStrategy().hashCode();
break;
case 4:
hash = (37 * hash) + NODE_AFFINITY_SCHEDULING_STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getNodeAffinitySchedulingStrategy().hashCode();
break;
case 5:
hash = (37 * hash) + NODE_LABEL_SCHEDULING_STRATEGY_FIELD_NUMBER;
hash = (53 * hash) + getNodeLabelSchedulingStrategy().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.SchedulingStrategy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.SchedulingStrategy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.SchedulingStrategy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.SchedulingStrategy 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.runtime.generated.Common.SchedulingStrategy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.SchedulingStrategy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.SchedulingStrategy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.SchedulingStrategy 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.runtime.generated.Common.SchedulingStrategy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.SchedulingStrategy 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.runtime.generated.Common.SchedulingStrategy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.SchedulingStrategy 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.runtime.generated.Common.SchedulingStrategy 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.rpc.SchedulingStrategy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.SchedulingStrategy)
io.ray.runtime.generated.Common.SchedulingStrategyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_SchedulingStrategy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_SchedulingStrategy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.SchedulingStrategy.class, io.ray.runtime.generated.Common.SchedulingStrategy.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.SchedulingStrategy.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();
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_SchedulingStrategy_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.SchedulingStrategy getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.SchedulingStrategy.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.SchedulingStrategy build() {
io.ray.runtime.generated.Common.SchedulingStrategy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.SchedulingStrategy buildPartial() {
io.ray.runtime.generated.Common.SchedulingStrategy result = new io.ray.runtime.generated.Common.SchedulingStrategy(this);
if (schedulingStrategyCase_ == 1) {
if (defaultSchedulingStrategyBuilder_ == null) {
result.schedulingStrategy_ = schedulingStrategy_;
} else {
result.schedulingStrategy_ = defaultSchedulingStrategyBuilder_.build();
}
}
if (schedulingStrategyCase_ == 2) {
if (placementGroupSchedulingStrategyBuilder_ == null) {
result.schedulingStrategy_ = schedulingStrategy_;
} else {
result.schedulingStrategy_ = placementGroupSchedulingStrategyBuilder_.build();
}
}
if (schedulingStrategyCase_ == 3) {
if (spreadSchedulingStrategyBuilder_ == null) {
result.schedulingStrategy_ = schedulingStrategy_;
} else {
result.schedulingStrategy_ = spreadSchedulingStrategyBuilder_.build();
}
}
if (schedulingStrategyCase_ == 4) {
if (nodeAffinitySchedulingStrategyBuilder_ == null) {
result.schedulingStrategy_ = schedulingStrategy_;
} else {
result.schedulingStrategy_ = nodeAffinitySchedulingStrategyBuilder_.build();
}
}
if (schedulingStrategyCase_ == 5) {
if (nodeLabelSchedulingStrategyBuilder_ == null) {
result.schedulingStrategy_ = schedulingStrategy_;
} else {
result.schedulingStrategy_ = nodeLabelSchedulingStrategyBuilder_.build();
}
}
result.schedulingStrategyCase_ = schedulingStrategyCase_;
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.runtime.generated.Common.SchedulingStrategy) {
return mergeFrom((io.ray.runtime.generated.Common.SchedulingStrategy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.SchedulingStrategy other) {
if (other == io.ray.runtime.generated.Common.SchedulingStrategy.getDefaultInstance()) return this;
switch (other.getSchedulingStrategyCase()) {
case DEFAULT_SCHEDULING_STRATEGY: {
mergeDefaultSchedulingStrategy(other.getDefaultSchedulingStrategy());
break;
}
case PLACEMENT_GROUP_SCHEDULING_STRATEGY: {
mergePlacementGroupSchedulingStrategy(other.getPlacementGroupSchedulingStrategy());
break;
}
case SPREAD_SCHEDULING_STRATEGY: {
mergeSpreadSchedulingStrategy(other.getSpreadSchedulingStrategy());
break;
}
case NODE_AFFINITY_SCHEDULING_STRATEGY: {
mergeNodeAffinitySchedulingStrategy(other.getNodeAffinitySchedulingStrategy());
break;
}
case NODE_LABEL_SCHEDULING_STRATEGY: {
mergeNodeLabelSchedulingStrategy(other.getNodeLabelSchedulingStrategy());
break;
}
case SCHEDULINGSTRATEGY_NOT_SET: {
break;
}
}
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.runtime.generated.Common.SchedulingStrategy parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.SchedulingStrategy) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int schedulingStrategyCase_ = 0;
private java.lang.Object schedulingStrategy_;
public SchedulingStrategyCase
getSchedulingStrategyCase() {
return SchedulingStrategyCase.forNumber(
schedulingStrategyCase_);
}
public Builder clearSchedulingStrategy() {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.DefaultSchedulingStrategy, io.ray.runtime.generated.Common.DefaultSchedulingStrategy.Builder, io.ray.runtime.generated.Common.DefaultSchedulingStrategyOrBuilder> defaultSchedulingStrategyBuilder_;
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
* @return Whether the defaultSchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasDefaultSchedulingStrategy() {
return schedulingStrategyCase_ == 1;
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
* @return The defaultSchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.DefaultSchedulingStrategy getDefaultSchedulingStrategy() {
if (defaultSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 1) {
return (io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance();
} else {
if (schedulingStrategyCase_ == 1) {
return defaultSchedulingStrategyBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
public Builder setDefaultSchedulingStrategy(io.ray.runtime.generated.Common.DefaultSchedulingStrategy value) {
if (defaultSchedulingStrategyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulingStrategy_ = value;
onChanged();
} else {
defaultSchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 1;
return this;
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
public Builder setDefaultSchedulingStrategy(
io.ray.runtime.generated.Common.DefaultSchedulingStrategy.Builder builderForValue) {
if (defaultSchedulingStrategyBuilder_ == null) {
schedulingStrategy_ = builderForValue.build();
onChanged();
} else {
defaultSchedulingStrategyBuilder_.setMessage(builderForValue.build());
}
schedulingStrategyCase_ = 1;
return this;
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
public Builder mergeDefaultSchedulingStrategy(io.ray.runtime.generated.Common.DefaultSchedulingStrategy value) {
if (defaultSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 1 &&
schedulingStrategy_ != io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance()) {
schedulingStrategy_ = io.ray.runtime.generated.Common.DefaultSchedulingStrategy.newBuilder((io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_)
.mergeFrom(value).buildPartial();
} else {
schedulingStrategy_ = value;
}
onChanged();
} else {
if (schedulingStrategyCase_ == 1) {
defaultSchedulingStrategyBuilder_.mergeFrom(value);
}
defaultSchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 1;
return this;
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
public Builder clearDefaultSchedulingStrategy() {
if (defaultSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 1) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
onChanged();
}
} else {
if (schedulingStrategyCase_ == 1) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
}
defaultSchedulingStrategyBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
public io.ray.runtime.generated.Common.DefaultSchedulingStrategy.Builder getDefaultSchedulingStrategyBuilder() {
return getDefaultSchedulingStrategyFieldBuilder().getBuilder();
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.DefaultSchedulingStrategyOrBuilder getDefaultSchedulingStrategyOrBuilder() {
if ((schedulingStrategyCase_ == 1) && (defaultSchedulingStrategyBuilder_ != null)) {
return defaultSchedulingStrategyBuilder_.getMessageOrBuilder();
} else {
if (schedulingStrategyCase_ == 1) {
return (io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.DefaultSchedulingStrategy default_scheduling_strategy = 1 [json_name = "defaultSchedulingStrategy"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.DefaultSchedulingStrategy, io.ray.runtime.generated.Common.DefaultSchedulingStrategy.Builder, io.ray.runtime.generated.Common.DefaultSchedulingStrategyOrBuilder>
getDefaultSchedulingStrategyFieldBuilder() {
if (defaultSchedulingStrategyBuilder_ == null) {
if (!(schedulingStrategyCase_ == 1)) {
schedulingStrategy_ = io.ray.runtime.generated.Common.DefaultSchedulingStrategy.getDefaultInstance();
}
defaultSchedulingStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.DefaultSchedulingStrategy, io.ray.runtime.generated.Common.DefaultSchedulingStrategy.Builder, io.ray.runtime.generated.Common.DefaultSchedulingStrategyOrBuilder>(
(io.ray.runtime.generated.Common.DefaultSchedulingStrategy) schedulingStrategy_,
getParentForChildren(),
isClean());
schedulingStrategy_ = null;
}
schedulingStrategyCase_ = 1;
onChanged();;
return defaultSchedulingStrategyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy, io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.Builder, io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategyOrBuilder> placementGroupSchedulingStrategyBuilder_;
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
* @return Whether the placementGroupSchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasPlacementGroupSchedulingStrategy() {
return schedulingStrategyCase_ == 2;
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
* @return The placementGroupSchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy getPlacementGroupSchedulingStrategy() {
if (placementGroupSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 2) {
return (io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance();
} else {
if (schedulingStrategyCase_ == 2) {
return placementGroupSchedulingStrategyBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
public Builder setPlacementGroupSchedulingStrategy(io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy value) {
if (placementGroupSchedulingStrategyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulingStrategy_ = value;
onChanged();
} else {
placementGroupSchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 2;
return this;
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
public Builder setPlacementGroupSchedulingStrategy(
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.Builder builderForValue) {
if (placementGroupSchedulingStrategyBuilder_ == null) {
schedulingStrategy_ = builderForValue.build();
onChanged();
} else {
placementGroupSchedulingStrategyBuilder_.setMessage(builderForValue.build());
}
schedulingStrategyCase_ = 2;
return this;
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
public Builder mergePlacementGroupSchedulingStrategy(io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy value) {
if (placementGroupSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 2 &&
schedulingStrategy_ != io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance()) {
schedulingStrategy_ = io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.newBuilder((io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_)
.mergeFrom(value).buildPartial();
} else {
schedulingStrategy_ = value;
}
onChanged();
} else {
if (schedulingStrategyCase_ == 2) {
placementGroupSchedulingStrategyBuilder_.mergeFrom(value);
}
placementGroupSchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 2;
return this;
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
public Builder clearPlacementGroupSchedulingStrategy() {
if (placementGroupSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 2) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
onChanged();
}
} else {
if (schedulingStrategyCase_ == 2) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
}
placementGroupSchedulingStrategyBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
public io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.Builder getPlacementGroupSchedulingStrategyBuilder() {
return getPlacementGroupSchedulingStrategyFieldBuilder().getBuilder();
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategyOrBuilder getPlacementGroupSchedulingStrategyOrBuilder() {
if ((schedulingStrategyCase_ == 2) && (placementGroupSchedulingStrategyBuilder_ != null)) {
return placementGroupSchedulingStrategyBuilder_.getMessageOrBuilder();
} else {
if (schedulingStrategyCase_ == 2) {
return (io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.PlacementGroupSchedulingStrategy placement_group_scheduling_strategy = 2 [json_name = "placementGroupSchedulingStrategy"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy, io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.Builder, io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategyOrBuilder>
getPlacementGroupSchedulingStrategyFieldBuilder() {
if (placementGroupSchedulingStrategyBuilder_ == null) {
if (!(schedulingStrategyCase_ == 2)) {
schedulingStrategy_ = io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.getDefaultInstance();
}
placementGroupSchedulingStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy, io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy.Builder, io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategyOrBuilder>(
(io.ray.runtime.generated.Common.PlacementGroupSchedulingStrategy) schedulingStrategy_,
getParentForChildren(),
isClean());
schedulingStrategy_ = null;
}
schedulingStrategyCase_ = 2;
onChanged();;
return placementGroupSchedulingStrategyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.SpreadSchedulingStrategy, io.ray.runtime.generated.Common.SpreadSchedulingStrategy.Builder, io.ray.runtime.generated.Common.SpreadSchedulingStrategyOrBuilder> spreadSchedulingStrategyBuilder_;
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
* @return Whether the spreadSchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasSpreadSchedulingStrategy() {
return schedulingStrategyCase_ == 3;
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
* @return The spreadSchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.SpreadSchedulingStrategy getSpreadSchedulingStrategy() {
if (spreadSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 3) {
return (io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance();
} else {
if (schedulingStrategyCase_ == 3) {
return spreadSchedulingStrategyBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
public Builder setSpreadSchedulingStrategy(io.ray.runtime.generated.Common.SpreadSchedulingStrategy value) {
if (spreadSchedulingStrategyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulingStrategy_ = value;
onChanged();
} else {
spreadSchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 3;
return this;
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
public Builder setSpreadSchedulingStrategy(
io.ray.runtime.generated.Common.SpreadSchedulingStrategy.Builder builderForValue) {
if (spreadSchedulingStrategyBuilder_ == null) {
schedulingStrategy_ = builderForValue.build();
onChanged();
} else {
spreadSchedulingStrategyBuilder_.setMessage(builderForValue.build());
}
schedulingStrategyCase_ = 3;
return this;
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
public Builder mergeSpreadSchedulingStrategy(io.ray.runtime.generated.Common.SpreadSchedulingStrategy value) {
if (spreadSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 3 &&
schedulingStrategy_ != io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance()) {
schedulingStrategy_ = io.ray.runtime.generated.Common.SpreadSchedulingStrategy.newBuilder((io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_)
.mergeFrom(value).buildPartial();
} else {
schedulingStrategy_ = value;
}
onChanged();
} else {
if (schedulingStrategyCase_ == 3) {
spreadSchedulingStrategyBuilder_.mergeFrom(value);
}
spreadSchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 3;
return this;
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
public Builder clearSpreadSchedulingStrategy() {
if (spreadSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 3) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
onChanged();
}
} else {
if (schedulingStrategyCase_ == 3) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
}
spreadSchedulingStrategyBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
public io.ray.runtime.generated.Common.SpreadSchedulingStrategy.Builder getSpreadSchedulingStrategyBuilder() {
return getSpreadSchedulingStrategyFieldBuilder().getBuilder();
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.SpreadSchedulingStrategyOrBuilder getSpreadSchedulingStrategyOrBuilder() {
if ((schedulingStrategyCase_ == 3) && (spreadSchedulingStrategyBuilder_ != null)) {
return spreadSchedulingStrategyBuilder_.getMessageOrBuilder();
} else {
if (schedulingStrategyCase_ == 3) {
return (io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.SpreadSchedulingStrategy spread_scheduling_strategy = 3 [json_name = "spreadSchedulingStrategy"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.SpreadSchedulingStrategy, io.ray.runtime.generated.Common.SpreadSchedulingStrategy.Builder, io.ray.runtime.generated.Common.SpreadSchedulingStrategyOrBuilder>
getSpreadSchedulingStrategyFieldBuilder() {
if (spreadSchedulingStrategyBuilder_ == null) {
if (!(schedulingStrategyCase_ == 3)) {
schedulingStrategy_ = io.ray.runtime.generated.Common.SpreadSchedulingStrategy.getDefaultInstance();
}
spreadSchedulingStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.SpreadSchedulingStrategy, io.ray.runtime.generated.Common.SpreadSchedulingStrategy.Builder, io.ray.runtime.generated.Common.SpreadSchedulingStrategyOrBuilder>(
(io.ray.runtime.generated.Common.SpreadSchedulingStrategy) schedulingStrategy_,
getParentForChildren(),
isClean());
schedulingStrategy_ = null;
}
schedulingStrategyCase_ = 3;
onChanged();;
return spreadSchedulingStrategyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy, io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.Builder, io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategyOrBuilder> nodeAffinitySchedulingStrategyBuilder_;
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
* @return Whether the nodeAffinitySchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasNodeAffinitySchedulingStrategy() {
return schedulingStrategyCase_ == 4;
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
* @return The nodeAffinitySchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy getNodeAffinitySchedulingStrategy() {
if (nodeAffinitySchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 4) {
return (io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance();
} else {
if (schedulingStrategyCase_ == 4) {
return nodeAffinitySchedulingStrategyBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
public Builder setNodeAffinitySchedulingStrategy(io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy value) {
if (nodeAffinitySchedulingStrategyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulingStrategy_ = value;
onChanged();
} else {
nodeAffinitySchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 4;
return this;
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
public Builder setNodeAffinitySchedulingStrategy(
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.Builder builderForValue) {
if (nodeAffinitySchedulingStrategyBuilder_ == null) {
schedulingStrategy_ = builderForValue.build();
onChanged();
} else {
nodeAffinitySchedulingStrategyBuilder_.setMessage(builderForValue.build());
}
schedulingStrategyCase_ = 4;
return this;
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
public Builder mergeNodeAffinitySchedulingStrategy(io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy value) {
if (nodeAffinitySchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 4 &&
schedulingStrategy_ != io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance()) {
schedulingStrategy_ = io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.newBuilder((io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_)
.mergeFrom(value).buildPartial();
} else {
schedulingStrategy_ = value;
}
onChanged();
} else {
if (schedulingStrategyCase_ == 4) {
nodeAffinitySchedulingStrategyBuilder_.mergeFrom(value);
}
nodeAffinitySchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 4;
return this;
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
public Builder clearNodeAffinitySchedulingStrategy() {
if (nodeAffinitySchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 4) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
onChanged();
}
} else {
if (schedulingStrategyCase_ == 4) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
}
nodeAffinitySchedulingStrategyBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
public io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.Builder getNodeAffinitySchedulingStrategyBuilder() {
return getNodeAffinitySchedulingStrategyFieldBuilder().getBuilder();
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategyOrBuilder getNodeAffinitySchedulingStrategyOrBuilder() {
if ((schedulingStrategyCase_ == 4) && (nodeAffinitySchedulingStrategyBuilder_ != null)) {
return nodeAffinitySchedulingStrategyBuilder_.getMessageOrBuilder();
} else {
if (schedulingStrategyCase_ == 4) {
return (io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.NodeAffinitySchedulingStrategy node_affinity_scheduling_strategy = 4 [json_name = "nodeAffinitySchedulingStrategy"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy, io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.Builder, io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategyOrBuilder>
getNodeAffinitySchedulingStrategyFieldBuilder() {
if (nodeAffinitySchedulingStrategyBuilder_ == null) {
if (!(schedulingStrategyCase_ == 4)) {
schedulingStrategy_ = io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.getDefaultInstance();
}
nodeAffinitySchedulingStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy, io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy.Builder, io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategyOrBuilder>(
(io.ray.runtime.generated.Common.NodeAffinitySchedulingStrategy) schedulingStrategy_,
getParentForChildren(),
isClean());
schedulingStrategy_ = null;
}
schedulingStrategyCase_ = 4;
onChanged();;
return nodeAffinitySchedulingStrategyBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy, io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.Builder, io.ray.runtime.generated.Common.NodeLabelSchedulingStrategyOrBuilder> nodeLabelSchedulingStrategyBuilder_;
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
* @return Whether the nodeLabelSchedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasNodeLabelSchedulingStrategy() {
return schedulingStrategyCase_ == 5;
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
* @return The nodeLabelSchedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy getNodeLabelSchedulingStrategy() {
if (nodeLabelSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 5) {
return (io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance();
} else {
if (schedulingStrategyCase_ == 5) {
return nodeLabelSchedulingStrategyBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
public Builder setNodeLabelSchedulingStrategy(io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy value) {
if (nodeLabelSchedulingStrategyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
schedulingStrategy_ = value;
onChanged();
} else {
nodeLabelSchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 5;
return this;
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
public Builder setNodeLabelSchedulingStrategy(
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.Builder builderForValue) {
if (nodeLabelSchedulingStrategyBuilder_ == null) {
schedulingStrategy_ = builderForValue.build();
onChanged();
} else {
nodeLabelSchedulingStrategyBuilder_.setMessage(builderForValue.build());
}
schedulingStrategyCase_ = 5;
return this;
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
public Builder mergeNodeLabelSchedulingStrategy(io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy value) {
if (nodeLabelSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 5 &&
schedulingStrategy_ != io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance()) {
schedulingStrategy_ = io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.newBuilder((io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_)
.mergeFrom(value).buildPartial();
} else {
schedulingStrategy_ = value;
}
onChanged();
} else {
if (schedulingStrategyCase_ == 5) {
nodeLabelSchedulingStrategyBuilder_.mergeFrom(value);
}
nodeLabelSchedulingStrategyBuilder_.setMessage(value);
}
schedulingStrategyCase_ = 5;
return this;
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
public Builder clearNodeLabelSchedulingStrategy() {
if (nodeLabelSchedulingStrategyBuilder_ == null) {
if (schedulingStrategyCase_ == 5) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
onChanged();
}
} else {
if (schedulingStrategyCase_ == 5) {
schedulingStrategyCase_ = 0;
schedulingStrategy_ = null;
}
nodeLabelSchedulingStrategyBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
public io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.Builder getNodeLabelSchedulingStrategyBuilder() {
return getNodeLabelSchedulingStrategyFieldBuilder().getBuilder();
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeLabelSchedulingStrategyOrBuilder getNodeLabelSchedulingStrategyOrBuilder() {
if ((schedulingStrategyCase_ == 5) && (nodeLabelSchedulingStrategyBuilder_ != null)) {
return nodeLabelSchedulingStrategyBuilder_.getMessageOrBuilder();
} else {
if (schedulingStrategyCase_ == 5) {
return (io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_;
}
return io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance();
}
}
/**
* .ray.rpc.NodeLabelSchedulingStrategy node_label_scheduling_strategy = 5 [json_name = "nodeLabelSchedulingStrategy"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy, io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.Builder, io.ray.runtime.generated.Common.NodeLabelSchedulingStrategyOrBuilder>
getNodeLabelSchedulingStrategyFieldBuilder() {
if (nodeLabelSchedulingStrategyBuilder_ == null) {
if (!(schedulingStrategyCase_ == 5)) {
schedulingStrategy_ = io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.getDefaultInstance();
}
nodeLabelSchedulingStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy, io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy.Builder, io.ray.runtime.generated.Common.NodeLabelSchedulingStrategyOrBuilder>(
(io.ray.runtime.generated.Common.NodeLabelSchedulingStrategy) schedulingStrategy_,
getParentForChildren(),
isClean());
schedulingStrategy_ = null;
}
schedulingStrategyCase_ = 5;
onChanged();;
return nodeLabelSchedulingStrategyBuilder_;
}
@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.rpc.SchedulingStrategy)
}
// @@protoc_insertion_point(class_scope:ray.rpc.SchedulingStrategy)
private static final io.ray.runtime.generated.Common.SchedulingStrategy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.SchedulingStrategy();
}
public static io.ray.runtime.generated.Common.SchedulingStrategy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SchedulingStrategy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SchedulingStrategy(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.runtime.generated.Common.SchedulingStrategy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.Address)
com.google.protobuf.MessageOrBuilder {
/**
* bytes raylet_id = 1 [json_name = "rayletId"];
* @return The rayletId.
*/
com.google.protobuf.ByteString getRayletId();
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @return The ipAddress.
*/
java.lang.String getIpAddress();
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @return The bytes for ipAddress.
*/
com.google.protobuf.ByteString
getIpAddressBytes();
/**
* int32 port = 3 [json_name = "port"];
* @return The port.
*/
int getPort();
/**
* bytes worker_id = 4 [json_name = "workerId"];
* @return The workerId.
*/
com.google.protobuf.ByteString getWorkerId();
}
/**
* Protobuf type {@code ray.rpc.Address}
*/
public static final class Address extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.Address)
AddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use Address.newBuilder() to construct.
private Address(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Address() {
rayletId_ = com.google.protobuf.ByteString.EMPTY;
ipAddress_ = "";
workerId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Address();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Address(
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: {
rayletId_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ipAddress_ = s;
break;
}
case 24: {
port_ = input.readInt32();
break;
}
case 34: {
workerId_ = input.readBytes();
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.runtime.generated.Common.internal_static_ray_rpc_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.Address.class, io.ray.runtime.generated.Common.Address.Builder.class);
}
public static final int RAYLET_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString rayletId_;
/**
* bytes raylet_id = 1 [json_name = "rayletId"];
* @return The rayletId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRayletId() {
return rayletId_;
}
public static final int IP_ADDRESS_FIELD_NUMBER = 2;
private volatile java.lang.Object ipAddress_;
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @return The ipAddress.
*/
@java.lang.Override
public java.lang.String getIpAddress() {
java.lang.Object ref = ipAddress_;
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();
ipAddress_ = s;
return s;
}
}
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @return The bytes for ipAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIpAddressBytes() {
java.lang.Object ref = ipAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ipAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 3;
private int port_;
/**
* int32 port = 3 [json_name = "port"];
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
public static final int WORKER_ID_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString workerId_;
/**
* bytes worker_id = 4 [json_name = "workerId"];
* @return The workerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getWorkerId() {
return workerId_;
}
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 (!rayletId_.isEmpty()) {
output.writeBytes(1, rayletId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipAddress_);
}
if (port_ != 0) {
output.writeInt32(3, port_);
}
if (!workerId_.isEmpty()) {
output.writeBytes(4, workerId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!rayletId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, rayletId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipAddress_);
}
if (port_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, port_);
}
if (!workerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, workerId_);
}
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.runtime.generated.Common.Address)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.Address other = (io.ray.runtime.generated.Common.Address) obj;
if (!getRayletId()
.equals(other.getRayletId())) return false;
if (!getIpAddress()
.equals(other.getIpAddress())) return false;
if (getPort()
!= other.getPort()) return false;
if (!getWorkerId()
.equals(other.getWorkerId())) 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) + RAYLET_ID_FIELD_NUMBER;
hash = (53 * hash) + getRayletId().hashCode();
hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getIpAddress().hashCode();
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort();
hash = (37 * hash) + WORKER_ID_FIELD_NUMBER;
hash = (53 * hash) + getWorkerId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.Address parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.Address parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.Address parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.Address 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.runtime.generated.Common.Address parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.Address parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.Address parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.Address 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.runtime.generated.Common.Address parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.Address 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.runtime.generated.Common.Address parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.Address 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.runtime.generated.Common.Address 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.rpc.Address}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.Address)
io.ray.runtime.generated.Common.AddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.Address.class, io.ray.runtime.generated.Common.Address.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.Address.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();
rayletId_ = com.google.protobuf.ByteString.EMPTY;
ipAddress_ = "";
port_ = 0;
workerId_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_Address_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.Address getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.Address.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.Address build() {
io.ray.runtime.generated.Common.Address result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.Address buildPartial() {
io.ray.runtime.generated.Common.Address result = new io.ray.runtime.generated.Common.Address(this);
result.rayletId_ = rayletId_;
result.ipAddress_ = ipAddress_;
result.port_ = port_;
result.workerId_ = workerId_;
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.runtime.generated.Common.Address) {
return mergeFrom((io.ray.runtime.generated.Common.Address)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.Address other) {
if (other == io.ray.runtime.generated.Common.Address.getDefaultInstance()) return this;
if (other.getRayletId() != com.google.protobuf.ByteString.EMPTY) {
setRayletId(other.getRayletId());
}
if (!other.getIpAddress().isEmpty()) {
ipAddress_ = other.ipAddress_;
onChanged();
}
if (other.getPort() != 0) {
setPort(other.getPort());
}
if (other.getWorkerId() != com.google.protobuf.ByteString.EMPTY) {
setWorkerId(other.getWorkerId());
}
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.runtime.generated.Common.Address parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.Address) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString rayletId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes raylet_id = 1 [json_name = "rayletId"];
* @return The rayletId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRayletId() {
return rayletId_;
}
/**
* bytes raylet_id = 1 [json_name = "rayletId"];
* @param value The rayletId to set.
* @return This builder for chaining.
*/
public Builder setRayletId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
rayletId_ = value;
onChanged();
return this;
}
/**
* bytes raylet_id = 1 [json_name = "rayletId"];
* @return This builder for chaining.
*/
public Builder clearRayletId() {
rayletId_ = getDefaultInstance().getRayletId();
onChanged();
return this;
}
private java.lang.Object ipAddress_ = "";
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @return The ipAddress.
*/
public java.lang.String getIpAddress() {
java.lang.Object ref = ipAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ipAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @return The bytes for ipAddress.
*/
public com.google.protobuf.ByteString
getIpAddressBytes() {
java.lang.Object ref = ipAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ipAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @param value The ipAddress to set.
* @return This builder for chaining.
*/
public Builder setIpAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ipAddress_ = value;
onChanged();
return this;
}
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @return This builder for chaining.
*/
public Builder clearIpAddress() {
ipAddress_ = getDefaultInstance().getIpAddress();
onChanged();
return this;
}
/**
* string ip_address = 2 [json_name = "ipAddress"];
* @param value The bytes for ipAddress to set.
* @return This builder for chaining.
*/
public Builder setIpAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ipAddress_ = value;
onChanged();
return this;
}
private int port_ ;
/**
* int32 port = 3 [json_name = "port"];
* @return The port.
*/
@java.lang.Override
public int getPort() {
return port_;
}
/**
* int32 port = 3 [json_name = "port"];
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(int value) {
port_ = value;
onChanged();
return this;
}
/**
* int32 port = 3 [json_name = "port"];
* @return This builder for chaining.
*/
public Builder clearPort() {
port_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString workerId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes worker_id = 4 [json_name = "workerId"];
* @return The workerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getWorkerId() {
return workerId_;
}
/**
* bytes worker_id = 4 [json_name = "workerId"];
* @param value The workerId to set.
* @return This builder for chaining.
*/
public Builder setWorkerId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
workerId_ = value;
onChanged();
return this;
}
/**
* bytes worker_id = 4 [json_name = "workerId"];
* @return This builder for chaining.
*/
public Builder clearWorkerId() {
workerId_ = getDefaultInstance().getWorkerId();
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.rpc.Address)
}
// @@protoc_insertion_point(class_scope:ray.rpc.Address)
private static final io.ray.runtime.generated.Common.Address DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.Address();
}
public static io.ray.runtime.generated.Common.Address getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Address parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Address(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.runtime.generated.Common.Address getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JavaFunctionDescriptorOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.JavaFunctionDescriptor)
com.google.protobuf.MessageOrBuilder {
/**
* string class_name = 1 [json_name = "className"];
* @return The className.
*/
java.lang.String getClassName();
/**
* string class_name = 1 [json_name = "className"];
* @return The bytes for className.
*/
com.google.protobuf.ByteString
getClassNameBytes();
/**
* string function_name = 2 [json_name = "functionName"];
* @return The functionName.
*/
java.lang.String getFunctionName();
/**
* string function_name = 2 [json_name = "functionName"];
* @return The bytes for functionName.
*/
com.google.protobuf.ByteString
getFunctionNameBytes();
/**
* string signature = 3 [json_name = "signature"];
* @return The signature.
*/
java.lang.String getSignature();
/**
* string signature = 3 [json_name = "signature"];
* @return The bytes for signature.
*/
com.google.protobuf.ByteString
getSignatureBytes();
}
/**
* Protobuf type {@code ray.rpc.JavaFunctionDescriptor}
*/
public static final class JavaFunctionDescriptor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.JavaFunctionDescriptor)
JavaFunctionDescriptorOrBuilder {
private static final long serialVersionUID = 0L;
// Use JavaFunctionDescriptor.newBuilder() to construct.
private JavaFunctionDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private JavaFunctionDescriptor() {
className_ = "";
functionName_ = "";
signature_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new JavaFunctionDescriptor();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private JavaFunctionDescriptor(
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();
className_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
functionName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
signature_ = 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.runtime.generated.Common.internal_static_ray_rpc_JavaFunctionDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JavaFunctionDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.JavaFunctionDescriptor.class, io.ray.runtime.generated.Common.JavaFunctionDescriptor.Builder.class);
}
public static final int CLASS_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object className_;
/**
* string class_name = 1 [json_name = "className"];
* @return The className.
*/
@java.lang.Override
public java.lang.String getClassName() {
java.lang.Object ref = className_;
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();
className_ = s;
return s;
}
}
/**
* string class_name = 1 [json_name = "className"];
* @return The bytes for className.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FUNCTION_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object functionName_;
/**
* string function_name = 2 [json_name = "functionName"];
* @return The functionName.
*/
@java.lang.Override
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
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();
functionName_ = s;
return s;
}
}
/**
* string function_name = 2 [json_name = "functionName"];
* @return The bytes for functionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SIGNATURE_FIELD_NUMBER = 3;
private volatile java.lang.Object signature_;
/**
* string signature = 3 [json_name = "signature"];
* @return The signature.
*/
@java.lang.Override
public java.lang.String getSignature() {
java.lang.Object ref = signature_;
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();
signature_ = s;
return s;
}
}
/**
* string signature = 3 [json_name = "signature"];
* @return The bytes for signature.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSignatureBytes() {
java.lang.Object ref = signature_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signature_ = 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(className_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, className_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, functionName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, signature_);
}
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(className_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, className_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, functionName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signature_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, signature_);
}
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.runtime.generated.Common.JavaFunctionDescriptor)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.JavaFunctionDescriptor other = (io.ray.runtime.generated.Common.JavaFunctionDescriptor) obj;
if (!getClassName()
.equals(other.getClassName())) return false;
if (!getFunctionName()
.equals(other.getFunctionName())) return false;
if (!getSignature()
.equals(other.getSignature())) 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) + CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClassName().hashCode();
hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFunctionName().hashCode();
hash = (37 * hash) + SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getSignature().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor 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.runtime.generated.Common.JavaFunctionDescriptor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor 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.runtime.generated.Common.JavaFunctionDescriptor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor 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.runtime.generated.Common.JavaFunctionDescriptor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor 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.runtime.generated.Common.JavaFunctionDescriptor 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.rpc.JavaFunctionDescriptor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.JavaFunctionDescriptor)
io.ray.runtime.generated.Common.JavaFunctionDescriptorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JavaFunctionDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JavaFunctionDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.JavaFunctionDescriptor.class, io.ray.runtime.generated.Common.JavaFunctionDescriptor.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.JavaFunctionDescriptor.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();
className_ = "";
functionName_ = "";
signature_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JavaFunctionDescriptor_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.JavaFunctionDescriptor getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.JavaFunctionDescriptor build() {
io.ray.runtime.generated.Common.JavaFunctionDescriptor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.JavaFunctionDescriptor buildPartial() {
io.ray.runtime.generated.Common.JavaFunctionDescriptor result = new io.ray.runtime.generated.Common.JavaFunctionDescriptor(this);
result.className_ = className_;
result.functionName_ = functionName_;
result.signature_ = signature_;
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.runtime.generated.Common.JavaFunctionDescriptor) {
return mergeFrom((io.ray.runtime.generated.Common.JavaFunctionDescriptor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.JavaFunctionDescriptor other) {
if (other == io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance()) return this;
if (!other.getClassName().isEmpty()) {
className_ = other.className_;
onChanged();
}
if (!other.getFunctionName().isEmpty()) {
functionName_ = other.functionName_;
onChanged();
}
if (!other.getSignature().isEmpty()) {
signature_ = other.signature_;
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.runtime.generated.Common.JavaFunctionDescriptor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.JavaFunctionDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object className_ = "";
/**
* string class_name = 1 [json_name = "className"];
* @return The className.
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
className_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string class_name = 1 [json_name = "className"];
* @return The bytes for className.
*/
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string class_name = 1 [json_name = "className"];
* @param value The className to set.
* @return This builder for chaining.
*/
public Builder setClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
className_ = value;
onChanged();
return this;
}
/**
* string class_name = 1 [json_name = "className"];
* @return This builder for chaining.
*/
public Builder clearClassName() {
className_ = getDefaultInstance().getClassName();
onChanged();
return this;
}
/**
* string class_name = 1 [json_name = "className"];
* @param value The bytes for className to set.
* @return This builder for chaining.
*/
public Builder setClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
className_ = value;
onChanged();
return this;
}
private java.lang.Object functionName_ = "";
/**
* string function_name = 2 [json_name = "functionName"];
* @return The functionName.
*/
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
functionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string function_name = 2 [json_name = "functionName"];
* @return The bytes for functionName.
*/
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string function_name = 2 [json_name = "functionName"];
* @param value The functionName to set.
* @return This builder for chaining.
*/
public Builder setFunctionName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
functionName_ = value;
onChanged();
return this;
}
/**
* string function_name = 2 [json_name = "functionName"];
* @return This builder for chaining.
*/
public Builder clearFunctionName() {
functionName_ = getDefaultInstance().getFunctionName();
onChanged();
return this;
}
/**
* string function_name = 2 [json_name = "functionName"];
* @param value The bytes for functionName to set.
* @return This builder for chaining.
*/
public Builder setFunctionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
functionName_ = value;
onChanged();
return this;
}
private java.lang.Object signature_ = "";
/**
* string signature = 3 [json_name = "signature"];
* @return The signature.
*/
public java.lang.String getSignature() {
java.lang.Object ref = signature_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
signature_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string signature = 3 [json_name = "signature"];
* @return The bytes for signature.
*/
public com.google.protobuf.ByteString
getSignatureBytes() {
java.lang.Object ref = signature_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
signature_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string signature = 3 [json_name = "signature"];
* @param value The signature to set.
* @return This builder for chaining.
*/
public Builder setSignature(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
signature_ = value;
onChanged();
return this;
}
/**
* string signature = 3 [json_name = "signature"];
* @return This builder for chaining.
*/
public Builder clearSignature() {
signature_ = getDefaultInstance().getSignature();
onChanged();
return this;
}
/**
* string signature = 3 [json_name = "signature"];
* @param value The bytes for signature to set.
* @return This builder for chaining.
*/
public Builder setSignatureBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
signature_ = 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.rpc.JavaFunctionDescriptor)
}
// @@protoc_insertion_point(class_scope:ray.rpc.JavaFunctionDescriptor)
private static final io.ray.runtime.generated.Common.JavaFunctionDescriptor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.JavaFunctionDescriptor();
}
public static io.ray.runtime.generated.Common.JavaFunctionDescriptor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JavaFunctionDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new JavaFunctionDescriptor(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.runtime.generated.Common.JavaFunctionDescriptor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PythonFunctionDescriptorOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.PythonFunctionDescriptor)
com.google.protobuf.MessageOrBuilder {
/**
* string module_name = 1 [json_name = "moduleName"];
* @return The moduleName.
*/
java.lang.String getModuleName();
/**
* string module_name = 1 [json_name = "moduleName"];
* @return The bytes for moduleName.
*/
com.google.protobuf.ByteString
getModuleNameBytes();
/**
* string class_name = 2 [json_name = "className"];
* @return The className.
*/
java.lang.String getClassName();
/**
* string class_name = 2 [json_name = "className"];
* @return The bytes for className.
*/
com.google.protobuf.ByteString
getClassNameBytes();
/**
* string function_name = 3 [json_name = "functionName"];
* @return The functionName.
*/
java.lang.String getFunctionName();
/**
* string function_name = 3 [json_name = "functionName"];
* @return The bytes for functionName.
*/
com.google.protobuf.ByteString
getFunctionNameBytes();
/**
* string function_hash = 4 [json_name = "functionHash"];
* @return The functionHash.
*/
java.lang.String getFunctionHash();
/**
* string function_hash = 4 [json_name = "functionHash"];
* @return The bytes for functionHash.
*/
com.google.protobuf.ByteString
getFunctionHashBytes();
}
/**
* Protobuf type {@code ray.rpc.PythonFunctionDescriptor}
*/
public static final class PythonFunctionDescriptor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.PythonFunctionDescriptor)
PythonFunctionDescriptorOrBuilder {
private static final long serialVersionUID = 0L;
// Use PythonFunctionDescriptor.newBuilder() to construct.
private PythonFunctionDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private PythonFunctionDescriptor() {
moduleName_ = "";
className_ = "";
functionName_ = "";
functionHash_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PythonFunctionDescriptor();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PythonFunctionDescriptor(
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();
moduleName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
className_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
functionName_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
functionHash_ = 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.runtime.generated.Common.internal_static_ray_rpc_PythonFunctionDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_PythonFunctionDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.PythonFunctionDescriptor.class, io.ray.runtime.generated.Common.PythonFunctionDescriptor.Builder.class);
}
public static final int MODULE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object moduleName_;
/**
* string module_name = 1 [json_name = "moduleName"];
* @return The moduleName.
*/
@java.lang.Override
public java.lang.String getModuleName() {
java.lang.Object ref = moduleName_;
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();
moduleName_ = s;
return s;
}
}
/**
* string module_name = 1 [json_name = "moduleName"];
* @return The bytes for moduleName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getModuleNameBytes() {
java.lang.Object ref = moduleName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
moduleName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLASS_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object className_;
/**
* string class_name = 2 [json_name = "className"];
* @return The className.
*/
@java.lang.Override
public java.lang.String getClassName() {
java.lang.Object ref = className_;
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();
className_ = s;
return s;
}
}
/**
* string class_name = 2 [json_name = "className"];
* @return The bytes for className.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FUNCTION_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object functionName_;
/**
* string function_name = 3 [json_name = "functionName"];
* @return The functionName.
*/
@java.lang.Override
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
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();
functionName_ = s;
return s;
}
}
/**
* string function_name = 3 [json_name = "functionName"];
* @return The bytes for functionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FUNCTION_HASH_FIELD_NUMBER = 4;
private volatile java.lang.Object functionHash_;
/**
* string function_hash = 4 [json_name = "functionHash"];
* @return The functionHash.
*/
@java.lang.Override
public java.lang.String getFunctionHash() {
java.lang.Object ref = functionHash_;
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();
functionHash_ = s;
return s;
}
}
/**
* string function_hash = 4 [json_name = "functionHash"];
* @return The bytes for functionHash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFunctionHashBytes() {
java.lang.Object ref = functionHash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionHash_ = 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(moduleName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, moduleName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, className_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, functionName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionHash_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, functionHash_);
}
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(moduleName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, moduleName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, className_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, functionName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(functionHash_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, functionHash_);
}
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.runtime.generated.Common.PythonFunctionDescriptor)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.PythonFunctionDescriptor other = (io.ray.runtime.generated.Common.PythonFunctionDescriptor) obj;
if (!getModuleName()
.equals(other.getModuleName())) return false;
if (!getClassName()
.equals(other.getClassName())) return false;
if (!getFunctionName()
.equals(other.getFunctionName())) return false;
if (!getFunctionHash()
.equals(other.getFunctionHash())) 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) + MODULE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getModuleName().hashCode();
hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClassName().hashCode();
hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFunctionName().hashCode();
hash = (37 * hash) + FUNCTION_HASH_FIELD_NUMBER;
hash = (53 * hash) + getFunctionHash().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor 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.runtime.generated.Common.PythonFunctionDescriptor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor 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.runtime.generated.Common.PythonFunctionDescriptor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor 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.runtime.generated.Common.PythonFunctionDescriptor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor 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.runtime.generated.Common.PythonFunctionDescriptor 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.rpc.PythonFunctionDescriptor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.PythonFunctionDescriptor)
io.ray.runtime.generated.Common.PythonFunctionDescriptorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_PythonFunctionDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_PythonFunctionDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.PythonFunctionDescriptor.class, io.ray.runtime.generated.Common.PythonFunctionDescriptor.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.PythonFunctionDescriptor.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();
moduleName_ = "";
className_ = "";
functionName_ = "";
functionHash_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_PythonFunctionDescriptor_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.PythonFunctionDescriptor getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.PythonFunctionDescriptor build() {
io.ray.runtime.generated.Common.PythonFunctionDescriptor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.PythonFunctionDescriptor buildPartial() {
io.ray.runtime.generated.Common.PythonFunctionDescriptor result = new io.ray.runtime.generated.Common.PythonFunctionDescriptor(this);
result.moduleName_ = moduleName_;
result.className_ = className_;
result.functionName_ = functionName_;
result.functionHash_ = functionHash_;
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.runtime.generated.Common.PythonFunctionDescriptor) {
return mergeFrom((io.ray.runtime.generated.Common.PythonFunctionDescriptor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.PythonFunctionDescriptor other) {
if (other == io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance()) return this;
if (!other.getModuleName().isEmpty()) {
moduleName_ = other.moduleName_;
onChanged();
}
if (!other.getClassName().isEmpty()) {
className_ = other.className_;
onChanged();
}
if (!other.getFunctionName().isEmpty()) {
functionName_ = other.functionName_;
onChanged();
}
if (!other.getFunctionHash().isEmpty()) {
functionHash_ = other.functionHash_;
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.runtime.generated.Common.PythonFunctionDescriptor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.PythonFunctionDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object moduleName_ = "";
/**
* string module_name = 1 [json_name = "moduleName"];
* @return The moduleName.
*/
public java.lang.String getModuleName() {
java.lang.Object ref = moduleName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
moduleName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string module_name = 1 [json_name = "moduleName"];
* @return The bytes for moduleName.
*/
public com.google.protobuf.ByteString
getModuleNameBytes() {
java.lang.Object ref = moduleName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
moduleName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string module_name = 1 [json_name = "moduleName"];
* @param value The moduleName to set.
* @return This builder for chaining.
*/
public Builder setModuleName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
moduleName_ = value;
onChanged();
return this;
}
/**
* string module_name = 1 [json_name = "moduleName"];
* @return This builder for chaining.
*/
public Builder clearModuleName() {
moduleName_ = getDefaultInstance().getModuleName();
onChanged();
return this;
}
/**
* string module_name = 1 [json_name = "moduleName"];
* @param value The bytes for moduleName to set.
* @return This builder for chaining.
*/
public Builder setModuleNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
moduleName_ = value;
onChanged();
return this;
}
private java.lang.Object className_ = "";
/**
* string class_name = 2 [json_name = "className"];
* @return The className.
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
className_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string class_name = 2 [json_name = "className"];
* @return The bytes for className.
*/
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string class_name = 2 [json_name = "className"];
* @param value The className to set.
* @return This builder for chaining.
*/
public Builder setClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
className_ = value;
onChanged();
return this;
}
/**
* string class_name = 2 [json_name = "className"];
* @return This builder for chaining.
*/
public Builder clearClassName() {
className_ = getDefaultInstance().getClassName();
onChanged();
return this;
}
/**
* string class_name = 2 [json_name = "className"];
* @param value The bytes for className to set.
* @return This builder for chaining.
*/
public Builder setClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
className_ = value;
onChanged();
return this;
}
private java.lang.Object functionName_ = "";
/**
* string function_name = 3 [json_name = "functionName"];
* @return The functionName.
*/
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
functionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string function_name = 3 [json_name = "functionName"];
* @return The bytes for functionName.
*/
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string function_name = 3 [json_name = "functionName"];
* @param value The functionName to set.
* @return This builder for chaining.
*/
public Builder setFunctionName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
functionName_ = value;
onChanged();
return this;
}
/**
* string function_name = 3 [json_name = "functionName"];
* @return This builder for chaining.
*/
public Builder clearFunctionName() {
functionName_ = getDefaultInstance().getFunctionName();
onChanged();
return this;
}
/**
* string function_name = 3 [json_name = "functionName"];
* @param value The bytes for functionName to set.
* @return This builder for chaining.
*/
public Builder setFunctionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
functionName_ = value;
onChanged();
return this;
}
private java.lang.Object functionHash_ = "";
/**
* string function_hash = 4 [json_name = "functionHash"];
* @return The functionHash.
*/
public java.lang.String getFunctionHash() {
java.lang.Object ref = functionHash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
functionHash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string function_hash = 4 [json_name = "functionHash"];
* @return The bytes for functionHash.
*/
public com.google.protobuf.ByteString
getFunctionHashBytes() {
java.lang.Object ref = functionHash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionHash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string function_hash = 4 [json_name = "functionHash"];
* @param value The functionHash to set.
* @return This builder for chaining.
*/
public Builder setFunctionHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
functionHash_ = value;
onChanged();
return this;
}
/**
* string function_hash = 4 [json_name = "functionHash"];
* @return This builder for chaining.
*/
public Builder clearFunctionHash() {
functionHash_ = getDefaultInstance().getFunctionHash();
onChanged();
return this;
}
/**
* string function_hash = 4 [json_name = "functionHash"];
* @param value The bytes for functionHash to set.
* @return This builder for chaining.
*/
public Builder setFunctionHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
functionHash_ = 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.rpc.PythonFunctionDescriptor)
}
// @@protoc_insertion_point(class_scope:ray.rpc.PythonFunctionDescriptor)
private static final io.ray.runtime.generated.Common.PythonFunctionDescriptor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.PythonFunctionDescriptor();
}
public static io.ray.runtime.generated.Common.PythonFunctionDescriptor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PythonFunctionDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PythonFunctionDescriptor(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.runtime.generated.Common.PythonFunctionDescriptor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CppFunctionDescriptorOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.CppFunctionDescriptor)
com.google.protobuf.MessageOrBuilder {
/**
* string function_name = 1 [json_name = "functionName"];
* @return The functionName.
*/
java.lang.String getFunctionName();
/**
* string function_name = 1 [json_name = "functionName"];
* @return The bytes for functionName.
*/
com.google.protobuf.ByteString
getFunctionNameBytes();
/**
* string caller = 2 [json_name = "caller"];
* @return The caller.
*/
java.lang.String getCaller();
/**
* string caller = 2 [json_name = "caller"];
* @return The bytes for caller.
*/
com.google.protobuf.ByteString
getCallerBytes();
/**
* string class_name = 3 [json_name = "className"];
* @return The className.
*/
java.lang.String getClassName();
/**
* string class_name = 3 [json_name = "className"];
* @return The bytes for className.
*/
com.google.protobuf.ByteString
getClassNameBytes();
}
/**
* Protobuf type {@code ray.rpc.CppFunctionDescriptor}
*/
public static final class CppFunctionDescriptor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.CppFunctionDescriptor)
CppFunctionDescriptorOrBuilder {
private static final long serialVersionUID = 0L;
// Use CppFunctionDescriptor.newBuilder() to construct.
private CppFunctionDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private CppFunctionDescriptor() {
functionName_ = "";
caller_ = "";
className_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CppFunctionDescriptor();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CppFunctionDescriptor(
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();
functionName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
caller_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
className_ = 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.runtime.generated.Common.internal_static_ray_rpc_CppFunctionDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_CppFunctionDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.CppFunctionDescriptor.class, io.ray.runtime.generated.Common.CppFunctionDescriptor.Builder.class);
}
public static final int FUNCTION_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object functionName_;
/**
* string function_name = 1 [json_name = "functionName"];
* @return The functionName.
*/
@java.lang.Override
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
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();
functionName_ = s;
return s;
}
}
/**
* string function_name = 1 [json_name = "functionName"];
* @return The bytes for functionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CALLER_FIELD_NUMBER = 2;
private volatile java.lang.Object caller_;
/**
* string caller = 2 [json_name = "caller"];
* @return The caller.
*/
@java.lang.Override
public java.lang.String getCaller() {
java.lang.Object ref = caller_;
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();
caller_ = s;
return s;
}
}
/**
* string caller = 2 [json_name = "caller"];
* @return The bytes for caller.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCallerBytes() {
java.lang.Object ref = caller_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
caller_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLASS_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object className_;
/**
* string class_name = 3 [json_name = "className"];
* @return The className.
*/
@java.lang.Override
public java.lang.String getClassName() {
java.lang.Object ref = className_;
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();
className_ = s;
return s;
}
}
/**
* string class_name = 3 [json_name = "className"];
* @return The bytes for className.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = 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(functionName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, functionName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caller_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, caller_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, className_);
}
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(functionName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, functionName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caller_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, caller_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, className_);
}
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.runtime.generated.Common.CppFunctionDescriptor)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.CppFunctionDescriptor other = (io.ray.runtime.generated.Common.CppFunctionDescriptor) obj;
if (!getFunctionName()
.equals(other.getFunctionName())) return false;
if (!getCaller()
.equals(other.getCaller())) return false;
if (!getClassName()
.equals(other.getClassName())) 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) + FUNCTION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getFunctionName().hashCode();
hash = (37 * hash) + CALLER_FIELD_NUMBER;
hash = (53 * hash) + getCaller().hashCode();
hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClassName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor 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.runtime.generated.Common.CppFunctionDescriptor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor 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.runtime.generated.Common.CppFunctionDescriptor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor 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.runtime.generated.Common.CppFunctionDescriptor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor 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.runtime.generated.Common.CppFunctionDescriptor 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.rpc.CppFunctionDescriptor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.CppFunctionDescriptor)
io.ray.runtime.generated.Common.CppFunctionDescriptorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_CppFunctionDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_CppFunctionDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.CppFunctionDescriptor.class, io.ray.runtime.generated.Common.CppFunctionDescriptor.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.CppFunctionDescriptor.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();
functionName_ = "";
caller_ = "";
className_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_CppFunctionDescriptor_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.CppFunctionDescriptor getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.CppFunctionDescriptor build() {
io.ray.runtime.generated.Common.CppFunctionDescriptor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.CppFunctionDescriptor buildPartial() {
io.ray.runtime.generated.Common.CppFunctionDescriptor result = new io.ray.runtime.generated.Common.CppFunctionDescriptor(this);
result.functionName_ = functionName_;
result.caller_ = caller_;
result.className_ = className_;
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.runtime.generated.Common.CppFunctionDescriptor) {
return mergeFrom((io.ray.runtime.generated.Common.CppFunctionDescriptor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.CppFunctionDescriptor other) {
if (other == io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance()) return this;
if (!other.getFunctionName().isEmpty()) {
functionName_ = other.functionName_;
onChanged();
}
if (!other.getCaller().isEmpty()) {
caller_ = other.caller_;
onChanged();
}
if (!other.getClassName().isEmpty()) {
className_ = other.className_;
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.runtime.generated.Common.CppFunctionDescriptor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.CppFunctionDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object functionName_ = "";
/**
* string function_name = 1 [json_name = "functionName"];
* @return The functionName.
*/
public java.lang.String getFunctionName() {
java.lang.Object ref = functionName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
functionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string function_name = 1 [json_name = "functionName"];
* @return The bytes for functionName.
*/
public com.google.protobuf.ByteString
getFunctionNameBytes() {
java.lang.Object ref = functionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
functionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string function_name = 1 [json_name = "functionName"];
* @param value The functionName to set.
* @return This builder for chaining.
*/
public Builder setFunctionName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
functionName_ = value;
onChanged();
return this;
}
/**
* string function_name = 1 [json_name = "functionName"];
* @return This builder for chaining.
*/
public Builder clearFunctionName() {
functionName_ = getDefaultInstance().getFunctionName();
onChanged();
return this;
}
/**
* string function_name = 1 [json_name = "functionName"];
* @param value The bytes for functionName to set.
* @return This builder for chaining.
*/
public Builder setFunctionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
functionName_ = value;
onChanged();
return this;
}
private java.lang.Object caller_ = "";
/**
* string caller = 2 [json_name = "caller"];
* @return The caller.
*/
public java.lang.String getCaller() {
java.lang.Object ref = caller_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
caller_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string caller = 2 [json_name = "caller"];
* @return The bytes for caller.
*/
public com.google.protobuf.ByteString
getCallerBytes() {
java.lang.Object ref = caller_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
caller_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string caller = 2 [json_name = "caller"];
* @param value The caller to set.
* @return This builder for chaining.
*/
public Builder setCaller(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
caller_ = value;
onChanged();
return this;
}
/**
* string caller = 2 [json_name = "caller"];
* @return This builder for chaining.
*/
public Builder clearCaller() {
caller_ = getDefaultInstance().getCaller();
onChanged();
return this;
}
/**
* string caller = 2 [json_name = "caller"];
* @param value The bytes for caller to set.
* @return This builder for chaining.
*/
public Builder setCallerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
caller_ = value;
onChanged();
return this;
}
private java.lang.Object className_ = "";
/**
* string class_name = 3 [json_name = "className"];
* @return The className.
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
className_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string class_name = 3 [json_name = "className"];
* @return The bytes for className.
*/
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string class_name = 3 [json_name = "className"];
* @param value The className to set.
* @return This builder for chaining.
*/
public Builder setClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
className_ = value;
onChanged();
return this;
}
/**
* string class_name = 3 [json_name = "className"];
* @return This builder for chaining.
*/
public Builder clearClassName() {
className_ = getDefaultInstance().getClassName();
onChanged();
return this;
}
/**
* string class_name = 3 [json_name = "className"];
* @param value The bytes for className to set.
* @return This builder for chaining.
*/
public Builder setClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
className_ = 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.rpc.CppFunctionDescriptor)
}
// @@protoc_insertion_point(class_scope:ray.rpc.CppFunctionDescriptor)
private static final io.ray.runtime.generated.Common.CppFunctionDescriptor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.CppFunctionDescriptor();
}
public static io.ray.runtime.generated.Common.CppFunctionDescriptor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CppFunctionDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CppFunctionDescriptor(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.runtime.generated.Common.CppFunctionDescriptor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FunctionDescriptorOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.FunctionDescriptor)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
* @return Whether the javaFunctionDescriptor field is set.
*/
boolean hasJavaFunctionDescriptor();
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
* @return The javaFunctionDescriptor.
*/
io.ray.runtime.generated.Common.JavaFunctionDescriptor getJavaFunctionDescriptor();
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
io.ray.runtime.generated.Common.JavaFunctionDescriptorOrBuilder getJavaFunctionDescriptorOrBuilder();
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
* @return Whether the pythonFunctionDescriptor field is set.
*/
boolean hasPythonFunctionDescriptor();
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
* @return The pythonFunctionDescriptor.
*/
io.ray.runtime.generated.Common.PythonFunctionDescriptor getPythonFunctionDescriptor();
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
io.ray.runtime.generated.Common.PythonFunctionDescriptorOrBuilder getPythonFunctionDescriptorOrBuilder();
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
* @return Whether the cppFunctionDescriptor field is set.
*/
boolean hasCppFunctionDescriptor();
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
* @return The cppFunctionDescriptor.
*/
io.ray.runtime.generated.Common.CppFunctionDescriptor getCppFunctionDescriptor();
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
io.ray.runtime.generated.Common.CppFunctionDescriptorOrBuilder getCppFunctionDescriptorOrBuilder();
public io.ray.runtime.generated.Common.FunctionDescriptor.FunctionDescriptorCase getFunctionDescriptorCase();
}
/**
* Protobuf type {@code ray.rpc.FunctionDescriptor}
*/
public static final class FunctionDescriptor extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.FunctionDescriptor)
FunctionDescriptorOrBuilder {
private static final long serialVersionUID = 0L;
// Use FunctionDescriptor.newBuilder() to construct.
private FunctionDescriptor(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private FunctionDescriptor() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FunctionDescriptor();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FunctionDescriptor(
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: {
io.ray.runtime.generated.Common.JavaFunctionDescriptor.Builder subBuilder = null;
if (functionDescriptorCase_ == 1) {
subBuilder = ((io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_).toBuilder();
}
functionDescriptor_ =
input.readMessage(io.ray.runtime.generated.Common.JavaFunctionDescriptor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_);
functionDescriptor_ = subBuilder.buildPartial();
}
functionDescriptorCase_ = 1;
break;
}
case 18: {
io.ray.runtime.generated.Common.PythonFunctionDescriptor.Builder subBuilder = null;
if (functionDescriptorCase_ == 2) {
subBuilder = ((io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_).toBuilder();
}
functionDescriptor_ =
input.readMessage(io.ray.runtime.generated.Common.PythonFunctionDescriptor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_);
functionDescriptor_ = subBuilder.buildPartial();
}
functionDescriptorCase_ = 2;
break;
}
case 26: {
io.ray.runtime.generated.Common.CppFunctionDescriptor.Builder subBuilder = null;
if (functionDescriptorCase_ == 3) {
subBuilder = ((io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_).toBuilder();
}
functionDescriptor_ =
input.readMessage(io.ray.runtime.generated.Common.CppFunctionDescriptor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_);
functionDescriptor_ = subBuilder.buildPartial();
}
functionDescriptorCase_ = 3;
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.runtime.generated.Common.internal_static_ray_rpc_FunctionDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_FunctionDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.FunctionDescriptor.class, io.ray.runtime.generated.Common.FunctionDescriptor.Builder.class);
}
private int functionDescriptorCase_ = 0;
private java.lang.Object functionDescriptor_;
public enum FunctionDescriptorCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
JAVA_FUNCTION_DESCRIPTOR(1),
PYTHON_FUNCTION_DESCRIPTOR(2),
CPP_FUNCTION_DESCRIPTOR(3),
FUNCTIONDESCRIPTOR_NOT_SET(0);
private final int value;
private FunctionDescriptorCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FunctionDescriptorCase valueOf(int value) {
return forNumber(value);
}
public static FunctionDescriptorCase forNumber(int value) {
switch (value) {
case 1: return JAVA_FUNCTION_DESCRIPTOR;
case 2: return PYTHON_FUNCTION_DESCRIPTOR;
case 3: return CPP_FUNCTION_DESCRIPTOR;
case 0: return FUNCTIONDESCRIPTOR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public FunctionDescriptorCase
getFunctionDescriptorCase() {
return FunctionDescriptorCase.forNumber(
functionDescriptorCase_);
}
public static final int JAVA_FUNCTION_DESCRIPTOR_FIELD_NUMBER = 1;
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
* @return Whether the javaFunctionDescriptor field is set.
*/
@java.lang.Override
public boolean hasJavaFunctionDescriptor() {
return functionDescriptorCase_ == 1;
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
* @return The javaFunctionDescriptor.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.JavaFunctionDescriptor getJavaFunctionDescriptor() {
if (functionDescriptorCase_ == 1) {
return (io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance();
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.JavaFunctionDescriptorOrBuilder getJavaFunctionDescriptorOrBuilder() {
if (functionDescriptorCase_ == 1) {
return (io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance();
}
public static final int PYTHON_FUNCTION_DESCRIPTOR_FIELD_NUMBER = 2;
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
* @return Whether the pythonFunctionDescriptor field is set.
*/
@java.lang.Override
public boolean hasPythonFunctionDescriptor() {
return functionDescriptorCase_ == 2;
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
* @return The pythonFunctionDescriptor.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.PythonFunctionDescriptor getPythonFunctionDescriptor() {
if (functionDescriptorCase_ == 2) {
return (io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance();
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.PythonFunctionDescriptorOrBuilder getPythonFunctionDescriptorOrBuilder() {
if (functionDescriptorCase_ == 2) {
return (io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance();
}
public static final int CPP_FUNCTION_DESCRIPTOR_FIELD_NUMBER = 3;
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
* @return Whether the cppFunctionDescriptor field is set.
*/
@java.lang.Override
public boolean hasCppFunctionDescriptor() {
return functionDescriptorCase_ == 3;
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
* @return The cppFunctionDescriptor.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.CppFunctionDescriptor getCppFunctionDescriptor() {
if (functionDescriptorCase_ == 3) {
return (io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance();
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.CppFunctionDescriptorOrBuilder getCppFunctionDescriptorOrBuilder() {
if (functionDescriptorCase_ == 3) {
return (io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance();
}
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 (functionDescriptorCase_ == 1) {
output.writeMessage(1, (io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_);
}
if (functionDescriptorCase_ == 2) {
output.writeMessage(2, (io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_);
}
if (functionDescriptorCase_ == 3) {
output.writeMessage(3, (io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (functionDescriptorCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_);
}
if (functionDescriptorCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_);
}
if (functionDescriptorCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_);
}
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.runtime.generated.Common.FunctionDescriptor)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.FunctionDescriptor other = (io.ray.runtime.generated.Common.FunctionDescriptor) obj;
if (!getFunctionDescriptorCase().equals(other.getFunctionDescriptorCase())) return false;
switch (functionDescriptorCase_) {
case 1:
if (!getJavaFunctionDescriptor()
.equals(other.getJavaFunctionDescriptor())) return false;
break;
case 2:
if (!getPythonFunctionDescriptor()
.equals(other.getPythonFunctionDescriptor())) return false;
break;
case 3:
if (!getCppFunctionDescriptor()
.equals(other.getCppFunctionDescriptor())) return false;
break;
case 0:
default:
}
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();
switch (functionDescriptorCase_) {
case 1:
hash = (37 * hash) + JAVA_FUNCTION_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getJavaFunctionDescriptor().hashCode();
break;
case 2:
hash = (37 * hash) + PYTHON_FUNCTION_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getPythonFunctionDescriptor().hashCode();
break;
case 3:
hash = (37 * hash) + CPP_FUNCTION_DESCRIPTOR_FIELD_NUMBER;
hash = (53 * hash) + getCppFunctionDescriptor().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.FunctionDescriptor parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.FunctionDescriptor parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.FunctionDescriptor parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.FunctionDescriptor 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.runtime.generated.Common.FunctionDescriptor parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.FunctionDescriptor parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.FunctionDescriptor parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.FunctionDescriptor 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.runtime.generated.Common.FunctionDescriptor parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.FunctionDescriptor 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.runtime.generated.Common.FunctionDescriptor parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.FunctionDescriptor 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.runtime.generated.Common.FunctionDescriptor 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.rpc.FunctionDescriptor}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.FunctionDescriptor)
io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_FunctionDescriptor_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_FunctionDescriptor_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.FunctionDescriptor.class, io.ray.runtime.generated.Common.FunctionDescriptor.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.FunctionDescriptor.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();
functionDescriptorCase_ = 0;
functionDescriptor_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_FunctionDescriptor_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.FunctionDescriptor getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.FunctionDescriptor.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.FunctionDescriptor build() {
io.ray.runtime.generated.Common.FunctionDescriptor result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.FunctionDescriptor buildPartial() {
io.ray.runtime.generated.Common.FunctionDescriptor result = new io.ray.runtime.generated.Common.FunctionDescriptor(this);
if (functionDescriptorCase_ == 1) {
if (javaFunctionDescriptorBuilder_ == null) {
result.functionDescriptor_ = functionDescriptor_;
} else {
result.functionDescriptor_ = javaFunctionDescriptorBuilder_.build();
}
}
if (functionDescriptorCase_ == 2) {
if (pythonFunctionDescriptorBuilder_ == null) {
result.functionDescriptor_ = functionDescriptor_;
} else {
result.functionDescriptor_ = pythonFunctionDescriptorBuilder_.build();
}
}
if (functionDescriptorCase_ == 3) {
if (cppFunctionDescriptorBuilder_ == null) {
result.functionDescriptor_ = functionDescriptor_;
} else {
result.functionDescriptor_ = cppFunctionDescriptorBuilder_.build();
}
}
result.functionDescriptorCase_ = functionDescriptorCase_;
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.runtime.generated.Common.FunctionDescriptor) {
return mergeFrom((io.ray.runtime.generated.Common.FunctionDescriptor)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.FunctionDescriptor other) {
if (other == io.ray.runtime.generated.Common.FunctionDescriptor.getDefaultInstance()) return this;
switch (other.getFunctionDescriptorCase()) {
case JAVA_FUNCTION_DESCRIPTOR: {
mergeJavaFunctionDescriptor(other.getJavaFunctionDescriptor());
break;
}
case PYTHON_FUNCTION_DESCRIPTOR: {
mergePythonFunctionDescriptor(other.getPythonFunctionDescriptor());
break;
}
case CPP_FUNCTION_DESCRIPTOR: {
mergeCppFunctionDescriptor(other.getCppFunctionDescriptor());
break;
}
case FUNCTIONDESCRIPTOR_NOT_SET: {
break;
}
}
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.runtime.generated.Common.FunctionDescriptor parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.FunctionDescriptor) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int functionDescriptorCase_ = 0;
private java.lang.Object functionDescriptor_;
public FunctionDescriptorCase
getFunctionDescriptorCase() {
return FunctionDescriptorCase.forNumber(
functionDescriptorCase_);
}
public Builder clearFunctionDescriptor() {
functionDescriptorCase_ = 0;
functionDescriptor_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.JavaFunctionDescriptor, io.ray.runtime.generated.Common.JavaFunctionDescriptor.Builder, io.ray.runtime.generated.Common.JavaFunctionDescriptorOrBuilder> javaFunctionDescriptorBuilder_;
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
* @return Whether the javaFunctionDescriptor field is set.
*/
@java.lang.Override
public boolean hasJavaFunctionDescriptor() {
return functionDescriptorCase_ == 1;
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
* @return The javaFunctionDescriptor.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.JavaFunctionDescriptor getJavaFunctionDescriptor() {
if (javaFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 1) {
return (io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance();
} else {
if (functionDescriptorCase_ == 1) {
return javaFunctionDescriptorBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance();
}
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
public Builder setJavaFunctionDescriptor(io.ray.runtime.generated.Common.JavaFunctionDescriptor value) {
if (javaFunctionDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
functionDescriptor_ = value;
onChanged();
} else {
javaFunctionDescriptorBuilder_.setMessage(value);
}
functionDescriptorCase_ = 1;
return this;
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
public Builder setJavaFunctionDescriptor(
io.ray.runtime.generated.Common.JavaFunctionDescriptor.Builder builderForValue) {
if (javaFunctionDescriptorBuilder_ == null) {
functionDescriptor_ = builderForValue.build();
onChanged();
} else {
javaFunctionDescriptorBuilder_.setMessage(builderForValue.build());
}
functionDescriptorCase_ = 1;
return this;
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
public Builder mergeJavaFunctionDescriptor(io.ray.runtime.generated.Common.JavaFunctionDescriptor value) {
if (javaFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 1 &&
functionDescriptor_ != io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance()) {
functionDescriptor_ = io.ray.runtime.generated.Common.JavaFunctionDescriptor.newBuilder((io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_)
.mergeFrom(value).buildPartial();
} else {
functionDescriptor_ = value;
}
onChanged();
} else {
if (functionDescriptorCase_ == 1) {
javaFunctionDescriptorBuilder_.mergeFrom(value);
}
javaFunctionDescriptorBuilder_.setMessage(value);
}
functionDescriptorCase_ = 1;
return this;
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
public Builder clearJavaFunctionDescriptor() {
if (javaFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 1) {
functionDescriptorCase_ = 0;
functionDescriptor_ = null;
onChanged();
}
} else {
if (functionDescriptorCase_ == 1) {
functionDescriptorCase_ = 0;
functionDescriptor_ = null;
}
javaFunctionDescriptorBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
public io.ray.runtime.generated.Common.JavaFunctionDescriptor.Builder getJavaFunctionDescriptorBuilder() {
return getJavaFunctionDescriptorFieldBuilder().getBuilder();
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.JavaFunctionDescriptorOrBuilder getJavaFunctionDescriptorOrBuilder() {
if ((functionDescriptorCase_ == 1) && (javaFunctionDescriptorBuilder_ != null)) {
return javaFunctionDescriptorBuilder_.getMessageOrBuilder();
} else {
if (functionDescriptorCase_ == 1) {
return (io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance();
}
}
/**
* .ray.rpc.JavaFunctionDescriptor java_function_descriptor = 1 [json_name = "javaFunctionDescriptor"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.JavaFunctionDescriptor, io.ray.runtime.generated.Common.JavaFunctionDescriptor.Builder, io.ray.runtime.generated.Common.JavaFunctionDescriptorOrBuilder>
getJavaFunctionDescriptorFieldBuilder() {
if (javaFunctionDescriptorBuilder_ == null) {
if (!(functionDescriptorCase_ == 1)) {
functionDescriptor_ = io.ray.runtime.generated.Common.JavaFunctionDescriptor.getDefaultInstance();
}
javaFunctionDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.JavaFunctionDescriptor, io.ray.runtime.generated.Common.JavaFunctionDescriptor.Builder, io.ray.runtime.generated.Common.JavaFunctionDescriptorOrBuilder>(
(io.ray.runtime.generated.Common.JavaFunctionDescriptor) functionDescriptor_,
getParentForChildren(),
isClean());
functionDescriptor_ = null;
}
functionDescriptorCase_ = 1;
onChanged();;
return javaFunctionDescriptorBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.PythonFunctionDescriptor, io.ray.runtime.generated.Common.PythonFunctionDescriptor.Builder, io.ray.runtime.generated.Common.PythonFunctionDescriptorOrBuilder> pythonFunctionDescriptorBuilder_;
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
* @return Whether the pythonFunctionDescriptor field is set.
*/
@java.lang.Override
public boolean hasPythonFunctionDescriptor() {
return functionDescriptorCase_ == 2;
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
* @return The pythonFunctionDescriptor.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.PythonFunctionDescriptor getPythonFunctionDescriptor() {
if (pythonFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 2) {
return (io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance();
} else {
if (functionDescriptorCase_ == 2) {
return pythonFunctionDescriptorBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance();
}
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
public Builder setPythonFunctionDescriptor(io.ray.runtime.generated.Common.PythonFunctionDescriptor value) {
if (pythonFunctionDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
functionDescriptor_ = value;
onChanged();
} else {
pythonFunctionDescriptorBuilder_.setMessage(value);
}
functionDescriptorCase_ = 2;
return this;
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
public Builder setPythonFunctionDescriptor(
io.ray.runtime.generated.Common.PythonFunctionDescriptor.Builder builderForValue) {
if (pythonFunctionDescriptorBuilder_ == null) {
functionDescriptor_ = builderForValue.build();
onChanged();
} else {
pythonFunctionDescriptorBuilder_.setMessage(builderForValue.build());
}
functionDescriptorCase_ = 2;
return this;
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
public Builder mergePythonFunctionDescriptor(io.ray.runtime.generated.Common.PythonFunctionDescriptor value) {
if (pythonFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 2 &&
functionDescriptor_ != io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance()) {
functionDescriptor_ = io.ray.runtime.generated.Common.PythonFunctionDescriptor.newBuilder((io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_)
.mergeFrom(value).buildPartial();
} else {
functionDescriptor_ = value;
}
onChanged();
} else {
if (functionDescriptorCase_ == 2) {
pythonFunctionDescriptorBuilder_.mergeFrom(value);
}
pythonFunctionDescriptorBuilder_.setMessage(value);
}
functionDescriptorCase_ = 2;
return this;
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
public Builder clearPythonFunctionDescriptor() {
if (pythonFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 2) {
functionDescriptorCase_ = 0;
functionDescriptor_ = null;
onChanged();
}
} else {
if (functionDescriptorCase_ == 2) {
functionDescriptorCase_ = 0;
functionDescriptor_ = null;
}
pythonFunctionDescriptorBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
public io.ray.runtime.generated.Common.PythonFunctionDescriptor.Builder getPythonFunctionDescriptorBuilder() {
return getPythonFunctionDescriptorFieldBuilder().getBuilder();
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.PythonFunctionDescriptorOrBuilder getPythonFunctionDescriptorOrBuilder() {
if ((functionDescriptorCase_ == 2) && (pythonFunctionDescriptorBuilder_ != null)) {
return pythonFunctionDescriptorBuilder_.getMessageOrBuilder();
} else {
if (functionDescriptorCase_ == 2) {
return (io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance();
}
}
/**
* .ray.rpc.PythonFunctionDescriptor python_function_descriptor = 2 [json_name = "pythonFunctionDescriptor"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.PythonFunctionDescriptor, io.ray.runtime.generated.Common.PythonFunctionDescriptor.Builder, io.ray.runtime.generated.Common.PythonFunctionDescriptorOrBuilder>
getPythonFunctionDescriptorFieldBuilder() {
if (pythonFunctionDescriptorBuilder_ == null) {
if (!(functionDescriptorCase_ == 2)) {
functionDescriptor_ = io.ray.runtime.generated.Common.PythonFunctionDescriptor.getDefaultInstance();
}
pythonFunctionDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.PythonFunctionDescriptor, io.ray.runtime.generated.Common.PythonFunctionDescriptor.Builder, io.ray.runtime.generated.Common.PythonFunctionDescriptorOrBuilder>(
(io.ray.runtime.generated.Common.PythonFunctionDescriptor) functionDescriptor_,
getParentForChildren(),
isClean());
functionDescriptor_ = null;
}
functionDescriptorCase_ = 2;
onChanged();;
return pythonFunctionDescriptorBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.CppFunctionDescriptor, io.ray.runtime.generated.Common.CppFunctionDescriptor.Builder, io.ray.runtime.generated.Common.CppFunctionDescriptorOrBuilder> cppFunctionDescriptorBuilder_;
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
* @return Whether the cppFunctionDescriptor field is set.
*/
@java.lang.Override
public boolean hasCppFunctionDescriptor() {
return functionDescriptorCase_ == 3;
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
* @return The cppFunctionDescriptor.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.CppFunctionDescriptor getCppFunctionDescriptor() {
if (cppFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 3) {
return (io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance();
} else {
if (functionDescriptorCase_ == 3) {
return cppFunctionDescriptorBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance();
}
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
public Builder setCppFunctionDescriptor(io.ray.runtime.generated.Common.CppFunctionDescriptor value) {
if (cppFunctionDescriptorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
functionDescriptor_ = value;
onChanged();
} else {
cppFunctionDescriptorBuilder_.setMessage(value);
}
functionDescriptorCase_ = 3;
return this;
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
public Builder setCppFunctionDescriptor(
io.ray.runtime.generated.Common.CppFunctionDescriptor.Builder builderForValue) {
if (cppFunctionDescriptorBuilder_ == null) {
functionDescriptor_ = builderForValue.build();
onChanged();
} else {
cppFunctionDescriptorBuilder_.setMessage(builderForValue.build());
}
functionDescriptorCase_ = 3;
return this;
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
public Builder mergeCppFunctionDescriptor(io.ray.runtime.generated.Common.CppFunctionDescriptor value) {
if (cppFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 3 &&
functionDescriptor_ != io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance()) {
functionDescriptor_ = io.ray.runtime.generated.Common.CppFunctionDescriptor.newBuilder((io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_)
.mergeFrom(value).buildPartial();
} else {
functionDescriptor_ = value;
}
onChanged();
} else {
if (functionDescriptorCase_ == 3) {
cppFunctionDescriptorBuilder_.mergeFrom(value);
}
cppFunctionDescriptorBuilder_.setMessage(value);
}
functionDescriptorCase_ = 3;
return this;
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
public Builder clearCppFunctionDescriptor() {
if (cppFunctionDescriptorBuilder_ == null) {
if (functionDescriptorCase_ == 3) {
functionDescriptorCase_ = 0;
functionDescriptor_ = null;
onChanged();
}
} else {
if (functionDescriptorCase_ == 3) {
functionDescriptorCase_ = 0;
functionDescriptor_ = null;
}
cppFunctionDescriptorBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
public io.ray.runtime.generated.Common.CppFunctionDescriptor.Builder getCppFunctionDescriptorBuilder() {
return getCppFunctionDescriptorFieldBuilder().getBuilder();
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.CppFunctionDescriptorOrBuilder getCppFunctionDescriptorOrBuilder() {
if ((functionDescriptorCase_ == 3) && (cppFunctionDescriptorBuilder_ != null)) {
return cppFunctionDescriptorBuilder_.getMessageOrBuilder();
} else {
if (functionDescriptorCase_ == 3) {
return (io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_;
}
return io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance();
}
}
/**
* .ray.rpc.CppFunctionDescriptor cpp_function_descriptor = 3 [json_name = "cppFunctionDescriptor"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.CppFunctionDescriptor, io.ray.runtime.generated.Common.CppFunctionDescriptor.Builder, io.ray.runtime.generated.Common.CppFunctionDescriptorOrBuilder>
getCppFunctionDescriptorFieldBuilder() {
if (cppFunctionDescriptorBuilder_ == null) {
if (!(functionDescriptorCase_ == 3)) {
functionDescriptor_ = io.ray.runtime.generated.Common.CppFunctionDescriptor.getDefaultInstance();
}
cppFunctionDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.CppFunctionDescriptor, io.ray.runtime.generated.Common.CppFunctionDescriptor.Builder, io.ray.runtime.generated.Common.CppFunctionDescriptorOrBuilder>(
(io.ray.runtime.generated.Common.CppFunctionDescriptor) functionDescriptor_,
getParentForChildren(),
isClean());
functionDescriptor_ = null;
}
functionDescriptorCase_ = 3;
onChanged();;
return cppFunctionDescriptorBuilder_;
}
@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.rpc.FunctionDescriptor)
}
// @@protoc_insertion_point(class_scope:ray.rpc.FunctionDescriptor)
private static final io.ray.runtime.generated.Common.FunctionDescriptor DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.FunctionDescriptor();
}
public static io.ray.runtime.generated.Common.FunctionDescriptor getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FunctionDescriptor parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FunctionDescriptor(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.runtime.generated.Common.FunctionDescriptor getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConcurrencyGroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.ConcurrencyGroup)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1 [json_name = "name"];
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1 [json_name = "name"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* int32 max_concurrency = 2 [json_name = "maxConcurrency"];
* @return The maxConcurrency.
*/
int getMaxConcurrency();
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
java.util.List
getFunctionDescriptorsList();
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
io.ray.runtime.generated.Common.FunctionDescriptor getFunctionDescriptors(int index);
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
int getFunctionDescriptorsCount();
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
java.util.List
getFunctionDescriptorsOrBuilderList();
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder getFunctionDescriptorsOrBuilder(
int index);
}
/**
* Protobuf type {@code ray.rpc.ConcurrencyGroup}
*/
public static final class ConcurrencyGroup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.ConcurrencyGroup)
ConcurrencyGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConcurrencyGroup.newBuilder() to construct.
private ConcurrencyGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ConcurrencyGroup() {
name_ = "";
functionDescriptors_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConcurrencyGroup();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConcurrencyGroup(
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();
name_ = s;
break;
}
case 16: {
maxConcurrency_ = input.readInt32();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
functionDescriptors_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
functionDescriptors_.add(
input.readMessage(io.ray.runtime.generated.Common.FunctionDescriptor.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
functionDescriptors_ = java.util.Collections.unmodifiableList(functionDescriptors_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ConcurrencyGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ConcurrencyGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ConcurrencyGroup.class, io.ray.runtime.generated.Common.ConcurrencyGroup.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 MAX_CONCURRENCY_FIELD_NUMBER = 2;
private int maxConcurrency_;
/**
* int32 max_concurrency = 2 [json_name = "maxConcurrency"];
* @return The maxConcurrency.
*/
@java.lang.Override
public int getMaxConcurrency() {
return maxConcurrency_;
}
public static final int FUNCTION_DESCRIPTORS_FIELD_NUMBER = 3;
private java.util.List functionDescriptors_;
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
@java.lang.Override
public java.util.List getFunctionDescriptorsList() {
return functionDescriptors_;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
@java.lang.Override
public java.util.List
getFunctionDescriptorsOrBuilderList() {
return functionDescriptors_;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
@java.lang.Override
public int getFunctionDescriptorsCount() {
return functionDescriptors_.size();
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.FunctionDescriptor getFunctionDescriptors(int index) {
return functionDescriptors_.get(index);
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder getFunctionDescriptorsOrBuilder(
int index) {
return functionDescriptors_.get(index);
}
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 (maxConcurrency_ != 0) {
output.writeInt32(2, maxConcurrency_);
}
for (int i = 0; i < functionDescriptors_.size(); i++) {
output.writeMessage(3, functionDescriptors_.get(i));
}
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 (maxConcurrency_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, maxConcurrency_);
}
for (int i = 0; i < functionDescriptors_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, functionDescriptors_.get(i));
}
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.runtime.generated.Common.ConcurrencyGroup)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.ConcurrencyGroup other = (io.ray.runtime.generated.Common.ConcurrencyGroup) obj;
if (!getName()
.equals(other.getName())) return false;
if (getMaxConcurrency()
!= other.getMaxConcurrency()) return false;
if (!getFunctionDescriptorsList()
.equals(other.getFunctionDescriptorsList())) 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();
hash = (37 * hash) + MAX_CONCURRENCY_FIELD_NUMBER;
hash = (53 * hash) + getMaxConcurrency();
if (getFunctionDescriptorsCount() > 0) {
hash = (37 * hash) + FUNCTION_DESCRIPTORS_FIELD_NUMBER;
hash = (53 * hash) + getFunctionDescriptorsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup 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.runtime.generated.Common.ConcurrencyGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup 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.runtime.generated.Common.ConcurrencyGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup 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.runtime.generated.Common.ConcurrencyGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup 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.runtime.generated.Common.ConcurrencyGroup 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.rpc.ConcurrencyGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.ConcurrencyGroup)
io.ray.runtime.generated.Common.ConcurrencyGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ConcurrencyGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ConcurrencyGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ConcurrencyGroup.class, io.ray.runtime.generated.Common.ConcurrencyGroup.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.ConcurrencyGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFunctionDescriptorsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
maxConcurrency_ = 0;
if (functionDescriptorsBuilder_ == null) {
functionDescriptors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
functionDescriptorsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ConcurrencyGroup_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ConcurrencyGroup getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.ConcurrencyGroup.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.ConcurrencyGroup build() {
io.ray.runtime.generated.Common.ConcurrencyGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ConcurrencyGroup buildPartial() {
io.ray.runtime.generated.Common.ConcurrencyGroup result = new io.ray.runtime.generated.Common.ConcurrencyGroup(this);
int from_bitField0_ = bitField0_;
result.name_ = name_;
result.maxConcurrency_ = maxConcurrency_;
if (functionDescriptorsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
functionDescriptors_ = java.util.Collections.unmodifiableList(functionDescriptors_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.functionDescriptors_ = functionDescriptors_;
} else {
result.functionDescriptors_ = functionDescriptorsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.ray.runtime.generated.Common.ConcurrencyGroup) {
return mergeFrom((io.ray.runtime.generated.Common.ConcurrencyGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.ConcurrencyGroup other) {
if (other == io.ray.runtime.generated.Common.ConcurrencyGroup.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.getMaxConcurrency() != 0) {
setMaxConcurrency(other.getMaxConcurrency());
}
if (functionDescriptorsBuilder_ == null) {
if (!other.functionDescriptors_.isEmpty()) {
if (functionDescriptors_.isEmpty()) {
functionDescriptors_ = other.functionDescriptors_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFunctionDescriptorsIsMutable();
functionDescriptors_.addAll(other.functionDescriptors_);
}
onChanged();
}
} else {
if (!other.functionDescriptors_.isEmpty()) {
if (functionDescriptorsBuilder_.isEmpty()) {
functionDescriptorsBuilder_.dispose();
functionDescriptorsBuilder_ = null;
functionDescriptors_ = other.functionDescriptors_;
bitField0_ = (bitField0_ & ~0x00000001);
functionDescriptorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFunctionDescriptorsFieldBuilder() : null;
} else {
functionDescriptorsBuilder_.addAllMessages(other.functionDescriptors_);
}
}
}
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.runtime.generated.Common.ConcurrencyGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.ConcurrencyGroup) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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 int maxConcurrency_ ;
/**
* int32 max_concurrency = 2 [json_name = "maxConcurrency"];
* @return The maxConcurrency.
*/
@java.lang.Override
public int getMaxConcurrency() {
return maxConcurrency_;
}
/**
* int32 max_concurrency = 2 [json_name = "maxConcurrency"];
* @param value The maxConcurrency to set.
* @return This builder for chaining.
*/
public Builder setMaxConcurrency(int value) {
maxConcurrency_ = value;
onChanged();
return this;
}
/**
* int32 max_concurrency = 2 [json_name = "maxConcurrency"];
* @return This builder for chaining.
*/
public Builder clearMaxConcurrency() {
maxConcurrency_ = 0;
onChanged();
return this;
}
private java.util.List functionDescriptors_ =
java.util.Collections.emptyList();
private void ensureFunctionDescriptorsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
functionDescriptors_ = new java.util.ArrayList(functionDescriptors_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.ray.runtime.generated.Common.FunctionDescriptor, io.ray.runtime.generated.Common.FunctionDescriptor.Builder, io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder> functionDescriptorsBuilder_;
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public java.util.List getFunctionDescriptorsList() {
if (functionDescriptorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(functionDescriptors_);
} else {
return functionDescriptorsBuilder_.getMessageList();
}
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public int getFunctionDescriptorsCount() {
if (functionDescriptorsBuilder_ == null) {
return functionDescriptors_.size();
} else {
return functionDescriptorsBuilder_.getCount();
}
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public io.ray.runtime.generated.Common.FunctionDescriptor getFunctionDescriptors(int index) {
if (functionDescriptorsBuilder_ == null) {
return functionDescriptors_.get(index);
} else {
return functionDescriptorsBuilder_.getMessage(index);
}
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder setFunctionDescriptors(
int index, io.ray.runtime.generated.Common.FunctionDescriptor value) {
if (functionDescriptorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionDescriptorsIsMutable();
functionDescriptors_.set(index, value);
onChanged();
} else {
functionDescriptorsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder setFunctionDescriptors(
int index, io.ray.runtime.generated.Common.FunctionDescriptor.Builder builderForValue) {
if (functionDescriptorsBuilder_ == null) {
ensureFunctionDescriptorsIsMutable();
functionDescriptors_.set(index, builderForValue.build());
onChanged();
} else {
functionDescriptorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder addFunctionDescriptors(io.ray.runtime.generated.Common.FunctionDescriptor value) {
if (functionDescriptorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionDescriptorsIsMutable();
functionDescriptors_.add(value);
onChanged();
} else {
functionDescriptorsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder addFunctionDescriptors(
int index, io.ray.runtime.generated.Common.FunctionDescriptor value) {
if (functionDescriptorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFunctionDescriptorsIsMutable();
functionDescriptors_.add(index, value);
onChanged();
} else {
functionDescriptorsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder addFunctionDescriptors(
io.ray.runtime.generated.Common.FunctionDescriptor.Builder builderForValue) {
if (functionDescriptorsBuilder_ == null) {
ensureFunctionDescriptorsIsMutable();
functionDescriptors_.add(builderForValue.build());
onChanged();
} else {
functionDescriptorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder addFunctionDescriptors(
int index, io.ray.runtime.generated.Common.FunctionDescriptor.Builder builderForValue) {
if (functionDescriptorsBuilder_ == null) {
ensureFunctionDescriptorsIsMutable();
functionDescriptors_.add(index, builderForValue.build());
onChanged();
} else {
functionDescriptorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder addAllFunctionDescriptors(
java.lang.Iterable values) {
if (functionDescriptorsBuilder_ == null) {
ensureFunctionDescriptorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, functionDescriptors_);
onChanged();
} else {
functionDescriptorsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder clearFunctionDescriptors() {
if (functionDescriptorsBuilder_ == null) {
functionDescriptors_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
functionDescriptorsBuilder_.clear();
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public Builder removeFunctionDescriptors(int index) {
if (functionDescriptorsBuilder_ == null) {
ensureFunctionDescriptorsIsMutable();
functionDescriptors_.remove(index);
onChanged();
} else {
functionDescriptorsBuilder_.remove(index);
}
return this;
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public io.ray.runtime.generated.Common.FunctionDescriptor.Builder getFunctionDescriptorsBuilder(
int index) {
return getFunctionDescriptorsFieldBuilder().getBuilder(index);
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder getFunctionDescriptorsOrBuilder(
int index) {
if (functionDescriptorsBuilder_ == null) {
return functionDescriptors_.get(index); } else {
return functionDescriptorsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public java.util.List
getFunctionDescriptorsOrBuilderList() {
if (functionDescriptorsBuilder_ != null) {
return functionDescriptorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(functionDescriptors_);
}
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public io.ray.runtime.generated.Common.FunctionDescriptor.Builder addFunctionDescriptorsBuilder() {
return getFunctionDescriptorsFieldBuilder().addBuilder(
io.ray.runtime.generated.Common.FunctionDescriptor.getDefaultInstance());
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public io.ray.runtime.generated.Common.FunctionDescriptor.Builder addFunctionDescriptorsBuilder(
int index) {
return getFunctionDescriptorsFieldBuilder().addBuilder(
index, io.ray.runtime.generated.Common.FunctionDescriptor.getDefaultInstance());
}
/**
* repeated .ray.rpc.FunctionDescriptor function_descriptors = 3 [json_name = "functionDescriptors"];
*/
public java.util.List
getFunctionDescriptorsBuilderList() {
return getFunctionDescriptorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.ray.runtime.generated.Common.FunctionDescriptor, io.ray.runtime.generated.Common.FunctionDescriptor.Builder, io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder>
getFunctionDescriptorsFieldBuilder() {
if (functionDescriptorsBuilder_ == null) {
functionDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.ray.runtime.generated.Common.FunctionDescriptor, io.ray.runtime.generated.Common.FunctionDescriptor.Builder, io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder>(
functionDescriptors_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
functionDescriptors_ = null;
}
return functionDescriptorsBuilder_;
}
@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.rpc.ConcurrencyGroup)
}
// @@protoc_insertion_point(class_scope:ray.rpc.ConcurrencyGroup)
private static final io.ray.runtime.generated.Common.ConcurrencyGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ConcurrencyGroup();
}
public static io.ray.runtime.generated.Common.ConcurrencyGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConcurrencyGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConcurrencyGroup(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.runtime.generated.Common.ConcurrencyGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RayErrorInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.RayErrorInfo)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
* @return Whether the actorDiedError field is set.
*/
boolean hasActorDiedError();
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
* @return The actorDiedError.
*/
io.ray.runtime.generated.Common.ActorDeathCause getActorDiedError();
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
io.ray.runtime.generated.Common.ActorDeathCauseOrBuilder getActorDiedErrorOrBuilder();
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
* @return Whether the runtimeEnvSetupFailedError field is set.
*/
boolean hasRuntimeEnvSetupFailedError();
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
* @return The runtimeEnvSetupFailedError.
*/
io.ray.runtime.generated.Common.RuntimeEnvFailedContext getRuntimeEnvSetupFailedError();
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder getRuntimeEnvSetupFailedErrorOrBuilder();
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
* @return Whether the actorUnavailableError field is set.
*/
boolean hasActorUnavailableError();
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
* @return The actorUnavailableError.
*/
io.ray.runtime.generated.Common.ActorUnavailableContext getActorUnavailableError();
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
io.ray.runtime.generated.Common.ActorUnavailableContextOrBuilder getActorUnavailableErrorOrBuilder();
/**
* string error_message = 5 [json_name = "errorMessage"];
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* string error_message = 5 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @return The enum numeric value on the wire for errorType.
*/
int getErrorTypeValue();
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @return The errorType.
*/
io.ray.runtime.generated.Common.ErrorType getErrorType();
public io.ray.runtime.generated.Common.RayErrorInfo.ErrorCase getErrorCase();
}
/**
* Protobuf type {@code ray.rpc.RayErrorInfo}
*/
public static final class RayErrorInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.RayErrorInfo)
RayErrorInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RayErrorInfo.newBuilder() to construct.
private RayErrorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RayErrorInfo() {
errorMessage_ = "";
errorType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RayErrorInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RayErrorInfo(
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 18: {
io.ray.runtime.generated.Common.ActorDeathCause.Builder subBuilder = null;
if (errorCase_ == 2) {
subBuilder = ((io.ray.runtime.generated.Common.ActorDeathCause) error_).toBuilder();
}
error_ =
input.readMessage(io.ray.runtime.generated.Common.ActorDeathCause.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.ActorDeathCause) error_);
error_ = subBuilder.buildPartial();
}
errorCase_ = 2;
break;
}
case 26: {
io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder subBuilder = null;
if (errorCase_ == 3) {
subBuilder = ((io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_).toBuilder();
}
error_ =
input.readMessage(io.ray.runtime.generated.Common.RuntimeEnvFailedContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_);
error_ = subBuilder.buildPartial();
}
errorCase_ = 3;
break;
}
case 34: {
io.ray.runtime.generated.Common.ActorUnavailableContext.Builder subBuilder = null;
if (errorCase_ == 4) {
subBuilder = ((io.ray.runtime.generated.Common.ActorUnavailableContext) error_).toBuilder();
}
error_ =
input.readMessage(io.ray.runtime.generated.Common.ActorUnavailableContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.ActorUnavailableContext) error_);
error_ = subBuilder.buildPartial();
}
errorCase_ = 4;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
errorMessage_ = s;
break;
}
case 88: {
int rawValue = input.readEnum();
errorType_ = 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.runtime.generated.Common.internal_static_ray_rpc_RayErrorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RayErrorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.RayErrorInfo.class, io.ray.runtime.generated.Common.RayErrorInfo.Builder.class);
}
private int errorCase_ = 0;
private java.lang.Object error_;
public enum ErrorCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
ACTOR_DIED_ERROR(2),
RUNTIME_ENV_SETUP_FAILED_ERROR(3),
ACTOR_UNAVAILABLE_ERROR(4),
ERROR_NOT_SET(0);
private final int value;
private ErrorCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ErrorCase valueOf(int value) {
return forNumber(value);
}
public static ErrorCase forNumber(int value) {
switch (value) {
case 2: return ACTOR_DIED_ERROR;
case 3: return RUNTIME_ENV_SETUP_FAILED_ERROR;
case 4: return ACTOR_UNAVAILABLE_ERROR;
case 0: return ERROR_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ErrorCase
getErrorCase() {
return ErrorCase.forNumber(
errorCase_);
}
public static final int ACTOR_DIED_ERROR_FIELD_NUMBER = 2;
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
* @return Whether the actorDiedError field is set.
*/
@java.lang.Override
public boolean hasActorDiedError() {
return errorCase_ == 2;
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
* @return The actorDiedError.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDeathCause getActorDiedError() {
if (errorCase_ == 2) {
return (io.ray.runtime.generated.Common.ActorDeathCause) error_;
}
return io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance();
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDeathCauseOrBuilder getActorDiedErrorOrBuilder() {
if (errorCase_ == 2) {
return (io.ray.runtime.generated.Common.ActorDeathCause) error_;
}
return io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance();
}
public static final int RUNTIME_ENV_SETUP_FAILED_ERROR_FIELD_NUMBER = 3;
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
* @return Whether the runtimeEnvSetupFailedError field is set.
*/
@java.lang.Override
public boolean hasRuntimeEnvSetupFailedError() {
return errorCase_ == 3;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
* @return The runtimeEnvSetupFailedError.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext getRuntimeEnvSetupFailedError() {
if (errorCase_ == 3) {
return (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_;
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder getRuntimeEnvSetupFailedErrorOrBuilder() {
if (errorCase_ == 3) {
return (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_;
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
public static final int ACTOR_UNAVAILABLE_ERROR_FIELD_NUMBER = 4;
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
* @return Whether the actorUnavailableError field is set.
*/
@java.lang.Override
public boolean hasActorUnavailableError() {
return errorCase_ == 4;
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
* @return The actorUnavailableError.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnavailableContext getActorUnavailableError() {
if (errorCase_ == 4) {
return (io.ray.runtime.generated.Common.ActorUnavailableContext) error_;
}
return io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance();
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnavailableContextOrBuilder getActorUnavailableErrorOrBuilder() {
if (errorCase_ == 4) {
return (io.ray.runtime.generated.Common.ActorUnavailableContext) error_;
}
return io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance();
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 5;
private volatile java.lang.Object errorMessage_;
/**
* string error_message = 5 [json_name = "errorMessage"];
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
* string error_message = 5 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_TYPE_FIELD_NUMBER = 11;
private int errorType_;
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @return The enum numeric value on the wire for errorType.
*/
@java.lang.Override public int getErrorTypeValue() {
return errorType_;
}
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @return The errorType.
*/
@java.lang.Override public io.ray.runtime.generated.Common.ErrorType getErrorType() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.ErrorType result = io.ray.runtime.generated.Common.ErrorType.valueOf(errorType_);
return result == null ? io.ray.runtime.generated.Common.ErrorType.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 (errorCase_ == 2) {
output.writeMessage(2, (io.ray.runtime.generated.Common.ActorDeathCause) error_);
}
if (errorCase_ == 3) {
output.writeMessage(3, (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_);
}
if (errorCase_ == 4) {
output.writeMessage(4, (io.ray.runtime.generated.Common.ActorUnavailableContext) error_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, errorMessage_);
}
if (errorType_ != io.ray.runtime.generated.Common.ErrorType.WORKER_DIED.getNumber()) {
output.writeEnum(11, errorType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (errorCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.ray.runtime.generated.Common.ActorDeathCause) error_);
}
if (errorCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_);
}
if (errorCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.ray.runtime.generated.Common.ActorUnavailableContext) error_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, errorMessage_);
}
if (errorType_ != io.ray.runtime.generated.Common.ErrorType.WORKER_DIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, errorType_);
}
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.runtime.generated.Common.RayErrorInfo)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.RayErrorInfo other = (io.ray.runtime.generated.Common.RayErrorInfo) obj;
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
if (errorType_ != other.errorType_) return false;
if (!getErrorCase().equals(other.getErrorCase())) return false;
switch (errorCase_) {
case 2:
if (!getActorDiedError()
.equals(other.getActorDiedError())) return false;
break;
case 3:
if (!getRuntimeEnvSetupFailedError()
.equals(other.getRuntimeEnvSetupFailedError())) return false;
break;
case 4:
if (!getActorUnavailableError()
.equals(other.getActorUnavailableError())) return false;
break;
case 0:
default:
}
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) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (37 * hash) + ERROR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + errorType_;
switch (errorCase_) {
case 2:
hash = (37 * hash) + ACTOR_DIED_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getActorDiedError().hashCode();
break;
case 3:
hash = (37 * hash) + RUNTIME_ENV_SETUP_FAILED_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getRuntimeEnvSetupFailedError().hashCode();
break;
case 4:
hash = (37 * hash) + ACTOR_UNAVAILABLE_ERROR_FIELD_NUMBER;
hash = (53 * hash) + getActorUnavailableError().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.RayErrorInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RayErrorInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.RayErrorInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RayErrorInfo 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.runtime.generated.Common.RayErrorInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RayErrorInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.RayErrorInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RayErrorInfo 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.runtime.generated.Common.RayErrorInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RayErrorInfo 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.runtime.generated.Common.RayErrorInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RayErrorInfo 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.runtime.generated.Common.RayErrorInfo 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.rpc.RayErrorInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.RayErrorInfo)
io.ray.runtime.generated.Common.RayErrorInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RayErrorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RayErrorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.RayErrorInfo.class, io.ray.runtime.generated.Common.RayErrorInfo.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.RayErrorInfo.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();
errorMessage_ = "";
errorType_ = 0;
errorCase_ = 0;
error_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RayErrorInfo_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.RayErrorInfo getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.RayErrorInfo.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.RayErrorInfo build() {
io.ray.runtime.generated.Common.RayErrorInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.RayErrorInfo buildPartial() {
io.ray.runtime.generated.Common.RayErrorInfo result = new io.ray.runtime.generated.Common.RayErrorInfo(this);
if (errorCase_ == 2) {
if (actorDiedErrorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = actorDiedErrorBuilder_.build();
}
}
if (errorCase_ == 3) {
if (runtimeEnvSetupFailedErrorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = runtimeEnvSetupFailedErrorBuilder_.build();
}
}
if (errorCase_ == 4) {
if (actorUnavailableErrorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = actorUnavailableErrorBuilder_.build();
}
}
result.errorMessage_ = errorMessage_;
result.errorType_ = errorType_;
result.errorCase_ = errorCase_;
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.runtime.generated.Common.RayErrorInfo) {
return mergeFrom((io.ray.runtime.generated.Common.RayErrorInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.RayErrorInfo other) {
if (other == io.ray.runtime.generated.Common.RayErrorInfo.getDefaultInstance()) return this;
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.errorType_ != 0) {
setErrorTypeValue(other.getErrorTypeValue());
}
switch (other.getErrorCase()) {
case ACTOR_DIED_ERROR: {
mergeActorDiedError(other.getActorDiedError());
break;
}
case RUNTIME_ENV_SETUP_FAILED_ERROR: {
mergeRuntimeEnvSetupFailedError(other.getRuntimeEnvSetupFailedError());
break;
}
case ACTOR_UNAVAILABLE_ERROR: {
mergeActorUnavailableError(other.getActorUnavailableError());
break;
}
case ERROR_NOT_SET: {
break;
}
}
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.runtime.generated.Common.RayErrorInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.RayErrorInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int errorCase_ = 0;
private java.lang.Object error_;
public ErrorCase
getErrorCase() {
return ErrorCase.forNumber(
errorCase_);
}
public Builder clearError() {
errorCase_ = 0;
error_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorDeathCause, io.ray.runtime.generated.Common.ActorDeathCause.Builder, io.ray.runtime.generated.Common.ActorDeathCauseOrBuilder> actorDiedErrorBuilder_;
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
* @return Whether the actorDiedError field is set.
*/
@java.lang.Override
public boolean hasActorDiedError() {
return errorCase_ == 2;
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
* @return The actorDiedError.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDeathCause getActorDiedError() {
if (actorDiedErrorBuilder_ == null) {
if (errorCase_ == 2) {
return (io.ray.runtime.generated.Common.ActorDeathCause) error_;
}
return io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance();
} else {
if (errorCase_ == 2) {
return actorDiedErrorBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance();
}
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
public Builder setActorDiedError(io.ray.runtime.generated.Common.ActorDeathCause value) {
if (actorDiedErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
actorDiedErrorBuilder_.setMessage(value);
}
errorCase_ = 2;
return this;
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
public Builder setActorDiedError(
io.ray.runtime.generated.Common.ActorDeathCause.Builder builderForValue) {
if (actorDiedErrorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
actorDiedErrorBuilder_.setMessage(builderForValue.build());
}
errorCase_ = 2;
return this;
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
public Builder mergeActorDiedError(io.ray.runtime.generated.Common.ActorDeathCause value) {
if (actorDiedErrorBuilder_ == null) {
if (errorCase_ == 2 &&
error_ != io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance()) {
error_ = io.ray.runtime.generated.Common.ActorDeathCause.newBuilder((io.ray.runtime.generated.Common.ActorDeathCause) error_)
.mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
if (errorCase_ == 2) {
actorDiedErrorBuilder_.mergeFrom(value);
}
actorDiedErrorBuilder_.setMessage(value);
}
errorCase_ = 2;
return this;
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
public Builder clearActorDiedError() {
if (actorDiedErrorBuilder_ == null) {
if (errorCase_ == 2) {
errorCase_ = 0;
error_ = null;
onChanged();
}
} else {
if (errorCase_ == 2) {
errorCase_ = 0;
error_ = null;
}
actorDiedErrorBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
public io.ray.runtime.generated.Common.ActorDeathCause.Builder getActorDiedErrorBuilder() {
return getActorDiedErrorFieldBuilder().getBuilder();
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDeathCauseOrBuilder getActorDiedErrorOrBuilder() {
if ((errorCase_ == 2) && (actorDiedErrorBuilder_ != null)) {
return actorDiedErrorBuilder_.getMessageOrBuilder();
} else {
if (errorCase_ == 2) {
return (io.ray.runtime.generated.Common.ActorDeathCause) error_;
}
return io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance();
}
}
/**
* .ray.rpc.ActorDeathCause actor_died_error = 2 [json_name = "actorDiedError"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorDeathCause, io.ray.runtime.generated.Common.ActorDeathCause.Builder, io.ray.runtime.generated.Common.ActorDeathCauseOrBuilder>
getActorDiedErrorFieldBuilder() {
if (actorDiedErrorBuilder_ == null) {
if (!(errorCase_ == 2)) {
error_ = io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance();
}
actorDiedErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorDeathCause, io.ray.runtime.generated.Common.ActorDeathCause.Builder, io.ray.runtime.generated.Common.ActorDeathCauseOrBuilder>(
(io.ray.runtime.generated.Common.ActorDeathCause) error_,
getParentForChildren(),
isClean());
error_ = null;
}
errorCase_ = 2;
onChanged();;
return actorDiedErrorBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RuntimeEnvFailedContext, io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder, io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder> runtimeEnvSetupFailedErrorBuilder_;
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
* @return Whether the runtimeEnvSetupFailedError field is set.
*/
@java.lang.Override
public boolean hasRuntimeEnvSetupFailedError() {
return errorCase_ == 3;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
* @return The runtimeEnvSetupFailedError.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext getRuntimeEnvSetupFailedError() {
if (runtimeEnvSetupFailedErrorBuilder_ == null) {
if (errorCase_ == 3) {
return (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_;
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
} else {
if (errorCase_ == 3) {
return runtimeEnvSetupFailedErrorBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
public Builder setRuntimeEnvSetupFailedError(io.ray.runtime.generated.Common.RuntimeEnvFailedContext value) {
if (runtimeEnvSetupFailedErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
runtimeEnvSetupFailedErrorBuilder_.setMessage(value);
}
errorCase_ = 3;
return this;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
public Builder setRuntimeEnvSetupFailedError(
io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder builderForValue) {
if (runtimeEnvSetupFailedErrorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
runtimeEnvSetupFailedErrorBuilder_.setMessage(builderForValue.build());
}
errorCase_ = 3;
return this;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
public Builder mergeRuntimeEnvSetupFailedError(io.ray.runtime.generated.Common.RuntimeEnvFailedContext value) {
if (runtimeEnvSetupFailedErrorBuilder_ == null) {
if (errorCase_ == 3 &&
error_ != io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance()) {
error_ = io.ray.runtime.generated.Common.RuntimeEnvFailedContext.newBuilder((io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_)
.mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
if (errorCase_ == 3) {
runtimeEnvSetupFailedErrorBuilder_.mergeFrom(value);
}
runtimeEnvSetupFailedErrorBuilder_.setMessage(value);
}
errorCase_ = 3;
return this;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
public Builder clearRuntimeEnvSetupFailedError() {
if (runtimeEnvSetupFailedErrorBuilder_ == null) {
if (errorCase_ == 3) {
errorCase_ = 0;
error_ = null;
onChanged();
}
} else {
if (errorCase_ == 3) {
errorCase_ = 0;
error_ = null;
}
runtimeEnvSetupFailedErrorBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder getRuntimeEnvSetupFailedErrorBuilder() {
return getRuntimeEnvSetupFailedErrorFieldBuilder().getBuilder();
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder getRuntimeEnvSetupFailedErrorOrBuilder() {
if ((errorCase_ == 3) && (runtimeEnvSetupFailedErrorBuilder_ != null)) {
return runtimeEnvSetupFailedErrorBuilder_.getMessageOrBuilder();
} else {
if (errorCase_ == 3) {
return (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_;
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_setup_failed_error = 3 [json_name = "runtimeEnvSetupFailedError"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RuntimeEnvFailedContext, io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder, io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder>
getRuntimeEnvSetupFailedErrorFieldBuilder() {
if (runtimeEnvSetupFailedErrorBuilder_ == null) {
if (!(errorCase_ == 3)) {
error_ = io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
runtimeEnvSetupFailedErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RuntimeEnvFailedContext, io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder, io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder>(
(io.ray.runtime.generated.Common.RuntimeEnvFailedContext) error_,
getParentForChildren(),
isClean());
error_ = null;
}
errorCase_ = 3;
onChanged();;
return runtimeEnvSetupFailedErrorBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorUnavailableContext, io.ray.runtime.generated.Common.ActorUnavailableContext.Builder, io.ray.runtime.generated.Common.ActorUnavailableContextOrBuilder> actorUnavailableErrorBuilder_;
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
* @return Whether the actorUnavailableError field is set.
*/
@java.lang.Override
public boolean hasActorUnavailableError() {
return errorCase_ == 4;
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
* @return The actorUnavailableError.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnavailableContext getActorUnavailableError() {
if (actorUnavailableErrorBuilder_ == null) {
if (errorCase_ == 4) {
return (io.ray.runtime.generated.Common.ActorUnavailableContext) error_;
}
return io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance();
} else {
if (errorCase_ == 4) {
return actorUnavailableErrorBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance();
}
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
public Builder setActorUnavailableError(io.ray.runtime.generated.Common.ActorUnavailableContext value) {
if (actorUnavailableErrorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
} else {
actorUnavailableErrorBuilder_.setMessage(value);
}
errorCase_ = 4;
return this;
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
public Builder setActorUnavailableError(
io.ray.runtime.generated.Common.ActorUnavailableContext.Builder builderForValue) {
if (actorUnavailableErrorBuilder_ == null) {
error_ = builderForValue.build();
onChanged();
} else {
actorUnavailableErrorBuilder_.setMessage(builderForValue.build());
}
errorCase_ = 4;
return this;
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
public Builder mergeActorUnavailableError(io.ray.runtime.generated.Common.ActorUnavailableContext value) {
if (actorUnavailableErrorBuilder_ == null) {
if (errorCase_ == 4 &&
error_ != io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance()) {
error_ = io.ray.runtime.generated.Common.ActorUnavailableContext.newBuilder((io.ray.runtime.generated.Common.ActorUnavailableContext) error_)
.mergeFrom(value).buildPartial();
} else {
error_ = value;
}
onChanged();
} else {
if (errorCase_ == 4) {
actorUnavailableErrorBuilder_.mergeFrom(value);
}
actorUnavailableErrorBuilder_.setMessage(value);
}
errorCase_ = 4;
return this;
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
public Builder clearActorUnavailableError() {
if (actorUnavailableErrorBuilder_ == null) {
if (errorCase_ == 4) {
errorCase_ = 0;
error_ = null;
onChanged();
}
} else {
if (errorCase_ == 4) {
errorCase_ = 0;
error_ = null;
}
actorUnavailableErrorBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
public io.ray.runtime.generated.Common.ActorUnavailableContext.Builder getActorUnavailableErrorBuilder() {
return getActorUnavailableErrorFieldBuilder().getBuilder();
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnavailableContextOrBuilder getActorUnavailableErrorOrBuilder() {
if ((errorCase_ == 4) && (actorUnavailableErrorBuilder_ != null)) {
return actorUnavailableErrorBuilder_.getMessageOrBuilder();
} else {
if (errorCase_ == 4) {
return (io.ray.runtime.generated.Common.ActorUnavailableContext) error_;
}
return io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance();
}
}
/**
* .ray.rpc.ActorUnavailableContext actor_unavailable_error = 4 [json_name = "actorUnavailableError"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorUnavailableContext, io.ray.runtime.generated.Common.ActorUnavailableContext.Builder, io.ray.runtime.generated.Common.ActorUnavailableContextOrBuilder>
getActorUnavailableErrorFieldBuilder() {
if (actorUnavailableErrorBuilder_ == null) {
if (!(errorCase_ == 4)) {
error_ = io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance();
}
actorUnavailableErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorUnavailableContext, io.ray.runtime.generated.Common.ActorUnavailableContext.Builder, io.ray.runtime.generated.Common.ActorUnavailableContextOrBuilder>(
(io.ray.runtime.generated.Common.ActorUnavailableContext) error_,
getParentForChildren(),
isClean());
error_ = null;
}
errorCase_ = 4;
onChanged();;
return actorUnavailableErrorBuilder_;
}
private java.lang.Object errorMessage_ = "";
/**
* string error_message = 5 [json_name = "errorMessage"];
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error_message = 5 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error_message = 5 [json_name = "errorMessage"];
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* string error_message = 5 [json_name = "errorMessage"];
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* string error_message = 5 [json_name = "errorMessage"];
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
private int errorType_ = 0;
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @return The enum numeric value on the wire for errorType.
*/
@java.lang.Override public int getErrorTypeValue() {
return errorType_;
}
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @param value The enum numeric value on the wire for errorType to set.
* @return This builder for chaining.
*/
public Builder setErrorTypeValue(int value) {
errorType_ = value;
onChanged();
return this;
}
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @return The errorType.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ErrorType getErrorType() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.ErrorType result = io.ray.runtime.generated.Common.ErrorType.valueOf(errorType_);
return result == null ? io.ray.runtime.generated.Common.ErrorType.UNRECOGNIZED : result;
}
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @param value The errorType to set.
* @return This builder for chaining.
*/
public Builder setErrorType(io.ray.runtime.generated.Common.ErrorType value) {
if (value == null) {
throw new NullPointerException();
}
errorType_ = value.getNumber();
onChanged();
return this;
}
/**
* .ray.rpc.ErrorType error_type = 11 [json_name = "errorType"];
* @return This builder for chaining.
*/
public Builder clearErrorType() {
errorType_ = 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.rpc.RayErrorInfo)
}
// @@protoc_insertion_point(class_scope:ray.rpc.RayErrorInfo)
private static final io.ray.runtime.generated.Common.RayErrorInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.RayErrorInfo();
}
public static io.ray.runtime.generated.Common.RayErrorInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RayErrorInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RayErrorInfo(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.runtime.generated.Common.RayErrorInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OutOfMemoryErrorContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.OutOfMemoryErrorContext)
com.google.protobuf.MessageOrBuilder {
/**
* bytes task_id = 1 [json_name = "taskId"];
* @return The taskId.
*/
com.google.protobuf.ByteString getTaskId();
/**
* string task_name = 2 [json_name = "taskName"];
* @return The taskName.
*/
java.lang.String getTaskName();
/**
* string task_name = 2 [json_name = "taskName"];
* @return The bytes for taskName.
*/
com.google.protobuf.ByteString
getTaskNameBytes();
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
java.lang.String getNodeIpAddress();
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
com.google.protobuf.ByteString
getNodeIpAddressBytes();
/**
* uint64 memory_used_bytes = 4 [json_name = "memoryUsedBytes"];
* @return The memoryUsedBytes.
*/
long getMemoryUsedBytes();
/**
* uint64 memory_total_bytes = 5 [json_name = "memoryTotalBytes"];
* @return The memoryTotalBytes.
*/
long getMemoryTotalBytes();
/**
* double memory_usage_fraction = 6 [json_name = "memoryUsageFraction"];
* @return The memoryUsageFraction.
*/
double getMemoryUsageFraction();
/**
* double memory_threshold = 7 [json_name = "memoryThreshold"];
* @return The memoryThreshold.
*/
double getMemoryThreshold();
}
/**
* Protobuf type {@code ray.rpc.OutOfMemoryErrorContext}
*/
public static final class OutOfMemoryErrorContext extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.OutOfMemoryErrorContext)
OutOfMemoryErrorContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use OutOfMemoryErrorContext.newBuilder() to construct.
private OutOfMemoryErrorContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private OutOfMemoryErrorContext() {
taskId_ = com.google.protobuf.ByteString.EMPTY;
taskName_ = "";
nodeIpAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OutOfMemoryErrorContext();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OutOfMemoryErrorContext(
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: {
taskId_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
taskName_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
nodeIpAddress_ = s;
break;
}
case 32: {
memoryUsedBytes_ = input.readUInt64();
break;
}
case 40: {
memoryTotalBytes_ = input.readUInt64();
break;
}
case 49: {
memoryUsageFraction_ = input.readDouble();
break;
}
case 57: {
memoryThreshold_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OutOfMemoryErrorContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OutOfMemoryErrorContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.OutOfMemoryErrorContext.class, io.ray.runtime.generated.Common.OutOfMemoryErrorContext.Builder.class);
}
public static final int TASK_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString taskId_;
/**
* bytes task_id = 1 [json_name = "taskId"];
* @return The taskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTaskId() {
return taskId_;
}
public static final int TASK_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object taskName_;
/**
* string task_name = 2 [json_name = "taskName"];
* @return The taskName.
*/
@java.lang.Override
public java.lang.String getTaskName() {
java.lang.Object ref = taskName_;
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();
taskName_ = s;
return s;
}
}
/**
* string task_name = 2 [json_name = "taskName"];
* @return The bytes for taskName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTaskNameBytes() {
java.lang.Object ref = taskName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_IP_ADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object nodeIpAddress_;
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
@java.lang.Override
public java.lang.String getNodeIpAddress() {
java.lang.Object ref = nodeIpAddress_;
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();
nodeIpAddress_ = s;
return s;
}
}
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNodeIpAddressBytes() {
java.lang.Object ref = nodeIpAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeIpAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MEMORY_USED_BYTES_FIELD_NUMBER = 4;
private long memoryUsedBytes_;
/**
* uint64 memory_used_bytes = 4 [json_name = "memoryUsedBytes"];
* @return The memoryUsedBytes.
*/
@java.lang.Override
public long getMemoryUsedBytes() {
return memoryUsedBytes_;
}
public static final int MEMORY_TOTAL_BYTES_FIELD_NUMBER = 5;
private long memoryTotalBytes_;
/**
* uint64 memory_total_bytes = 5 [json_name = "memoryTotalBytes"];
* @return The memoryTotalBytes.
*/
@java.lang.Override
public long getMemoryTotalBytes() {
return memoryTotalBytes_;
}
public static final int MEMORY_USAGE_FRACTION_FIELD_NUMBER = 6;
private double memoryUsageFraction_;
/**
* double memory_usage_fraction = 6 [json_name = "memoryUsageFraction"];
* @return The memoryUsageFraction.
*/
@java.lang.Override
public double getMemoryUsageFraction() {
return memoryUsageFraction_;
}
public static final int MEMORY_THRESHOLD_FIELD_NUMBER = 7;
private double memoryThreshold_;
/**
* double memory_threshold = 7 [json_name = "memoryThreshold"];
* @return The memoryThreshold.
*/
@java.lang.Override
public double getMemoryThreshold() {
return memoryThreshold_;
}
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 (!taskId_.isEmpty()) {
output.writeBytes(1, taskId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taskName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nodeIpAddress_);
}
if (memoryUsedBytes_ != 0L) {
output.writeUInt64(4, memoryUsedBytes_);
}
if (memoryTotalBytes_ != 0L) {
output.writeUInt64(5, memoryTotalBytes_);
}
if (java.lang.Double.doubleToRawLongBits(memoryUsageFraction_) != 0) {
output.writeDouble(6, memoryUsageFraction_);
}
if (java.lang.Double.doubleToRawLongBits(memoryThreshold_) != 0) {
output.writeDouble(7, memoryThreshold_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!taskId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, taskId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, taskName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nodeIpAddress_);
}
if (memoryUsedBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, memoryUsedBytes_);
}
if (memoryTotalBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, memoryTotalBytes_);
}
if (java.lang.Double.doubleToRawLongBits(memoryUsageFraction_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, memoryUsageFraction_);
}
if (java.lang.Double.doubleToRawLongBits(memoryThreshold_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, memoryThreshold_);
}
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.runtime.generated.Common.OutOfMemoryErrorContext)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.OutOfMemoryErrorContext other = (io.ray.runtime.generated.Common.OutOfMemoryErrorContext) obj;
if (!getTaskId()
.equals(other.getTaskId())) return false;
if (!getTaskName()
.equals(other.getTaskName())) return false;
if (!getNodeIpAddress()
.equals(other.getNodeIpAddress())) return false;
if (getMemoryUsedBytes()
!= other.getMemoryUsedBytes()) return false;
if (getMemoryTotalBytes()
!= other.getMemoryTotalBytes()) return false;
if (java.lang.Double.doubleToLongBits(getMemoryUsageFraction())
!= java.lang.Double.doubleToLongBits(
other.getMemoryUsageFraction())) return false;
if (java.lang.Double.doubleToLongBits(getMemoryThreshold())
!= java.lang.Double.doubleToLongBits(
other.getMemoryThreshold())) 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) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
hash = (37 * hash) + TASK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTaskName().hashCode();
hash = (37 * hash) + NODE_IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getNodeIpAddress().hashCode();
hash = (37 * hash) + MEMORY_USED_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMemoryUsedBytes());
hash = (37 * hash) + MEMORY_TOTAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getMemoryTotalBytes());
hash = (37 * hash) + MEMORY_USAGE_FRACTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMemoryUsageFraction()));
hash = (37 * hash) + MEMORY_THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMemoryThreshold()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext 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.runtime.generated.Common.OutOfMemoryErrorContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext 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.runtime.generated.Common.OutOfMemoryErrorContext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext 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.runtime.generated.Common.OutOfMemoryErrorContext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext 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.runtime.generated.Common.OutOfMemoryErrorContext 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.rpc.OutOfMemoryErrorContext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.OutOfMemoryErrorContext)
io.ray.runtime.generated.Common.OutOfMemoryErrorContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OutOfMemoryErrorContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OutOfMemoryErrorContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.OutOfMemoryErrorContext.class, io.ray.runtime.generated.Common.OutOfMemoryErrorContext.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.OutOfMemoryErrorContext.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();
taskId_ = com.google.protobuf.ByteString.EMPTY;
taskName_ = "";
nodeIpAddress_ = "";
memoryUsedBytes_ = 0L;
memoryTotalBytes_ = 0L;
memoryUsageFraction_ = 0D;
memoryThreshold_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OutOfMemoryErrorContext_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.OutOfMemoryErrorContext getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.OutOfMemoryErrorContext.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.OutOfMemoryErrorContext build() {
io.ray.runtime.generated.Common.OutOfMemoryErrorContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.OutOfMemoryErrorContext buildPartial() {
io.ray.runtime.generated.Common.OutOfMemoryErrorContext result = new io.ray.runtime.generated.Common.OutOfMemoryErrorContext(this);
result.taskId_ = taskId_;
result.taskName_ = taskName_;
result.nodeIpAddress_ = nodeIpAddress_;
result.memoryUsedBytes_ = memoryUsedBytes_;
result.memoryTotalBytes_ = memoryTotalBytes_;
result.memoryUsageFraction_ = memoryUsageFraction_;
result.memoryThreshold_ = memoryThreshold_;
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.runtime.generated.Common.OutOfMemoryErrorContext) {
return mergeFrom((io.ray.runtime.generated.Common.OutOfMemoryErrorContext)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.OutOfMemoryErrorContext other) {
if (other == io.ray.runtime.generated.Common.OutOfMemoryErrorContext.getDefaultInstance()) return this;
if (other.getTaskId() != com.google.protobuf.ByteString.EMPTY) {
setTaskId(other.getTaskId());
}
if (!other.getTaskName().isEmpty()) {
taskName_ = other.taskName_;
onChanged();
}
if (!other.getNodeIpAddress().isEmpty()) {
nodeIpAddress_ = other.nodeIpAddress_;
onChanged();
}
if (other.getMemoryUsedBytes() != 0L) {
setMemoryUsedBytes(other.getMemoryUsedBytes());
}
if (other.getMemoryTotalBytes() != 0L) {
setMemoryTotalBytes(other.getMemoryTotalBytes());
}
if (other.getMemoryUsageFraction() != 0D) {
setMemoryUsageFraction(other.getMemoryUsageFraction());
}
if (other.getMemoryThreshold() != 0D) {
setMemoryThreshold(other.getMemoryThreshold());
}
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.runtime.generated.Common.OutOfMemoryErrorContext parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.OutOfMemoryErrorContext) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString taskId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes task_id = 1 [json_name = "taskId"];
* @return The taskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTaskId() {
return taskId_;
}
/**
* bytes task_id = 1 [json_name = "taskId"];
* @param value The taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
return this;
}
/**
* bytes task_id = 1 [json_name = "taskId"];
* @return This builder for chaining.
*/
public Builder clearTaskId() {
taskId_ = getDefaultInstance().getTaskId();
onChanged();
return this;
}
private java.lang.Object taskName_ = "";
/**
* string task_name = 2 [json_name = "taskName"];
* @return The taskName.
*/
public java.lang.String getTaskName() {
java.lang.Object ref = taskName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
taskName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string task_name = 2 [json_name = "taskName"];
* @return The bytes for taskName.
*/
public com.google.protobuf.ByteString
getTaskNameBytes() {
java.lang.Object ref = taskName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
taskName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string task_name = 2 [json_name = "taskName"];
* @param value The taskName to set.
* @return This builder for chaining.
*/
public Builder setTaskName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
taskName_ = value;
onChanged();
return this;
}
/**
* string task_name = 2 [json_name = "taskName"];
* @return This builder for chaining.
*/
public Builder clearTaskName() {
taskName_ = getDefaultInstance().getTaskName();
onChanged();
return this;
}
/**
* string task_name = 2 [json_name = "taskName"];
* @param value The bytes for taskName to set.
* @return This builder for chaining.
*/
public Builder setTaskNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
taskName_ = value;
onChanged();
return this;
}
private java.lang.Object nodeIpAddress_ = "";
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
public java.lang.String getNodeIpAddress() {
java.lang.Object ref = nodeIpAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeIpAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
public com.google.protobuf.ByteString
getNodeIpAddressBytes() {
java.lang.Object ref = nodeIpAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeIpAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @param value The nodeIpAddress to set.
* @return This builder for chaining.
*/
public Builder setNodeIpAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nodeIpAddress_ = value;
onChanged();
return this;
}
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @return This builder for chaining.
*/
public Builder clearNodeIpAddress() {
nodeIpAddress_ = getDefaultInstance().getNodeIpAddress();
onChanged();
return this;
}
/**
* string node_ip_address = 3 [json_name = "nodeIpAddress"];
* @param value The bytes for nodeIpAddress to set.
* @return This builder for chaining.
*/
public Builder setNodeIpAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nodeIpAddress_ = value;
onChanged();
return this;
}
private long memoryUsedBytes_ ;
/**
* uint64 memory_used_bytes = 4 [json_name = "memoryUsedBytes"];
* @return The memoryUsedBytes.
*/
@java.lang.Override
public long getMemoryUsedBytes() {
return memoryUsedBytes_;
}
/**
* uint64 memory_used_bytes = 4 [json_name = "memoryUsedBytes"];
* @param value The memoryUsedBytes to set.
* @return This builder for chaining.
*/
public Builder setMemoryUsedBytes(long value) {
memoryUsedBytes_ = value;
onChanged();
return this;
}
/**
* uint64 memory_used_bytes = 4 [json_name = "memoryUsedBytes"];
* @return This builder for chaining.
*/
public Builder clearMemoryUsedBytes() {
memoryUsedBytes_ = 0L;
onChanged();
return this;
}
private long memoryTotalBytes_ ;
/**
* uint64 memory_total_bytes = 5 [json_name = "memoryTotalBytes"];
* @return The memoryTotalBytes.
*/
@java.lang.Override
public long getMemoryTotalBytes() {
return memoryTotalBytes_;
}
/**
* uint64 memory_total_bytes = 5 [json_name = "memoryTotalBytes"];
* @param value The memoryTotalBytes to set.
* @return This builder for chaining.
*/
public Builder setMemoryTotalBytes(long value) {
memoryTotalBytes_ = value;
onChanged();
return this;
}
/**
* uint64 memory_total_bytes = 5 [json_name = "memoryTotalBytes"];
* @return This builder for chaining.
*/
public Builder clearMemoryTotalBytes() {
memoryTotalBytes_ = 0L;
onChanged();
return this;
}
private double memoryUsageFraction_ ;
/**
* double memory_usage_fraction = 6 [json_name = "memoryUsageFraction"];
* @return The memoryUsageFraction.
*/
@java.lang.Override
public double getMemoryUsageFraction() {
return memoryUsageFraction_;
}
/**
* double memory_usage_fraction = 6 [json_name = "memoryUsageFraction"];
* @param value The memoryUsageFraction to set.
* @return This builder for chaining.
*/
public Builder setMemoryUsageFraction(double value) {
memoryUsageFraction_ = value;
onChanged();
return this;
}
/**
* double memory_usage_fraction = 6 [json_name = "memoryUsageFraction"];
* @return This builder for chaining.
*/
public Builder clearMemoryUsageFraction() {
memoryUsageFraction_ = 0D;
onChanged();
return this;
}
private double memoryThreshold_ ;
/**
* double memory_threshold = 7 [json_name = "memoryThreshold"];
* @return The memoryThreshold.
*/
@java.lang.Override
public double getMemoryThreshold() {
return memoryThreshold_;
}
/**
* double memory_threshold = 7 [json_name = "memoryThreshold"];
* @param value The memoryThreshold to set.
* @return This builder for chaining.
*/
public Builder setMemoryThreshold(double value) {
memoryThreshold_ = value;
onChanged();
return this;
}
/**
* double memory_threshold = 7 [json_name = "memoryThreshold"];
* @return This builder for chaining.
*/
public Builder clearMemoryThreshold() {
memoryThreshold_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:ray.rpc.OutOfMemoryErrorContext)
}
// @@protoc_insertion_point(class_scope:ray.rpc.OutOfMemoryErrorContext)
private static final io.ray.runtime.generated.Common.OutOfMemoryErrorContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.OutOfMemoryErrorContext();
}
public static io.ray.runtime.generated.Common.OutOfMemoryErrorContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OutOfMemoryErrorContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OutOfMemoryErrorContext(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.runtime.generated.Common.OutOfMemoryErrorContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeDiedErrorContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.NodeDiedErrorContext)
com.google.protobuf.MessageOrBuilder {
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @return The nodeId.
*/
com.google.protobuf.ByteString getNodeId();
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
java.lang.String getNodeIpAddress();
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
com.google.protobuf.ByteString
getNodeIpAddressBytes();
}
/**
* Protobuf type {@code ray.rpc.NodeDiedErrorContext}
*/
public static final class NodeDiedErrorContext extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.NodeDiedErrorContext)
NodeDiedErrorContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeDiedErrorContext.newBuilder() to construct.
private NodeDiedErrorContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private NodeDiedErrorContext() {
nodeId_ = com.google.protobuf.ByteString.EMPTY;
nodeIpAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeDiedErrorContext();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeDiedErrorContext(
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: {
nodeId_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
nodeIpAddress_ = 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.runtime.generated.Common.internal_static_ray_rpc_NodeDiedErrorContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeDiedErrorContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.NodeDiedErrorContext.class, io.ray.runtime.generated.Common.NodeDiedErrorContext.Builder.class);
}
public static final int NODE_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString nodeId_;
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @return The nodeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNodeId() {
return nodeId_;
}
public static final int NODE_IP_ADDRESS_FIELD_NUMBER = 2;
private volatile java.lang.Object nodeIpAddress_;
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
@java.lang.Override
public java.lang.String getNodeIpAddress() {
java.lang.Object ref = nodeIpAddress_;
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();
nodeIpAddress_ = s;
return s;
}
}
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNodeIpAddressBytes() {
java.lang.Object ref = nodeIpAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeIpAddress_ = 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 (!nodeId_.isEmpty()) {
output.writeBytes(1, nodeId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeIpAddress_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!nodeId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, nodeId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeIpAddress_);
}
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.runtime.generated.Common.NodeDiedErrorContext)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.NodeDiedErrorContext other = (io.ray.runtime.generated.Common.NodeDiedErrorContext) obj;
if (!getNodeId()
.equals(other.getNodeId())) return false;
if (!getNodeIpAddress()
.equals(other.getNodeIpAddress())) 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) + NODE_ID_FIELD_NUMBER;
hash = (53 * hash) + getNodeId().hashCode();
hash = (37 * hash) + NODE_IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getNodeIpAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext 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.runtime.generated.Common.NodeDiedErrorContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext 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.runtime.generated.Common.NodeDiedErrorContext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext 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.runtime.generated.Common.NodeDiedErrorContext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext 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.runtime.generated.Common.NodeDiedErrorContext 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.rpc.NodeDiedErrorContext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.NodeDiedErrorContext)
io.ray.runtime.generated.Common.NodeDiedErrorContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeDiedErrorContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeDiedErrorContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.NodeDiedErrorContext.class, io.ray.runtime.generated.Common.NodeDiedErrorContext.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.NodeDiedErrorContext.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();
nodeId_ = com.google.protobuf.ByteString.EMPTY;
nodeIpAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeDiedErrorContext_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDiedErrorContext getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.NodeDiedErrorContext.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDiedErrorContext build() {
io.ray.runtime.generated.Common.NodeDiedErrorContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDiedErrorContext buildPartial() {
io.ray.runtime.generated.Common.NodeDiedErrorContext result = new io.ray.runtime.generated.Common.NodeDiedErrorContext(this);
result.nodeId_ = nodeId_;
result.nodeIpAddress_ = nodeIpAddress_;
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.runtime.generated.Common.NodeDiedErrorContext) {
return mergeFrom((io.ray.runtime.generated.Common.NodeDiedErrorContext)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.NodeDiedErrorContext other) {
if (other == io.ray.runtime.generated.Common.NodeDiedErrorContext.getDefaultInstance()) return this;
if (other.getNodeId() != com.google.protobuf.ByteString.EMPTY) {
setNodeId(other.getNodeId());
}
if (!other.getNodeIpAddress().isEmpty()) {
nodeIpAddress_ = other.nodeIpAddress_;
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.runtime.generated.Common.NodeDiedErrorContext parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.NodeDiedErrorContext) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString nodeId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @return The nodeId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNodeId() {
return nodeId_;
}
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @param value The nodeId to set.
* @return This builder for chaining.
*/
public Builder setNodeId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
nodeId_ = value;
onChanged();
return this;
}
/**
* bytes node_id = 1 [json_name = "nodeId"];
* @return This builder for chaining.
*/
public Builder clearNodeId() {
nodeId_ = getDefaultInstance().getNodeId();
onChanged();
return this;
}
private java.lang.Object nodeIpAddress_ = "";
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
public java.lang.String getNodeIpAddress() {
java.lang.Object ref = nodeIpAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeIpAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
public com.google.protobuf.ByteString
getNodeIpAddressBytes() {
java.lang.Object ref = nodeIpAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeIpAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @param value The nodeIpAddress to set.
* @return This builder for chaining.
*/
public Builder setNodeIpAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nodeIpAddress_ = value;
onChanged();
return this;
}
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @return This builder for chaining.
*/
public Builder clearNodeIpAddress() {
nodeIpAddress_ = getDefaultInstance().getNodeIpAddress();
onChanged();
return this;
}
/**
* string node_ip_address = 2 [json_name = "nodeIpAddress"];
* @param value The bytes for nodeIpAddress to set.
* @return This builder for chaining.
*/
public Builder setNodeIpAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nodeIpAddress_ = 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.rpc.NodeDiedErrorContext)
}
// @@protoc_insertion_point(class_scope:ray.rpc.NodeDiedErrorContext)
private static final io.ray.runtime.generated.Common.NodeDiedErrorContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.NodeDiedErrorContext();
}
public static io.ray.runtime.generated.Common.NodeDiedErrorContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeDiedErrorContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeDiedErrorContext(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.runtime.generated.Common.NodeDiedErrorContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RayExceptionOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.RayException)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @return The enum numeric value on the wire for language.
*/
int getLanguageValue();
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @return The language.
*/
io.ray.runtime.generated.Common.Language getLanguage();
/**
* bytes serialized_exception = 2 [json_name = "serializedException"];
* @return The serializedException.
*/
com.google.protobuf.ByteString getSerializedException();
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @return The formattedExceptionString.
*/
java.lang.String getFormattedExceptionString();
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @return The bytes for formattedExceptionString.
*/
com.google.protobuf.ByteString
getFormattedExceptionStringBytes();
}
/**
* Protobuf type {@code ray.rpc.RayException}
*/
public static final class RayException extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.RayException)
RayExceptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use RayException.newBuilder() to construct.
private RayException(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RayException() {
language_ = 0;
serializedException_ = com.google.protobuf.ByteString.EMPTY;
formattedExceptionString_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RayException();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RayException(
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 8: {
int rawValue = input.readEnum();
language_ = rawValue;
break;
}
case 18: {
serializedException_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
formattedExceptionString_ = 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.runtime.generated.Common.internal_static_ray_rpc_RayException_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RayException_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.RayException.class, io.ray.runtime.generated.Common.RayException.Builder.class);
}
public static final int LANGUAGE_FIELD_NUMBER = 1;
private int language_;
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @return The enum numeric value on the wire for language.
*/
@java.lang.Override public int getLanguageValue() {
return language_;
}
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @return The language.
*/
@java.lang.Override public io.ray.runtime.generated.Common.Language getLanguage() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.Language result = io.ray.runtime.generated.Common.Language.valueOf(language_);
return result == null ? io.ray.runtime.generated.Common.Language.UNRECOGNIZED : result;
}
public static final int SERIALIZED_EXCEPTION_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString serializedException_;
/**
* bytes serialized_exception = 2 [json_name = "serializedException"];
* @return The serializedException.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSerializedException() {
return serializedException_;
}
public static final int FORMATTED_EXCEPTION_STRING_FIELD_NUMBER = 3;
private volatile java.lang.Object formattedExceptionString_;
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @return The formattedExceptionString.
*/
@java.lang.Override
public java.lang.String getFormattedExceptionString() {
java.lang.Object ref = formattedExceptionString_;
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();
formattedExceptionString_ = s;
return s;
}
}
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @return The bytes for formattedExceptionString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFormattedExceptionStringBytes() {
java.lang.Object ref = formattedExceptionString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formattedExceptionString_ = 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 (language_ != io.ray.runtime.generated.Common.Language.PYTHON.getNumber()) {
output.writeEnum(1, language_);
}
if (!serializedException_.isEmpty()) {
output.writeBytes(2, serializedException_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedExceptionString_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, formattedExceptionString_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (language_ != io.ray.runtime.generated.Common.Language.PYTHON.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, language_);
}
if (!serializedException_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, serializedException_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(formattedExceptionString_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, formattedExceptionString_);
}
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.runtime.generated.Common.RayException)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.RayException other = (io.ray.runtime.generated.Common.RayException) obj;
if (language_ != other.language_) return false;
if (!getSerializedException()
.equals(other.getSerializedException())) return false;
if (!getFormattedExceptionString()
.equals(other.getFormattedExceptionString())) 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) + LANGUAGE_FIELD_NUMBER;
hash = (53 * hash) + language_;
hash = (37 * hash) + SERIALIZED_EXCEPTION_FIELD_NUMBER;
hash = (53 * hash) + getSerializedException().hashCode();
hash = (37 * hash) + FORMATTED_EXCEPTION_STRING_FIELD_NUMBER;
hash = (53 * hash) + getFormattedExceptionString().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.RayException parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RayException parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.RayException parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RayException 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.runtime.generated.Common.RayException parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RayException parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.RayException parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RayException 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.runtime.generated.Common.RayException parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RayException 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.runtime.generated.Common.RayException parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RayException 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.runtime.generated.Common.RayException 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.rpc.RayException}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.RayException)
io.ray.runtime.generated.Common.RayExceptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RayException_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RayException_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.RayException.class, io.ray.runtime.generated.Common.RayException.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.RayException.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();
language_ = 0;
serializedException_ = com.google.protobuf.ByteString.EMPTY;
formattedExceptionString_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RayException_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.RayException getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.RayException.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.RayException build() {
io.ray.runtime.generated.Common.RayException result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.RayException buildPartial() {
io.ray.runtime.generated.Common.RayException result = new io.ray.runtime.generated.Common.RayException(this);
result.language_ = language_;
result.serializedException_ = serializedException_;
result.formattedExceptionString_ = formattedExceptionString_;
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.runtime.generated.Common.RayException) {
return mergeFrom((io.ray.runtime.generated.Common.RayException)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.RayException other) {
if (other == io.ray.runtime.generated.Common.RayException.getDefaultInstance()) return this;
if (other.language_ != 0) {
setLanguageValue(other.getLanguageValue());
}
if (other.getSerializedException() != com.google.protobuf.ByteString.EMPTY) {
setSerializedException(other.getSerializedException());
}
if (!other.getFormattedExceptionString().isEmpty()) {
formattedExceptionString_ = other.formattedExceptionString_;
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.runtime.generated.Common.RayException parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.RayException) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int language_ = 0;
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @return The enum numeric value on the wire for language.
*/
@java.lang.Override public int getLanguageValue() {
return language_;
}
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @param value The enum numeric value on the wire for language to set.
* @return This builder for chaining.
*/
public Builder setLanguageValue(int value) {
language_ = value;
onChanged();
return this;
}
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @return The language.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.Language getLanguage() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.Language result = io.ray.runtime.generated.Common.Language.valueOf(language_);
return result == null ? io.ray.runtime.generated.Common.Language.UNRECOGNIZED : result;
}
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @param value The language to set.
* @return This builder for chaining.
*/
public Builder setLanguage(io.ray.runtime.generated.Common.Language value) {
if (value == null) {
throw new NullPointerException();
}
language_ = value.getNumber();
onChanged();
return this;
}
/**
* .ray.rpc.Language language = 1 [json_name = "language"];
* @return This builder for chaining.
*/
public Builder clearLanguage() {
language_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString serializedException_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes serialized_exception = 2 [json_name = "serializedException"];
* @return The serializedException.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSerializedException() {
return serializedException_;
}
/**
* bytes serialized_exception = 2 [json_name = "serializedException"];
* @param value The serializedException to set.
* @return This builder for chaining.
*/
public Builder setSerializedException(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
serializedException_ = value;
onChanged();
return this;
}
/**
* bytes serialized_exception = 2 [json_name = "serializedException"];
* @return This builder for chaining.
*/
public Builder clearSerializedException() {
serializedException_ = getDefaultInstance().getSerializedException();
onChanged();
return this;
}
private java.lang.Object formattedExceptionString_ = "";
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @return The formattedExceptionString.
*/
public java.lang.String getFormattedExceptionString() {
java.lang.Object ref = formattedExceptionString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formattedExceptionString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @return The bytes for formattedExceptionString.
*/
public com.google.protobuf.ByteString
getFormattedExceptionStringBytes() {
java.lang.Object ref = formattedExceptionString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formattedExceptionString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @param value The formattedExceptionString to set.
* @return This builder for chaining.
*/
public Builder setFormattedExceptionString(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formattedExceptionString_ = value;
onChanged();
return this;
}
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @return This builder for chaining.
*/
public Builder clearFormattedExceptionString() {
formattedExceptionString_ = getDefaultInstance().getFormattedExceptionString();
onChanged();
return this;
}
/**
* string formatted_exception_string = 3 [json_name = "formattedExceptionString"];
* @param value The bytes for formattedExceptionString to set.
* @return This builder for chaining.
*/
public Builder setFormattedExceptionStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formattedExceptionString_ = 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.rpc.RayException)
}
// @@protoc_insertion_point(class_scope:ray.rpc.RayException)
private static final io.ray.runtime.generated.Common.RayException DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.RayException();
}
public static io.ray.runtime.generated.Common.RayException getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RayException parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RayException(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.runtime.generated.Common.RayException getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NodeDeathInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.NodeDeathInfo)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @return The enum numeric value on the wire for reason.
*/
int getReasonValue();
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @return The reason.
*/
io.ray.runtime.generated.Common.NodeDeathInfo.Reason getReason();
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @return The reasonMessage.
*/
java.lang.String getReasonMessage();
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @return The bytes for reasonMessage.
*/
com.google.protobuf.ByteString
getReasonMessageBytes();
}
/**
* Protobuf type {@code ray.rpc.NodeDeathInfo}
*/
public static final class NodeDeathInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.NodeDeathInfo)
NodeDeathInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use NodeDeathInfo.newBuilder() to construct.
private NodeDeathInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private NodeDeathInfo() {
reason_ = 0;
reasonMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NodeDeathInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NodeDeathInfo(
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 8: {
int rawValue = input.readEnum();
reason_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
reasonMessage_ = 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.runtime.generated.Common.internal_static_ray_rpc_NodeDeathInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeDeathInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.NodeDeathInfo.class, io.ray.runtime.generated.Common.NodeDeathInfo.Builder.class);
}
/**
* Protobuf enum {@code ray.rpc.NodeDeathInfo.Reason}
*/
public enum Reason
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNSPECIFIED = 0;
*/
UNSPECIFIED(0),
/**
* EXPECTED_TERMINATION = 1;
*/
EXPECTED_TERMINATION(1),
/**
* UNEXPECTED_TERMINATION = 2;
*/
UNEXPECTED_TERMINATION(2),
/**
* AUTOSCALER_DRAIN_PREEMPTED = 3;
*/
AUTOSCALER_DRAIN_PREEMPTED(3),
/**
* AUTOSCALER_DRAIN_IDLE = 4;
*/
AUTOSCALER_DRAIN_IDLE(4),
UNRECOGNIZED(-1),
;
/**
* UNSPECIFIED = 0;
*/
public static final int UNSPECIFIED_VALUE = 0;
/**
* EXPECTED_TERMINATION = 1;
*/
public static final int EXPECTED_TERMINATION_VALUE = 1;
/**
* UNEXPECTED_TERMINATION = 2;
*/
public static final int UNEXPECTED_TERMINATION_VALUE = 2;
/**
* AUTOSCALER_DRAIN_PREEMPTED = 3;
*/
public static final int AUTOSCALER_DRAIN_PREEMPTED_VALUE = 3;
/**
* AUTOSCALER_DRAIN_IDLE = 4;
*/
public static final int AUTOSCALER_DRAIN_IDLE_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Reason valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Reason forNumber(int value) {
switch (value) {
case 0: return UNSPECIFIED;
case 1: return EXPECTED_TERMINATION;
case 2: return UNEXPECTED_TERMINATION;
case 3: return AUTOSCALER_DRAIN_PREEMPTED;
case 4: return AUTOSCALER_DRAIN_IDLE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Reason> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Reason findValueByNumber(int number) {
return Reason.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.NodeDeathInfo.getDescriptor().getEnumTypes().get(0);
}
private static final Reason[] VALUES = values();
public static Reason valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Reason(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.NodeDeathInfo.Reason)
}
public static final int REASON_FIELD_NUMBER = 1;
private int reason_;
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @return The enum numeric value on the wire for reason.
*/
@java.lang.Override public int getReasonValue() {
return reason_;
}
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @return The reason.
*/
@java.lang.Override public io.ray.runtime.generated.Common.NodeDeathInfo.Reason getReason() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.NodeDeathInfo.Reason result = io.ray.runtime.generated.Common.NodeDeathInfo.Reason.valueOf(reason_);
return result == null ? io.ray.runtime.generated.Common.NodeDeathInfo.Reason.UNRECOGNIZED : result;
}
public static final int REASON_MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object reasonMessage_;
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @return The reasonMessage.
*/
@java.lang.Override
public java.lang.String getReasonMessage() {
java.lang.Object ref = reasonMessage_;
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();
reasonMessage_ = s;
return s;
}
}
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @return The bytes for reasonMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonMessageBytes() {
java.lang.Object ref = reasonMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reasonMessage_ = 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 (reason_ != io.ray.runtime.generated.Common.NodeDeathInfo.Reason.UNSPECIFIED.getNumber()) {
output.writeEnum(1, reason_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reasonMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reasonMessage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (reason_ != io.ray.runtime.generated.Common.NodeDeathInfo.Reason.UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, reason_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reasonMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reasonMessage_);
}
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.runtime.generated.Common.NodeDeathInfo)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.NodeDeathInfo other = (io.ray.runtime.generated.Common.NodeDeathInfo) obj;
if (reason_ != other.reason_) return false;
if (!getReasonMessage()
.equals(other.getReasonMessage())) 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) + REASON_FIELD_NUMBER;
hash = (53 * hash) + reason_;
hash = (37 * hash) + REASON_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getReasonMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.NodeDeathInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeDeathInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.NodeDeathInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeDeathInfo 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.runtime.generated.Common.NodeDeathInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.NodeDeathInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.NodeDeathInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeDeathInfo 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.runtime.generated.Common.NodeDeathInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeDeathInfo 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.runtime.generated.Common.NodeDeathInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.NodeDeathInfo 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.runtime.generated.Common.NodeDeathInfo 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.rpc.NodeDeathInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.NodeDeathInfo)
io.ray.runtime.generated.Common.NodeDeathInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeDeathInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeDeathInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.NodeDeathInfo.class, io.ray.runtime.generated.Common.NodeDeathInfo.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.NodeDeathInfo.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();
reason_ = 0;
reasonMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeDeathInfo_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDeathInfo getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.NodeDeathInfo.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDeathInfo build() {
io.ray.runtime.generated.Common.NodeDeathInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDeathInfo buildPartial() {
io.ray.runtime.generated.Common.NodeDeathInfo result = new io.ray.runtime.generated.Common.NodeDeathInfo(this);
result.reason_ = reason_;
result.reasonMessage_ = reasonMessage_;
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.runtime.generated.Common.NodeDeathInfo) {
return mergeFrom((io.ray.runtime.generated.Common.NodeDeathInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.NodeDeathInfo other) {
if (other == io.ray.runtime.generated.Common.NodeDeathInfo.getDefaultInstance()) return this;
if (other.reason_ != 0) {
setReasonValue(other.getReasonValue());
}
if (!other.getReasonMessage().isEmpty()) {
reasonMessage_ = other.reasonMessage_;
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.runtime.generated.Common.NodeDeathInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.NodeDeathInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int reason_ = 0;
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @return The enum numeric value on the wire for reason.
*/
@java.lang.Override public int getReasonValue() {
return reason_;
}
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @param value The enum numeric value on the wire for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonValue(int value) {
reason_ = value;
onChanged();
return this;
}
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @return The reason.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDeathInfo.Reason getReason() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.NodeDeathInfo.Reason result = io.ray.runtime.generated.Common.NodeDeathInfo.Reason.valueOf(reason_);
return result == null ? io.ray.runtime.generated.Common.NodeDeathInfo.Reason.UNRECOGNIZED : result;
}
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(io.ray.runtime.generated.Common.NodeDeathInfo.Reason value) {
if (value == null) {
throw new NullPointerException();
}
reason_ = value.getNumber();
onChanged();
return this;
}
/**
* .ray.rpc.NodeDeathInfo.Reason reason = 1 [json_name = "reason"];
* @return This builder for chaining.
*/
public Builder clearReason() {
reason_ = 0;
onChanged();
return this;
}
private java.lang.Object reasonMessage_ = "";
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @return The reasonMessage.
*/
public java.lang.String getReasonMessage() {
java.lang.Object ref = reasonMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
reasonMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @return The bytes for reasonMessage.
*/
public com.google.protobuf.ByteString
getReasonMessageBytes() {
java.lang.Object ref = reasonMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reasonMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @param value The reasonMessage to set.
* @return This builder for chaining.
*/
public Builder setReasonMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
reasonMessage_ = value;
onChanged();
return this;
}
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @return This builder for chaining.
*/
public Builder clearReasonMessage() {
reasonMessage_ = getDefaultInstance().getReasonMessage();
onChanged();
return this;
}
/**
* string reason_message = 2 [json_name = "reasonMessage"];
* @param value The bytes for reasonMessage to set.
* @return This builder for chaining.
*/
public Builder setReasonMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
reasonMessage_ = 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.rpc.NodeDeathInfo)
}
// @@protoc_insertion_point(class_scope:ray.rpc.NodeDeathInfo)
private static final io.ray.runtime.generated.Common.NodeDeathInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.NodeDeathInfo();
}
public static io.ray.runtime.generated.Common.NodeDeathInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NodeDeathInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NodeDeathInfo(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.runtime.generated.Common.NodeDeathInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ActorDeathCauseOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.ActorDeathCause)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
* @return Whether the creationTaskFailureContext field is set.
*/
boolean hasCreationTaskFailureContext();
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
* @return The creationTaskFailureContext.
*/
io.ray.runtime.generated.Common.RayException getCreationTaskFailureContext();
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
io.ray.runtime.generated.Common.RayExceptionOrBuilder getCreationTaskFailureContextOrBuilder();
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
* @return Whether the runtimeEnvFailedContext field is set.
*/
boolean hasRuntimeEnvFailedContext();
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
* @return The runtimeEnvFailedContext.
*/
io.ray.runtime.generated.Common.RuntimeEnvFailedContext getRuntimeEnvFailedContext();
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder getRuntimeEnvFailedContextOrBuilder();
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
* @return Whether the actorDiedErrorContext field is set.
*/
boolean hasActorDiedErrorContext();
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
* @return The actorDiedErrorContext.
*/
io.ray.runtime.generated.Common.ActorDiedErrorContext getActorDiedErrorContext();
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
io.ray.runtime.generated.Common.ActorDiedErrorContextOrBuilder getActorDiedErrorContextOrBuilder();
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
* @return Whether the actorUnschedulableContext field is set.
*/
boolean hasActorUnschedulableContext();
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
* @return The actorUnschedulableContext.
*/
io.ray.runtime.generated.Common.ActorUnschedulableContext getActorUnschedulableContext();
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
io.ray.runtime.generated.Common.ActorUnschedulableContextOrBuilder getActorUnschedulableContextOrBuilder();
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
* @return Whether the oomContext field is set.
*/
boolean hasOomContext();
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
* @return The oomContext.
*/
io.ray.runtime.generated.Common.OomContext getOomContext();
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
io.ray.runtime.generated.Common.OomContextOrBuilder getOomContextOrBuilder();
public io.ray.runtime.generated.Common.ActorDeathCause.ContextCase getContextCase();
}
/**
* Protobuf type {@code ray.rpc.ActorDeathCause}
*/
public static final class ActorDeathCause extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.ActorDeathCause)
ActorDeathCauseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActorDeathCause.newBuilder() to construct.
private ActorDeathCause(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ActorDeathCause() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActorDeathCause();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ActorDeathCause(
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: {
io.ray.runtime.generated.Common.RayException.Builder subBuilder = null;
if (contextCase_ == 1) {
subBuilder = ((io.ray.runtime.generated.Common.RayException) context_).toBuilder();
}
context_ =
input.readMessage(io.ray.runtime.generated.Common.RayException.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.RayException) context_);
context_ = subBuilder.buildPartial();
}
contextCase_ = 1;
break;
}
case 18: {
io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder subBuilder = null;
if (contextCase_ == 2) {
subBuilder = ((io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_).toBuilder();
}
context_ =
input.readMessage(io.ray.runtime.generated.Common.RuntimeEnvFailedContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_);
context_ = subBuilder.buildPartial();
}
contextCase_ = 2;
break;
}
case 26: {
io.ray.runtime.generated.Common.ActorDiedErrorContext.Builder subBuilder = null;
if (contextCase_ == 3) {
subBuilder = ((io.ray.runtime.generated.Common.ActorDiedErrorContext) context_).toBuilder();
}
context_ =
input.readMessage(io.ray.runtime.generated.Common.ActorDiedErrorContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.ActorDiedErrorContext) context_);
context_ = subBuilder.buildPartial();
}
contextCase_ = 3;
break;
}
case 34: {
io.ray.runtime.generated.Common.ActorUnschedulableContext.Builder subBuilder = null;
if (contextCase_ == 4) {
subBuilder = ((io.ray.runtime.generated.Common.ActorUnschedulableContext) context_).toBuilder();
}
context_ =
input.readMessage(io.ray.runtime.generated.Common.ActorUnschedulableContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.ActorUnschedulableContext) context_);
context_ = subBuilder.buildPartial();
}
contextCase_ = 4;
break;
}
case 42: {
io.ray.runtime.generated.Common.OomContext.Builder subBuilder = null;
if (contextCase_ == 5) {
subBuilder = ((io.ray.runtime.generated.Common.OomContext) context_).toBuilder();
}
context_ =
input.readMessage(io.ray.runtime.generated.Common.OomContext.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.ray.runtime.generated.Common.OomContext) context_);
context_ = subBuilder.buildPartial();
}
contextCase_ = 5;
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.runtime.generated.Common.internal_static_ray_rpc_ActorDeathCause_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorDeathCause_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ActorDeathCause.class, io.ray.runtime.generated.Common.ActorDeathCause.Builder.class);
}
private int contextCase_ = 0;
private java.lang.Object context_;
public enum ContextCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CREATION_TASK_FAILURE_CONTEXT(1),
RUNTIME_ENV_FAILED_CONTEXT(2),
ACTOR_DIED_ERROR_CONTEXT(3),
ACTOR_UNSCHEDULABLE_CONTEXT(4),
OOM_CONTEXT(5),
CONTEXT_NOT_SET(0);
private final int value;
private ContextCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ContextCase valueOf(int value) {
return forNumber(value);
}
public static ContextCase forNumber(int value) {
switch (value) {
case 1: return CREATION_TASK_FAILURE_CONTEXT;
case 2: return RUNTIME_ENV_FAILED_CONTEXT;
case 3: return ACTOR_DIED_ERROR_CONTEXT;
case 4: return ACTOR_UNSCHEDULABLE_CONTEXT;
case 5: return OOM_CONTEXT;
case 0: return CONTEXT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ContextCase
getContextCase() {
return ContextCase.forNumber(
contextCase_);
}
public static final int CREATION_TASK_FAILURE_CONTEXT_FIELD_NUMBER = 1;
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
* @return Whether the creationTaskFailureContext field is set.
*/
@java.lang.Override
public boolean hasCreationTaskFailureContext() {
return contextCase_ == 1;
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
* @return The creationTaskFailureContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RayException getCreationTaskFailureContext() {
if (contextCase_ == 1) {
return (io.ray.runtime.generated.Common.RayException) context_;
}
return io.ray.runtime.generated.Common.RayException.getDefaultInstance();
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RayExceptionOrBuilder getCreationTaskFailureContextOrBuilder() {
if (contextCase_ == 1) {
return (io.ray.runtime.generated.Common.RayException) context_;
}
return io.ray.runtime.generated.Common.RayException.getDefaultInstance();
}
public static final int RUNTIME_ENV_FAILED_CONTEXT_FIELD_NUMBER = 2;
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
* @return Whether the runtimeEnvFailedContext field is set.
*/
@java.lang.Override
public boolean hasRuntimeEnvFailedContext() {
return contextCase_ == 2;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
* @return The runtimeEnvFailedContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext getRuntimeEnvFailedContext() {
if (contextCase_ == 2) {
return (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_;
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder getRuntimeEnvFailedContextOrBuilder() {
if (contextCase_ == 2) {
return (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_;
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
public static final int ACTOR_DIED_ERROR_CONTEXT_FIELD_NUMBER = 3;
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
* @return Whether the actorDiedErrorContext field is set.
*/
@java.lang.Override
public boolean hasActorDiedErrorContext() {
return contextCase_ == 3;
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
* @return The actorDiedErrorContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDiedErrorContext getActorDiedErrorContext() {
if (contextCase_ == 3) {
return (io.ray.runtime.generated.Common.ActorDiedErrorContext) context_;
}
return io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance();
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDiedErrorContextOrBuilder getActorDiedErrorContextOrBuilder() {
if (contextCase_ == 3) {
return (io.ray.runtime.generated.Common.ActorDiedErrorContext) context_;
}
return io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance();
}
public static final int ACTOR_UNSCHEDULABLE_CONTEXT_FIELD_NUMBER = 4;
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
* @return Whether the actorUnschedulableContext field is set.
*/
@java.lang.Override
public boolean hasActorUnschedulableContext() {
return contextCase_ == 4;
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
* @return The actorUnschedulableContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnschedulableContext getActorUnschedulableContext() {
if (contextCase_ == 4) {
return (io.ray.runtime.generated.Common.ActorUnschedulableContext) context_;
}
return io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance();
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnschedulableContextOrBuilder getActorUnschedulableContextOrBuilder() {
if (contextCase_ == 4) {
return (io.ray.runtime.generated.Common.ActorUnschedulableContext) context_;
}
return io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance();
}
public static final int OOM_CONTEXT_FIELD_NUMBER = 5;
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
* @return Whether the oomContext field is set.
*/
@java.lang.Override
public boolean hasOomContext() {
return contextCase_ == 5;
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
* @return The oomContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.OomContext getOomContext() {
if (contextCase_ == 5) {
return (io.ray.runtime.generated.Common.OomContext) context_;
}
return io.ray.runtime.generated.Common.OomContext.getDefaultInstance();
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.OomContextOrBuilder getOomContextOrBuilder() {
if (contextCase_ == 5) {
return (io.ray.runtime.generated.Common.OomContext) context_;
}
return io.ray.runtime.generated.Common.OomContext.getDefaultInstance();
}
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 (contextCase_ == 1) {
output.writeMessage(1, (io.ray.runtime.generated.Common.RayException) context_);
}
if (contextCase_ == 2) {
output.writeMessage(2, (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_);
}
if (contextCase_ == 3) {
output.writeMessage(3, (io.ray.runtime.generated.Common.ActorDiedErrorContext) context_);
}
if (contextCase_ == 4) {
output.writeMessage(4, (io.ray.runtime.generated.Common.ActorUnschedulableContext) context_);
}
if (contextCase_ == 5) {
output.writeMessage(5, (io.ray.runtime.generated.Common.OomContext) context_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (contextCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.ray.runtime.generated.Common.RayException) context_);
}
if (contextCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_);
}
if (contextCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.ray.runtime.generated.Common.ActorDiedErrorContext) context_);
}
if (contextCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (io.ray.runtime.generated.Common.ActorUnschedulableContext) context_);
}
if (contextCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.ray.runtime.generated.Common.OomContext) context_);
}
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.runtime.generated.Common.ActorDeathCause)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.ActorDeathCause other = (io.ray.runtime.generated.Common.ActorDeathCause) obj;
if (!getContextCase().equals(other.getContextCase())) return false;
switch (contextCase_) {
case 1:
if (!getCreationTaskFailureContext()
.equals(other.getCreationTaskFailureContext())) return false;
break;
case 2:
if (!getRuntimeEnvFailedContext()
.equals(other.getRuntimeEnvFailedContext())) return false;
break;
case 3:
if (!getActorDiedErrorContext()
.equals(other.getActorDiedErrorContext())) return false;
break;
case 4:
if (!getActorUnschedulableContext()
.equals(other.getActorUnschedulableContext())) return false;
break;
case 5:
if (!getOomContext()
.equals(other.getOomContext())) return false;
break;
case 0:
default:
}
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();
switch (contextCase_) {
case 1:
hash = (37 * hash) + CREATION_TASK_FAILURE_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getCreationTaskFailureContext().hashCode();
break;
case 2:
hash = (37 * hash) + RUNTIME_ENV_FAILED_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getRuntimeEnvFailedContext().hashCode();
break;
case 3:
hash = (37 * hash) + ACTOR_DIED_ERROR_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getActorDiedErrorContext().hashCode();
break;
case 4:
hash = (37 * hash) + ACTOR_UNSCHEDULABLE_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getActorUnschedulableContext().hashCode();
break;
case 5:
hash = (37 * hash) + OOM_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getOomContext().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.ActorDeathCause parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorDeathCause parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ActorDeathCause parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorDeathCause 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.runtime.generated.Common.ActorDeathCause parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorDeathCause parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ActorDeathCause parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorDeathCause 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.runtime.generated.Common.ActorDeathCause parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorDeathCause 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.runtime.generated.Common.ActorDeathCause parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorDeathCause 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.runtime.generated.Common.ActorDeathCause 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.rpc.ActorDeathCause}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.ActorDeathCause)
io.ray.runtime.generated.Common.ActorDeathCauseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorDeathCause_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorDeathCause_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ActorDeathCause.class, io.ray.runtime.generated.Common.ActorDeathCause.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.ActorDeathCause.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();
contextCase_ = 0;
context_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorDeathCause_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDeathCause getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDeathCause build() {
io.ray.runtime.generated.Common.ActorDeathCause result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDeathCause buildPartial() {
io.ray.runtime.generated.Common.ActorDeathCause result = new io.ray.runtime.generated.Common.ActorDeathCause(this);
if (contextCase_ == 1) {
if (creationTaskFailureContextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = creationTaskFailureContextBuilder_.build();
}
}
if (contextCase_ == 2) {
if (runtimeEnvFailedContextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = runtimeEnvFailedContextBuilder_.build();
}
}
if (contextCase_ == 3) {
if (actorDiedErrorContextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = actorDiedErrorContextBuilder_.build();
}
}
if (contextCase_ == 4) {
if (actorUnschedulableContextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = actorUnschedulableContextBuilder_.build();
}
}
if (contextCase_ == 5) {
if (oomContextBuilder_ == null) {
result.context_ = context_;
} else {
result.context_ = oomContextBuilder_.build();
}
}
result.contextCase_ = contextCase_;
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.runtime.generated.Common.ActorDeathCause) {
return mergeFrom((io.ray.runtime.generated.Common.ActorDeathCause)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.ActorDeathCause other) {
if (other == io.ray.runtime.generated.Common.ActorDeathCause.getDefaultInstance()) return this;
switch (other.getContextCase()) {
case CREATION_TASK_FAILURE_CONTEXT: {
mergeCreationTaskFailureContext(other.getCreationTaskFailureContext());
break;
}
case RUNTIME_ENV_FAILED_CONTEXT: {
mergeRuntimeEnvFailedContext(other.getRuntimeEnvFailedContext());
break;
}
case ACTOR_DIED_ERROR_CONTEXT: {
mergeActorDiedErrorContext(other.getActorDiedErrorContext());
break;
}
case ACTOR_UNSCHEDULABLE_CONTEXT: {
mergeActorUnschedulableContext(other.getActorUnschedulableContext());
break;
}
case OOM_CONTEXT: {
mergeOomContext(other.getOomContext());
break;
}
case CONTEXT_NOT_SET: {
break;
}
}
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.runtime.generated.Common.ActorDeathCause parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.ActorDeathCause) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int contextCase_ = 0;
private java.lang.Object context_;
public ContextCase
getContextCase() {
return ContextCase.forNumber(
contextCase_);
}
public Builder clearContext() {
contextCase_ = 0;
context_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RayException, io.ray.runtime.generated.Common.RayException.Builder, io.ray.runtime.generated.Common.RayExceptionOrBuilder> creationTaskFailureContextBuilder_;
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
* @return Whether the creationTaskFailureContext field is set.
*/
@java.lang.Override
public boolean hasCreationTaskFailureContext() {
return contextCase_ == 1;
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
* @return The creationTaskFailureContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RayException getCreationTaskFailureContext() {
if (creationTaskFailureContextBuilder_ == null) {
if (contextCase_ == 1) {
return (io.ray.runtime.generated.Common.RayException) context_;
}
return io.ray.runtime.generated.Common.RayException.getDefaultInstance();
} else {
if (contextCase_ == 1) {
return creationTaskFailureContextBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.RayException.getDefaultInstance();
}
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
public Builder setCreationTaskFailureContext(io.ray.runtime.generated.Common.RayException value) {
if (creationTaskFailureContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
creationTaskFailureContextBuilder_.setMessage(value);
}
contextCase_ = 1;
return this;
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
public Builder setCreationTaskFailureContext(
io.ray.runtime.generated.Common.RayException.Builder builderForValue) {
if (creationTaskFailureContextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
creationTaskFailureContextBuilder_.setMessage(builderForValue.build());
}
contextCase_ = 1;
return this;
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
public Builder mergeCreationTaskFailureContext(io.ray.runtime.generated.Common.RayException value) {
if (creationTaskFailureContextBuilder_ == null) {
if (contextCase_ == 1 &&
context_ != io.ray.runtime.generated.Common.RayException.getDefaultInstance()) {
context_ = io.ray.runtime.generated.Common.RayException.newBuilder((io.ray.runtime.generated.Common.RayException) context_)
.mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
if (contextCase_ == 1) {
creationTaskFailureContextBuilder_.mergeFrom(value);
}
creationTaskFailureContextBuilder_.setMessage(value);
}
contextCase_ = 1;
return this;
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
public Builder clearCreationTaskFailureContext() {
if (creationTaskFailureContextBuilder_ == null) {
if (contextCase_ == 1) {
contextCase_ = 0;
context_ = null;
onChanged();
}
} else {
if (contextCase_ == 1) {
contextCase_ = 0;
context_ = null;
}
creationTaskFailureContextBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
public io.ray.runtime.generated.Common.RayException.Builder getCreationTaskFailureContextBuilder() {
return getCreationTaskFailureContextFieldBuilder().getBuilder();
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RayExceptionOrBuilder getCreationTaskFailureContextOrBuilder() {
if ((contextCase_ == 1) && (creationTaskFailureContextBuilder_ != null)) {
return creationTaskFailureContextBuilder_.getMessageOrBuilder();
} else {
if (contextCase_ == 1) {
return (io.ray.runtime.generated.Common.RayException) context_;
}
return io.ray.runtime.generated.Common.RayException.getDefaultInstance();
}
}
/**
* .ray.rpc.RayException creation_task_failure_context = 1 [json_name = "creationTaskFailureContext"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RayException, io.ray.runtime.generated.Common.RayException.Builder, io.ray.runtime.generated.Common.RayExceptionOrBuilder>
getCreationTaskFailureContextFieldBuilder() {
if (creationTaskFailureContextBuilder_ == null) {
if (!(contextCase_ == 1)) {
context_ = io.ray.runtime.generated.Common.RayException.getDefaultInstance();
}
creationTaskFailureContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RayException, io.ray.runtime.generated.Common.RayException.Builder, io.ray.runtime.generated.Common.RayExceptionOrBuilder>(
(io.ray.runtime.generated.Common.RayException) context_,
getParentForChildren(),
isClean());
context_ = null;
}
contextCase_ = 1;
onChanged();;
return creationTaskFailureContextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RuntimeEnvFailedContext, io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder, io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder> runtimeEnvFailedContextBuilder_;
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
* @return Whether the runtimeEnvFailedContext field is set.
*/
@java.lang.Override
public boolean hasRuntimeEnvFailedContext() {
return contextCase_ == 2;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
* @return The runtimeEnvFailedContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext getRuntimeEnvFailedContext() {
if (runtimeEnvFailedContextBuilder_ == null) {
if (contextCase_ == 2) {
return (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_;
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
} else {
if (contextCase_ == 2) {
return runtimeEnvFailedContextBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
public Builder setRuntimeEnvFailedContext(io.ray.runtime.generated.Common.RuntimeEnvFailedContext value) {
if (runtimeEnvFailedContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
runtimeEnvFailedContextBuilder_.setMessage(value);
}
contextCase_ = 2;
return this;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
public Builder setRuntimeEnvFailedContext(
io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder builderForValue) {
if (runtimeEnvFailedContextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
runtimeEnvFailedContextBuilder_.setMessage(builderForValue.build());
}
contextCase_ = 2;
return this;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
public Builder mergeRuntimeEnvFailedContext(io.ray.runtime.generated.Common.RuntimeEnvFailedContext value) {
if (runtimeEnvFailedContextBuilder_ == null) {
if (contextCase_ == 2 &&
context_ != io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance()) {
context_ = io.ray.runtime.generated.Common.RuntimeEnvFailedContext.newBuilder((io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_)
.mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
if (contextCase_ == 2) {
runtimeEnvFailedContextBuilder_.mergeFrom(value);
}
runtimeEnvFailedContextBuilder_.setMessage(value);
}
contextCase_ = 2;
return this;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
public Builder clearRuntimeEnvFailedContext() {
if (runtimeEnvFailedContextBuilder_ == null) {
if (contextCase_ == 2) {
contextCase_ = 0;
context_ = null;
onChanged();
}
} else {
if (contextCase_ == 2) {
contextCase_ = 0;
context_ = null;
}
runtimeEnvFailedContextBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder getRuntimeEnvFailedContextBuilder() {
return getRuntimeEnvFailedContextFieldBuilder().getBuilder();
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder getRuntimeEnvFailedContextOrBuilder() {
if ((contextCase_ == 2) && (runtimeEnvFailedContextBuilder_ != null)) {
return runtimeEnvFailedContextBuilder_.getMessageOrBuilder();
} else {
if (contextCase_ == 2) {
return (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_;
}
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
}
/**
* .ray.rpc.RuntimeEnvFailedContext runtime_env_failed_context = 2 [json_name = "runtimeEnvFailedContext"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RuntimeEnvFailedContext, io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder, io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder>
getRuntimeEnvFailedContextFieldBuilder() {
if (runtimeEnvFailedContextBuilder_ == null) {
if (!(contextCase_ == 2)) {
context_ = io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
runtimeEnvFailedContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.RuntimeEnvFailedContext, io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder, io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder>(
(io.ray.runtime.generated.Common.RuntimeEnvFailedContext) context_,
getParentForChildren(),
isClean());
context_ = null;
}
contextCase_ = 2;
onChanged();;
return runtimeEnvFailedContextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorDiedErrorContext, io.ray.runtime.generated.Common.ActorDiedErrorContext.Builder, io.ray.runtime.generated.Common.ActorDiedErrorContextOrBuilder> actorDiedErrorContextBuilder_;
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
* @return Whether the actorDiedErrorContext field is set.
*/
@java.lang.Override
public boolean hasActorDiedErrorContext() {
return contextCase_ == 3;
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
* @return The actorDiedErrorContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDiedErrorContext getActorDiedErrorContext() {
if (actorDiedErrorContextBuilder_ == null) {
if (contextCase_ == 3) {
return (io.ray.runtime.generated.Common.ActorDiedErrorContext) context_;
}
return io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance();
} else {
if (contextCase_ == 3) {
return actorDiedErrorContextBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance();
}
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
public Builder setActorDiedErrorContext(io.ray.runtime.generated.Common.ActorDiedErrorContext value) {
if (actorDiedErrorContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
actorDiedErrorContextBuilder_.setMessage(value);
}
contextCase_ = 3;
return this;
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
public Builder setActorDiedErrorContext(
io.ray.runtime.generated.Common.ActorDiedErrorContext.Builder builderForValue) {
if (actorDiedErrorContextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
actorDiedErrorContextBuilder_.setMessage(builderForValue.build());
}
contextCase_ = 3;
return this;
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
public Builder mergeActorDiedErrorContext(io.ray.runtime.generated.Common.ActorDiedErrorContext value) {
if (actorDiedErrorContextBuilder_ == null) {
if (contextCase_ == 3 &&
context_ != io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance()) {
context_ = io.ray.runtime.generated.Common.ActorDiedErrorContext.newBuilder((io.ray.runtime.generated.Common.ActorDiedErrorContext) context_)
.mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
if (contextCase_ == 3) {
actorDiedErrorContextBuilder_.mergeFrom(value);
}
actorDiedErrorContextBuilder_.setMessage(value);
}
contextCase_ = 3;
return this;
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
public Builder clearActorDiedErrorContext() {
if (actorDiedErrorContextBuilder_ == null) {
if (contextCase_ == 3) {
contextCase_ = 0;
context_ = null;
onChanged();
}
} else {
if (contextCase_ == 3) {
contextCase_ = 0;
context_ = null;
}
actorDiedErrorContextBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
public io.ray.runtime.generated.Common.ActorDiedErrorContext.Builder getActorDiedErrorContextBuilder() {
return getActorDiedErrorContextFieldBuilder().getBuilder();
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDiedErrorContextOrBuilder getActorDiedErrorContextOrBuilder() {
if ((contextCase_ == 3) && (actorDiedErrorContextBuilder_ != null)) {
return actorDiedErrorContextBuilder_.getMessageOrBuilder();
} else {
if (contextCase_ == 3) {
return (io.ray.runtime.generated.Common.ActorDiedErrorContext) context_;
}
return io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance();
}
}
/**
* .ray.rpc.ActorDiedErrorContext actor_died_error_context = 3 [json_name = "actorDiedErrorContext"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorDiedErrorContext, io.ray.runtime.generated.Common.ActorDiedErrorContext.Builder, io.ray.runtime.generated.Common.ActorDiedErrorContextOrBuilder>
getActorDiedErrorContextFieldBuilder() {
if (actorDiedErrorContextBuilder_ == null) {
if (!(contextCase_ == 3)) {
context_ = io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance();
}
actorDiedErrorContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorDiedErrorContext, io.ray.runtime.generated.Common.ActorDiedErrorContext.Builder, io.ray.runtime.generated.Common.ActorDiedErrorContextOrBuilder>(
(io.ray.runtime.generated.Common.ActorDiedErrorContext) context_,
getParentForChildren(),
isClean());
context_ = null;
}
contextCase_ = 3;
onChanged();;
return actorDiedErrorContextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorUnschedulableContext, io.ray.runtime.generated.Common.ActorUnschedulableContext.Builder, io.ray.runtime.generated.Common.ActorUnschedulableContextOrBuilder> actorUnschedulableContextBuilder_;
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
* @return Whether the actorUnschedulableContext field is set.
*/
@java.lang.Override
public boolean hasActorUnschedulableContext() {
return contextCase_ == 4;
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
* @return The actorUnschedulableContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnschedulableContext getActorUnschedulableContext() {
if (actorUnschedulableContextBuilder_ == null) {
if (contextCase_ == 4) {
return (io.ray.runtime.generated.Common.ActorUnschedulableContext) context_;
}
return io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance();
} else {
if (contextCase_ == 4) {
return actorUnschedulableContextBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance();
}
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
public Builder setActorUnschedulableContext(io.ray.runtime.generated.Common.ActorUnschedulableContext value) {
if (actorUnschedulableContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
actorUnschedulableContextBuilder_.setMessage(value);
}
contextCase_ = 4;
return this;
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
public Builder setActorUnschedulableContext(
io.ray.runtime.generated.Common.ActorUnschedulableContext.Builder builderForValue) {
if (actorUnschedulableContextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
actorUnschedulableContextBuilder_.setMessage(builderForValue.build());
}
contextCase_ = 4;
return this;
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
public Builder mergeActorUnschedulableContext(io.ray.runtime.generated.Common.ActorUnschedulableContext value) {
if (actorUnschedulableContextBuilder_ == null) {
if (contextCase_ == 4 &&
context_ != io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance()) {
context_ = io.ray.runtime.generated.Common.ActorUnschedulableContext.newBuilder((io.ray.runtime.generated.Common.ActorUnschedulableContext) context_)
.mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
if (contextCase_ == 4) {
actorUnschedulableContextBuilder_.mergeFrom(value);
}
actorUnschedulableContextBuilder_.setMessage(value);
}
contextCase_ = 4;
return this;
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
public Builder clearActorUnschedulableContext() {
if (actorUnschedulableContextBuilder_ == null) {
if (contextCase_ == 4) {
contextCase_ = 0;
context_ = null;
onChanged();
}
} else {
if (contextCase_ == 4) {
contextCase_ = 0;
context_ = null;
}
actorUnschedulableContextBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
public io.ray.runtime.generated.Common.ActorUnschedulableContext.Builder getActorUnschedulableContextBuilder() {
return getActorUnschedulableContextFieldBuilder().getBuilder();
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnschedulableContextOrBuilder getActorUnschedulableContextOrBuilder() {
if ((contextCase_ == 4) && (actorUnschedulableContextBuilder_ != null)) {
return actorUnschedulableContextBuilder_.getMessageOrBuilder();
} else {
if (contextCase_ == 4) {
return (io.ray.runtime.generated.Common.ActorUnschedulableContext) context_;
}
return io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance();
}
}
/**
* .ray.rpc.ActorUnschedulableContext actor_unschedulable_context = 4 [json_name = "actorUnschedulableContext"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorUnschedulableContext, io.ray.runtime.generated.Common.ActorUnschedulableContext.Builder, io.ray.runtime.generated.Common.ActorUnschedulableContextOrBuilder>
getActorUnschedulableContextFieldBuilder() {
if (actorUnschedulableContextBuilder_ == null) {
if (!(contextCase_ == 4)) {
context_ = io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance();
}
actorUnschedulableContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.ActorUnschedulableContext, io.ray.runtime.generated.Common.ActorUnschedulableContext.Builder, io.ray.runtime.generated.Common.ActorUnschedulableContextOrBuilder>(
(io.ray.runtime.generated.Common.ActorUnschedulableContext) context_,
getParentForChildren(),
isClean());
context_ = null;
}
contextCase_ = 4;
onChanged();;
return actorUnschedulableContextBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.OomContext, io.ray.runtime.generated.Common.OomContext.Builder, io.ray.runtime.generated.Common.OomContextOrBuilder> oomContextBuilder_;
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
* @return Whether the oomContext field is set.
*/
@java.lang.Override
public boolean hasOomContext() {
return contextCase_ == 5;
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
* @return The oomContext.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.OomContext getOomContext() {
if (oomContextBuilder_ == null) {
if (contextCase_ == 5) {
return (io.ray.runtime.generated.Common.OomContext) context_;
}
return io.ray.runtime.generated.Common.OomContext.getDefaultInstance();
} else {
if (contextCase_ == 5) {
return oomContextBuilder_.getMessage();
}
return io.ray.runtime.generated.Common.OomContext.getDefaultInstance();
}
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
public Builder setOomContext(io.ray.runtime.generated.Common.OomContext value) {
if (oomContextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
context_ = value;
onChanged();
} else {
oomContextBuilder_.setMessage(value);
}
contextCase_ = 5;
return this;
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
public Builder setOomContext(
io.ray.runtime.generated.Common.OomContext.Builder builderForValue) {
if (oomContextBuilder_ == null) {
context_ = builderForValue.build();
onChanged();
} else {
oomContextBuilder_.setMessage(builderForValue.build());
}
contextCase_ = 5;
return this;
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
public Builder mergeOomContext(io.ray.runtime.generated.Common.OomContext value) {
if (oomContextBuilder_ == null) {
if (contextCase_ == 5 &&
context_ != io.ray.runtime.generated.Common.OomContext.getDefaultInstance()) {
context_ = io.ray.runtime.generated.Common.OomContext.newBuilder((io.ray.runtime.generated.Common.OomContext) context_)
.mergeFrom(value).buildPartial();
} else {
context_ = value;
}
onChanged();
} else {
if (contextCase_ == 5) {
oomContextBuilder_.mergeFrom(value);
}
oomContextBuilder_.setMessage(value);
}
contextCase_ = 5;
return this;
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
public Builder clearOomContext() {
if (oomContextBuilder_ == null) {
if (contextCase_ == 5) {
contextCase_ = 0;
context_ = null;
onChanged();
}
} else {
if (contextCase_ == 5) {
contextCase_ = 0;
context_ = null;
}
oomContextBuilder_.clear();
}
return this;
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
public io.ray.runtime.generated.Common.OomContext.Builder getOomContextBuilder() {
return getOomContextFieldBuilder().getBuilder();
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.OomContextOrBuilder getOomContextOrBuilder() {
if ((contextCase_ == 5) && (oomContextBuilder_ != null)) {
return oomContextBuilder_.getMessageOrBuilder();
} else {
if (contextCase_ == 5) {
return (io.ray.runtime.generated.Common.OomContext) context_;
}
return io.ray.runtime.generated.Common.OomContext.getDefaultInstance();
}
}
/**
* .ray.rpc.OomContext oom_context = 5 [json_name = "oomContext"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.OomContext, io.ray.runtime.generated.Common.OomContext.Builder, io.ray.runtime.generated.Common.OomContextOrBuilder>
getOomContextFieldBuilder() {
if (oomContextBuilder_ == null) {
if (!(contextCase_ == 5)) {
context_ = io.ray.runtime.generated.Common.OomContext.getDefaultInstance();
}
oomContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.OomContext, io.ray.runtime.generated.Common.OomContext.Builder, io.ray.runtime.generated.Common.OomContextOrBuilder>(
(io.ray.runtime.generated.Common.OomContext) context_,
getParentForChildren(),
isClean());
context_ = null;
}
contextCase_ = 5;
onChanged();;
return oomContextBuilder_;
}
@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.rpc.ActorDeathCause)
}
// @@protoc_insertion_point(class_scope:ray.rpc.ActorDeathCause)
private static final io.ray.runtime.generated.Common.ActorDeathCause DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ActorDeathCause();
}
public static io.ray.runtime.generated.Common.ActorDeathCause getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActorDeathCause parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ActorDeathCause(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.runtime.generated.Common.ActorDeathCause getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RuntimeEnvFailedContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.RuntimeEnvFailedContext)
com.google.protobuf.MessageOrBuilder {
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
}
/**
* Protobuf type {@code ray.rpc.RuntimeEnvFailedContext}
*/
public static final class RuntimeEnvFailedContext extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.RuntimeEnvFailedContext)
RuntimeEnvFailedContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use RuntimeEnvFailedContext.newBuilder() to construct.
private RuntimeEnvFailedContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private RuntimeEnvFailedContext() {
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RuntimeEnvFailedContext();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RuntimeEnvFailedContext(
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();
errorMessage_ = 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.runtime.generated.Common.internal_static_ray_rpc_RuntimeEnvFailedContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RuntimeEnvFailedContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.RuntimeEnvFailedContext.class, io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder.class);
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object errorMessage_;
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = 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(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_);
}
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(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errorMessage_);
}
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.runtime.generated.Common.RuntimeEnvFailedContext)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.RuntimeEnvFailedContext other = (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) obj;
if (!getErrorMessage()
.equals(other.getErrorMessage())) 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) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext 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.runtime.generated.Common.RuntimeEnvFailedContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext 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.runtime.generated.Common.RuntimeEnvFailedContext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext 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.runtime.generated.Common.RuntimeEnvFailedContext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext 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.runtime.generated.Common.RuntimeEnvFailedContext 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.rpc.RuntimeEnvFailedContext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.RuntimeEnvFailedContext)
io.ray.runtime.generated.Common.RuntimeEnvFailedContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RuntimeEnvFailedContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RuntimeEnvFailedContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.RuntimeEnvFailedContext.class, io.ray.runtime.generated.Common.RuntimeEnvFailedContext.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.RuntimeEnvFailedContext.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();
errorMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_RuntimeEnvFailedContext_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext build() {
io.ray.runtime.generated.Common.RuntimeEnvFailedContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.RuntimeEnvFailedContext buildPartial() {
io.ray.runtime.generated.Common.RuntimeEnvFailedContext result = new io.ray.runtime.generated.Common.RuntimeEnvFailedContext(this);
result.errorMessage_ = errorMessage_;
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.runtime.generated.Common.RuntimeEnvFailedContext) {
return mergeFrom((io.ray.runtime.generated.Common.RuntimeEnvFailedContext)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.RuntimeEnvFailedContext other) {
if (other == io.ray.runtime.generated.Common.RuntimeEnvFailedContext.getDefaultInstance()) return this;
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
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.runtime.generated.Common.RuntimeEnvFailedContext parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.RuntimeEnvFailedContext) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = 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.rpc.RuntimeEnvFailedContext)
}
// @@protoc_insertion_point(class_scope:ray.rpc.RuntimeEnvFailedContext)
private static final io.ray.runtime.generated.Common.RuntimeEnvFailedContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.RuntimeEnvFailedContext();
}
public static io.ray.runtime.generated.Common.RuntimeEnvFailedContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RuntimeEnvFailedContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RuntimeEnvFailedContext(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.runtime.generated.Common.RuntimeEnvFailedContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ActorUnschedulableContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.ActorUnschedulableContext)
com.google.protobuf.MessageOrBuilder {
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
}
/**
* Protobuf type {@code ray.rpc.ActorUnschedulableContext}
*/
public static final class ActorUnschedulableContext extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.ActorUnschedulableContext)
ActorUnschedulableContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActorUnschedulableContext.newBuilder() to construct.
private ActorUnschedulableContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ActorUnschedulableContext() {
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActorUnschedulableContext();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ActorUnschedulableContext(
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();
errorMessage_ = 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.runtime.generated.Common.internal_static_ray_rpc_ActorUnschedulableContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorUnschedulableContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ActorUnschedulableContext.class, io.ray.runtime.generated.Common.ActorUnschedulableContext.Builder.class);
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object errorMessage_;
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = 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(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_);
}
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(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errorMessage_);
}
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.runtime.generated.Common.ActorUnschedulableContext)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.ActorUnschedulableContext other = (io.ray.runtime.generated.Common.ActorUnschedulableContext) obj;
if (!getErrorMessage()
.equals(other.getErrorMessage())) 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) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext 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.runtime.generated.Common.ActorUnschedulableContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext 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.runtime.generated.Common.ActorUnschedulableContext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext 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.runtime.generated.Common.ActorUnschedulableContext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext 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.runtime.generated.Common.ActorUnschedulableContext 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.rpc.ActorUnschedulableContext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.ActorUnschedulableContext)
io.ray.runtime.generated.Common.ActorUnschedulableContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorUnschedulableContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorUnschedulableContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ActorUnschedulableContext.class, io.ray.runtime.generated.Common.ActorUnschedulableContext.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.ActorUnschedulableContext.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();
errorMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorUnschedulableContext_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnschedulableContext getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnschedulableContext build() {
io.ray.runtime.generated.Common.ActorUnschedulableContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnschedulableContext buildPartial() {
io.ray.runtime.generated.Common.ActorUnschedulableContext result = new io.ray.runtime.generated.Common.ActorUnschedulableContext(this);
result.errorMessage_ = errorMessage_;
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.runtime.generated.Common.ActorUnschedulableContext) {
return mergeFrom((io.ray.runtime.generated.Common.ActorUnschedulableContext)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.ActorUnschedulableContext other) {
if (other == io.ray.runtime.generated.Common.ActorUnschedulableContext.getDefaultInstance()) return this;
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
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.runtime.generated.Common.ActorUnschedulableContext parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.ActorUnschedulableContext) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = 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.rpc.ActorUnschedulableContext)
}
// @@protoc_insertion_point(class_scope:ray.rpc.ActorUnschedulableContext)
private static final io.ray.runtime.generated.Common.ActorUnschedulableContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ActorUnschedulableContext();
}
public static io.ray.runtime.generated.Common.ActorUnschedulableContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActorUnschedulableContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ActorUnschedulableContext(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.runtime.generated.Common.ActorUnschedulableContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ActorDiedErrorContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.ActorDiedErrorContext)
com.google.protobuf.MessageOrBuilder {
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
* bytes owner_id = 2 [json_name = "ownerId"];
* @return The ownerId.
*/
com.google.protobuf.ByteString getOwnerId();
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @return The ownerIpAddress.
*/
java.lang.String getOwnerIpAddress();
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @return The bytes for ownerIpAddress.
*/
com.google.protobuf.ByteString
getOwnerIpAddressBytes();
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
java.lang.String getNodeIpAddress();
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
com.google.protobuf.ByteString
getNodeIpAddressBytes();
/**
* uint32 pid = 5 [json_name = "pid"];
* @return The pid.
*/
int getPid();
/**
* string name = 6 [json_name = "name"];
* @return The name.
*/
java.lang.String getName();
/**
* string name = 6 [json_name = "name"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @return The rayNamespace.
*/
java.lang.String getRayNamespace();
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @return The bytes for rayNamespace.
*/
com.google.protobuf.ByteString
getRayNamespaceBytes();
/**
* string class_name = 8 [json_name = "className"];
* @return The className.
*/
java.lang.String getClassName();
/**
* string class_name = 8 [json_name = "className"];
* @return The bytes for className.
*/
com.google.protobuf.ByteString
getClassNameBytes();
/**
* bytes actor_id = 9 [json_name = "actorId"];
* @return The actorId.
*/
com.google.protobuf.ByteString getActorId();
/**
* bool never_started = 10 [json_name = "neverStarted"];
* @return The neverStarted.
*/
boolean getNeverStarted();
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
* @return Whether the nodeDeathInfo field is set.
*/
boolean hasNodeDeathInfo();
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
* @return The nodeDeathInfo.
*/
io.ray.runtime.generated.Common.NodeDeathInfo getNodeDeathInfo();
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
io.ray.runtime.generated.Common.NodeDeathInfoOrBuilder getNodeDeathInfoOrBuilder();
}
/**
* Protobuf type {@code ray.rpc.ActorDiedErrorContext}
*/
public static final class ActorDiedErrorContext extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.ActorDiedErrorContext)
ActorDiedErrorContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActorDiedErrorContext.newBuilder() to construct.
private ActorDiedErrorContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ActorDiedErrorContext() {
errorMessage_ = "";
ownerId_ = com.google.protobuf.ByteString.EMPTY;
ownerIpAddress_ = "";
nodeIpAddress_ = "";
name_ = "";
rayNamespace_ = "";
className_ = "";
actorId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActorDiedErrorContext();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ActorDiedErrorContext(
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();
errorMessage_ = s;
break;
}
case 18: {
ownerId_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
ownerIpAddress_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
nodeIpAddress_ = s;
break;
}
case 40: {
pid_ = input.readUInt32();
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
rayNamespace_ = s;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
className_ = s;
break;
}
case 74: {
actorId_ = input.readBytes();
break;
}
case 80: {
neverStarted_ = input.readBool();
break;
}
case 90: {
io.ray.runtime.generated.Common.NodeDeathInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = nodeDeathInfo_.toBuilder();
}
nodeDeathInfo_ = input.readMessage(io.ray.runtime.generated.Common.NodeDeathInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nodeDeathInfo_);
nodeDeathInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
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.runtime.generated.Common.internal_static_ray_rpc_ActorDiedErrorContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorDiedErrorContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ActorDiedErrorContext.class, io.ray.runtime.generated.Common.ActorDiedErrorContext.Builder.class);
}
private int bitField0_;
public static final int ERROR_MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object errorMessage_;
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OWNER_ID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString ownerId_;
/**
* bytes owner_id = 2 [json_name = "ownerId"];
* @return The ownerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOwnerId() {
return ownerId_;
}
public static final int OWNER_IP_ADDRESS_FIELD_NUMBER = 3;
private volatile java.lang.Object ownerIpAddress_;
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @return The ownerIpAddress.
*/
@java.lang.Override
public java.lang.String getOwnerIpAddress() {
java.lang.Object ref = ownerIpAddress_;
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();
ownerIpAddress_ = s;
return s;
}
}
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @return The bytes for ownerIpAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOwnerIpAddressBytes() {
java.lang.Object ref = ownerIpAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerIpAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NODE_IP_ADDRESS_FIELD_NUMBER = 4;
private volatile java.lang.Object nodeIpAddress_;
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
@java.lang.Override
public java.lang.String getNodeIpAddress() {
java.lang.Object ref = nodeIpAddress_;
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();
nodeIpAddress_ = s;
return s;
}
}
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNodeIpAddressBytes() {
java.lang.Object ref = nodeIpAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeIpAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PID_FIELD_NUMBER = 5;
private int pid_;
/**
* uint32 pid = 5 [json_name = "pid"];
* @return The pid.
*/
@java.lang.Override
public int getPid() {
return pid_;
}
public static final int NAME_FIELD_NUMBER = 6;
private volatile java.lang.Object name_;
/**
* string name = 6 [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 = 6 [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 RAY_NAMESPACE_FIELD_NUMBER = 7;
private volatile java.lang.Object rayNamespace_;
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @return The rayNamespace.
*/
@java.lang.Override
public java.lang.String getRayNamespace() {
java.lang.Object ref = rayNamespace_;
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();
rayNamespace_ = s;
return s;
}
}
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @return The bytes for rayNamespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRayNamespaceBytes() {
java.lang.Object ref = rayNamespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rayNamespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLASS_NAME_FIELD_NUMBER = 8;
private volatile java.lang.Object className_;
/**
* string class_name = 8 [json_name = "className"];
* @return The className.
*/
@java.lang.Override
public java.lang.String getClassName() {
java.lang.Object ref = className_;
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();
className_ = s;
return s;
}
}
/**
* string class_name = 8 [json_name = "className"];
* @return The bytes for className.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACTOR_ID_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString actorId_;
/**
* bytes actor_id = 9 [json_name = "actorId"];
* @return The actorId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getActorId() {
return actorId_;
}
public static final int NEVER_STARTED_FIELD_NUMBER = 10;
private boolean neverStarted_;
/**
* bool never_started = 10 [json_name = "neverStarted"];
* @return The neverStarted.
*/
@java.lang.Override
public boolean getNeverStarted() {
return neverStarted_;
}
public static final int NODE_DEATH_INFO_FIELD_NUMBER = 11;
private io.ray.runtime.generated.Common.NodeDeathInfo nodeDeathInfo_;
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
* @return Whether the nodeDeathInfo field is set.
*/
@java.lang.Override
public boolean hasNodeDeathInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
* @return The nodeDeathInfo.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDeathInfo getNodeDeathInfo() {
return nodeDeathInfo_ == null ? io.ray.runtime.generated.Common.NodeDeathInfo.getDefaultInstance() : nodeDeathInfo_;
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.NodeDeathInfoOrBuilder getNodeDeathInfoOrBuilder() {
return nodeDeathInfo_ == null ? io.ray.runtime.generated.Common.NodeDeathInfo.getDefaultInstance() : nodeDeathInfo_;
}
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(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_);
}
if (!ownerId_.isEmpty()) {
output.writeBytes(2, ownerId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerIpAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ownerIpAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, nodeIpAddress_);
}
if (pid_ != 0) {
output.writeUInt32(5, pid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rayNamespace_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, rayNamespace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, className_);
}
if (!actorId_.isEmpty()) {
output.writeBytes(9, actorId_);
}
if (neverStarted_ != false) {
output.writeBool(10, neverStarted_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(11, getNodeDeathInfo());
}
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(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errorMessage_);
}
if (!ownerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, ownerId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ownerIpAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ownerIpAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeIpAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, nodeIpAddress_);
}
if (pid_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, pid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rayNamespace_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, rayNamespace_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(className_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, className_);
}
if (!actorId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, actorId_);
}
if (neverStarted_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, neverStarted_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getNodeDeathInfo());
}
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.runtime.generated.Common.ActorDiedErrorContext)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.ActorDiedErrorContext other = (io.ray.runtime.generated.Common.ActorDiedErrorContext) obj;
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
if (!getOwnerId()
.equals(other.getOwnerId())) return false;
if (!getOwnerIpAddress()
.equals(other.getOwnerIpAddress())) return false;
if (!getNodeIpAddress()
.equals(other.getNodeIpAddress())) return false;
if (getPid()
!= other.getPid()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getRayNamespace()
.equals(other.getRayNamespace())) return false;
if (!getClassName()
.equals(other.getClassName())) return false;
if (!getActorId()
.equals(other.getActorId())) return false;
if (getNeverStarted()
!= other.getNeverStarted()) return false;
if (hasNodeDeathInfo() != other.hasNodeDeathInfo()) return false;
if (hasNodeDeathInfo()) {
if (!getNodeDeathInfo()
.equals(other.getNodeDeathInfo())) 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) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (37 * hash) + OWNER_ID_FIELD_NUMBER;
hash = (53 * hash) + getOwnerId().hashCode();
hash = (37 * hash) + OWNER_IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getOwnerIpAddress().hashCode();
hash = (37 * hash) + NODE_IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getNodeIpAddress().hashCode();
hash = (37 * hash) + PID_FIELD_NUMBER;
hash = (53 * hash) + getPid();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + RAY_NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getRayNamespace().hashCode();
hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClassName().hashCode();
hash = (37 * hash) + ACTOR_ID_FIELD_NUMBER;
hash = (53 * hash) + getActorId().hashCode();
hash = (37 * hash) + NEVER_STARTED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNeverStarted());
if (hasNodeDeathInfo()) {
hash = (37 * hash) + NODE_DEATH_INFO_FIELD_NUMBER;
hash = (53 * hash) + getNodeDeathInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext 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.runtime.generated.Common.ActorDiedErrorContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext 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.runtime.generated.Common.ActorDiedErrorContext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext 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.runtime.generated.Common.ActorDiedErrorContext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext 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.runtime.generated.Common.ActorDiedErrorContext 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.rpc.ActorDiedErrorContext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.ActorDiedErrorContext)
io.ray.runtime.generated.Common.ActorDiedErrorContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorDiedErrorContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorDiedErrorContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ActorDiedErrorContext.class, io.ray.runtime.generated.Common.ActorDiedErrorContext.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.ActorDiedErrorContext.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNodeDeathInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
errorMessage_ = "";
ownerId_ = com.google.protobuf.ByteString.EMPTY;
ownerIpAddress_ = "";
nodeIpAddress_ = "";
pid_ = 0;
name_ = "";
rayNamespace_ = "";
className_ = "";
actorId_ = com.google.protobuf.ByteString.EMPTY;
neverStarted_ = false;
if (nodeDeathInfoBuilder_ == null) {
nodeDeathInfo_ = null;
} else {
nodeDeathInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorDiedErrorContext_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDiedErrorContext getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDiedErrorContext build() {
io.ray.runtime.generated.Common.ActorDiedErrorContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorDiedErrorContext buildPartial() {
io.ray.runtime.generated.Common.ActorDiedErrorContext result = new io.ray.runtime.generated.Common.ActorDiedErrorContext(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.errorMessage_ = errorMessage_;
result.ownerId_ = ownerId_;
result.ownerIpAddress_ = ownerIpAddress_;
result.nodeIpAddress_ = nodeIpAddress_;
result.pid_ = pid_;
result.name_ = name_;
result.rayNamespace_ = rayNamespace_;
result.className_ = className_;
result.actorId_ = actorId_;
result.neverStarted_ = neverStarted_;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (nodeDeathInfoBuilder_ == null) {
result.nodeDeathInfo_ = nodeDeathInfo_;
} else {
result.nodeDeathInfo_ = nodeDeathInfoBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
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.runtime.generated.Common.ActorDiedErrorContext) {
return mergeFrom((io.ray.runtime.generated.Common.ActorDiedErrorContext)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.ActorDiedErrorContext other) {
if (other == io.ray.runtime.generated.Common.ActorDiedErrorContext.getDefaultInstance()) return this;
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.getOwnerId() != com.google.protobuf.ByteString.EMPTY) {
setOwnerId(other.getOwnerId());
}
if (!other.getOwnerIpAddress().isEmpty()) {
ownerIpAddress_ = other.ownerIpAddress_;
onChanged();
}
if (!other.getNodeIpAddress().isEmpty()) {
nodeIpAddress_ = other.nodeIpAddress_;
onChanged();
}
if (other.getPid() != 0) {
setPid(other.getPid());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getRayNamespace().isEmpty()) {
rayNamespace_ = other.rayNamespace_;
onChanged();
}
if (!other.getClassName().isEmpty()) {
className_ = other.className_;
onChanged();
}
if (other.getActorId() != com.google.protobuf.ByteString.EMPTY) {
setActorId(other.getActorId());
}
if (other.getNeverStarted() != false) {
setNeverStarted(other.getNeverStarted());
}
if (other.hasNodeDeathInfo()) {
mergeNodeDeathInfo(other.getNodeDeathInfo());
}
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.runtime.generated.Common.ActorDiedErrorContext parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.ActorDiedErrorContext) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object errorMessage_ = "";
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString ownerId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes owner_id = 2 [json_name = "ownerId"];
* @return The ownerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOwnerId() {
return ownerId_;
}
/**
* bytes owner_id = 2 [json_name = "ownerId"];
* @param value The ownerId to set.
* @return This builder for chaining.
*/
public Builder setOwnerId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ownerId_ = value;
onChanged();
return this;
}
/**
* bytes owner_id = 2 [json_name = "ownerId"];
* @return This builder for chaining.
*/
public Builder clearOwnerId() {
ownerId_ = getDefaultInstance().getOwnerId();
onChanged();
return this;
}
private java.lang.Object ownerIpAddress_ = "";
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @return The ownerIpAddress.
*/
public java.lang.String getOwnerIpAddress() {
java.lang.Object ref = ownerIpAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ownerIpAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @return The bytes for ownerIpAddress.
*/
public com.google.protobuf.ByteString
getOwnerIpAddressBytes() {
java.lang.Object ref = ownerIpAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ownerIpAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @param value The ownerIpAddress to set.
* @return This builder for chaining.
*/
public Builder setOwnerIpAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ownerIpAddress_ = value;
onChanged();
return this;
}
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @return This builder for chaining.
*/
public Builder clearOwnerIpAddress() {
ownerIpAddress_ = getDefaultInstance().getOwnerIpAddress();
onChanged();
return this;
}
/**
* string owner_ip_address = 3 [json_name = "ownerIpAddress"];
* @param value The bytes for ownerIpAddress to set.
* @return This builder for chaining.
*/
public Builder setOwnerIpAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ownerIpAddress_ = value;
onChanged();
return this;
}
private java.lang.Object nodeIpAddress_ = "";
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @return The nodeIpAddress.
*/
public java.lang.String getNodeIpAddress() {
java.lang.Object ref = nodeIpAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nodeIpAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @return The bytes for nodeIpAddress.
*/
public com.google.protobuf.ByteString
getNodeIpAddressBytes() {
java.lang.Object ref = nodeIpAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nodeIpAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @param value The nodeIpAddress to set.
* @return This builder for chaining.
*/
public Builder setNodeIpAddress(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nodeIpAddress_ = value;
onChanged();
return this;
}
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @return This builder for chaining.
*/
public Builder clearNodeIpAddress() {
nodeIpAddress_ = getDefaultInstance().getNodeIpAddress();
onChanged();
return this;
}
/**
* string node_ip_address = 4 [json_name = "nodeIpAddress"];
* @param value The bytes for nodeIpAddress to set.
* @return This builder for chaining.
*/
public Builder setNodeIpAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nodeIpAddress_ = value;
onChanged();
return this;
}
private int pid_ ;
/**
* uint32 pid = 5 [json_name = "pid"];
* @return The pid.
*/
@java.lang.Override
public int getPid() {
return pid_;
}
/**
* uint32 pid = 5 [json_name = "pid"];
* @param value The pid to set.
* @return This builder for chaining.
*/
public Builder setPid(int value) {
pid_ = value;
onChanged();
return this;
}
/**
* uint32 pid = 5 [json_name = "pid"];
* @return This builder for chaining.
*/
public Builder clearPid() {
pid_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 6 [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 = 6 [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 = 6 [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 = 6 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 6 [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 java.lang.Object rayNamespace_ = "";
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @return The rayNamespace.
*/
public java.lang.String getRayNamespace() {
java.lang.Object ref = rayNamespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rayNamespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @return The bytes for rayNamespace.
*/
public com.google.protobuf.ByteString
getRayNamespaceBytes() {
java.lang.Object ref = rayNamespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rayNamespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @param value The rayNamespace to set.
* @return This builder for chaining.
*/
public Builder setRayNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rayNamespace_ = value;
onChanged();
return this;
}
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @return This builder for chaining.
*/
public Builder clearRayNamespace() {
rayNamespace_ = getDefaultInstance().getRayNamespace();
onChanged();
return this;
}
/**
* string ray_namespace = 7 [json_name = "rayNamespace"];
* @param value The bytes for rayNamespace to set.
* @return This builder for chaining.
*/
public Builder setRayNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rayNamespace_ = value;
onChanged();
return this;
}
private java.lang.Object className_ = "";
/**
* string class_name = 8 [json_name = "className"];
* @return The className.
*/
public java.lang.String getClassName() {
java.lang.Object ref = className_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
className_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string class_name = 8 [json_name = "className"];
* @return The bytes for className.
*/
public com.google.protobuf.ByteString
getClassNameBytes() {
java.lang.Object ref = className_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
className_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string class_name = 8 [json_name = "className"];
* @param value The className to set.
* @return This builder for chaining.
*/
public Builder setClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
className_ = value;
onChanged();
return this;
}
/**
* string class_name = 8 [json_name = "className"];
* @return This builder for chaining.
*/
public Builder clearClassName() {
className_ = getDefaultInstance().getClassName();
onChanged();
return this;
}
/**
* string class_name = 8 [json_name = "className"];
* @param value The bytes for className to set.
* @return This builder for chaining.
*/
public Builder setClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
className_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString actorId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes actor_id = 9 [json_name = "actorId"];
* @return The actorId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getActorId() {
return actorId_;
}
/**
* bytes actor_id = 9 [json_name = "actorId"];
* @param value The actorId to set.
* @return This builder for chaining.
*/
public Builder setActorId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
actorId_ = value;
onChanged();
return this;
}
/**
* bytes actor_id = 9 [json_name = "actorId"];
* @return This builder for chaining.
*/
public Builder clearActorId() {
actorId_ = getDefaultInstance().getActorId();
onChanged();
return this;
}
private boolean neverStarted_ ;
/**
* bool never_started = 10 [json_name = "neverStarted"];
* @return The neverStarted.
*/
@java.lang.Override
public boolean getNeverStarted() {
return neverStarted_;
}
/**
* bool never_started = 10 [json_name = "neverStarted"];
* @param value The neverStarted to set.
* @return This builder for chaining.
*/
public Builder setNeverStarted(boolean value) {
neverStarted_ = value;
onChanged();
return this;
}
/**
* bool never_started = 10 [json_name = "neverStarted"];
* @return This builder for chaining.
*/
public Builder clearNeverStarted() {
neverStarted_ = false;
onChanged();
return this;
}
private io.ray.runtime.generated.Common.NodeDeathInfo nodeDeathInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeDeathInfo, io.ray.runtime.generated.Common.NodeDeathInfo.Builder, io.ray.runtime.generated.Common.NodeDeathInfoOrBuilder> nodeDeathInfoBuilder_;
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
* @return Whether the nodeDeathInfo field is set.
*/
public boolean hasNodeDeathInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
* @return The nodeDeathInfo.
*/
public io.ray.runtime.generated.Common.NodeDeathInfo getNodeDeathInfo() {
if (nodeDeathInfoBuilder_ == null) {
return nodeDeathInfo_ == null ? io.ray.runtime.generated.Common.NodeDeathInfo.getDefaultInstance() : nodeDeathInfo_;
} else {
return nodeDeathInfoBuilder_.getMessage();
}
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
public Builder setNodeDeathInfo(io.ray.runtime.generated.Common.NodeDeathInfo value) {
if (nodeDeathInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeDeathInfo_ = value;
onChanged();
} else {
nodeDeathInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
public Builder setNodeDeathInfo(
io.ray.runtime.generated.Common.NodeDeathInfo.Builder builderForValue) {
if (nodeDeathInfoBuilder_ == null) {
nodeDeathInfo_ = builderForValue.build();
onChanged();
} else {
nodeDeathInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
public Builder mergeNodeDeathInfo(io.ray.runtime.generated.Common.NodeDeathInfo value) {
if (nodeDeathInfoBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
nodeDeathInfo_ != null &&
nodeDeathInfo_ != io.ray.runtime.generated.Common.NodeDeathInfo.getDefaultInstance()) {
nodeDeathInfo_ =
io.ray.runtime.generated.Common.NodeDeathInfo.newBuilder(nodeDeathInfo_).mergeFrom(value).buildPartial();
} else {
nodeDeathInfo_ = value;
}
onChanged();
} else {
nodeDeathInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
public Builder clearNodeDeathInfo() {
if (nodeDeathInfoBuilder_ == null) {
nodeDeathInfo_ = null;
onChanged();
} else {
nodeDeathInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
public io.ray.runtime.generated.Common.NodeDeathInfo.Builder getNodeDeathInfoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNodeDeathInfoFieldBuilder().getBuilder();
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
public io.ray.runtime.generated.Common.NodeDeathInfoOrBuilder getNodeDeathInfoOrBuilder() {
if (nodeDeathInfoBuilder_ != null) {
return nodeDeathInfoBuilder_.getMessageOrBuilder();
} else {
return nodeDeathInfo_ == null ?
io.ray.runtime.generated.Common.NodeDeathInfo.getDefaultInstance() : nodeDeathInfo_;
}
}
/**
* optional .ray.rpc.NodeDeathInfo node_death_info = 11 [json_name = "nodeDeathInfo"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeDeathInfo, io.ray.runtime.generated.Common.NodeDeathInfo.Builder, io.ray.runtime.generated.Common.NodeDeathInfoOrBuilder>
getNodeDeathInfoFieldBuilder() {
if (nodeDeathInfoBuilder_ == null) {
nodeDeathInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.Common.NodeDeathInfo, io.ray.runtime.generated.Common.NodeDeathInfo.Builder, io.ray.runtime.generated.Common.NodeDeathInfoOrBuilder>(
getNodeDeathInfo(),
getParentForChildren(),
isClean());
nodeDeathInfo_ = null;
}
return nodeDeathInfoBuilder_;
}
@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.rpc.ActorDiedErrorContext)
}
// @@protoc_insertion_point(class_scope:ray.rpc.ActorDiedErrorContext)
private static final io.ray.runtime.generated.Common.ActorDiedErrorContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ActorDiedErrorContext();
}
public static io.ray.runtime.generated.Common.ActorDiedErrorContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActorDiedErrorContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ActorDiedErrorContext(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.runtime.generated.Common.ActorDiedErrorContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OomContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.OomContext)
com.google.protobuf.MessageOrBuilder {
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
* bool fail_immediately = 2 [json_name = "failImmediately"];
* @return The failImmediately.
*/
boolean getFailImmediately();
}
/**
* Protobuf type {@code ray.rpc.OomContext}
*/
public static final class OomContext extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.OomContext)
OomContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use OomContext.newBuilder() to construct.
private OomContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private OomContext() {
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OomContext();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OomContext(
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();
errorMessage_ = s;
break;
}
case 16: {
failImmediately_ = input.readBool();
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.runtime.generated.Common.internal_static_ray_rpc_OomContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OomContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.OomContext.class, io.ray.runtime.generated.Common.OomContext.Builder.class);
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 1;
private volatile java.lang.Object errorMessage_;
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
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();
errorMessage_ = s;
return s;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FAIL_IMMEDIATELY_FIELD_NUMBER = 2;
private boolean failImmediately_;
/**
* bool fail_immediately = 2 [json_name = "failImmediately"];
* @return The failImmediately.
*/
@java.lang.Override
public boolean getFailImmediately() {
return failImmediately_;
}
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(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_);
}
if (failImmediately_ != false) {
output.writeBool(2, failImmediately_);
}
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(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errorMessage_);
}
if (failImmediately_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, failImmediately_);
}
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.runtime.generated.Common.OomContext)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.OomContext other = (io.ray.runtime.generated.Common.OomContext) obj;
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
if (getFailImmediately()
!= other.getFailImmediately()) 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) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (37 * hash) + FAIL_IMMEDIATELY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFailImmediately());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.OomContext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.OomContext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.OomContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.OomContext 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.runtime.generated.Common.OomContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.OomContext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.OomContext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.OomContext 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.runtime.generated.Common.OomContext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.OomContext 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.runtime.generated.Common.OomContext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.OomContext 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.runtime.generated.Common.OomContext 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.rpc.OomContext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.OomContext)
io.ray.runtime.generated.Common.OomContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OomContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OomContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.OomContext.class, io.ray.runtime.generated.Common.OomContext.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.OomContext.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();
errorMessage_ = "";
failImmediately_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_OomContext_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.OomContext getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.OomContext.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.OomContext build() {
io.ray.runtime.generated.Common.OomContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.OomContext buildPartial() {
io.ray.runtime.generated.Common.OomContext result = new io.ray.runtime.generated.Common.OomContext(this);
result.errorMessage_ = errorMessage_;
result.failImmediately_ = failImmediately_;
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.runtime.generated.Common.OomContext) {
return mergeFrom((io.ray.runtime.generated.Common.OomContext)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.OomContext other) {
if (other == io.ray.runtime.generated.Common.OomContext.getDefaultInstance()) return this;
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.getFailImmediately() != false) {
setFailImmediately(other.getFailImmediately());
}
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.runtime.generated.Common.OomContext parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.OomContext) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object errorMessage_ = "";
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* string error_message = 1 [json_name = "errorMessage"];
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
private boolean failImmediately_ ;
/**
* bool fail_immediately = 2 [json_name = "failImmediately"];
* @return The failImmediately.
*/
@java.lang.Override
public boolean getFailImmediately() {
return failImmediately_;
}
/**
* bool fail_immediately = 2 [json_name = "failImmediately"];
* @param value The failImmediately to set.
* @return This builder for chaining.
*/
public Builder setFailImmediately(boolean value) {
failImmediately_ = value;
onChanged();
return this;
}
/**
* bool fail_immediately = 2 [json_name = "failImmediately"];
* @return This builder for chaining.
*/
public Builder clearFailImmediately() {
failImmediately_ = false;
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.rpc.OomContext)
}
// @@protoc_insertion_point(class_scope:ray.rpc.OomContext)
private static final io.ray.runtime.generated.Common.OomContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.OomContext();
}
public static io.ray.runtime.generated.Common.OomContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OomContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OomContext(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.runtime.generated.Common.OomContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ActorUnavailableContextOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.ActorUnavailableContext)
com.google.protobuf.MessageOrBuilder {
/**
* optional bytes actor_id = 1 [json_name = "actorId"];
* @return Whether the actorId field is set.
*/
boolean hasActorId();
/**
* optional bytes actor_id = 1 [json_name = "actorId"];
* @return The actorId.
*/
com.google.protobuf.ByteString getActorId();
}
/**
* Protobuf type {@code ray.rpc.ActorUnavailableContext}
*/
public static final class ActorUnavailableContext extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.ActorUnavailableContext)
ActorUnavailableContextOrBuilder {
private static final long serialVersionUID = 0L;
// Use ActorUnavailableContext.newBuilder() to construct.
private ActorUnavailableContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ActorUnavailableContext() {
actorId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ActorUnavailableContext();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ActorUnavailableContext(
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: {
bitField0_ |= 0x00000001;
actorId_ = input.readBytes();
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.runtime.generated.Common.internal_static_ray_rpc_ActorUnavailableContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorUnavailableContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ActorUnavailableContext.class, io.ray.runtime.generated.Common.ActorUnavailableContext.Builder.class);
}
private int bitField0_;
public static final int ACTOR_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString actorId_;
/**
* optional bytes actor_id = 1 [json_name = "actorId"];
* @return Whether the actorId field is set.
*/
@java.lang.Override
public boolean hasActorId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes actor_id = 1 [json_name = "actorId"];
* @return The actorId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getActorId() {
return actorId_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, actorId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, actorId_);
}
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.runtime.generated.Common.ActorUnavailableContext)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.ActorUnavailableContext other = (io.ray.runtime.generated.Common.ActorUnavailableContext) obj;
if (hasActorId() != other.hasActorId()) return false;
if (hasActorId()) {
if (!getActorId()
.equals(other.getActorId())) 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();
if (hasActorId()) {
hash = (37 * hash) + ACTOR_ID_FIELD_NUMBER;
hash = (53 * hash) + getActorId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext 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.runtime.generated.Common.ActorUnavailableContext parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext 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.runtime.generated.Common.ActorUnavailableContext parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext 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.runtime.generated.Common.ActorUnavailableContext parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext 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.runtime.generated.Common.ActorUnavailableContext 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.rpc.ActorUnavailableContext}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.ActorUnavailableContext)
io.ray.runtime.generated.Common.ActorUnavailableContextOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorUnavailableContext_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorUnavailableContext_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.ActorUnavailableContext.class, io.ray.runtime.generated.Common.ActorUnavailableContext.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.ActorUnavailableContext.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();
actorId_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorUnavailableContext_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnavailableContext getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnavailableContext build() {
io.ray.runtime.generated.Common.ActorUnavailableContext result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.ActorUnavailableContext buildPartial() {
io.ray.runtime.generated.Common.ActorUnavailableContext result = new io.ray.runtime.generated.Common.ActorUnavailableContext(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.actorId_ = actorId_;
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.runtime.generated.Common.ActorUnavailableContext) {
return mergeFrom((io.ray.runtime.generated.Common.ActorUnavailableContext)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.ActorUnavailableContext other) {
if (other == io.ray.runtime.generated.Common.ActorUnavailableContext.getDefaultInstance()) return this;
if (other.hasActorId()) {
setActorId(other.getActorId());
}
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.runtime.generated.Common.ActorUnavailableContext parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.ActorUnavailableContext) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString actorId_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes actor_id = 1 [json_name = "actorId"];
* @return Whether the actorId field is set.
*/
@java.lang.Override
public boolean hasActorId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes actor_id = 1 [json_name = "actorId"];
* @return The actorId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getActorId() {
return actorId_;
}
/**
* optional bytes actor_id = 1 [json_name = "actorId"];
* @param value The actorId to set.
* @return This builder for chaining.
*/
public Builder setActorId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
actorId_ = value;
onChanged();
return this;
}
/**
* optional bytes actor_id = 1 [json_name = "actorId"];
* @return This builder for chaining.
*/
public Builder clearActorId() {
bitField0_ = (bitField0_ & ~0x00000001);
actorId_ = getDefaultInstance().getActorId();
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.rpc.ActorUnavailableContext)
}
// @@protoc_insertion_point(class_scope:ray.rpc.ActorUnavailableContext)
private static final io.ray.runtime.generated.Common.ActorUnavailableContext DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ActorUnavailableContext();
}
public static io.ray.runtime.generated.Common.ActorUnavailableContext getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ActorUnavailableContext parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ActorUnavailableContext(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.runtime.generated.Common.ActorUnavailableContext getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JobConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.JobConfig)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @return A list containing the jvmOptions.
*/
java.util.List
getJvmOptionsList();
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @return The count of jvmOptions.
*/
int getJvmOptionsCount();
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param index The index of the element to return.
* @return The jvmOptions at the given index.
*/
java.lang.String getJvmOptions(int index);
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param index The index of the value to return.
* @return The bytes of the jvmOptions at the given index.
*/
com.google.protobuf.ByteString
getJvmOptionsBytes(int index);
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @return A list containing the codeSearchPath.
*/
java.util.List
getCodeSearchPathList();
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @return The count of codeSearchPath.
*/
int getCodeSearchPathCount();
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param index The index of the element to return.
* @return The codeSearchPath at the given index.
*/
java.lang.String getCodeSearchPath(int index);
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param index The index of the value to return.
* @return The bytes of the codeSearchPath at the given index.
*/
com.google.protobuf.ByteString
getCodeSearchPathBytes(int index);
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
* @return Whether the runtimeEnvInfo field is set.
*/
boolean hasRuntimeEnvInfo();
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
* @return The runtimeEnvInfo.
*/
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo getRuntimeEnvInfo();
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfoOrBuilder getRuntimeEnvInfoOrBuilder();
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @return The rayNamespace.
*/
java.lang.String getRayNamespace();
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @return The bytes for rayNamespace.
*/
com.google.protobuf.ByteString
getRayNamespaceBytes();
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
int getMetadataCount();
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
java.util.Map
getMetadataMap();
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @return The enum numeric value on the wire for defaultActorLifetime.
*/
int getDefaultActorLifetimeValue();
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @return The defaultActorLifetime.
*/
io.ray.runtime.generated.Common.JobConfig.ActorLifetime getDefaultActorLifetime();
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @return A list containing the pyDriverSysPath.
*/
java.util.List
getPyDriverSysPathList();
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @return The count of pyDriverSysPath.
*/
int getPyDriverSysPathCount();
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param index The index of the element to return.
* @return The pyDriverSysPath at the given index.
*/
java.lang.String getPyDriverSysPath(int index);
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param index The index of the value to return.
* @return The bytes of the pyDriverSysPath at the given index.
*/
com.google.protobuf.ByteString
getPyDriverSysPathBytes(int index);
/**
* bytes serialized_py_logging_config = 9 [json_name = "serializedPyLoggingConfig"];
* @return The serializedPyLoggingConfig.
*/
com.google.protobuf.ByteString getSerializedPyLoggingConfig();
}
/**
* Protobuf type {@code ray.rpc.JobConfig}
*/
public static final class JobConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.JobConfig)
JobConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use JobConfig.newBuilder() to construct.
private JobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private JobConfig() {
jvmOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
codeSearchPath_ = com.google.protobuf.LazyStringArrayList.EMPTY;
rayNamespace_ = "";
defaultActorLifetime_ = 0;
pyDriverSysPath_ = com.google.protobuf.LazyStringArrayList.EMPTY;
serializedPyLoggingConfig_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new JobConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private JobConfig(
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 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
jvmOptions_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
jvmOptions_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
codeSearchPath_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
codeSearchPath_.add(s);
break;
}
case 34: {
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder subBuilder = null;
if (runtimeEnvInfo_ != null) {
subBuilder = runtimeEnvInfo_.toBuilder();
}
runtimeEnvInfo_ = input.readMessage(io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(runtimeEnvInfo_);
runtimeEnvInfo_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
rayNamespace_ = s;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
metadata__ = input.readMessage(
MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metadata_.getMutableMap().put(
metadata__.getKey(), metadata__.getValue());
break;
}
case 56: {
int rawValue = input.readEnum();
defaultActorLifetime_ = rawValue;
break;
}
case 66: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
pyDriverSysPath_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
pyDriverSysPath_.add(s);
break;
}
case 74: {
serializedPyLoggingConfig_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
jvmOptions_ = jvmOptions_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
codeSearchPath_ = codeSearchPath_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
pyDriverSysPath_ = pyDriverSysPath_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JobConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JobConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.JobConfig.class, io.ray.runtime.generated.Common.JobConfig.Builder.class);
}
/**
* Protobuf enum {@code ray.rpc.JobConfig.ActorLifetime}
*/
public enum ActorLifetime
implements com.google.protobuf.ProtocolMessageEnum {
/**
* DETACHED = 0;
*/
DETACHED(0),
/**
* NON_DETACHED = 1;
*/
NON_DETACHED(1),
UNRECOGNIZED(-1),
;
/**
* DETACHED = 0;
*/
public static final int DETACHED_VALUE = 0;
/**
* NON_DETACHED = 1;
*/
public static final int NON_DETACHED_VALUE = 1;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ActorLifetime valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ActorLifetime forNumber(int value) {
switch (value) {
case 0: return DETACHED;
case 1: return NON_DETACHED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ActorLifetime> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ActorLifetime findValueByNumber(int number) {
return ActorLifetime.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.ray.runtime.generated.Common.JobConfig.getDescriptor().getEnumTypes().get(0);
}
private static final ActorLifetime[] VALUES = values();
public static ActorLifetime valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ActorLifetime(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ray.rpc.JobConfig.ActorLifetime)
}
public static final int JVM_OPTIONS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList jvmOptions_;
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @return A list containing the jvmOptions.
*/
public com.google.protobuf.ProtocolStringList
getJvmOptionsList() {
return jvmOptions_;
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @return The count of jvmOptions.
*/
public int getJvmOptionsCount() {
return jvmOptions_.size();
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param index The index of the element to return.
* @return The jvmOptions at the given index.
*/
public java.lang.String getJvmOptions(int index) {
return jvmOptions_.get(index);
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param index The index of the value to return.
* @return The bytes of the jvmOptions at the given index.
*/
public com.google.protobuf.ByteString
getJvmOptionsBytes(int index) {
return jvmOptions_.getByteString(index);
}
public static final int CODE_SEARCH_PATH_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList codeSearchPath_;
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @return A list containing the codeSearchPath.
*/
public com.google.protobuf.ProtocolStringList
getCodeSearchPathList() {
return codeSearchPath_;
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @return The count of codeSearchPath.
*/
public int getCodeSearchPathCount() {
return codeSearchPath_.size();
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param index The index of the element to return.
* @return The codeSearchPath at the given index.
*/
public java.lang.String getCodeSearchPath(int index) {
return codeSearchPath_.get(index);
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param index The index of the value to return.
* @return The bytes of the codeSearchPath at the given index.
*/
public com.google.protobuf.ByteString
getCodeSearchPathBytes(int index) {
return codeSearchPath_.getByteString(index);
}
public static final int RUNTIME_ENV_INFO_FIELD_NUMBER = 4;
private io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo runtimeEnvInfo_;
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
* @return Whether the runtimeEnvInfo field is set.
*/
@java.lang.Override
public boolean hasRuntimeEnvInfo() {
return runtimeEnvInfo_ != null;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
* @return The runtimeEnvInfo.
*/
@java.lang.Override
public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo getRuntimeEnvInfo() {
return runtimeEnvInfo_ == null ? io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.getDefaultInstance() : runtimeEnvInfo_;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
@java.lang.Override
public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfoOrBuilder getRuntimeEnvInfoOrBuilder() {
return getRuntimeEnvInfo();
}
public static final int RAY_NAMESPACE_FIELD_NUMBER = 5;
private volatile java.lang.Object rayNamespace_;
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @return The rayNamespace.
*/
@java.lang.Override
public java.lang.String getRayNamespace() {
java.lang.Object ref = rayNamespace_;
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();
rayNamespace_ = s;
return s;
}
}
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @return The bytes for rayNamespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRayNamespaceBytes() {
java.lang.Object ref = rayNamespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rayNamespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METADATA_FIELD_NUMBER = 6;
private static final class MetadataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.ray.runtime.generated.Common.internal_static_ray_rpc_JobConfig_MetadataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DEFAULT_ACTOR_LIFETIME_FIELD_NUMBER = 7;
private int defaultActorLifetime_;
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @return The enum numeric value on the wire for defaultActorLifetime.
*/
@java.lang.Override public int getDefaultActorLifetimeValue() {
return defaultActorLifetime_;
}
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @return The defaultActorLifetime.
*/
@java.lang.Override public io.ray.runtime.generated.Common.JobConfig.ActorLifetime getDefaultActorLifetime() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.JobConfig.ActorLifetime result = io.ray.runtime.generated.Common.JobConfig.ActorLifetime.valueOf(defaultActorLifetime_);
return result == null ? io.ray.runtime.generated.Common.JobConfig.ActorLifetime.UNRECOGNIZED : result;
}
public static final int PY_DRIVER_SYS_PATH_FIELD_NUMBER = 8;
private com.google.protobuf.LazyStringList pyDriverSysPath_;
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @return A list containing the pyDriverSysPath.
*/
public com.google.protobuf.ProtocolStringList
getPyDriverSysPathList() {
return pyDriverSysPath_;
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @return The count of pyDriverSysPath.
*/
public int getPyDriverSysPathCount() {
return pyDriverSysPath_.size();
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param index The index of the element to return.
* @return The pyDriverSysPath at the given index.
*/
public java.lang.String getPyDriverSysPath(int index) {
return pyDriverSysPath_.get(index);
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param index The index of the value to return.
* @return The bytes of the pyDriverSysPath at the given index.
*/
public com.google.protobuf.ByteString
getPyDriverSysPathBytes(int index) {
return pyDriverSysPath_.getByteString(index);
}
public static final int SERIALIZED_PY_LOGGING_CONFIG_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString serializedPyLoggingConfig_;
/**
* bytes serialized_py_logging_config = 9 [json_name = "serializedPyLoggingConfig"];
* @return The serializedPyLoggingConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSerializedPyLoggingConfig() {
return serializedPyLoggingConfig_;
}
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 {
for (int i = 0; i < jvmOptions_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jvmOptions_.getRaw(i));
}
for (int i = 0; i < codeSearchPath_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, codeSearchPath_.getRaw(i));
}
if (runtimeEnvInfo_ != null) {
output.writeMessage(4, getRuntimeEnvInfo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rayNamespace_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, rayNamespace_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
6);
if (defaultActorLifetime_ != io.ray.runtime.generated.Common.JobConfig.ActorLifetime.DETACHED.getNumber()) {
output.writeEnum(7, defaultActorLifetime_);
}
for (int i = 0; i < pyDriverSysPath_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, pyDriverSysPath_.getRaw(i));
}
if (!serializedPyLoggingConfig_.isEmpty()) {
output.writeBytes(9, serializedPyLoggingConfig_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < jvmOptions_.size(); i++) {
dataSize += computeStringSizeNoTag(jvmOptions_.getRaw(i));
}
size += dataSize;
size += 1 * getJvmOptionsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < codeSearchPath_.size(); i++) {
dataSize += computeStringSizeNoTag(codeSearchPath_.getRaw(i));
}
size += dataSize;
size += 1 * getCodeSearchPathList().size();
}
if (runtimeEnvInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getRuntimeEnvInfo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rayNamespace_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, rayNamespace_);
}
for (java.util.Map.Entry entry
: internalGetMetadata().getMap().entrySet()) {
com.google.protobuf.MapEntry
metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, metadata__);
}
if (defaultActorLifetime_ != io.ray.runtime.generated.Common.JobConfig.ActorLifetime.DETACHED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, defaultActorLifetime_);
}
{
int dataSize = 0;
for (int i = 0; i < pyDriverSysPath_.size(); i++) {
dataSize += computeStringSizeNoTag(pyDriverSysPath_.getRaw(i));
}
size += dataSize;
size += 1 * getPyDriverSysPathList().size();
}
if (!serializedPyLoggingConfig_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, serializedPyLoggingConfig_);
}
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.runtime.generated.Common.JobConfig)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.JobConfig other = (io.ray.runtime.generated.Common.JobConfig) obj;
if (!getJvmOptionsList()
.equals(other.getJvmOptionsList())) return false;
if (!getCodeSearchPathList()
.equals(other.getCodeSearchPathList())) return false;
if (hasRuntimeEnvInfo() != other.hasRuntimeEnvInfo()) return false;
if (hasRuntimeEnvInfo()) {
if (!getRuntimeEnvInfo()
.equals(other.getRuntimeEnvInfo())) return false;
}
if (!getRayNamespace()
.equals(other.getRayNamespace())) return false;
if (!internalGetMetadata().equals(
other.internalGetMetadata())) return false;
if (defaultActorLifetime_ != other.defaultActorLifetime_) return false;
if (!getPyDriverSysPathList()
.equals(other.getPyDriverSysPathList())) return false;
if (!getSerializedPyLoggingConfig()
.equals(other.getSerializedPyLoggingConfig())) 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();
if (getJvmOptionsCount() > 0) {
hash = (37 * hash) + JVM_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getJvmOptionsList().hashCode();
}
if (getCodeSearchPathCount() > 0) {
hash = (37 * hash) + CODE_SEARCH_PATH_FIELD_NUMBER;
hash = (53 * hash) + getCodeSearchPathList().hashCode();
}
if (hasRuntimeEnvInfo()) {
hash = (37 * hash) + RUNTIME_ENV_INFO_FIELD_NUMBER;
hash = (53 * hash) + getRuntimeEnvInfo().hashCode();
}
hash = (37 * hash) + RAY_NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getRayNamespace().hashCode();
if (!internalGetMetadata().getMap().isEmpty()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetadata().hashCode();
}
hash = (37 * hash) + DEFAULT_ACTOR_LIFETIME_FIELD_NUMBER;
hash = (53 * hash) + defaultActorLifetime_;
if (getPyDriverSysPathCount() > 0) {
hash = (37 * hash) + PY_DRIVER_SYS_PATH_FIELD_NUMBER;
hash = (53 * hash) + getPyDriverSysPathList().hashCode();
}
hash = (37 * hash) + SERIALIZED_PY_LOGGING_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getSerializedPyLoggingConfig().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.JobConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.JobConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.JobConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.JobConfig 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.runtime.generated.Common.JobConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.JobConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.JobConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.JobConfig 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.runtime.generated.Common.JobConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.JobConfig 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.runtime.generated.Common.JobConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.JobConfig 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.runtime.generated.Common.JobConfig 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.rpc.JobConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.JobConfig)
io.ray.runtime.generated.Common.JobConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JobConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 6:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 6:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JobConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.JobConfig.class, io.ray.runtime.generated.Common.JobConfig.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.JobConfig.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();
jvmOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
codeSearchPath_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
if (runtimeEnvInfoBuilder_ == null) {
runtimeEnvInfo_ = null;
} else {
runtimeEnvInfo_ = null;
runtimeEnvInfoBuilder_ = null;
}
rayNamespace_ = "";
internalGetMutableMetadata().clear();
defaultActorLifetime_ = 0;
pyDriverSysPath_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
serializedPyLoggingConfig_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_JobConfig_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.JobConfig getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.JobConfig.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.JobConfig build() {
io.ray.runtime.generated.Common.JobConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.JobConfig buildPartial() {
io.ray.runtime.generated.Common.JobConfig result = new io.ray.runtime.generated.Common.JobConfig(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
jvmOptions_ = jvmOptions_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.jvmOptions_ = jvmOptions_;
if (((bitField0_ & 0x00000002) != 0)) {
codeSearchPath_ = codeSearchPath_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.codeSearchPath_ = codeSearchPath_;
if (runtimeEnvInfoBuilder_ == null) {
result.runtimeEnvInfo_ = runtimeEnvInfo_;
} else {
result.runtimeEnvInfo_ = runtimeEnvInfoBuilder_.build();
}
result.rayNamespace_ = rayNamespace_;
result.metadata_ = internalGetMetadata();
result.metadata_.makeImmutable();
result.defaultActorLifetime_ = defaultActorLifetime_;
if (((bitField0_ & 0x00000008) != 0)) {
pyDriverSysPath_ = pyDriverSysPath_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.pyDriverSysPath_ = pyDriverSysPath_;
result.serializedPyLoggingConfig_ = serializedPyLoggingConfig_;
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.runtime.generated.Common.JobConfig) {
return mergeFrom((io.ray.runtime.generated.Common.JobConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.JobConfig other) {
if (other == io.ray.runtime.generated.Common.JobConfig.getDefaultInstance()) return this;
if (!other.jvmOptions_.isEmpty()) {
if (jvmOptions_.isEmpty()) {
jvmOptions_ = other.jvmOptions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureJvmOptionsIsMutable();
jvmOptions_.addAll(other.jvmOptions_);
}
onChanged();
}
if (!other.codeSearchPath_.isEmpty()) {
if (codeSearchPath_.isEmpty()) {
codeSearchPath_ = other.codeSearchPath_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCodeSearchPathIsMutable();
codeSearchPath_.addAll(other.codeSearchPath_);
}
onChanged();
}
if (other.hasRuntimeEnvInfo()) {
mergeRuntimeEnvInfo(other.getRuntimeEnvInfo());
}
if (!other.getRayNamespace().isEmpty()) {
rayNamespace_ = other.rayNamespace_;
onChanged();
}
internalGetMutableMetadata().mergeFrom(
other.internalGetMetadata());
if (other.defaultActorLifetime_ != 0) {
setDefaultActorLifetimeValue(other.getDefaultActorLifetimeValue());
}
if (!other.pyDriverSysPath_.isEmpty()) {
if (pyDriverSysPath_.isEmpty()) {
pyDriverSysPath_ = other.pyDriverSysPath_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensurePyDriverSysPathIsMutable();
pyDriverSysPath_.addAll(other.pyDriverSysPath_);
}
onChanged();
}
if (other.getSerializedPyLoggingConfig() != com.google.protobuf.ByteString.EMPTY) {
setSerializedPyLoggingConfig(other.getSerializedPyLoggingConfig());
}
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.runtime.generated.Common.JobConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.JobConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList jvmOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureJvmOptionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
jvmOptions_ = new com.google.protobuf.LazyStringArrayList(jvmOptions_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @return A list containing the jvmOptions.
*/
public com.google.protobuf.ProtocolStringList
getJvmOptionsList() {
return jvmOptions_.getUnmodifiableView();
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @return The count of jvmOptions.
*/
public int getJvmOptionsCount() {
return jvmOptions_.size();
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param index The index of the element to return.
* @return The jvmOptions at the given index.
*/
public java.lang.String getJvmOptions(int index) {
return jvmOptions_.get(index);
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param index The index of the value to return.
* @return The bytes of the jvmOptions at the given index.
*/
public com.google.protobuf.ByteString
getJvmOptionsBytes(int index) {
return jvmOptions_.getByteString(index);
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param index The index to set the value at.
* @param value The jvmOptions to set.
* @return This builder for chaining.
*/
public Builder setJvmOptions(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureJvmOptionsIsMutable();
jvmOptions_.set(index, value);
onChanged();
return this;
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param value The jvmOptions to add.
* @return This builder for chaining.
*/
public Builder addJvmOptions(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureJvmOptionsIsMutable();
jvmOptions_.add(value);
onChanged();
return this;
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param values The jvmOptions to add.
* @return This builder for chaining.
*/
public Builder addAllJvmOptions(
java.lang.Iterable values) {
ensureJvmOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, jvmOptions_);
onChanged();
return this;
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @return This builder for chaining.
*/
public Builder clearJvmOptions() {
jvmOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string jvm_options = 2 [json_name = "jvmOptions"];
* @param value The bytes of the jvmOptions to add.
* @return This builder for chaining.
*/
public Builder addJvmOptionsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureJvmOptionsIsMutable();
jvmOptions_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList codeSearchPath_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCodeSearchPathIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
codeSearchPath_ = new com.google.protobuf.LazyStringArrayList(codeSearchPath_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @return A list containing the codeSearchPath.
*/
public com.google.protobuf.ProtocolStringList
getCodeSearchPathList() {
return codeSearchPath_.getUnmodifiableView();
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @return The count of codeSearchPath.
*/
public int getCodeSearchPathCount() {
return codeSearchPath_.size();
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param index The index of the element to return.
* @return The codeSearchPath at the given index.
*/
public java.lang.String getCodeSearchPath(int index) {
return codeSearchPath_.get(index);
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param index The index of the value to return.
* @return The bytes of the codeSearchPath at the given index.
*/
public com.google.protobuf.ByteString
getCodeSearchPathBytes(int index) {
return codeSearchPath_.getByteString(index);
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param index The index to set the value at.
* @param value The codeSearchPath to set.
* @return This builder for chaining.
*/
public Builder setCodeSearchPath(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodeSearchPathIsMutable();
codeSearchPath_.set(index, value);
onChanged();
return this;
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param value The codeSearchPath to add.
* @return This builder for chaining.
*/
public Builder addCodeSearchPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCodeSearchPathIsMutable();
codeSearchPath_.add(value);
onChanged();
return this;
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param values The codeSearchPath to add.
* @return This builder for chaining.
*/
public Builder addAllCodeSearchPath(
java.lang.Iterable values) {
ensureCodeSearchPathIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, codeSearchPath_);
onChanged();
return this;
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @return This builder for chaining.
*/
public Builder clearCodeSearchPath() {
codeSearchPath_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string code_search_path = 3 [json_name = "codeSearchPath"];
* @param value The bytes of the codeSearchPath to add.
* @return This builder for chaining.
*/
public Builder addCodeSearchPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureCodeSearchPathIsMutable();
codeSearchPath_.add(value);
onChanged();
return this;
}
private io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo runtimeEnvInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo, io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder, io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfoOrBuilder> runtimeEnvInfoBuilder_;
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
* @return Whether the runtimeEnvInfo field is set.
*/
public boolean hasRuntimeEnvInfo() {
return runtimeEnvInfoBuilder_ != null || runtimeEnvInfo_ != null;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
* @return The runtimeEnvInfo.
*/
public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo getRuntimeEnvInfo() {
if (runtimeEnvInfoBuilder_ == null) {
return runtimeEnvInfo_ == null ? io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.getDefaultInstance() : runtimeEnvInfo_;
} else {
return runtimeEnvInfoBuilder_.getMessage();
}
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
public Builder setRuntimeEnvInfo(io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo value) {
if (runtimeEnvInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
runtimeEnvInfo_ = value;
onChanged();
} else {
runtimeEnvInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
public Builder setRuntimeEnvInfo(
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder builderForValue) {
if (runtimeEnvInfoBuilder_ == null) {
runtimeEnvInfo_ = builderForValue.build();
onChanged();
} else {
runtimeEnvInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
public Builder mergeRuntimeEnvInfo(io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo value) {
if (runtimeEnvInfoBuilder_ == null) {
if (runtimeEnvInfo_ != null) {
runtimeEnvInfo_ =
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.newBuilder(runtimeEnvInfo_).mergeFrom(value).buildPartial();
} else {
runtimeEnvInfo_ = value;
}
onChanged();
} else {
runtimeEnvInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
public Builder clearRuntimeEnvInfo() {
if (runtimeEnvInfoBuilder_ == null) {
runtimeEnvInfo_ = null;
onChanged();
} else {
runtimeEnvInfo_ = null;
runtimeEnvInfoBuilder_ = null;
}
return this;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder getRuntimeEnvInfoBuilder() {
onChanged();
return getRuntimeEnvInfoFieldBuilder().getBuilder();
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfoOrBuilder getRuntimeEnvInfoOrBuilder() {
if (runtimeEnvInfoBuilder_ != null) {
return runtimeEnvInfoBuilder_.getMessageOrBuilder();
} else {
return runtimeEnvInfo_ == null ?
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.getDefaultInstance() : runtimeEnvInfo_;
}
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 4 [json_name = "runtimeEnvInfo"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo, io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder, io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfoOrBuilder>
getRuntimeEnvInfoFieldBuilder() {
if (runtimeEnvInfoBuilder_ == null) {
runtimeEnvInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo, io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder, io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfoOrBuilder>(
getRuntimeEnvInfo(),
getParentForChildren(),
isClean());
runtimeEnvInfo_ = null;
}
return runtimeEnvInfoBuilder_;
}
private java.lang.Object rayNamespace_ = "";
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @return The rayNamespace.
*/
public java.lang.String getRayNamespace() {
java.lang.Object ref = rayNamespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rayNamespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @return The bytes for rayNamespace.
*/
public com.google.protobuf.ByteString
getRayNamespaceBytes() {
java.lang.Object ref = rayNamespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rayNamespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @param value The rayNamespace to set.
* @return This builder for chaining.
*/
public Builder setRayNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rayNamespace_ = value;
onChanged();
return this;
}
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @return This builder for chaining.
*/
public Builder clearRayNamespace() {
rayNamespace_ = getDefaultInstance().getRayNamespace();
onChanged();
return this;
}
/**
* string ray_namespace = 5 [json_name = "rayNamespace"];
* @param value The bytes for rayNamespace to set.
* @return This builder for chaining.
*/
public Builder setRayNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rayNamespace_ = value;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> metadata_;
private com.google.protobuf.MapField
internalGetMetadata() {
if (metadata_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
return metadata_;
}
private com.google.protobuf.MapField
internalGetMutableMetadata() {
onChanged();;
if (metadata_ == null) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
}
if (!metadata_.isMutable()) {
metadata_ = metadata_.copy();
}
return metadata_;
}
public int getMetadataCount() {
return internalGetMetadata().getMap().size();
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
@java.lang.Override
public boolean containsMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetMetadata().getMap().containsKey(key);
}
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
@java.lang.Override
public java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
@java.lang.Override
public java.lang.String getMetadataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetMetadata().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetadata() {
internalGetMutableMetadata().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
public Builder removeMetadata(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableMetadata().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetadata() {
return internalGetMutableMetadata().getMutableMap();
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
public Builder putMetadata(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableMetadata().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> metadata = 6 [json_name = "metadata"];
*/
public Builder putAllMetadata(
java.util.Map values) {
internalGetMutableMetadata().getMutableMap()
.putAll(values);
return this;
}
private int defaultActorLifetime_ = 0;
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @return The enum numeric value on the wire for defaultActorLifetime.
*/
@java.lang.Override public int getDefaultActorLifetimeValue() {
return defaultActorLifetime_;
}
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @param value The enum numeric value on the wire for defaultActorLifetime to set.
* @return This builder for chaining.
*/
public Builder setDefaultActorLifetimeValue(int value) {
defaultActorLifetime_ = value;
onChanged();
return this;
}
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @return The defaultActorLifetime.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.JobConfig.ActorLifetime getDefaultActorLifetime() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.JobConfig.ActorLifetime result = io.ray.runtime.generated.Common.JobConfig.ActorLifetime.valueOf(defaultActorLifetime_);
return result == null ? io.ray.runtime.generated.Common.JobConfig.ActorLifetime.UNRECOGNIZED : result;
}
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @param value The defaultActorLifetime to set.
* @return This builder for chaining.
*/
public Builder setDefaultActorLifetime(io.ray.runtime.generated.Common.JobConfig.ActorLifetime value) {
if (value == null) {
throw new NullPointerException();
}
defaultActorLifetime_ = value.getNumber();
onChanged();
return this;
}
/**
* .ray.rpc.JobConfig.ActorLifetime default_actor_lifetime = 7 [json_name = "defaultActorLifetime"];
* @return This builder for chaining.
*/
public Builder clearDefaultActorLifetime() {
defaultActorLifetime_ = 0;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList pyDriverSysPath_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePyDriverSysPathIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
pyDriverSysPath_ = new com.google.protobuf.LazyStringArrayList(pyDriverSysPath_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @return A list containing the pyDriverSysPath.
*/
public com.google.protobuf.ProtocolStringList
getPyDriverSysPathList() {
return pyDriverSysPath_.getUnmodifiableView();
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @return The count of pyDriverSysPath.
*/
public int getPyDriverSysPathCount() {
return pyDriverSysPath_.size();
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param index The index of the element to return.
* @return The pyDriverSysPath at the given index.
*/
public java.lang.String getPyDriverSysPath(int index) {
return pyDriverSysPath_.get(index);
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param index The index of the value to return.
* @return The bytes of the pyDriverSysPath at the given index.
*/
public com.google.protobuf.ByteString
getPyDriverSysPathBytes(int index) {
return pyDriverSysPath_.getByteString(index);
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param index The index to set the value at.
* @param value The pyDriverSysPath to set.
* @return This builder for chaining.
*/
public Builder setPyDriverSysPath(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePyDriverSysPathIsMutable();
pyDriverSysPath_.set(index, value);
onChanged();
return this;
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param value The pyDriverSysPath to add.
* @return This builder for chaining.
*/
public Builder addPyDriverSysPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePyDriverSysPathIsMutable();
pyDriverSysPath_.add(value);
onChanged();
return this;
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param values The pyDriverSysPath to add.
* @return This builder for chaining.
*/
public Builder addAllPyDriverSysPath(
java.lang.Iterable values) {
ensurePyDriverSysPathIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pyDriverSysPath_);
onChanged();
return this;
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @return This builder for chaining.
*/
public Builder clearPyDriverSysPath() {
pyDriverSysPath_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string py_driver_sys_path = 8 [json_name = "pyDriverSysPath"];
* @param value The bytes of the pyDriverSysPath to add.
* @return This builder for chaining.
*/
public Builder addPyDriverSysPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePyDriverSysPathIsMutable();
pyDriverSysPath_.add(value);
onChanged();
return this;
}
private com.google.protobuf.ByteString serializedPyLoggingConfig_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes serialized_py_logging_config = 9 [json_name = "serializedPyLoggingConfig"];
* @return The serializedPyLoggingConfig.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSerializedPyLoggingConfig() {
return serializedPyLoggingConfig_;
}
/**
* bytes serialized_py_logging_config = 9 [json_name = "serializedPyLoggingConfig"];
* @param value The serializedPyLoggingConfig to set.
* @return This builder for chaining.
*/
public Builder setSerializedPyLoggingConfig(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
serializedPyLoggingConfig_ = value;
onChanged();
return this;
}
/**
* bytes serialized_py_logging_config = 9 [json_name = "serializedPyLoggingConfig"];
* @return This builder for chaining.
*/
public Builder clearSerializedPyLoggingConfig() {
serializedPyLoggingConfig_ = getDefaultInstance().getSerializedPyLoggingConfig();
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.rpc.JobConfig)
}
// @@protoc_insertion_point(class_scope:ray.rpc.JobConfig)
private static final io.ray.runtime.generated.Common.JobConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.JobConfig();
}
public static io.ray.runtime.generated.Common.JobConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JobConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new JobConfig(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.runtime.generated.Common.JobConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StreamingGeneratorReturnIdInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.StreamingGeneratorReturnIdInfo)
com.google.protobuf.MessageOrBuilder {
/**
* bytes object_id = 1 [json_name = "objectId"];
* @return The objectId.
*/
com.google.protobuf.ByteString getObjectId();
/**
* bool is_plasma_object = 2 [json_name = "isPlasmaObject"];
* @return The isPlasmaObject.
*/
boolean getIsPlasmaObject();
}
/**
* Protobuf type {@code ray.rpc.StreamingGeneratorReturnIdInfo}
*/
public static final class StreamingGeneratorReturnIdInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.StreamingGeneratorReturnIdInfo)
StreamingGeneratorReturnIdInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamingGeneratorReturnIdInfo.newBuilder() to construct.
private StreamingGeneratorReturnIdInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private StreamingGeneratorReturnIdInfo() {
objectId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamingGeneratorReturnIdInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StreamingGeneratorReturnIdInfo(
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: {
objectId_ = input.readBytes();
break;
}
case 16: {
isPlasmaObject_ = input.readBool();
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.runtime.generated.Common.internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo.class, io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo.Builder.class);
}
public static final int OBJECT_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString objectId_;
/**
* bytes object_id = 1 [json_name = "objectId"];
* @return The objectId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getObjectId() {
return objectId_;
}
public static final int IS_PLASMA_OBJECT_FIELD_NUMBER = 2;
private boolean isPlasmaObject_;
/**
* bool is_plasma_object = 2 [json_name = "isPlasmaObject"];
* @return The isPlasmaObject.
*/
@java.lang.Override
public boolean getIsPlasmaObject() {
return isPlasmaObject_;
}
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 (!objectId_.isEmpty()) {
output.writeBytes(1, objectId_);
}
if (isPlasmaObject_ != false) {
output.writeBool(2, isPlasmaObject_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!objectId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, objectId_);
}
if (isPlasmaObject_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isPlasmaObject_);
}
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.runtime.generated.Common.StreamingGeneratorReturnIdInfo)) {
return super.equals(obj);
}
io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo other = (io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo) obj;
if (!getObjectId()
.equals(other.getObjectId())) return false;
if (getIsPlasmaObject()
!= other.getIsPlasmaObject()) 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) + OBJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + getObjectId().hashCode();
hash = (37 * hash) + IS_PLASMA_OBJECT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsPlasmaObject());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo 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.runtime.generated.Common.StreamingGeneratorReturnIdInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo 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.runtime.generated.Common.StreamingGeneratorReturnIdInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo 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.runtime.generated.Common.StreamingGeneratorReturnIdInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo 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.runtime.generated.Common.StreamingGeneratorReturnIdInfo 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.rpc.StreamingGeneratorReturnIdInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ray.rpc.StreamingGeneratorReturnIdInfo)
io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo.class, io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo.Builder.class);
}
// Construct using io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo.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();
objectId_ = com.google.protobuf.ByteString.EMPTY;
isPlasmaObject_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_descriptor;
}
@java.lang.Override
public io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo getDefaultInstanceForType() {
return io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo.getDefaultInstance();
}
@java.lang.Override
public io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo build() {
io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo buildPartial() {
io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo result = new io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo(this);
result.objectId_ = objectId_;
result.isPlasmaObject_ = isPlasmaObject_;
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.runtime.generated.Common.StreamingGeneratorReturnIdInfo) {
return mergeFrom((io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo other) {
if (other == io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo.getDefaultInstance()) return this;
if (other.getObjectId() != com.google.protobuf.ByteString.EMPTY) {
setObjectId(other.getObjectId());
}
if (other.getIsPlasmaObject() != false) {
setIsPlasmaObject(other.getIsPlasmaObject());
}
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.runtime.generated.Common.StreamingGeneratorReturnIdInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString objectId_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes object_id = 1 [json_name = "objectId"];
* @return The objectId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getObjectId() {
return objectId_;
}
/**
* bytes object_id = 1 [json_name = "objectId"];
* @param value The objectId to set.
* @return This builder for chaining.
*/
public Builder setObjectId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
objectId_ = value;
onChanged();
return this;
}
/**
* bytes object_id = 1 [json_name = "objectId"];
* @return This builder for chaining.
*/
public Builder clearObjectId() {
objectId_ = getDefaultInstance().getObjectId();
onChanged();
return this;
}
private boolean isPlasmaObject_ ;
/**
* bool is_plasma_object = 2 [json_name = "isPlasmaObject"];
* @return The isPlasmaObject.
*/
@java.lang.Override
public boolean getIsPlasmaObject() {
return isPlasmaObject_;
}
/**
* bool is_plasma_object = 2 [json_name = "isPlasmaObject"];
* @param value The isPlasmaObject to set.
* @return This builder for chaining.
*/
public Builder setIsPlasmaObject(boolean value) {
isPlasmaObject_ = value;
onChanged();
return this;
}
/**
* bool is_plasma_object = 2 [json_name = "isPlasmaObject"];
* @return This builder for chaining.
*/
public Builder clearIsPlasmaObject() {
isPlasmaObject_ = false;
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.rpc.StreamingGeneratorReturnIdInfo)
}
// @@protoc_insertion_point(class_scope:ray.rpc.StreamingGeneratorReturnIdInfo)
private static final io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo();
}
public static io.ray.runtime.generated.Common.StreamingGeneratorReturnIdInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamingGeneratorReturnIdInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StreamingGeneratorReturnIdInfo(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.runtime.generated.Common.StreamingGeneratorReturnIdInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TaskSpecOrBuilder extends
// @@protoc_insertion_point(interface_extends:ray.rpc.TaskSpec)
com.google.protobuf.MessageOrBuilder {
/**
* .ray.rpc.TaskType type = 1 [json_name = "type"];
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
* .ray.rpc.TaskType type = 1 [json_name = "type"];
* @return The type.
*/
io.ray.runtime.generated.Common.TaskType getType();
/**
* string name = 2 [json_name = "name"];
* @return The name.
*/
java.lang.String getName();
/**
* string name = 2 [json_name = "name"];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .ray.rpc.Language language = 3 [json_name = "language"];
* @return The enum numeric value on the wire for language.
*/
int getLanguageValue();
/**
* .ray.rpc.Language language = 3 [json_name = "language"];
* @return The language.
*/
io.ray.runtime.generated.Common.Language getLanguage();
/**
* .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"];
* @return Whether the functionDescriptor field is set.
*/
boolean hasFunctionDescriptor();
/**
* .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"];
* @return The functionDescriptor.
*/
io.ray.runtime.generated.Common.FunctionDescriptor getFunctionDescriptor();
/**
* .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"];
*/
io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder getFunctionDescriptorOrBuilder();
/**
* bytes job_id = 5 [json_name = "jobId"];
* @return The jobId.
*/
com.google.protobuf.ByteString getJobId();
/**
* bytes task_id = 6 [json_name = "taskId"];
* @return The taskId.
*/
com.google.protobuf.ByteString getTaskId();
/**
* bytes parent_task_id = 7 [json_name = "parentTaskId"];
* @return The parentTaskId.
*/
com.google.protobuf.ByteString getParentTaskId();
/**
* uint64 parent_counter = 8 [json_name = "parentCounter"];
* @return The parentCounter.
*/
long getParentCounter();
/**
* bytes caller_id = 9 [json_name = "callerId"];
* @return The callerId.
*/
com.google.protobuf.ByteString getCallerId();
/**
* .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"];
* @return Whether the callerAddress field is set.
*/
boolean hasCallerAddress();
/**
* .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"];
* @return The callerAddress.
*/
io.ray.runtime.generated.Common.Address getCallerAddress();
/**
* .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"];
*/
io.ray.runtime.generated.Common.AddressOrBuilder getCallerAddressOrBuilder();
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
java.util.List
getArgsList();
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
io.ray.runtime.generated.Common.TaskArg getArgs(int index);
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
int getArgsCount();
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
java.util.List
getArgsOrBuilderList();
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
io.ray.runtime.generated.Common.TaskArgOrBuilder getArgsOrBuilder(
int index);
/**
* uint64 num_returns = 12 [json_name = "numReturns"];
* @return The numReturns.
*/
long getNumReturns();
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
int getRequiredResourcesCount();
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
boolean containsRequiredResources(
java.lang.String key);
/**
* Use {@link #getRequiredResourcesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getRequiredResources();
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
java.util.Map
getRequiredResourcesMap();
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
double getRequiredResourcesOrDefault(
java.lang.String key,
double defaultValue);
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
double getRequiredResourcesOrThrow(
java.lang.String key);
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
int getRequiredPlacementResourcesCount();
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
boolean containsRequiredPlacementResources(
java.lang.String key);
/**
* Use {@link #getRequiredPlacementResourcesMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getRequiredPlacementResources();
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
java.util.Map
getRequiredPlacementResourcesMap();
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
double getRequiredPlacementResourcesOrDefault(
java.lang.String key,
double defaultValue);
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
double getRequiredPlacementResourcesOrThrow(
java.lang.String key);
/**
* .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"];
* @return Whether the actorCreationTaskSpec field is set.
*/
boolean hasActorCreationTaskSpec();
/**
* .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"];
* @return The actorCreationTaskSpec.
*/
io.ray.runtime.generated.Common.ActorCreationTaskSpec getActorCreationTaskSpec();
/**
* .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"];
*/
io.ray.runtime.generated.Common.ActorCreationTaskSpecOrBuilder getActorCreationTaskSpecOrBuilder();
/**
* .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"];
* @return Whether the actorTaskSpec field is set.
*/
boolean hasActorTaskSpec();
/**
* .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"];
* @return The actorTaskSpec.
*/
io.ray.runtime.generated.Common.ActorTaskSpec getActorTaskSpec();
/**
* .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"];
*/
io.ray.runtime.generated.Common.ActorTaskSpecOrBuilder getActorTaskSpecOrBuilder();
/**
* int32 max_retries = 17 [json_name = "maxRetries"];
* @return The maxRetries.
*/
int getMaxRetries();
/**
* bool skip_execution = 21 [json_name = "skipExecution"];
* @return The skipExecution.
*/
boolean getSkipExecution();
/**
* bytes debugger_breakpoint = 22 [json_name = "debuggerBreakpoint"];
* @return The debuggerBreakpoint.
*/
com.google.protobuf.ByteString getDebuggerBreakpoint();
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [json_name = "runtimeEnvInfo"];
* @return Whether the runtimeEnvInfo field is set.
*/
boolean hasRuntimeEnvInfo();
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [json_name = "runtimeEnvInfo"];
* @return The runtimeEnvInfo.
*/
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo getRuntimeEnvInfo();
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [json_name = "runtimeEnvInfo"];
*/
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfoOrBuilder getRuntimeEnvInfoOrBuilder();
/**
* string concurrency_group_name = 24 [json_name = "concurrencyGroupName"];
* @return The concurrencyGroupName.
*/
java.lang.String getConcurrencyGroupName();
/**
* string concurrency_group_name = 24 [json_name = "concurrencyGroupName"];
* @return The bytes for concurrencyGroupName.
*/
com.google.protobuf.ByteString
getConcurrencyGroupNameBytes();
/**
* bool retry_exceptions = 25 [json_name = "retryExceptions"];
* @return The retryExceptions.
*/
boolean getRetryExceptions();
/**
* bytes serialized_retry_exception_allowlist = 26 [json_name = "serializedRetryExceptionAllowlist"];
* @return The serializedRetryExceptionAllowlist.
*/
com.google.protobuf.ByteString getSerializedRetryExceptionAllowlist();
/**
* int64 depth = 27 [json_name = "depth"];
* @return The depth.
*/
long getDepth();
/**
* .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"];
* @return Whether the schedulingStrategy field is set.
*/
boolean hasSchedulingStrategy();
/**
* .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"];
* @return The schedulingStrategy.
*/
io.ray.runtime.generated.Common.SchedulingStrategy getSchedulingStrategy();
/**
* .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"];
*/
io.ray.runtime.generated.Common.SchedulingStrategyOrBuilder getSchedulingStrategyOrBuilder();
/**
* uint64 attempt_number = 29 [json_name = "attemptNumber"];
* @return The attemptNumber.
*/
long getAttemptNumber();
/**
* bool returns_dynamic = 30 [json_name = "returnsDynamic"];
* @return The returnsDynamic.
*/
boolean getReturnsDynamic();
/**
* repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"];
* @return A list containing the dynamicReturnIds.
*/
java.util.List getDynamicReturnIdsList();
/**
* repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"];
* @return The count of dynamicReturnIds.
*/
int getDynamicReturnIdsCount();
/**
* repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"];
* @param index The index of the element to return.
* @return The dynamicReturnIds at the given index.
*/
com.google.protobuf.ByteString getDynamicReturnIds(int index);
/**
* optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"];
* @return Whether the jobConfig field is set.
*/
boolean hasJobConfig();
/**
* optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"];
* @return The jobConfig.
*/
io.ray.runtime.generated.Common.JobConfig getJobConfig();
/**
* optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"];
*/
io.ray.runtime.generated.Common.JobConfigOrBuilder getJobConfigOrBuilder();
/**
* bytes submitter_task_id = 33 [json_name = "submitterTaskId"];
* @return The submitterTaskId.
*/
com.google.protobuf.ByteString getSubmitterTaskId();
/**
* bool streaming_generator = 34 [json_name = "streamingGenerator"];
* @return The streamingGenerator.
*/
boolean getStreamingGenerator();
/**
* int64 dependency_resolution_timestamp_ms = 35 [json_name = "dependencyResolutionTimestampMs"];
* @return The dependencyResolutionTimestampMs.
*/
long getDependencyResolutionTimestampMs();
/**
* int64 lease_grant_timestamp_ms = 36 [json_name = "leaseGrantTimestampMs"];
* @return The leaseGrantTimestampMs.
*/
long getLeaseGrantTimestampMs();
/**
* optional uint64 num_streaming_generator_returns = 37 [json_name = "numStreamingGeneratorReturns"];
* @return Whether the numStreamingGeneratorReturns field is set.
*/
boolean hasNumStreamingGeneratorReturns();
/**
* optional uint64 num_streaming_generator_returns = 37 [json_name = "numStreamingGeneratorReturns"];
* @return The numStreamingGeneratorReturns.
*/
long getNumStreamingGeneratorReturns();
/**
* int64 generator_backpressure_num_objects = 38 [json_name = "generatorBackpressureNumObjects"];
* @return The generatorBackpressureNumObjects.
*/
long getGeneratorBackpressureNumObjects();
/**
* bool enable_task_events = 39 [json_name = "enableTaskEvents"];
* @return The enableTaskEvents.
*/
boolean getEnableTaskEvents();
/**
* bytes root_detached_actor_id = 40 [json_name = "rootDetachedActorId"];
* @return The rootDetachedActorId.
*/
com.google.protobuf.ByteString getRootDetachedActorId();
}
/**
* Protobuf type {@code ray.rpc.TaskSpec}
*/
public static final class TaskSpec extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ray.rpc.TaskSpec)
TaskSpecOrBuilder {
private static final long serialVersionUID = 0L;
// Use TaskSpec.newBuilder() to construct.
private TaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TaskSpec() {
type_ = 0;
name_ = "";
language_ = 0;
jobId_ = com.google.protobuf.ByteString.EMPTY;
taskId_ = com.google.protobuf.ByteString.EMPTY;
parentTaskId_ = com.google.protobuf.ByteString.EMPTY;
callerId_ = com.google.protobuf.ByteString.EMPTY;
args_ = java.util.Collections.emptyList();
debuggerBreakpoint_ = com.google.protobuf.ByteString.EMPTY;
concurrencyGroupName_ = "";
serializedRetryExceptionAllowlist_ = com.google.protobuf.ByteString.EMPTY;
dynamicReturnIds_ = java.util.Collections.emptyList();
submitterTaskId_ = com.google.protobuf.ByteString.EMPTY;
rootDetachedActorId_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TaskSpec();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TaskSpec(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
language_ = rawValue;
break;
}
case 34: {
io.ray.runtime.generated.Common.FunctionDescriptor.Builder subBuilder = null;
if (functionDescriptor_ != null) {
subBuilder = functionDescriptor_.toBuilder();
}
functionDescriptor_ = input.readMessage(io.ray.runtime.generated.Common.FunctionDescriptor.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(functionDescriptor_);
functionDescriptor_ = subBuilder.buildPartial();
}
break;
}
case 42: {
jobId_ = input.readBytes();
break;
}
case 50: {
taskId_ = input.readBytes();
break;
}
case 58: {
parentTaskId_ = input.readBytes();
break;
}
case 64: {
parentCounter_ = input.readUInt64();
break;
}
case 74: {
callerId_ = input.readBytes();
break;
}
case 82: {
io.ray.runtime.generated.Common.Address.Builder subBuilder = null;
if (callerAddress_ != null) {
subBuilder = callerAddress_.toBuilder();
}
callerAddress_ = input.readMessage(io.ray.runtime.generated.Common.Address.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(callerAddress_);
callerAddress_ = subBuilder.buildPartial();
}
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
args_.add(
input.readMessage(io.ray.runtime.generated.Common.TaskArg.parser(), extensionRegistry));
break;
}
case 96: {
numReturns_ = input.readUInt64();
break;
}
case 106: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
requiredResources_ = com.google.protobuf.MapField.newMapField(
RequiredResourcesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
requiredResources__ = input.readMessage(
RequiredResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
requiredResources_.getMutableMap().put(
requiredResources__.getKey(), requiredResources__.getValue());
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
requiredPlacementResources_ = com.google.protobuf.MapField.newMapField(
RequiredPlacementResourcesDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
requiredPlacementResources__ = input.readMessage(
RequiredPlacementResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
requiredPlacementResources_.getMutableMap().put(
requiredPlacementResources__.getKey(), requiredPlacementResources__.getValue());
break;
}
case 122: {
io.ray.runtime.generated.Common.ActorCreationTaskSpec.Builder subBuilder = null;
if (actorCreationTaskSpec_ != null) {
subBuilder = actorCreationTaskSpec_.toBuilder();
}
actorCreationTaskSpec_ = input.readMessage(io.ray.runtime.generated.Common.ActorCreationTaskSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(actorCreationTaskSpec_);
actorCreationTaskSpec_ = subBuilder.buildPartial();
}
break;
}
case 130: {
io.ray.runtime.generated.Common.ActorTaskSpec.Builder subBuilder = null;
if (actorTaskSpec_ != null) {
subBuilder = actorTaskSpec_.toBuilder();
}
actorTaskSpec_ = input.readMessage(io.ray.runtime.generated.Common.ActorTaskSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(actorTaskSpec_);
actorTaskSpec_ = subBuilder.buildPartial();
}
break;
}
case 136: {
maxRetries_ = input.readInt32();
break;
}
case 168: {
skipExecution_ = input.readBool();
break;
}
case 178: {
debuggerBreakpoint_ = input.readBytes();
break;
}
case 186: {
io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder subBuilder = null;
if (runtimeEnvInfo_ != null) {
subBuilder = runtimeEnvInfo_.toBuilder();
}
runtimeEnvInfo_ = input.readMessage(io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(runtimeEnvInfo_);
runtimeEnvInfo_ = subBuilder.buildPartial();
}
break;
}
case 194: {
java.lang.String s = input.readStringRequireUtf8();
concurrencyGroupName_ = s;
break;
}
case 200: {
retryExceptions_ = input.readBool();
break;
}
case 210: {
serializedRetryExceptionAllowlist_ = input.readBytes();
break;
}
case 216: {
depth_ = input.readInt64();
break;
}
case 226: {
io.ray.runtime.generated.Common.SchedulingStrategy.Builder subBuilder = null;
if (schedulingStrategy_ != null) {
subBuilder = schedulingStrategy_.toBuilder();
}
schedulingStrategy_ = input.readMessage(io.ray.runtime.generated.Common.SchedulingStrategy.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(schedulingStrategy_);
schedulingStrategy_ = subBuilder.buildPartial();
}
break;
}
case 232: {
attemptNumber_ = input.readUInt64();
break;
}
case 240: {
returnsDynamic_ = input.readBool();
break;
}
case 250: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
dynamicReturnIds_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
dynamicReturnIds_.add(input.readBytes());
break;
}
case 258: {
io.ray.runtime.generated.Common.JobConfig.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = jobConfig_.toBuilder();
}
jobConfig_ = input.readMessage(io.ray.runtime.generated.Common.JobConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(jobConfig_);
jobConfig_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 266: {
submitterTaskId_ = input.readBytes();
break;
}
case 272: {
streamingGenerator_ = input.readBool();
break;
}
case 280: {
dependencyResolutionTimestampMs_ = input.readInt64();
break;
}
case 288: {
leaseGrantTimestampMs_ = input.readInt64();
break;
}
case 296: {
bitField0_ |= 0x00000002;
numStreamingGeneratorReturns_ = input.readUInt64();
break;
}
case 304: {
generatorBackpressureNumObjects_ = input.readInt64();
break;
}
case 312: {
enableTaskEvents_ = input.readBool();
break;
}
case 322: {
rootDetachedActorId_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
args_ = java.util.Collections.unmodifiableList(args_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
dynamicReturnIds_ = java.util.Collections.unmodifiableList(dynamicReturnIds_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskSpec_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 13:
return internalGetRequiredResources();
case 14:
return internalGetRequiredPlacementResources();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskSpec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.ray.runtime.generated.Common.TaskSpec.class, io.ray.runtime.generated.Common.TaskSpec.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* .ray.rpc.TaskType type = 1 [json_name = "type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
* .ray.rpc.TaskType type = 1 [json_name = "type"];
* @return The type.
*/
@java.lang.Override public io.ray.runtime.generated.Common.TaskType getType() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.TaskType result = io.ray.runtime.generated.Common.TaskType.valueOf(type_);
return result == null ? io.ray.runtime.generated.Common.TaskType.UNRECOGNIZED : result;
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* string name = 2 [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 = 2 [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 LANGUAGE_FIELD_NUMBER = 3;
private int language_;
/**
* .ray.rpc.Language language = 3 [json_name = "language"];
* @return The enum numeric value on the wire for language.
*/
@java.lang.Override public int getLanguageValue() {
return language_;
}
/**
* .ray.rpc.Language language = 3 [json_name = "language"];
* @return The language.
*/
@java.lang.Override public io.ray.runtime.generated.Common.Language getLanguage() {
@SuppressWarnings("deprecation")
io.ray.runtime.generated.Common.Language result = io.ray.runtime.generated.Common.Language.valueOf(language_);
return result == null ? io.ray.runtime.generated.Common.Language.UNRECOGNIZED : result;
}
public static final int FUNCTION_DESCRIPTOR_FIELD_NUMBER = 4;
private io.ray.runtime.generated.Common.FunctionDescriptor functionDescriptor_;
/**
* .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"];
* @return Whether the functionDescriptor field is set.
*/
@java.lang.Override
public boolean hasFunctionDescriptor() {
return functionDescriptor_ != null;
}
/**
* .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"];
* @return The functionDescriptor.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.FunctionDescriptor getFunctionDescriptor() {
return functionDescriptor_ == null ? io.ray.runtime.generated.Common.FunctionDescriptor.getDefaultInstance() : functionDescriptor_;
}
/**
* .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder getFunctionDescriptorOrBuilder() {
return getFunctionDescriptor();
}
public static final int JOB_ID_FIELD_NUMBER = 5;
private com.google.protobuf.ByteString jobId_;
/**
* bytes job_id = 5 [json_name = "jobId"];
* @return The jobId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getJobId() {
return jobId_;
}
public static final int TASK_ID_FIELD_NUMBER = 6;
private com.google.protobuf.ByteString taskId_;
/**
* bytes task_id = 6 [json_name = "taskId"];
* @return The taskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getTaskId() {
return taskId_;
}
public static final int PARENT_TASK_ID_FIELD_NUMBER = 7;
private com.google.protobuf.ByteString parentTaskId_;
/**
* bytes parent_task_id = 7 [json_name = "parentTaskId"];
* @return The parentTaskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getParentTaskId() {
return parentTaskId_;
}
public static final int PARENT_COUNTER_FIELD_NUMBER = 8;
private long parentCounter_;
/**
* uint64 parent_counter = 8 [json_name = "parentCounter"];
* @return The parentCounter.
*/
@java.lang.Override
public long getParentCounter() {
return parentCounter_;
}
public static final int CALLER_ID_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString callerId_;
/**
* bytes caller_id = 9 [json_name = "callerId"];
* @return The callerId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getCallerId() {
return callerId_;
}
public static final int CALLER_ADDRESS_FIELD_NUMBER = 10;
private io.ray.runtime.generated.Common.Address callerAddress_;
/**
* .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"];
* @return Whether the callerAddress field is set.
*/
@java.lang.Override
public boolean hasCallerAddress() {
return callerAddress_ != null;
}
/**
* .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"];
* @return The callerAddress.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.Address getCallerAddress() {
return callerAddress_ == null ? io.ray.runtime.generated.Common.Address.getDefaultInstance() : callerAddress_;
}
/**
* .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.AddressOrBuilder getCallerAddressOrBuilder() {
return getCallerAddress();
}
public static final int ARGS_FIELD_NUMBER = 11;
private java.util.List args_;
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
@java.lang.Override
public java.util.List getArgsList() {
return args_;
}
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
@java.lang.Override
public java.util.List
getArgsOrBuilderList() {
return args_;
}
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
@java.lang.Override
public int getArgsCount() {
return args_.size();
}
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.TaskArg getArgs(int index) {
return args_.get(index);
}
/**
* repeated .ray.rpc.TaskArg args = 11 [json_name = "args"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.TaskArgOrBuilder getArgsOrBuilder(
int index) {
return args_.get(index);
}
public static final int NUM_RETURNS_FIELD_NUMBER = 12;
private long numReturns_;
/**
* uint64 num_returns = 12 [json_name = "numReturns"];
* @return The numReturns.
*/
@java.lang.Override
public long getNumReturns() {
return numReturns_;
}
public static final int REQUIRED_RESOURCES_FIELD_NUMBER = 13;
private static final class RequiredResourcesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Double> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskSpec_RequiredResourcesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.DOUBLE,
0D);
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Double> requiredResources_;
private com.google.protobuf.MapField
internalGetRequiredResources() {
if (requiredResources_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequiredResourcesDefaultEntryHolder.defaultEntry);
}
return requiredResources_;
}
public int getRequiredResourcesCount() {
return internalGetRequiredResources().getMap().size();
}
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
@java.lang.Override
public boolean containsRequiredResources(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequiredResources().getMap().containsKey(key);
}
/**
* Use {@link #getRequiredResourcesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getRequiredResources() {
return getRequiredResourcesMap();
}
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
@java.lang.Override
public java.util.Map getRequiredResourcesMap() {
return internalGetRequiredResources().getMap();
}
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
@java.lang.Override
public double getRequiredResourcesOrDefault(
java.lang.String key,
double defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRequiredResources().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, double> required_resources = 13 [json_name = "requiredResources"];
*/
@java.lang.Override
public double getRequiredResourcesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRequiredResources().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int REQUIRED_PLACEMENT_RESOURCES_FIELD_NUMBER = 14;
private static final class RequiredPlacementResourcesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Double> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskSpec_RequiredPlacementResourcesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.DOUBLE,
0D);
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Double> requiredPlacementResources_;
private com.google.protobuf.MapField
internalGetRequiredPlacementResources() {
if (requiredPlacementResources_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RequiredPlacementResourcesDefaultEntryHolder.defaultEntry);
}
return requiredPlacementResources_;
}
public int getRequiredPlacementResourcesCount() {
return internalGetRequiredPlacementResources().getMap().size();
}
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
@java.lang.Override
public boolean containsRequiredPlacementResources(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRequiredPlacementResources().getMap().containsKey(key);
}
/**
* Use {@link #getRequiredPlacementResourcesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getRequiredPlacementResources() {
return getRequiredPlacementResourcesMap();
}
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
@java.lang.Override
public java.util.Map getRequiredPlacementResourcesMap() {
return internalGetRequiredPlacementResources().getMap();
}
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
@java.lang.Override
public double getRequiredPlacementResourcesOrDefault(
java.lang.String key,
double defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRequiredPlacementResources().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"];
*/
@java.lang.Override
public double getRequiredPlacementResourcesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRequiredPlacementResources().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ACTOR_CREATION_TASK_SPEC_FIELD_NUMBER = 15;
private io.ray.runtime.generated.Common.ActorCreationTaskSpec actorCreationTaskSpec_;
/**
* .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"];
* @return Whether the actorCreationTaskSpec field is set.
*/
@java.lang.Override
public boolean hasActorCreationTaskSpec() {
return actorCreationTaskSpec_ != null;
}
/**
* .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"];
* @return The actorCreationTaskSpec.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorCreationTaskSpec getActorCreationTaskSpec() {
return actorCreationTaskSpec_ == null ? io.ray.runtime.generated.Common.ActorCreationTaskSpec.getDefaultInstance() : actorCreationTaskSpec_;
}
/**
* .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorCreationTaskSpecOrBuilder getActorCreationTaskSpecOrBuilder() {
return getActorCreationTaskSpec();
}
public static final int ACTOR_TASK_SPEC_FIELD_NUMBER = 16;
private io.ray.runtime.generated.Common.ActorTaskSpec actorTaskSpec_;
/**
* .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"];
* @return Whether the actorTaskSpec field is set.
*/
@java.lang.Override
public boolean hasActorTaskSpec() {
return actorTaskSpec_ != null;
}
/**
* .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"];
* @return The actorTaskSpec.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorTaskSpec getActorTaskSpec() {
return actorTaskSpec_ == null ? io.ray.runtime.generated.Common.ActorTaskSpec.getDefaultInstance() : actorTaskSpec_;
}
/**
* .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.ActorTaskSpecOrBuilder getActorTaskSpecOrBuilder() {
return getActorTaskSpec();
}
public static final int MAX_RETRIES_FIELD_NUMBER = 17;
private int maxRetries_;
/**
* int32 max_retries = 17 [json_name = "maxRetries"];
* @return The maxRetries.
*/
@java.lang.Override
public int getMaxRetries() {
return maxRetries_;
}
public static final int SKIP_EXECUTION_FIELD_NUMBER = 21;
private boolean skipExecution_;
/**
* bool skip_execution = 21 [json_name = "skipExecution"];
* @return The skipExecution.
*/
@java.lang.Override
public boolean getSkipExecution() {
return skipExecution_;
}
public static final int DEBUGGER_BREAKPOINT_FIELD_NUMBER = 22;
private com.google.protobuf.ByteString debuggerBreakpoint_;
/**
* bytes debugger_breakpoint = 22 [json_name = "debuggerBreakpoint"];
* @return The debuggerBreakpoint.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDebuggerBreakpoint() {
return debuggerBreakpoint_;
}
public static final int RUNTIME_ENV_INFO_FIELD_NUMBER = 23;
private io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo runtimeEnvInfo_;
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [json_name = "runtimeEnvInfo"];
* @return Whether the runtimeEnvInfo field is set.
*/
@java.lang.Override
public boolean hasRuntimeEnvInfo() {
return runtimeEnvInfo_ != null;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [json_name = "runtimeEnvInfo"];
* @return The runtimeEnvInfo.
*/
@java.lang.Override
public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo getRuntimeEnvInfo() {
return runtimeEnvInfo_ == null ? io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.getDefaultInstance() : runtimeEnvInfo_;
}
/**
* .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [json_name = "runtimeEnvInfo"];
*/
@java.lang.Override
public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfoOrBuilder getRuntimeEnvInfoOrBuilder() {
return getRuntimeEnvInfo();
}
public static final int CONCURRENCY_GROUP_NAME_FIELD_NUMBER = 24;
private volatile java.lang.Object concurrencyGroupName_;
/**
* string concurrency_group_name = 24 [json_name = "concurrencyGroupName"];
* @return The concurrencyGroupName.
*/
@java.lang.Override
public java.lang.String getConcurrencyGroupName() {
java.lang.Object ref = concurrencyGroupName_;
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();
concurrencyGroupName_ = s;
return s;
}
}
/**
* string concurrency_group_name = 24 [json_name = "concurrencyGroupName"];
* @return The bytes for concurrencyGroupName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConcurrencyGroupNameBytes() {
java.lang.Object ref = concurrencyGroupName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
concurrencyGroupName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RETRY_EXCEPTIONS_FIELD_NUMBER = 25;
private boolean retryExceptions_;
/**
* bool retry_exceptions = 25 [json_name = "retryExceptions"];
* @return The retryExceptions.
*/
@java.lang.Override
public boolean getRetryExceptions() {
return retryExceptions_;
}
public static final int SERIALIZED_RETRY_EXCEPTION_ALLOWLIST_FIELD_NUMBER = 26;
private com.google.protobuf.ByteString serializedRetryExceptionAllowlist_;
/**
* bytes serialized_retry_exception_allowlist = 26 [json_name = "serializedRetryExceptionAllowlist"];
* @return The serializedRetryExceptionAllowlist.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSerializedRetryExceptionAllowlist() {
return serializedRetryExceptionAllowlist_;
}
public static final int DEPTH_FIELD_NUMBER = 27;
private long depth_;
/**
* int64 depth = 27 [json_name = "depth"];
* @return The depth.
*/
@java.lang.Override
public long getDepth() {
return depth_;
}
public static final int SCHEDULING_STRATEGY_FIELD_NUMBER = 28;
private io.ray.runtime.generated.Common.SchedulingStrategy schedulingStrategy_;
/**
* .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"];
* @return Whether the schedulingStrategy field is set.
*/
@java.lang.Override
public boolean hasSchedulingStrategy() {
return schedulingStrategy_ != null;
}
/**
* .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"];
* @return The schedulingStrategy.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.SchedulingStrategy getSchedulingStrategy() {
return schedulingStrategy_ == null ? io.ray.runtime.generated.Common.SchedulingStrategy.getDefaultInstance() : schedulingStrategy_;
}
/**
* .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.SchedulingStrategyOrBuilder getSchedulingStrategyOrBuilder() {
return getSchedulingStrategy();
}
public static final int ATTEMPT_NUMBER_FIELD_NUMBER = 29;
private long attemptNumber_;
/**
* uint64 attempt_number = 29 [json_name = "attemptNumber"];
* @return The attemptNumber.
*/
@java.lang.Override
public long getAttemptNumber() {
return attemptNumber_;
}
public static final int RETURNS_DYNAMIC_FIELD_NUMBER = 30;
private boolean returnsDynamic_;
/**
* bool returns_dynamic = 30 [json_name = "returnsDynamic"];
* @return The returnsDynamic.
*/
@java.lang.Override
public boolean getReturnsDynamic() {
return returnsDynamic_;
}
public static final int DYNAMIC_RETURN_IDS_FIELD_NUMBER = 31;
private java.util.List dynamicReturnIds_;
/**
* repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"];
* @return A list containing the dynamicReturnIds.
*/
@java.lang.Override
public java.util.List
getDynamicReturnIdsList() {
return dynamicReturnIds_;
}
/**
* repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"];
* @return The count of dynamicReturnIds.
*/
public int getDynamicReturnIdsCount() {
return dynamicReturnIds_.size();
}
/**
* repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"];
* @param index The index of the element to return.
* @return The dynamicReturnIds at the given index.
*/
public com.google.protobuf.ByteString getDynamicReturnIds(int index) {
return dynamicReturnIds_.get(index);
}
public static final int JOB_CONFIG_FIELD_NUMBER = 32;
private io.ray.runtime.generated.Common.JobConfig jobConfig_;
/**
* optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"];
* @return Whether the jobConfig field is set.
*/
@java.lang.Override
public boolean hasJobConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"];
* @return The jobConfig.
*/
@java.lang.Override
public io.ray.runtime.generated.Common.JobConfig getJobConfig() {
return jobConfig_ == null ? io.ray.runtime.generated.Common.JobConfig.getDefaultInstance() : jobConfig_;
}
/**
* optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"];
*/
@java.lang.Override
public io.ray.runtime.generated.Common.JobConfigOrBuilder getJobConfigOrBuilder() {
return jobConfig_ == null ? io.ray.runtime.generated.Common.JobConfig.getDefaultInstance() : jobConfig_;
}
public static final int SUBMITTER_TASK_ID_FIELD_NUMBER = 33;
private com.google.protobuf.ByteString submitterTaskId_;
/**
* bytes submitter_task_id = 33 [json_name = "submitterTaskId"];
* @return The submitterTaskId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSubmitterTaskId() {
return submitterTaskId_;
}
public static final int STREAMING_GENERATOR_FIELD_NUMBER = 34;
private boolean streamingGenerator_;
/**
* bool streaming_generator = 34 [json_name = "streamingGenerator"];
* @return The streamingGenerator.
*/
@java.lang.Override
public boolean getStreamingGenerator() {
return streamingGenerator_;
}
public static final int DEPENDENCY_RESOLUTION_TIMESTAMP_MS_FIELD_NUMBER = 35;
private long dependencyResolutionTimestampMs_;
/**
* int64 dependency_resolution_timestamp_ms = 35 [json_name = "dependencyResolutionTimestampMs"];
* @return The dependencyResolutionTimestampMs.
*/
@java.lang.Override
public long getDependencyResolutionTimestampMs() {
return dependencyResolutionTimestampMs_;
}
public static final int LEASE_GRANT_TIMESTAMP_MS_FIELD_NUMBER = 36;
private long leaseGrantTimestampMs_;
/**
* int64 lease_grant_timestamp_ms = 36 [json_name = "leaseGrantTimestampMs"];
* @return The leaseGrantTimestampMs.
*/
@java.lang.Override
public long getLeaseGrantTimestampMs() {
return leaseGrantTimestampMs_;
}
public static final int NUM_STREAMING_GENERATOR_RETURNS_FIELD_NUMBER = 37;
private long numStreamingGeneratorReturns_;
/**
* optional uint64 num_streaming_generator_returns = 37 [json_name = "numStreamingGeneratorReturns"];
* @return Whether the numStreamingGeneratorReturns field is set.
*/
@java.lang.Override
public boolean hasNumStreamingGeneratorReturns() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint64 num_streaming_generator_returns = 37 [json_name = "numStreamingGeneratorReturns"];
* @return The numStreamingGeneratorReturns.
*/
@java.lang.Override
public long getNumStreamingGeneratorReturns() {
return numStreamingGeneratorReturns_;
}
public static final int GENERATOR_BACKPRESSURE_NUM_OBJECTS_FIELD_NUMBER = 38;
private long generatorBackpressureNumObjects_;
/**
* int64 generator_backpressure_num_objects = 38 [json_name = "generatorBackpressureNumObjects"];
* @return The generatorBackpressureNumObjects.
*/
@java.lang.Override
public long getGeneratorBackpressureNumObjects() {
return generatorBackpressureNumObjects_;
}
public static final int ENABLE_TASK_EVENTS_FIELD_NUMBER = 39;
private boolean enableTaskEvents_;
/**
* bool enable_task_events = 39 [json_name = "enableTaskEvents"];
* @return The enableTaskEvents.
*/
@java.lang.Override
public boolean getEnableTaskEvents() {
return enableTaskEvents_;
}
public static final int ROOT_DETACHED_ACTOR_ID_FIELD_NUMBER = 40;
private com.google.protobuf.ByteString rootDetachedActorId_;
/**
* bytes root_detached_actor_id = 40 [json_name = "rootDetachedActorId"];
* @return The rootDetachedActorId.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRootDetachedActorId() {
return rootDetachedActorId_;
}
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 (type_ != io.ray.runtime.generated.Common.TaskType.NORMAL_TASK.getNumber()) {
output.writeEnum(1, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (language_ != io.ray.runtime.generated.Common.Language.PYTHON.getNumber()) {
output.writeEnum(3, language_);
}
if (functionDescriptor_ != null) {
output.writeMessage(4, getFunctionDescriptor());
}
if (!jobId_.isEmpty()) {
output.writeBytes(5, jobId_);
}
if (!taskId_.isEmpty()) {
output.writeBytes(6, taskId_);
}
if (!parentTaskId_.isEmpty()) {
output.writeBytes(7, parentTaskId_);
}
if (parentCounter_ != 0L) {
output.writeUInt64(8, parentCounter_);
}
if (!callerId_.isEmpty()) {
output.writeBytes(9, callerId_);
}
if (callerAddress_ != null) {
output.writeMessage(10, getCallerAddress());
}
for (int i = 0; i < args_.size(); i++) {
output.writeMessage(11, args_.get(i));
}
if (numReturns_ != 0L) {
output.writeUInt64(12, numReturns_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRequiredResources(),
RequiredResourcesDefaultEntryHolder.defaultEntry,
13);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetRequiredPlacementResources(),
RequiredPlacementResourcesDefaultEntryHolder.defaultEntry,
14);
if (actorCreationTaskSpec_ != null) {
output.writeMessage(15, getActorCreationTaskSpec());
}
if (actorTaskSpec_ != null) {
output.writeMessage(16, getActorTaskSpec());
}
if (maxRetries_ != 0) {
output.writeInt32(17, maxRetries_);
}
if (skipExecution_ != false) {
output.writeBool(21, skipExecution_);
}
if (!debuggerBreakpoint_.isEmpty()) {
output.writeBytes(22, debuggerBreakpoint_);
}
if (runtimeEnvInfo_ != null) {
output.writeMessage(23, getRuntimeEnvInfo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(concurrencyGroupName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, concurrencyGroupName_);
}
if (retryExceptions_ != false) {
output.writeBool(25, retryExceptions_);
}
if (!serializedRetryExceptionAllowlist_.isEmpty()) {
output.writeBytes(26, serializedRetryExceptionAllowlist_);
}
if (depth_ != 0L) {
output.writeInt64(27, depth_);
}
if (schedulingStrategy_ != null) {
output.writeMessage(28, getSchedulingStrategy());
}
if (attemptNumber_ != 0L) {
output.writeUInt64(29, attemptNumber_);
}
if (returnsDynamic_ != false) {
output.writeBool(30, returnsDynamic_);
}
for (int i = 0; i < dynamicReturnIds_.size(); i++) {
output.writeBytes(31, dynamicReturnIds_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(32, getJobConfig());
}
if (!submitterTaskId_.isEmpty()) {
output.writeBytes(33, submitterTaskId_);
}
if (streamingGenerator_ != false) {
output.writeBool(34, streamingGenerator_);
}
if (dependencyResolutionTimestampMs_ != 0L) {
output.writeInt64(35, dependencyResolutionTimestampMs_);
}
if (leaseGrantTimestampMs_ != 0L) {
output.writeInt64(36, leaseGrantTimestampMs_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt64(37, numStreamingGeneratorReturns_);
}
if (generatorBackpressureNumObjects_ != 0L) {
output.writeInt64(38, generatorBackpressureNumObjects_);
}
if (enableTaskEvents_ != false) {
output.writeBool(39, enableTaskEvents_);
}
if (!rootDetachedActorId_.isEmpty()) {
output.writeBytes(40, rootDetachedActorId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (type_ != io.ray.runtime.generated.Common.TaskType.NORMAL_TASK.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (language_ != io.ray.runtime.generated.Common.Language.PYTHON.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, language_);
}
if (functionDescriptor_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getFunctionDescriptor());
}
if (!jobId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, jobId_);
}
if (!taskId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(6, taskId_);
}
if (!parentTaskId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(7, parentTaskId_);
}
if (parentCounter_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, parentCounter_);
}
if (!callerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, callerId_);
}
if (callerAddress_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getCallerAddress());
}
for (int i = 0; i < args_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, args_.get(i));
}
if (numReturns_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(12, numReturns_);
}
for (java.util.Map.Entry entry
: internalGetRequiredResources().getMap().entrySet()) {
com.google.protobuf.MapEntry
requiredResources__ = RequiredResourcesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, requiredResources__);
}
for (java.util.Map.Entry