All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ray.runtime.generated.Common Maven / Gradle / Ivy

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 entry : internalGetRequiredPlacementResources().getMap().entrySet()) { com.google.protobuf.MapEntry requiredPlacementResources__ = RequiredPlacementResourcesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, requiredPlacementResources__); } if (actorCreationTaskSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getActorCreationTaskSpec()); } if (actorTaskSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getActorTaskSpec()); } if (maxRetries_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, maxRetries_); } if (skipExecution_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, skipExecution_); } if (!debuggerBreakpoint_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(22, debuggerBreakpoint_); } if (runtimeEnvInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, getRuntimeEnvInfo()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(concurrencyGroupName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, concurrencyGroupName_); } if (retryExceptions_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(25, retryExceptions_); } if (!serializedRetryExceptionAllowlist_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(26, serializedRetryExceptionAllowlist_); } if (depth_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(27, depth_); } if (schedulingStrategy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(28, getSchedulingStrategy()); } if (attemptNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(29, attemptNumber_); } if (returnsDynamic_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(30, returnsDynamic_); } { int dataSize = 0; for (int i = 0; i < dynamicReturnIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(dynamicReturnIds_.get(i)); } size += dataSize; size += 2 * getDynamicReturnIdsList().size(); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, getJobConfig()); } if (!submitterTaskId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(33, submitterTaskId_); } if (streamingGenerator_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(34, streamingGenerator_); } if (dependencyResolutionTimestampMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(35, dependencyResolutionTimestampMs_); } if (leaseGrantTimestampMs_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(36, leaseGrantTimestampMs_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(37, numStreamingGeneratorReturns_); } if (generatorBackpressureNumObjects_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(38, generatorBackpressureNumObjects_); } if (enableTaskEvents_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(39, enableTaskEvents_); } if (!rootDetachedActorId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(40, rootDetachedActorId_); } 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.TaskSpec)) { return super.equals(obj); } io.ray.runtime.generated.Common.TaskSpec other = (io.ray.runtime.generated.Common.TaskSpec) obj; if (type_ != other.type_) return false; if (!getName() .equals(other.getName())) return false; if (language_ != other.language_) return false; if (hasFunctionDescriptor() != other.hasFunctionDescriptor()) return false; if (hasFunctionDescriptor()) { if (!getFunctionDescriptor() .equals(other.getFunctionDescriptor())) return false; } if (!getJobId() .equals(other.getJobId())) return false; if (!getTaskId() .equals(other.getTaskId())) return false; if (!getParentTaskId() .equals(other.getParentTaskId())) return false; if (getParentCounter() != other.getParentCounter()) return false; if (!getCallerId() .equals(other.getCallerId())) return false; if (hasCallerAddress() != other.hasCallerAddress()) return false; if (hasCallerAddress()) { if (!getCallerAddress() .equals(other.getCallerAddress())) return false; } if (!getArgsList() .equals(other.getArgsList())) return false; if (getNumReturns() != other.getNumReturns()) return false; if (!internalGetRequiredResources().equals( other.internalGetRequiredResources())) return false; if (!internalGetRequiredPlacementResources().equals( other.internalGetRequiredPlacementResources())) return false; if (hasActorCreationTaskSpec() != other.hasActorCreationTaskSpec()) return false; if (hasActorCreationTaskSpec()) { if (!getActorCreationTaskSpec() .equals(other.getActorCreationTaskSpec())) return false; } if (hasActorTaskSpec() != other.hasActorTaskSpec()) return false; if (hasActorTaskSpec()) { if (!getActorTaskSpec() .equals(other.getActorTaskSpec())) return false; } if (getMaxRetries() != other.getMaxRetries()) return false; if (getSkipExecution() != other.getSkipExecution()) return false; if (!getDebuggerBreakpoint() .equals(other.getDebuggerBreakpoint())) return false; if (hasRuntimeEnvInfo() != other.hasRuntimeEnvInfo()) return false; if (hasRuntimeEnvInfo()) { if (!getRuntimeEnvInfo() .equals(other.getRuntimeEnvInfo())) return false; } if (!getConcurrencyGroupName() .equals(other.getConcurrencyGroupName())) return false; if (getRetryExceptions() != other.getRetryExceptions()) return false; if (!getSerializedRetryExceptionAllowlist() .equals(other.getSerializedRetryExceptionAllowlist())) return false; if (getDepth() != other.getDepth()) return false; if (hasSchedulingStrategy() != other.hasSchedulingStrategy()) return false; if (hasSchedulingStrategy()) { if (!getSchedulingStrategy() .equals(other.getSchedulingStrategy())) return false; } if (getAttemptNumber() != other.getAttemptNumber()) return false; if (getReturnsDynamic() != other.getReturnsDynamic()) return false; if (!getDynamicReturnIdsList() .equals(other.getDynamicReturnIdsList())) return false; if (hasJobConfig() != other.hasJobConfig()) return false; if (hasJobConfig()) { if (!getJobConfig() .equals(other.getJobConfig())) return false; } if (!getSubmitterTaskId() .equals(other.getSubmitterTaskId())) return false; if (getStreamingGenerator() != other.getStreamingGenerator()) return false; if (getDependencyResolutionTimestampMs() != other.getDependencyResolutionTimestampMs()) return false; if (getLeaseGrantTimestampMs() != other.getLeaseGrantTimestampMs()) return false; if (hasNumStreamingGeneratorReturns() != other.hasNumStreamingGeneratorReturns()) return false; if (hasNumStreamingGeneratorReturns()) { if (getNumStreamingGeneratorReturns() != other.getNumStreamingGeneratorReturns()) return false; } if (getGeneratorBackpressureNumObjects() != other.getGeneratorBackpressureNumObjects()) return false; if (getEnableTaskEvents() != other.getEnableTaskEvents()) return false; if (!getRootDetachedActorId() .equals(other.getRootDetachedActorId())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + language_; if (hasFunctionDescriptor()) { hash = (37 * hash) + FUNCTION_DESCRIPTOR_FIELD_NUMBER; hash = (53 * hash) + getFunctionDescriptor().hashCode(); } hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); hash = (37 * hash) + PARENT_TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getParentTaskId().hashCode(); hash = (37 * hash) + PARENT_COUNTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getParentCounter()); hash = (37 * hash) + CALLER_ID_FIELD_NUMBER; hash = (53 * hash) + getCallerId().hashCode(); if (hasCallerAddress()) { hash = (37 * hash) + CALLER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getCallerAddress().hashCode(); } if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } hash = (37 * hash) + NUM_RETURNS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumReturns()); if (!internalGetRequiredResources().getMap().isEmpty()) { hash = (37 * hash) + REQUIRED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + internalGetRequiredResources().hashCode(); } if (!internalGetRequiredPlacementResources().getMap().isEmpty()) { hash = (37 * hash) + REQUIRED_PLACEMENT_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + internalGetRequiredPlacementResources().hashCode(); } if (hasActorCreationTaskSpec()) { hash = (37 * hash) + ACTOR_CREATION_TASK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getActorCreationTaskSpec().hashCode(); } if (hasActorTaskSpec()) { hash = (37 * hash) + ACTOR_TASK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getActorTaskSpec().hashCode(); } hash = (37 * hash) + MAX_RETRIES_FIELD_NUMBER; hash = (53 * hash) + getMaxRetries(); hash = (37 * hash) + SKIP_EXECUTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSkipExecution()); hash = (37 * hash) + DEBUGGER_BREAKPOINT_FIELD_NUMBER; hash = (53 * hash) + getDebuggerBreakpoint().hashCode(); if (hasRuntimeEnvInfo()) { hash = (37 * hash) + RUNTIME_ENV_INFO_FIELD_NUMBER; hash = (53 * hash) + getRuntimeEnvInfo().hashCode(); } hash = (37 * hash) + CONCURRENCY_GROUP_NAME_FIELD_NUMBER; hash = (53 * hash) + getConcurrencyGroupName().hashCode(); hash = (37 * hash) + RETRY_EXCEPTIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRetryExceptions()); hash = (37 * hash) + SERIALIZED_RETRY_EXCEPTION_ALLOWLIST_FIELD_NUMBER; hash = (53 * hash) + getSerializedRetryExceptionAllowlist().hashCode(); hash = (37 * hash) + DEPTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDepth()); if (hasSchedulingStrategy()) { hash = (37 * hash) + SCHEDULING_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + getSchedulingStrategy().hashCode(); } hash = (37 * hash) + ATTEMPT_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAttemptNumber()); hash = (37 * hash) + RETURNS_DYNAMIC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReturnsDynamic()); if (getDynamicReturnIdsCount() > 0) { hash = (37 * hash) + DYNAMIC_RETURN_IDS_FIELD_NUMBER; hash = (53 * hash) + getDynamicReturnIdsList().hashCode(); } if (hasJobConfig()) { hash = (37 * hash) + JOB_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getJobConfig().hashCode(); } hash = (37 * hash) + SUBMITTER_TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getSubmitterTaskId().hashCode(); hash = (37 * hash) + STREAMING_GENERATOR_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStreamingGenerator()); hash = (37 * hash) + DEPENDENCY_RESOLUTION_TIMESTAMP_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDependencyResolutionTimestampMs()); hash = (37 * hash) + LEASE_GRANT_TIMESTAMP_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLeaseGrantTimestampMs()); if (hasNumStreamingGeneratorReturns()) { hash = (37 * hash) + NUM_STREAMING_GENERATOR_RETURNS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumStreamingGeneratorReturns()); } hash = (37 * hash) + GENERATOR_BACKPRESSURE_NUM_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getGeneratorBackpressureNumObjects()); hash = (37 * hash) + ENABLE_TASK_EVENTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnableTaskEvents()); hash = (37 * hash) + ROOT_DETACHED_ACTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getRootDetachedActorId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.TaskSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskSpec 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.TaskSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskSpec 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.TaskSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskSpec 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.TaskSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.TaskSpec 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.TaskSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.TaskSpec 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.TaskSpec 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.TaskSpec 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.TaskSpec 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.TaskSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.TaskSpec) io.ray.runtime.generated.Common.TaskSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskSpec_descriptor; } @SuppressWarnings({"rawtypes"}) 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); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 13: return internalGetMutableRequiredResources(); case 14: return internalGetMutableRequiredPlacementResources(); 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); } // Construct using io.ray.runtime.generated.Common.TaskSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getArgsFieldBuilder(); getJobConfigFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = 0; name_ = ""; language_ = 0; if (functionDescriptorBuilder_ == null) { functionDescriptor_ = null; } else { functionDescriptor_ = null; functionDescriptorBuilder_ = null; } jobId_ = com.google.protobuf.ByteString.EMPTY; taskId_ = com.google.protobuf.ByteString.EMPTY; parentTaskId_ = com.google.protobuf.ByteString.EMPTY; parentCounter_ = 0L; callerId_ = com.google.protobuf.ByteString.EMPTY; if (callerAddressBuilder_ == null) { callerAddress_ = null; } else { callerAddress_ = null; callerAddressBuilder_ = null; } if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { argsBuilder_.clear(); } numReturns_ = 0L; internalGetMutableRequiredResources().clear(); internalGetMutableRequiredPlacementResources().clear(); if (actorCreationTaskSpecBuilder_ == null) { actorCreationTaskSpec_ = null; } else { actorCreationTaskSpec_ = null; actorCreationTaskSpecBuilder_ = null; } if (actorTaskSpecBuilder_ == null) { actorTaskSpec_ = null; } else { actorTaskSpec_ = null; actorTaskSpecBuilder_ = null; } maxRetries_ = 0; skipExecution_ = false; debuggerBreakpoint_ = com.google.protobuf.ByteString.EMPTY; if (runtimeEnvInfoBuilder_ == null) { runtimeEnvInfo_ = null; } else { runtimeEnvInfo_ = null; runtimeEnvInfoBuilder_ = null; } concurrencyGroupName_ = ""; retryExceptions_ = false; serializedRetryExceptionAllowlist_ = com.google.protobuf.ByteString.EMPTY; depth_ = 0L; if (schedulingStrategyBuilder_ == null) { schedulingStrategy_ = null; } else { schedulingStrategy_ = null; schedulingStrategyBuilder_ = null; } attemptNumber_ = 0L; returnsDynamic_ = false; dynamicReturnIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); if (jobConfigBuilder_ == null) { jobConfig_ = null; } else { jobConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); submitterTaskId_ = com.google.protobuf.ByteString.EMPTY; streamingGenerator_ = false; dependencyResolutionTimestampMs_ = 0L; leaseGrantTimestampMs_ = 0L; numStreamingGeneratorReturns_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); generatorBackpressureNumObjects_ = 0L; enableTaskEvents_ = false; rootDetachedActorId_ = 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_TaskSpec_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.TaskSpec getDefaultInstanceForType() { return io.ray.runtime.generated.Common.TaskSpec.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.TaskSpec build() { io.ray.runtime.generated.Common.TaskSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.TaskSpec buildPartial() { io.ray.runtime.generated.Common.TaskSpec result = new io.ray.runtime.generated.Common.TaskSpec(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.type_ = type_; result.name_ = name_; result.language_ = language_; if (functionDescriptorBuilder_ == null) { result.functionDescriptor_ = functionDescriptor_; } else { result.functionDescriptor_ = functionDescriptorBuilder_.build(); } result.jobId_ = jobId_; result.taskId_ = taskId_; result.parentTaskId_ = parentTaskId_; result.parentCounter_ = parentCounter_; result.callerId_ = callerId_; if (callerAddressBuilder_ == null) { result.callerAddress_ = callerAddress_; } else { result.callerAddress_ = callerAddressBuilder_.build(); } if (argsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000001); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } result.numReturns_ = numReturns_; result.requiredResources_ = internalGetRequiredResources(); result.requiredResources_.makeImmutable(); result.requiredPlacementResources_ = internalGetRequiredPlacementResources(); result.requiredPlacementResources_.makeImmutable(); if (actorCreationTaskSpecBuilder_ == null) { result.actorCreationTaskSpec_ = actorCreationTaskSpec_; } else { result.actorCreationTaskSpec_ = actorCreationTaskSpecBuilder_.build(); } if (actorTaskSpecBuilder_ == null) { result.actorTaskSpec_ = actorTaskSpec_; } else { result.actorTaskSpec_ = actorTaskSpecBuilder_.build(); } result.maxRetries_ = maxRetries_; result.skipExecution_ = skipExecution_; result.debuggerBreakpoint_ = debuggerBreakpoint_; if (runtimeEnvInfoBuilder_ == null) { result.runtimeEnvInfo_ = runtimeEnvInfo_; } else { result.runtimeEnvInfo_ = runtimeEnvInfoBuilder_.build(); } result.concurrencyGroupName_ = concurrencyGroupName_; result.retryExceptions_ = retryExceptions_; result.serializedRetryExceptionAllowlist_ = serializedRetryExceptionAllowlist_; result.depth_ = depth_; if (schedulingStrategyBuilder_ == null) { result.schedulingStrategy_ = schedulingStrategy_; } else { result.schedulingStrategy_ = schedulingStrategyBuilder_.build(); } result.attemptNumber_ = attemptNumber_; result.returnsDynamic_ = returnsDynamic_; if (((bitField0_ & 0x00000008) != 0)) { dynamicReturnIds_ = java.util.Collections.unmodifiableList(dynamicReturnIds_); bitField0_ = (bitField0_ & ~0x00000008); } result.dynamicReturnIds_ = dynamicReturnIds_; if (((from_bitField0_ & 0x00000010) != 0)) { if (jobConfigBuilder_ == null) { result.jobConfig_ = jobConfig_; } else { result.jobConfig_ = jobConfigBuilder_.build(); } to_bitField0_ |= 0x00000001; } result.submitterTaskId_ = submitterTaskId_; result.streamingGenerator_ = streamingGenerator_; result.dependencyResolutionTimestampMs_ = dependencyResolutionTimestampMs_; result.leaseGrantTimestampMs_ = leaseGrantTimestampMs_; if (((from_bitField0_ & 0x00000020) != 0)) { result.numStreamingGeneratorReturns_ = numStreamingGeneratorReturns_; to_bitField0_ |= 0x00000002; } result.generatorBackpressureNumObjects_ = generatorBackpressureNumObjects_; result.enableTaskEvents_ = enableTaskEvents_; result.rootDetachedActorId_ = rootDetachedActorId_; 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.TaskSpec) { return mergeFrom((io.ray.runtime.generated.Common.TaskSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.TaskSpec other) { if (other == io.ray.runtime.generated.Common.TaskSpec.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.language_ != 0) { setLanguageValue(other.getLanguageValue()); } if (other.hasFunctionDescriptor()) { mergeFunctionDescriptor(other.getFunctionDescriptor()); } if (other.getJobId() != com.google.protobuf.ByteString.EMPTY) { setJobId(other.getJobId()); } if (other.getTaskId() != com.google.protobuf.ByteString.EMPTY) { setTaskId(other.getTaskId()); } if (other.getParentTaskId() != com.google.protobuf.ByteString.EMPTY) { setParentTaskId(other.getParentTaskId()); } if (other.getParentCounter() != 0L) { setParentCounter(other.getParentCounter()); } if (other.getCallerId() != com.google.protobuf.ByteString.EMPTY) { setCallerId(other.getCallerId()); } if (other.hasCallerAddress()) { mergeCallerAddress(other.getCallerAddress()); } if (argsBuilder_ == null) { if (!other.args_.isEmpty()) { if (args_.isEmpty()) { args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureArgsIsMutable(); args_.addAll(other.args_); } onChanged(); } } else { if (!other.args_.isEmpty()) { if (argsBuilder_.isEmpty()) { argsBuilder_.dispose(); argsBuilder_ = null; args_ = other.args_; bitField0_ = (bitField0_ & ~0x00000001); argsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getArgsFieldBuilder() : null; } else { argsBuilder_.addAllMessages(other.args_); } } } if (other.getNumReturns() != 0L) { setNumReturns(other.getNumReturns()); } internalGetMutableRequiredResources().mergeFrom( other.internalGetRequiredResources()); internalGetMutableRequiredPlacementResources().mergeFrom( other.internalGetRequiredPlacementResources()); if (other.hasActorCreationTaskSpec()) { mergeActorCreationTaskSpec(other.getActorCreationTaskSpec()); } if (other.hasActorTaskSpec()) { mergeActorTaskSpec(other.getActorTaskSpec()); } if (other.getMaxRetries() != 0) { setMaxRetries(other.getMaxRetries()); } if (other.getSkipExecution() != false) { setSkipExecution(other.getSkipExecution()); } if (other.getDebuggerBreakpoint() != com.google.protobuf.ByteString.EMPTY) { setDebuggerBreakpoint(other.getDebuggerBreakpoint()); } if (other.hasRuntimeEnvInfo()) { mergeRuntimeEnvInfo(other.getRuntimeEnvInfo()); } if (!other.getConcurrencyGroupName().isEmpty()) { concurrencyGroupName_ = other.concurrencyGroupName_; onChanged(); } if (other.getRetryExceptions() != false) { setRetryExceptions(other.getRetryExceptions()); } if (other.getSerializedRetryExceptionAllowlist() != com.google.protobuf.ByteString.EMPTY) { setSerializedRetryExceptionAllowlist(other.getSerializedRetryExceptionAllowlist()); } if (other.getDepth() != 0L) { setDepth(other.getDepth()); } if (other.hasSchedulingStrategy()) { mergeSchedulingStrategy(other.getSchedulingStrategy()); } if (other.getAttemptNumber() != 0L) { setAttemptNumber(other.getAttemptNumber()); } if (other.getReturnsDynamic() != false) { setReturnsDynamic(other.getReturnsDynamic()); } if (!other.dynamicReturnIds_.isEmpty()) { if (dynamicReturnIds_.isEmpty()) { dynamicReturnIds_ = other.dynamicReturnIds_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureDynamicReturnIdsIsMutable(); dynamicReturnIds_.addAll(other.dynamicReturnIds_); } onChanged(); } if (other.hasJobConfig()) { mergeJobConfig(other.getJobConfig()); } if (other.getSubmitterTaskId() != com.google.protobuf.ByteString.EMPTY) { setSubmitterTaskId(other.getSubmitterTaskId()); } if (other.getStreamingGenerator() != false) { setStreamingGenerator(other.getStreamingGenerator()); } if (other.getDependencyResolutionTimestampMs() != 0L) { setDependencyResolutionTimestampMs(other.getDependencyResolutionTimestampMs()); } if (other.getLeaseGrantTimestampMs() != 0L) { setLeaseGrantTimestampMs(other.getLeaseGrantTimestampMs()); } if (other.hasNumStreamingGeneratorReturns()) { setNumStreamingGeneratorReturns(other.getNumStreamingGeneratorReturns()); } if (other.getGeneratorBackpressureNumObjects() != 0L) { setGeneratorBackpressureNumObjects(other.getGeneratorBackpressureNumObjects()); } if (other.getEnableTaskEvents() != false) { setEnableTaskEvents(other.getEnableTaskEvents()); } if (other.getRootDetachedActorId() != com.google.protobuf.ByteString.EMPTY) { setRootDetachedActorId(other.getRootDetachedActorId()); } 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.TaskSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.TaskSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * .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"]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .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; } /** * .ray.rpc.TaskType type = 1 [json_name = "type"]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(io.ray.runtime.generated.Common.TaskType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .ray.rpc.TaskType type = 1 [json_name = "type"]; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 2 [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 = 2 [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 = 2 [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 = 2 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2 [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 language_ = 0; /** * .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"]; * @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 = 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; } /** * .ray.rpc.Language language = 3 [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 = 3 [json_name = "language"]; * @return This builder for chaining. */ public Builder clearLanguage() { language_ = 0; onChanged(); return this; } private io.ray.runtime.generated.Common.FunctionDescriptor functionDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.FunctionDescriptor, io.ray.runtime.generated.Common.FunctionDescriptor.Builder, io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder> functionDescriptorBuilder_; /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; * @return Whether the functionDescriptor field is set. */ public boolean hasFunctionDescriptor() { return functionDescriptorBuilder_ != null || functionDescriptor_ != null; } /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; * @return The functionDescriptor. */ public io.ray.runtime.generated.Common.FunctionDescriptor getFunctionDescriptor() { if (functionDescriptorBuilder_ == null) { return functionDescriptor_ == null ? io.ray.runtime.generated.Common.FunctionDescriptor.getDefaultInstance() : functionDescriptor_; } else { return functionDescriptorBuilder_.getMessage(); } } /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; */ public Builder setFunctionDescriptor(io.ray.runtime.generated.Common.FunctionDescriptor value) { if (functionDescriptorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } functionDescriptor_ = value; onChanged(); } else { functionDescriptorBuilder_.setMessage(value); } return this; } /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; */ public Builder setFunctionDescriptor( io.ray.runtime.generated.Common.FunctionDescriptor.Builder builderForValue) { if (functionDescriptorBuilder_ == null) { functionDescriptor_ = builderForValue.build(); onChanged(); } else { functionDescriptorBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; */ public Builder mergeFunctionDescriptor(io.ray.runtime.generated.Common.FunctionDescriptor value) { if (functionDescriptorBuilder_ == null) { if (functionDescriptor_ != null) { functionDescriptor_ = io.ray.runtime.generated.Common.FunctionDescriptor.newBuilder(functionDescriptor_).mergeFrom(value).buildPartial(); } else { functionDescriptor_ = value; } onChanged(); } else { functionDescriptorBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; */ public Builder clearFunctionDescriptor() { if (functionDescriptorBuilder_ == null) { functionDescriptor_ = null; onChanged(); } else { functionDescriptor_ = null; functionDescriptorBuilder_ = null; } return this; } /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; */ public io.ray.runtime.generated.Common.FunctionDescriptor.Builder getFunctionDescriptorBuilder() { onChanged(); return getFunctionDescriptorFieldBuilder().getBuilder(); } /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; */ public io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder getFunctionDescriptorOrBuilder() { if (functionDescriptorBuilder_ != null) { return functionDescriptorBuilder_.getMessageOrBuilder(); } else { return functionDescriptor_ == null ? io.ray.runtime.generated.Common.FunctionDescriptor.getDefaultInstance() : functionDescriptor_; } } /** * .ray.rpc.FunctionDescriptor function_descriptor = 4 [json_name = "functionDescriptor"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.FunctionDescriptor, io.ray.runtime.generated.Common.FunctionDescriptor.Builder, io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder> getFunctionDescriptorFieldBuilder() { if (functionDescriptorBuilder_ == null) { functionDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.FunctionDescriptor, io.ray.runtime.generated.Common.FunctionDescriptor.Builder, io.ray.runtime.generated.Common.FunctionDescriptorOrBuilder>( getFunctionDescriptor(), getParentForChildren(), isClean()); functionDescriptor_ = null; } return functionDescriptorBuilder_; } private com.google.protobuf.ByteString jobId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes job_id = 5 [json_name = "jobId"]; * @return The jobId. */ @java.lang.Override public com.google.protobuf.ByteString getJobId() { return jobId_; } /** * bytes job_id = 5 [json_name = "jobId"]; * @param value The jobId to set. * @return This builder for chaining. */ public Builder setJobId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } jobId_ = value; onChanged(); return this; } /** * bytes job_id = 5 [json_name = "jobId"]; * @return This builder for chaining. */ public Builder clearJobId() { jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } private com.google.protobuf.ByteString taskId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes task_id = 6 [json_name = "taskId"]; * @return The taskId. */ @java.lang.Override public com.google.protobuf.ByteString getTaskId() { return taskId_; } /** * bytes task_id = 6 [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 = 6 [json_name = "taskId"]; * @return This builder for chaining. */ public Builder clearTaskId() { taskId_ = getDefaultInstance().getTaskId(); onChanged(); return this; } private com.google.protobuf.ByteString parentTaskId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes parent_task_id = 7 [json_name = "parentTaskId"]; * @return The parentTaskId. */ @java.lang.Override public com.google.protobuf.ByteString getParentTaskId() { return parentTaskId_; } /** * bytes parent_task_id = 7 [json_name = "parentTaskId"]; * @param value The parentTaskId to set. * @return This builder for chaining. */ public Builder setParentTaskId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } parentTaskId_ = value; onChanged(); return this; } /** * bytes parent_task_id = 7 [json_name = "parentTaskId"]; * @return This builder for chaining. */ public Builder clearParentTaskId() { parentTaskId_ = getDefaultInstance().getParentTaskId(); onChanged(); return this; } private long parentCounter_ ; /** * uint64 parent_counter = 8 [json_name = "parentCounter"]; * @return The parentCounter. */ @java.lang.Override public long getParentCounter() { return parentCounter_; } /** * uint64 parent_counter = 8 [json_name = "parentCounter"]; * @param value The parentCounter to set. * @return This builder for chaining. */ public Builder setParentCounter(long value) { parentCounter_ = value; onChanged(); return this; } /** * uint64 parent_counter = 8 [json_name = "parentCounter"]; * @return This builder for chaining. */ public Builder clearParentCounter() { parentCounter_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString callerId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes caller_id = 9 [json_name = "callerId"]; * @return The callerId. */ @java.lang.Override public com.google.protobuf.ByteString getCallerId() { return callerId_; } /** * bytes caller_id = 9 [json_name = "callerId"]; * @param value The callerId to set. * @return This builder for chaining. */ public Builder setCallerId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } callerId_ = value; onChanged(); return this; } /** * bytes caller_id = 9 [json_name = "callerId"]; * @return This builder for chaining. */ public Builder clearCallerId() { callerId_ = getDefaultInstance().getCallerId(); onChanged(); return this; } private io.ray.runtime.generated.Common.Address callerAddress_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder> callerAddressBuilder_; /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; * @return Whether the callerAddress field is set. */ public boolean hasCallerAddress() { return callerAddressBuilder_ != null || callerAddress_ != null; } /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; * @return The callerAddress. */ public io.ray.runtime.generated.Common.Address getCallerAddress() { if (callerAddressBuilder_ == null) { return callerAddress_ == null ? io.ray.runtime.generated.Common.Address.getDefaultInstance() : callerAddress_; } else { return callerAddressBuilder_.getMessage(); } } /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; */ public Builder setCallerAddress(io.ray.runtime.generated.Common.Address value) { if (callerAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } callerAddress_ = value; onChanged(); } else { callerAddressBuilder_.setMessage(value); } return this; } /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; */ public Builder setCallerAddress( io.ray.runtime.generated.Common.Address.Builder builderForValue) { if (callerAddressBuilder_ == null) { callerAddress_ = builderForValue.build(); onChanged(); } else { callerAddressBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; */ public Builder mergeCallerAddress(io.ray.runtime.generated.Common.Address value) { if (callerAddressBuilder_ == null) { if (callerAddress_ != null) { callerAddress_ = io.ray.runtime.generated.Common.Address.newBuilder(callerAddress_).mergeFrom(value).buildPartial(); } else { callerAddress_ = value; } onChanged(); } else { callerAddressBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; */ public Builder clearCallerAddress() { if (callerAddressBuilder_ == null) { callerAddress_ = null; onChanged(); } else { callerAddress_ = null; callerAddressBuilder_ = null; } return this; } /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; */ public io.ray.runtime.generated.Common.Address.Builder getCallerAddressBuilder() { onChanged(); return getCallerAddressFieldBuilder().getBuilder(); } /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; */ public io.ray.runtime.generated.Common.AddressOrBuilder getCallerAddressOrBuilder() { if (callerAddressBuilder_ != null) { return callerAddressBuilder_.getMessageOrBuilder(); } else { return callerAddress_ == null ? io.ray.runtime.generated.Common.Address.getDefaultInstance() : callerAddress_; } } /** * .ray.rpc.Address caller_address = 10 [json_name = "callerAddress"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder> getCallerAddressFieldBuilder() { if (callerAddressBuilder_ == null) { callerAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder>( getCallerAddress(), getParentForChildren(), isClean()); callerAddress_ = null; } return callerAddressBuilder_; } private java.util.List args_ = java.util.Collections.emptyList(); private void ensureArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { args_ = new java.util.ArrayList(args_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.TaskArg, io.ray.runtime.generated.Common.TaskArg.Builder, io.ray.runtime.generated.Common.TaskArgOrBuilder> argsBuilder_; /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public java.util.List getArgsList() { if (argsBuilder_ == null) { return java.util.Collections.unmodifiableList(args_); } else { return argsBuilder_.getMessageList(); } } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public int getArgsCount() { if (argsBuilder_ == null) { return args_.size(); } else { return argsBuilder_.getCount(); } } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public io.ray.runtime.generated.Common.TaskArg getArgs(int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessage(index); } } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder setArgs( int index, io.ray.runtime.generated.Common.TaskArg value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); onChanged(); } else { argsBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder setArgs( int index, io.ray.runtime.generated.Common.TaskArg.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.set(index, builderForValue.build()); onChanged(); } else { argsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder addArgs(io.ray.runtime.generated.Common.TaskArg value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); onChanged(); } else { argsBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder addArgs( int index, io.ray.runtime.generated.Common.TaskArg value) { if (argsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(index, value); onChanged(); } else { argsBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder addArgs( io.ray.runtime.generated.Common.TaskArg.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder addArgs( int index, io.ray.runtime.generated.Common.TaskArg.Builder builderForValue) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.add(index, builderForValue.build()); onChanged(); } else { argsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder addAllArgs( java.lang.Iterable values) { if (argsBuilder_ == null) { ensureArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, args_); onChanged(); } else { argsBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder clearArgs() { if (argsBuilder_ == null) { args_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { argsBuilder_.clear(); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public Builder removeArgs(int index) { if (argsBuilder_ == null) { ensureArgsIsMutable(); args_.remove(index); onChanged(); } else { argsBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public io.ray.runtime.generated.Common.TaskArg.Builder getArgsBuilder( int index) { return getArgsFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public io.ray.runtime.generated.Common.TaskArgOrBuilder getArgsOrBuilder( int index) { if (argsBuilder_ == null) { return args_.get(index); } else { return argsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public java.util.List getArgsOrBuilderList() { if (argsBuilder_ != null) { return argsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(args_); } } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public io.ray.runtime.generated.Common.TaskArg.Builder addArgsBuilder() { return getArgsFieldBuilder().addBuilder( io.ray.runtime.generated.Common.TaskArg.getDefaultInstance()); } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public io.ray.runtime.generated.Common.TaskArg.Builder addArgsBuilder( int index) { return getArgsFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.TaskArg.getDefaultInstance()); } /** * repeated .ray.rpc.TaskArg args = 11 [json_name = "args"]; */ public java.util.List getArgsBuilderList() { return getArgsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.TaskArg, io.ray.runtime.generated.Common.TaskArg.Builder, io.ray.runtime.generated.Common.TaskArgOrBuilder> getArgsFieldBuilder() { if (argsBuilder_ == null) { argsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.TaskArg, io.ray.runtime.generated.Common.TaskArg.Builder, io.ray.runtime.generated.Common.TaskArgOrBuilder>( args_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); args_ = null; } return argsBuilder_; } private long numReturns_ ; /** * uint64 num_returns = 12 [json_name = "numReturns"]; * @return The numReturns. */ @java.lang.Override public long getNumReturns() { return numReturns_; } /** * uint64 num_returns = 12 [json_name = "numReturns"]; * @param value The numReturns to set. * @return This builder for chaining. */ public Builder setNumReturns(long value) { numReturns_ = value; onChanged(); return this; } /** * uint64 num_returns = 12 [json_name = "numReturns"]; * @return This builder for chaining. */ public Builder clearNumReturns() { numReturns_ = 0L; onChanged(); return this; } 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_; } private com.google.protobuf.MapField internalGetMutableRequiredResources() { onChanged();; if (requiredResources_ == null) { requiredResources_ = com.google.protobuf.MapField.newMapField( RequiredResourcesDefaultEntryHolder.defaultEntry); } if (!requiredResources_.isMutable()) { requiredResources_ = requiredResources_.copy(); } 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 Builder clearRequiredResources() { internalGetMutableRequiredResources().getMutableMap() .clear(); return this; } /** * map<string, double> required_resources = 13 [json_name = "requiredResources"]; */ public Builder removeRequiredResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableRequiredResources().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableRequiredResources() { return internalGetMutableRequiredResources().getMutableMap(); } /** * map<string, double> required_resources = 13 [json_name = "requiredResources"]; */ public Builder putRequiredResources( java.lang.String key, double value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableRequiredResources().getMutableMap() .put(key, value); return this; } /** * map<string, double> required_resources = 13 [json_name = "requiredResources"]; */ public Builder putAllRequiredResources( java.util.Map values) { internalGetMutableRequiredResources().getMutableMap() .putAll(values); return this; } 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_; } private com.google.protobuf.MapField internalGetMutableRequiredPlacementResources() { onChanged();; if (requiredPlacementResources_ == null) { requiredPlacementResources_ = com.google.protobuf.MapField.newMapField( RequiredPlacementResourcesDefaultEntryHolder.defaultEntry); } if (!requiredPlacementResources_.isMutable()) { requiredPlacementResources_ = requiredPlacementResources_.copy(); } 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 Builder clearRequiredPlacementResources() { internalGetMutableRequiredPlacementResources().getMutableMap() .clear(); return this; } /** * map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"]; */ public Builder removeRequiredPlacementResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableRequiredPlacementResources().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableRequiredPlacementResources() { return internalGetMutableRequiredPlacementResources().getMutableMap(); } /** * map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"]; */ public Builder putRequiredPlacementResources( java.lang.String key, double value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableRequiredPlacementResources().getMutableMap() .put(key, value); return this; } /** * map<string, double> required_placement_resources = 14 [json_name = "requiredPlacementResources"]; */ public Builder putAllRequiredPlacementResources( java.util.Map values) { internalGetMutableRequiredPlacementResources().getMutableMap() .putAll(values); return this; } private io.ray.runtime.generated.Common.ActorCreationTaskSpec actorCreationTaskSpec_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ActorCreationTaskSpec, io.ray.runtime.generated.Common.ActorCreationTaskSpec.Builder, io.ray.runtime.generated.Common.ActorCreationTaskSpecOrBuilder> actorCreationTaskSpecBuilder_; /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; * @return Whether the actorCreationTaskSpec field is set. */ public boolean hasActorCreationTaskSpec() { return actorCreationTaskSpecBuilder_ != null || actorCreationTaskSpec_ != null; } /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; * @return The actorCreationTaskSpec. */ public io.ray.runtime.generated.Common.ActorCreationTaskSpec getActorCreationTaskSpec() { if (actorCreationTaskSpecBuilder_ == null) { return actorCreationTaskSpec_ == null ? io.ray.runtime.generated.Common.ActorCreationTaskSpec.getDefaultInstance() : actorCreationTaskSpec_; } else { return actorCreationTaskSpecBuilder_.getMessage(); } } /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; */ public Builder setActorCreationTaskSpec(io.ray.runtime.generated.Common.ActorCreationTaskSpec value) { if (actorCreationTaskSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actorCreationTaskSpec_ = value; onChanged(); } else { actorCreationTaskSpecBuilder_.setMessage(value); } return this; } /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; */ public Builder setActorCreationTaskSpec( io.ray.runtime.generated.Common.ActorCreationTaskSpec.Builder builderForValue) { if (actorCreationTaskSpecBuilder_ == null) { actorCreationTaskSpec_ = builderForValue.build(); onChanged(); } else { actorCreationTaskSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; */ public Builder mergeActorCreationTaskSpec(io.ray.runtime.generated.Common.ActorCreationTaskSpec value) { if (actorCreationTaskSpecBuilder_ == null) { if (actorCreationTaskSpec_ != null) { actorCreationTaskSpec_ = io.ray.runtime.generated.Common.ActorCreationTaskSpec.newBuilder(actorCreationTaskSpec_).mergeFrom(value).buildPartial(); } else { actorCreationTaskSpec_ = value; } onChanged(); } else { actorCreationTaskSpecBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; */ public Builder clearActorCreationTaskSpec() { if (actorCreationTaskSpecBuilder_ == null) { actorCreationTaskSpec_ = null; onChanged(); } else { actorCreationTaskSpec_ = null; actorCreationTaskSpecBuilder_ = null; } return this; } /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; */ public io.ray.runtime.generated.Common.ActorCreationTaskSpec.Builder getActorCreationTaskSpecBuilder() { onChanged(); return getActorCreationTaskSpecFieldBuilder().getBuilder(); } /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; */ public io.ray.runtime.generated.Common.ActorCreationTaskSpecOrBuilder getActorCreationTaskSpecOrBuilder() { if (actorCreationTaskSpecBuilder_ != null) { return actorCreationTaskSpecBuilder_.getMessageOrBuilder(); } else { return actorCreationTaskSpec_ == null ? io.ray.runtime.generated.Common.ActorCreationTaskSpec.getDefaultInstance() : actorCreationTaskSpec_; } } /** * .ray.rpc.ActorCreationTaskSpec actor_creation_task_spec = 15 [json_name = "actorCreationTaskSpec"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ActorCreationTaskSpec, io.ray.runtime.generated.Common.ActorCreationTaskSpec.Builder, io.ray.runtime.generated.Common.ActorCreationTaskSpecOrBuilder> getActorCreationTaskSpecFieldBuilder() { if (actorCreationTaskSpecBuilder_ == null) { actorCreationTaskSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ActorCreationTaskSpec, io.ray.runtime.generated.Common.ActorCreationTaskSpec.Builder, io.ray.runtime.generated.Common.ActorCreationTaskSpecOrBuilder>( getActorCreationTaskSpec(), getParentForChildren(), isClean()); actorCreationTaskSpec_ = null; } return actorCreationTaskSpecBuilder_; } private io.ray.runtime.generated.Common.ActorTaskSpec actorTaskSpec_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ActorTaskSpec, io.ray.runtime.generated.Common.ActorTaskSpec.Builder, io.ray.runtime.generated.Common.ActorTaskSpecOrBuilder> actorTaskSpecBuilder_; /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; * @return Whether the actorTaskSpec field is set. */ public boolean hasActorTaskSpec() { return actorTaskSpecBuilder_ != null || actorTaskSpec_ != null; } /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; * @return The actorTaskSpec. */ public io.ray.runtime.generated.Common.ActorTaskSpec getActorTaskSpec() { if (actorTaskSpecBuilder_ == null) { return actorTaskSpec_ == null ? io.ray.runtime.generated.Common.ActorTaskSpec.getDefaultInstance() : actorTaskSpec_; } else { return actorTaskSpecBuilder_.getMessage(); } } /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; */ public Builder setActorTaskSpec(io.ray.runtime.generated.Common.ActorTaskSpec value) { if (actorTaskSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actorTaskSpec_ = value; onChanged(); } else { actorTaskSpecBuilder_.setMessage(value); } return this; } /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; */ public Builder setActorTaskSpec( io.ray.runtime.generated.Common.ActorTaskSpec.Builder builderForValue) { if (actorTaskSpecBuilder_ == null) { actorTaskSpec_ = builderForValue.build(); onChanged(); } else { actorTaskSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; */ public Builder mergeActorTaskSpec(io.ray.runtime.generated.Common.ActorTaskSpec value) { if (actorTaskSpecBuilder_ == null) { if (actorTaskSpec_ != null) { actorTaskSpec_ = io.ray.runtime.generated.Common.ActorTaskSpec.newBuilder(actorTaskSpec_).mergeFrom(value).buildPartial(); } else { actorTaskSpec_ = value; } onChanged(); } else { actorTaskSpecBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; */ public Builder clearActorTaskSpec() { if (actorTaskSpecBuilder_ == null) { actorTaskSpec_ = null; onChanged(); } else { actorTaskSpec_ = null; actorTaskSpecBuilder_ = null; } return this; } /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; */ public io.ray.runtime.generated.Common.ActorTaskSpec.Builder getActorTaskSpecBuilder() { onChanged(); return getActorTaskSpecFieldBuilder().getBuilder(); } /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; */ public io.ray.runtime.generated.Common.ActorTaskSpecOrBuilder getActorTaskSpecOrBuilder() { if (actorTaskSpecBuilder_ != null) { return actorTaskSpecBuilder_.getMessageOrBuilder(); } else { return actorTaskSpec_ == null ? io.ray.runtime.generated.Common.ActorTaskSpec.getDefaultInstance() : actorTaskSpec_; } } /** * .ray.rpc.ActorTaskSpec actor_task_spec = 16 [json_name = "actorTaskSpec"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ActorTaskSpec, io.ray.runtime.generated.Common.ActorTaskSpec.Builder, io.ray.runtime.generated.Common.ActorTaskSpecOrBuilder> getActorTaskSpecFieldBuilder() { if (actorTaskSpecBuilder_ == null) { actorTaskSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ActorTaskSpec, io.ray.runtime.generated.Common.ActorTaskSpec.Builder, io.ray.runtime.generated.Common.ActorTaskSpecOrBuilder>( getActorTaskSpec(), getParentForChildren(), isClean()); actorTaskSpec_ = null; } return actorTaskSpecBuilder_; } private int maxRetries_ ; /** * int32 max_retries = 17 [json_name = "maxRetries"]; * @return The maxRetries. */ @java.lang.Override public int getMaxRetries() { return maxRetries_; } /** * int32 max_retries = 17 [json_name = "maxRetries"]; * @param value The maxRetries to set. * @return This builder for chaining. */ public Builder setMaxRetries(int value) { maxRetries_ = value; onChanged(); return this; } /** * int32 max_retries = 17 [json_name = "maxRetries"]; * @return This builder for chaining. */ public Builder clearMaxRetries() { maxRetries_ = 0; onChanged(); return this; } private boolean skipExecution_ ; /** * bool skip_execution = 21 [json_name = "skipExecution"]; * @return The skipExecution. */ @java.lang.Override public boolean getSkipExecution() { return skipExecution_; } /** * bool skip_execution = 21 [json_name = "skipExecution"]; * @param value The skipExecution to set. * @return This builder for chaining. */ public Builder setSkipExecution(boolean value) { skipExecution_ = value; onChanged(); return this; } /** * bool skip_execution = 21 [json_name = "skipExecution"]; * @return This builder for chaining. */ public Builder clearSkipExecution() { skipExecution_ = false; onChanged(); return this; } private com.google.protobuf.ByteString debuggerBreakpoint_ = com.google.protobuf.ByteString.EMPTY; /** * bytes debugger_breakpoint = 22 [json_name = "debuggerBreakpoint"]; * @return The debuggerBreakpoint. */ @java.lang.Override public com.google.protobuf.ByteString getDebuggerBreakpoint() { return debuggerBreakpoint_; } /** * bytes debugger_breakpoint = 22 [json_name = "debuggerBreakpoint"]; * @param value The debuggerBreakpoint to set. * @return This builder for chaining. */ public Builder setDebuggerBreakpoint(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } debuggerBreakpoint_ = value; onChanged(); return this; } /** * bytes debugger_breakpoint = 22 [json_name = "debuggerBreakpoint"]; * @return This builder for chaining. */ public Builder clearDebuggerBreakpoint() { debuggerBreakpoint_ = getDefaultInstance().getDebuggerBreakpoint(); 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 = 23 [json_name = "runtimeEnvInfo"]; * @return Whether the runtimeEnvInfo field is set. */ public boolean hasRuntimeEnvInfo() { return runtimeEnvInfoBuilder_ != null || runtimeEnvInfo_ != null; } /** * .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [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 = 23 [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 = 23 [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 = 23 [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 = 23 [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 = 23 [json_name = "runtimeEnvInfo"]; */ public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder getRuntimeEnvInfoBuilder() { onChanged(); return getRuntimeEnvInfoFieldBuilder().getBuilder(); } /** * .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [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 = 23 [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 concurrencyGroupName_ = ""; /** * string concurrency_group_name = 24 [json_name = "concurrencyGroupName"]; * @return The concurrencyGroupName. */ public java.lang.String getConcurrencyGroupName() { java.lang.Object ref = concurrencyGroupName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); concurrencyGroupName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string concurrency_group_name = 24 [json_name = "concurrencyGroupName"]; * @return The bytes for concurrencyGroupName. */ public com.google.protobuf.ByteString getConcurrencyGroupNameBytes() { java.lang.Object ref = concurrencyGroupName_; if (ref instanceof 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; } } /** * string concurrency_group_name = 24 [json_name = "concurrencyGroupName"]; * @param value The concurrencyGroupName to set. * @return This builder for chaining. */ public Builder setConcurrencyGroupName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } concurrencyGroupName_ = value; onChanged(); return this; } /** * string concurrency_group_name = 24 [json_name = "concurrencyGroupName"]; * @return This builder for chaining. */ public Builder clearConcurrencyGroupName() { concurrencyGroupName_ = getDefaultInstance().getConcurrencyGroupName(); onChanged(); return this; } /** * string concurrency_group_name = 24 [json_name = "concurrencyGroupName"]; * @param value The bytes for concurrencyGroupName to set. * @return This builder for chaining. */ public Builder setConcurrencyGroupNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); concurrencyGroupName_ = value; onChanged(); return this; } private boolean retryExceptions_ ; /** * bool retry_exceptions = 25 [json_name = "retryExceptions"]; * @return The retryExceptions. */ @java.lang.Override public boolean getRetryExceptions() { return retryExceptions_; } /** * bool retry_exceptions = 25 [json_name = "retryExceptions"]; * @param value The retryExceptions to set. * @return This builder for chaining. */ public Builder setRetryExceptions(boolean value) { retryExceptions_ = value; onChanged(); return this; } /** * bool retry_exceptions = 25 [json_name = "retryExceptions"]; * @return This builder for chaining. */ public Builder clearRetryExceptions() { retryExceptions_ = false; onChanged(); return this; } private com.google.protobuf.ByteString serializedRetryExceptionAllowlist_ = com.google.protobuf.ByteString.EMPTY; /** * bytes serialized_retry_exception_allowlist = 26 [json_name = "serializedRetryExceptionAllowlist"]; * @return The serializedRetryExceptionAllowlist. */ @java.lang.Override public com.google.protobuf.ByteString getSerializedRetryExceptionAllowlist() { return serializedRetryExceptionAllowlist_; } /** * bytes serialized_retry_exception_allowlist = 26 [json_name = "serializedRetryExceptionAllowlist"]; * @param value The serializedRetryExceptionAllowlist to set. * @return This builder for chaining. */ public Builder setSerializedRetryExceptionAllowlist(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } serializedRetryExceptionAllowlist_ = value; onChanged(); return this; } /** * bytes serialized_retry_exception_allowlist = 26 [json_name = "serializedRetryExceptionAllowlist"]; * @return This builder for chaining. */ public Builder clearSerializedRetryExceptionAllowlist() { serializedRetryExceptionAllowlist_ = getDefaultInstance().getSerializedRetryExceptionAllowlist(); onChanged(); return this; } private long depth_ ; /** * int64 depth = 27 [json_name = "depth"]; * @return The depth. */ @java.lang.Override public long getDepth() { return depth_; } /** * int64 depth = 27 [json_name = "depth"]; * @param value The depth to set. * @return This builder for chaining. */ public Builder setDepth(long value) { depth_ = value; onChanged(); return this; } /** * int64 depth = 27 [json_name = "depth"]; * @return This builder for chaining. */ public Builder clearDepth() { depth_ = 0L; onChanged(); return this; } private io.ray.runtime.generated.Common.SchedulingStrategy schedulingStrategy_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.SchedulingStrategy, io.ray.runtime.generated.Common.SchedulingStrategy.Builder, io.ray.runtime.generated.Common.SchedulingStrategyOrBuilder> schedulingStrategyBuilder_; /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; * @return Whether the schedulingStrategy field is set. */ public boolean hasSchedulingStrategy() { return schedulingStrategyBuilder_ != null || schedulingStrategy_ != null; } /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; * @return The schedulingStrategy. */ public io.ray.runtime.generated.Common.SchedulingStrategy getSchedulingStrategy() { if (schedulingStrategyBuilder_ == null) { return schedulingStrategy_ == null ? io.ray.runtime.generated.Common.SchedulingStrategy.getDefaultInstance() : schedulingStrategy_; } else { return schedulingStrategyBuilder_.getMessage(); } } /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; */ public Builder setSchedulingStrategy(io.ray.runtime.generated.Common.SchedulingStrategy value) { if (schedulingStrategyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schedulingStrategy_ = value; onChanged(); } else { schedulingStrategyBuilder_.setMessage(value); } return this; } /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; */ public Builder setSchedulingStrategy( io.ray.runtime.generated.Common.SchedulingStrategy.Builder builderForValue) { if (schedulingStrategyBuilder_ == null) { schedulingStrategy_ = builderForValue.build(); onChanged(); } else { schedulingStrategyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; */ public Builder mergeSchedulingStrategy(io.ray.runtime.generated.Common.SchedulingStrategy value) { if (schedulingStrategyBuilder_ == null) { if (schedulingStrategy_ != null) { schedulingStrategy_ = io.ray.runtime.generated.Common.SchedulingStrategy.newBuilder(schedulingStrategy_).mergeFrom(value).buildPartial(); } else { schedulingStrategy_ = value; } onChanged(); } else { schedulingStrategyBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; */ public Builder clearSchedulingStrategy() { if (schedulingStrategyBuilder_ == null) { schedulingStrategy_ = null; onChanged(); } else { schedulingStrategy_ = null; schedulingStrategyBuilder_ = null; } return this; } /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; */ public io.ray.runtime.generated.Common.SchedulingStrategy.Builder getSchedulingStrategyBuilder() { onChanged(); return getSchedulingStrategyFieldBuilder().getBuilder(); } /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; */ public io.ray.runtime.generated.Common.SchedulingStrategyOrBuilder getSchedulingStrategyOrBuilder() { if (schedulingStrategyBuilder_ != null) { return schedulingStrategyBuilder_.getMessageOrBuilder(); } else { return schedulingStrategy_ == null ? io.ray.runtime.generated.Common.SchedulingStrategy.getDefaultInstance() : schedulingStrategy_; } } /** * .ray.rpc.SchedulingStrategy scheduling_strategy = 28 [json_name = "schedulingStrategy"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.SchedulingStrategy, io.ray.runtime.generated.Common.SchedulingStrategy.Builder, io.ray.runtime.generated.Common.SchedulingStrategyOrBuilder> getSchedulingStrategyFieldBuilder() { if (schedulingStrategyBuilder_ == null) { schedulingStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.SchedulingStrategy, io.ray.runtime.generated.Common.SchedulingStrategy.Builder, io.ray.runtime.generated.Common.SchedulingStrategyOrBuilder>( getSchedulingStrategy(), getParentForChildren(), isClean()); schedulingStrategy_ = null; } return schedulingStrategyBuilder_; } private long attemptNumber_ ; /** * uint64 attempt_number = 29 [json_name = "attemptNumber"]; * @return The attemptNumber. */ @java.lang.Override public long getAttemptNumber() { return attemptNumber_; } /** * uint64 attempt_number = 29 [json_name = "attemptNumber"]; * @param value The attemptNumber to set. * @return This builder for chaining. */ public Builder setAttemptNumber(long value) { attemptNumber_ = value; onChanged(); return this; } /** * uint64 attempt_number = 29 [json_name = "attemptNumber"]; * @return This builder for chaining. */ public Builder clearAttemptNumber() { attemptNumber_ = 0L; onChanged(); return this; } private boolean returnsDynamic_ ; /** * bool returns_dynamic = 30 [json_name = "returnsDynamic"]; * @return The returnsDynamic. */ @java.lang.Override public boolean getReturnsDynamic() { return returnsDynamic_; } /** * bool returns_dynamic = 30 [json_name = "returnsDynamic"]; * @param value The returnsDynamic to set. * @return This builder for chaining. */ public Builder setReturnsDynamic(boolean value) { returnsDynamic_ = value; onChanged(); return this; } /** * bool returns_dynamic = 30 [json_name = "returnsDynamic"]; * @return This builder for chaining. */ public Builder clearReturnsDynamic() { returnsDynamic_ = false; onChanged(); return this; } private java.util.List dynamicReturnIds_ = java.util.Collections.emptyList(); private void ensureDynamicReturnIdsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { dynamicReturnIds_ = new java.util.ArrayList(dynamicReturnIds_); bitField0_ |= 0x00000008; } } /** * repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"]; * @return A list containing the dynamicReturnIds. */ public java.util.List getDynamicReturnIdsList() { return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(dynamicReturnIds_) : 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); } /** * repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"]; * @param index The index to set the value at. * @param value The dynamicReturnIds to set. * @return This builder for chaining. */ public Builder setDynamicReturnIds( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDynamicReturnIdsIsMutable(); dynamicReturnIds_.set(index, value); onChanged(); return this; } /** * repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"]; * @param value The dynamicReturnIds to add. * @return This builder for chaining. */ public Builder addDynamicReturnIds(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDynamicReturnIdsIsMutable(); dynamicReturnIds_.add(value); onChanged(); return this; } /** * repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"]; * @param values The dynamicReturnIds to add. * @return This builder for chaining. */ public Builder addAllDynamicReturnIds( java.lang.Iterable values) { ensureDynamicReturnIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dynamicReturnIds_); onChanged(); return this; } /** * repeated bytes dynamic_return_ids = 31 [json_name = "dynamicReturnIds"]; * @return This builder for chaining. */ public Builder clearDynamicReturnIds() { dynamicReturnIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private io.ray.runtime.generated.Common.JobConfig jobConfig_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.JobConfig, io.ray.runtime.generated.Common.JobConfig.Builder, io.ray.runtime.generated.Common.JobConfigOrBuilder> jobConfigBuilder_; /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; * @return Whether the jobConfig field is set. */ public boolean hasJobConfig() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; * @return The jobConfig. */ public io.ray.runtime.generated.Common.JobConfig getJobConfig() { if (jobConfigBuilder_ == null) { return jobConfig_ == null ? io.ray.runtime.generated.Common.JobConfig.getDefaultInstance() : jobConfig_; } else { return jobConfigBuilder_.getMessage(); } } /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; */ public Builder setJobConfig(io.ray.runtime.generated.Common.JobConfig value) { if (jobConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } jobConfig_ = value; onChanged(); } else { jobConfigBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; */ public Builder setJobConfig( io.ray.runtime.generated.Common.JobConfig.Builder builderForValue) { if (jobConfigBuilder_ == null) { jobConfig_ = builderForValue.build(); onChanged(); } else { jobConfigBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; */ public Builder mergeJobConfig(io.ray.runtime.generated.Common.JobConfig value) { if (jobConfigBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && jobConfig_ != null && jobConfig_ != io.ray.runtime.generated.Common.JobConfig.getDefaultInstance()) { jobConfig_ = io.ray.runtime.generated.Common.JobConfig.newBuilder(jobConfig_).mergeFrom(value).buildPartial(); } else { jobConfig_ = value; } onChanged(); } else { jobConfigBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; */ public Builder clearJobConfig() { if (jobConfigBuilder_ == null) { jobConfig_ = null; onChanged(); } else { jobConfigBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; */ public io.ray.runtime.generated.Common.JobConfig.Builder getJobConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getJobConfigFieldBuilder().getBuilder(); } /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; */ public io.ray.runtime.generated.Common.JobConfigOrBuilder getJobConfigOrBuilder() { if (jobConfigBuilder_ != null) { return jobConfigBuilder_.getMessageOrBuilder(); } else { return jobConfig_ == null ? io.ray.runtime.generated.Common.JobConfig.getDefaultInstance() : jobConfig_; } } /** * optional .ray.rpc.JobConfig job_config = 32 [json_name = "jobConfig"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.JobConfig, io.ray.runtime.generated.Common.JobConfig.Builder, io.ray.runtime.generated.Common.JobConfigOrBuilder> getJobConfigFieldBuilder() { if (jobConfigBuilder_ == null) { jobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.JobConfig, io.ray.runtime.generated.Common.JobConfig.Builder, io.ray.runtime.generated.Common.JobConfigOrBuilder>( getJobConfig(), getParentForChildren(), isClean()); jobConfig_ = null; } return jobConfigBuilder_; } private com.google.protobuf.ByteString submitterTaskId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes submitter_task_id = 33 [json_name = "submitterTaskId"]; * @return The submitterTaskId. */ @java.lang.Override public com.google.protobuf.ByteString getSubmitterTaskId() { return submitterTaskId_; } /** * bytes submitter_task_id = 33 [json_name = "submitterTaskId"]; * @param value The submitterTaskId to set. * @return This builder for chaining. */ public Builder setSubmitterTaskId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } submitterTaskId_ = value; onChanged(); return this; } /** * bytes submitter_task_id = 33 [json_name = "submitterTaskId"]; * @return This builder for chaining. */ public Builder clearSubmitterTaskId() { submitterTaskId_ = getDefaultInstance().getSubmitterTaskId(); onChanged(); return this; } private boolean streamingGenerator_ ; /** * bool streaming_generator = 34 [json_name = "streamingGenerator"]; * @return The streamingGenerator. */ @java.lang.Override public boolean getStreamingGenerator() { return streamingGenerator_; } /** * bool streaming_generator = 34 [json_name = "streamingGenerator"]; * @param value The streamingGenerator to set. * @return This builder for chaining. */ public Builder setStreamingGenerator(boolean value) { streamingGenerator_ = value; onChanged(); return this; } /** * bool streaming_generator = 34 [json_name = "streamingGenerator"]; * @return This builder for chaining. */ public Builder clearStreamingGenerator() { streamingGenerator_ = false; onChanged(); return this; } private long dependencyResolutionTimestampMs_ ; /** * int64 dependency_resolution_timestamp_ms = 35 [json_name = "dependencyResolutionTimestampMs"]; * @return The dependencyResolutionTimestampMs. */ @java.lang.Override public long getDependencyResolutionTimestampMs() { return dependencyResolutionTimestampMs_; } /** * int64 dependency_resolution_timestamp_ms = 35 [json_name = "dependencyResolutionTimestampMs"]; * @param value The dependencyResolutionTimestampMs to set. * @return This builder for chaining. */ public Builder setDependencyResolutionTimestampMs(long value) { dependencyResolutionTimestampMs_ = value; onChanged(); return this; } /** * int64 dependency_resolution_timestamp_ms = 35 [json_name = "dependencyResolutionTimestampMs"]; * @return This builder for chaining. */ public Builder clearDependencyResolutionTimestampMs() { dependencyResolutionTimestampMs_ = 0L; onChanged(); return this; } private long leaseGrantTimestampMs_ ; /** * int64 lease_grant_timestamp_ms = 36 [json_name = "leaseGrantTimestampMs"]; * @return The leaseGrantTimestampMs. */ @java.lang.Override public long getLeaseGrantTimestampMs() { return leaseGrantTimestampMs_; } /** * int64 lease_grant_timestamp_ms = 36 [json_name = "leaseGrantTimestampMs"]; * @param value The leaseGrantTimestampMs to set. * @return This builder for chaining. */ public Builder setLeaseGrantTimestampMs(long value) { leaseGrantTimestampMs_ = value; onChanged(); return this; } /** * int64 lease_grant_timestamp_ms = 36 [json_name = "leaseGrantTimestampMs"]; * @return This builder for chaining. */ public Builder clearLeaseGrantTimestampMs() { leaseGrantTimestampMs_ = 0L; onChanged(); return this; } 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_ & 0x00000020) != 0); } /** * optional uint64 num_streaming_generator_returns = 37 [json_name = "numStreamingGeneratorReturns"]; * @return The numStreamingGeneratorReturns. */ @java.lang.Override public long getNumStreamingGeneratorReturns() { return numStreamingGeneratorReturns_; } /** * optional uint64 num_streaming_generator_returns = 37 [json_name = "numStreamingGeneratorReturns"]; * @param value The numStreamingGeneratorReturns to set. * @return This builder for chaining. */ public Builder setNumStreamingGeneratorReturns(long value) { bitField0_ |= 0x00000020; numStreamingGeneratorReturns_ = value; onChanged(); return this; } /** * optional uint64 num_streaming_generator_returns = 37 [json_name = "numStreamingGeneratorReturns"]; * @return This builder for chaining. */ public Builder clearNumStreamingGeneratorReturns() { bitField0_ = (bitField0_ & ~0x00000020); numStreamingGeneratorReturns_ = 0L; onChanged(); return this; } private long generatorBackpressureNumObjects_ ; /** * int64 generator_backpressure_num_objects = 38 [json_name = "generatorBackpressureNumObjects"]; * @return The generatorBackpressureNumObjects. */ @java.lang.Override public long getGeneratorBackpressureNumObjects() { return generatorBackpressureNumObjects_; } /** * int64 generator_backpressure_num_objects = 38 [json_name = "generatorBackpressureNumObjects"]; * @param value The generatorBackpressureNumObjects to set. * @return This builder for chaining. */ public Builder setGeneratorBackpressureNumObjects(long value) { generatorBackpressureNumObjects_ = value; onChanged(); return this; } /** * int64 generator_backpressure_num_objects = 38 [json_name = "generatorBackpressureNumObjects"]; * @return This builder for chaining. */ public Builder clearGeneratorBackpressureNumObjects() { generatorBackpressureNumObjects_ = 0L; onChanged(); return this; } private boolean enableTaskEvents_ ; /** * bool enable_task_events = 39 [json_name = "enableTaskEvents"]; * @return The enableTaskEvents. */ @java.lang.Override public boolean getEnableTaskEvents() { return enableTaskEvents_; } /** * bool enable_task_events = 39 [json_name = "enableTaskEvents"]; * @param value The enableTaskEvents to set. * @return This builder for chaining. */ public Builder setEnableTaskEvents(boolean value) { enableTaskEvents_ = value; onChanged(); return this; } /** * bool enable_task_events = 39 [json_name = "enableTaskEvents"]; * @return This builder for chaining. */ public Builder clearEnableTaskEvents() { enableTaskEvents_ = false; onChanged(); return this; } private com.google.protobuf.ByteString rootDetachedActorId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes root_detached_actor_id = 40 [json_name = "rootDetachedActorId"]; * @return The rootDetachedActorId. */ @java.lang.Override public com.google.protobuf.ByteString getRootDetachedActorId() { return rootDetachedActorId_; } /** * bytes root_detached_actor_id = 40 [json_name = "rootDetachedActorId"]; * @param value The rootDetachedActorId to set. * @return This builder for chaining. */ public Builder setRootDetachedActorId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } rootDetachedActorId_ = value; onChanged(); return this; } /** * bytes root_detached_actor_id = 40 [json_name = "rootDetachedActorId"]; * @return This builder for chaining. */ public Builder clearRootDetachedActorId() { rootDetachedActorId_ = getDefaultInstance().getRootDetachedActorId(); 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.TaskSpec) } // @@protoc_insertion_point(class_scope:ray.rpc.TaskSpec) private static final io.ray.runtime.generated.Common.TaskSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.TaskSpec(); } public static io.ray.runtime.generated.Common.TaskSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TaskSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskSpec(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.TaskSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskInfoEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.TaskInfoEntry) 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(); /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @return The funcOrClassName. */ java.lang.String getFuncOrClassName(); /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @return The bytes for funcOrClassName. */ com.google.protobuf.ByteString getFuncOrClassNameBytes(); /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @return The enum numeric value on the wire for schedulingState. */ int getSchedulingStateValue(); /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @return The schedulingState. */ io.ray.runtime.generated.Common.TaskStatus getSchedulingState(); /** * bytes job_id = 6 [json_name = "jobId"]; * @return The jobId. */ com.google.protobuf.ByteString getJobId(); /** * bytes task_id = 7 [json_name = "taskId"]; * @return The taskId. */ com.google.protobuf.ByteString getTaskId(); /** * bytes parent_task_id = 8 [json_name = "parentTaskId"]; * @return The parentTaskId. */ com.google.protobuf.ByteString getParentTaskId(); /** * 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); /** * .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(); /** * optional bytes node_id = 24 [json_name = "nodeId"]; * @return Whether the nodeId field is set. */ boolean hasNodeId(); /** * optional bytes node_id = 24 [json_name = "nodeId"]; * @return The nodeId. */ com.google.protobuf.ByteString getNodeId(); /** * optional bytes actor_id = 25 [json_name = "actorId"]; * @return Whether the actorId field is set. */ boolean hasActorId(); /** * optional bytes actor_id = 25 [json_name = "actorId"]; * @return The actorId. */ com.google.protobuf.ByteString getActorId(); /** * optional bytes placement_group_id = 26 [json_name = "placementGroupId"]; * @return Whether the placementGroupId field is set. */ boolean hasPlacementGroupId(); /** * optional bytes placement_group_id = 26 [json_name = "placementGroupId"]; * @return The placementGroupId. */ com.google.protobuf.ByteString getPlacementGroupId(); } /** * Protobuf type {@code ray.rpc.TaskInfoEntry} */ public static final class TaskInfoEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.TaskInfoEntry) TaskInfoEntryOrBuilder { private static final long serialVersionUID = 0L; // Use TaskInfoEntry.newBuilder() to construct. private TaskInfoEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskInfoEntry() { type_ = 0; name_ = ""; language_ = 0; funcOrClassName_ = ""; schedulingState_ = 0; jobId_ = com.google.protobuf.ByteString.EMPTY; taskId_ = com.google.protobuf.ByteString.EMPTY; parentTaskId_ = com.google.protobuf.ByteString.EMPTY; nodeId_ = com.google.protobuf.ByteString.EMPTY; actorId_ = com.google.protobuf.ByteString.EMPTY; placementGroupId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TaskInfoEntry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskInfoEntry( 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: { java.lang.String s = input.readStringRequireUtf8(); funcOrClassName_ = s; break; } case 40: { int rawValue = input.readEnum(); schedulingState_ = rawValue; break; } case 50: { jobId_ = input.readBytes(); break; } case 58: { taskId_ = input.readBytes(); break; } case 66: { parentTaskId_ = input.readBytes(); break; } case 106: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { requiredResources_ = com.google.protobuf.MapField.newMapField( RequiredResourcesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry requiredResources__ = input.readMessage( RequiredResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); requiredResources_.getMutableMap().put( requiredResources__.getKey(), requiredResources__.getValue()); 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: { bitField0_ |= 0x00000001; nodeId_ = input.readBytes(); break; } case 202: { bitField0_ |= 0x00000002; actorId_ = input.readBytes(); break; } case 210: { bitField0_ |= 0x00000004; placementGroupId_ = 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_TaskInfoEntry_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 13: return internalGetRequiredResources(); 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_TaskInfoEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.TaskInfoEntry.class, io.ray.runtime.generated.Common.TaskInfoEntry.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 FUNC_OR_CLASS_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object funcOrClassName_; /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @return The funcOrClassName. */ @java.lang.Override public java.lang.String getFuncOrClassName() { java.lang.Object ref = funcOrClassName_; 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(); funcOrClassName_ = s; return s; } } /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @return The bytes for funcOrClassName. */ @java.lang.Override public com.google.protobuf.ByteString getFuncOrClassNameBytes() { java.lang.Object ref = funcOrClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); funcOrClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEDULING_STATE_FIELD_NUMBER = 5; private int schedulingState_; /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @return The enum numeric value on the wire for schedulingState. */ @java.lang.Override public int getSchedulingStateValue() { return schedulingState_; } /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @return The schedulingState. */ @java.lang.Override public io.ray.runtime.generated.Common.TaskStatus getSchedulingState() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.TaskStatus result = io.ray.runtime.generated.Common.TaskStatus.valueOf(schedulingState_); return result == null ? io.ray.runtime.generated.Common.TaskStatus.UNRECOGNIZED : result; } public static final int JOB_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString jobId_; /** * bytes job_id = 6 [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 = 7; private com.google.protobuf.ByteString taskId_; /** * bytes task_id = 7 [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 = 8; private com.google.protobuf.ByteString parentTaskId_; /** * bytes parent_task_id = 8 [json_name = "parentTaskId"]; * @return The parentTaskId. */ @java.lang.Override public com.google.protobuf.ByteString getParentTaskId() { return parentTaskId_; } 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_TaskInfoEntry_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 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 NODE_ID_FIELD_NUMBER = 24; private com.google.protobuf.ByteString nodeId_; /** * optional bytes node_id = 24 [json_name = "nodeId"]; * @return Whether the nodeId field is set. */ @java.lang.Override public boolean hasNodeId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes node_id = 24 [json_name = "nodeId"]; * @return The nodeId. */ @java.lang.Override public com.google.protobuf.ByteString getNodeId() { return nodeId_; } public static final int ACTOR_ID_FIELD_NUMBER = 25; private com.google.protobuf.ByteString actorId_; /** * optional bytes actor_id = 25 [json_name = "actorId"]; * @return Whether the actorId field is set. */ @java.lang.Override public boolean hasActorId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes actor_id = 25 [json_name = "actorId"]; * @return The actorId. */ @java.lang.Override public com.google.protobuf.ByteString getActorId() { return actorId_; } public static final int PLACEMENT_GROUP_ID_FIELD_NUMBER = 26; private com.google.protobuf.ByteString placementGroupId_; /** * optional bytes placement_group_id = 26 [json_name = "placementGroupId"]; * @return Whether the placementGroupId field is set. */ @java.lang.Override public boolean hasPlacementGroupId() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bytes placement_group_id = 26 [json_name = "placementGroupId"]; * @return The placementGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getPlacementGroupId() { return placementGroupId_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(funcOrClassName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, funcOrClassName_); } if (schedulingState_ != io.ray.runtime.generated.Common.TaskStatus.NIL.getNumber()) { output.writeEnum(5, schedulingState_); } if (!jobId_.isEmpty()) { output.writeBytes(6, jobId_); } if (!taskId_.isEmpty()) { output.writeBytes(7, taskId_); } if (!parentTaskId_.isEmpty()) { output.writeBytes(8, parentTaskId_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetRequiredResources(), RequiredResourcesDefaultEntryHolder.defaultEntry, 13); if (runtimeEnvInfo_ != null) { output.writeMessage(23, getRuntimeEnvInfo()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(24, nodeId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(25, actorId_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(26, placementGroupId_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(funcOrClassName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, funcOrClassName_); } if (schedulingState_ != io.ray.runtime.generated.Common.TaskStatus.NIL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, schedulingState_); } if (!jobId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, jobId_); } if (!taskId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, taskId_); } if (!parentTaskId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, parentTaskId_); } 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__); } if (runtimeEnvInfo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, getRuntimeEnvInfo()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(24, nodeId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(25, actorId_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(26, placementGroupId_); } 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.TaskInfoEntry)) { return super.equals(obj); } io.ray.runtime.generated.Common.TaskInfoEntry other = (io.ray.runtime.generated.Common.TaskInfoEntry) obj; if (type_ != other.type_) return false; if (!getName() .equals(other.getName())) return false; if (language_ != other.language_) return false; if (!getFuncOrClassName() .equals(other.getFuncOrClassName())) return false; if (schedulingState_ != other.schedulingState_) return false; if (!getJobId() .equals(other.getJobId())) return false; if (!getTaskId() .equals(other.getTaskId())) return false; if (!getParentTaskId() .equals(other.getParentTaskId())) return false; if (!internalGetRequiredResources().equals( other.internalGetRequiredResources())) return false; if (hasRuntimeEnvInfo() != other.hasRuntimeEnvInfo()) return false; if (hasRuntimeEnvInfo()) { if (!getRuntimeEnvInfo() .equals(other.getRuntimeEnvInfo())) return false; } if (hasNodeId() != other.hasNodeId()) return false; if (hasNodeId()) { if (!getNodeId() .equals(other.getNodeId())) return false; } if (hasActorId() != other.hasActorId()) return false; if (hasActorId()) { if (!getActorId() .equals(other.getActorId())) return false; } if (hasPlacementGroupId() != other.hasPlacementGroupId()) return false; if (hasPlacementGroupId()) { if (!getPlacementGroupId() .equals(other.getPlacementGroupId())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + language_; hash = (37 * hash) + FUNC_OR_CLASS_NAME_FIELD_NUMBER; hash = (53 * hash) + getFuncOrClassName().hashCode(); hash = (37 * hash) + SCHEDULING_STATE_FIELD_NUMBER; hash = (53 * hash) + schedulingState_; hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); hash = (37 * hash) + TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getTaskId().hashCode(); hash = (37 * hash) + PARENT_TASK_ID_FIELD_NUMBER; hash = (53 * hash) + getParentTaskId().hashCode(); if (!internalGetRequiredResources().getMap().isEmpty()) { hash = (37 * hash) + REQUIRED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + internalGetRequiredResources().hashCode(); } if (hasRuntimeEnvInfo()) { hash = (37 * hash) + RUNTIME_ENV_INFO_FIELD_NUMBER; hash = (53 * hash) + getRuntimeEnvInfo().hashCode(); } if (hasNodeId()) { hash = (37 * hash) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getNodeId().hashCode(); } if (hasActorId()) { hash = (37 * hash) + ACTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getActorId().hashCode(); } if (hasPlacementGroupId()) { hash = (37 * hash) + PLACEMENT_GROUP_ID_FIELD_NUMBER; hash = (53 * hash) + getPlacementGroupId().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.TaskInfoEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskInfoEntry 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.TaskInfoEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskInfoEntry 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.TaskInfoEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskInfoEntry 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.TaskInfoEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.TaskInfoEntry 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.TaskInfoEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.TaskInfoEntry 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.TaskInfoEntry 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.TaskInfoEntry 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.TaskInfoEntry 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.TaskInfoEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.TaskInfoEntry) io.ray.runtime.generated.Common.TaskInfoEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskInfoEntry_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 13: return internalGetRequiredResources(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 13: return internalGetMutableRequiredResources(); 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_TaskInfoEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.TaskInfoEntry.class, io.ray.runtime.generated.Common.TaskInfoEntry.Builder.class); } // Construct using io.ray.runtime.generated.Common.TaskInfoEntry.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(); type_ = 0; name_ = ""; language_ = 0; funcOrClassName_ = ""; schedulingState_ = 0; jobId_ = com.google.protobuf.ByteString.EMPTY; taskId_ = com.google.protobuf.ByteString.EMPTY; parentTaskId_ = com.google.protobuf.ByteString.EMPTY; internalGetMutableRequiredResources().clear(); if (runtimeEnvInfoBuilder_ == null) { runtimeEnvInfo_ = null; } else { runtimeEnvInfo_ = null; runtimeEnvInfoBuilder_ = null; } nodeId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); actorId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); placementGroupId_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskInfoEntry_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.TaskInfoEntry getDefaultInstanceForType() { return io.ray.runtime.generated.Common.TaskInfoEntry.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.TaskInfoEntry build() { io.ray.runtime.generated.Common.TaskInfoEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.TaskInfoEntry buildPartial() { io.ray.runtime.generated.Common.TaskInfoEntry result = new io.ray.runtime.generated.Common.TaskInfoEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.type_ = type_; result.name_ = name_; result.language_ = language_; result.funcOrClassName_ = funcOrClassName_; result.schedulingState_ = schedulingState_; result.jobId_ = jobId_; result.taskId_ = taskId_; result.parentTaskId_ = parentTaskId_; result.requiredResources_ = internalGetRequiredResources(); result.requiredResources_.makeImmutable(); if (runtimeEnvInfoBuilder_ == null) { result.runtimeEnvInfo_ = runtimeEnvInfo_; } else { result.runtimeEnvInfo_ = runtimeEnvInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000001; } result.nodeId_ = nodeId_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000002; } result.actorId_ = actorId_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000004; } result.placementGroupId_ = placementGroupId_; 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.TaskInfoEntry) { return mergeFrom((io.ray.runtime.generated.Common.TaskInfoEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.TaskInfoEntry other) { if (other == io.ray.runtime.generated.Common.TaskInfoEntry.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.language_ != 0) { setLanguageValue(other.getLanguageValue()); } if (!other.getFuncOrClassName().isEmpty()) { funcOrClassName_ = other.funcOrClassName_; onChanged(); } if (other.schedulingState_ != 0) { setSchedulingStateValue(other.getSchedulingStateValue()); } if (other.getJobId() != com.google.protobuf.ByteString.EMPTY) { setJobId(other.getJobId()); } if (other.getTaskId() != com.google.protobuf.ByteString.EMPTY) { setTaskId(other.getTaskId()); } if (other.getParentTaskId() != com.google.protobuf.ByteString.EMPTY) { setParentTaskId(other.getParentTaskId()); } internalGetMutableRequiredResources().mergeFrom( other.internalGetRequiredResources()); if (other.hasRuntimeEnvInfo()) { mergeRuntimeEnvInfo(other.getRuntimeEnvInfo()); } if (other.hasNodeId()) { setNodeId(other.getNodeId()); } if (other.hasActorId()) { setActorId(other.getActorId()); } if (other.hasPlacementGroupId()) { setPlacementGroupId(other.getPlacementGroupId()); } 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.TaskInfoEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.TaskInfoEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 0; /** * .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"]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .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; } /** * .ray.rpc.TaskType type = 1 [json_name = "type"]; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(io.ray.runtime.generated.Common.TaskType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .ray.rpc.TaskType type = 1 [json_name = "type"]; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 2 [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 = 2 [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 = 2 [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 = 2 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2 [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 language_ = 0; /** * .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"]; * @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 = 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; } /** * .ray.rpc.Language language = 3 [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 = 3 [json_name = "language"]; * @return This builder for chaining. */ public Builder clearLanguage() { language_ = 0; onChanged(); return this; } private java.lang.Object funcOrClassName_ = ""; /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @return The funcOrClassName. */ public java.lang.String getFuncOrClassName() { java.lang.Object ref = funcOrClassName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); funcOrClassName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @return The bytes for funcOrClassName. */ public com.google.protobuf.ByteString getFuncOrClassNameBytes() { java.lang.Object ref = funcOrClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); funcOrClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @param value The funcOrClassName to set. * @return This builder for chaining. */ public Builder setFuncOrClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } funcOrClassName_ = value; onChanged(); return this; } /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @return This builder for chaining. */ public Builder clearFuncOrClassName() { funcOrClassName_ = getDefaultInstance().getFuncOrClassName(); onChanged(); return this; } /** * string func_or_class_name = 4 [json_name = "funcOrClassName"]; * @param value The bytes for funcOrClassName to set. * @return This builder for chaining. */ public Builder setFuncOrClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); funcOrClassName_ = value; onChanged(); return this; } private int schedulingState_ = 0; /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @return The enum numeric value on the wire for schedulingState. */ @java.lang.Override public int getSchedulingStateValue() { return schedulingState_; } /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @param value The enum numeric value on the wire for schedulingState to set. * @return This builder for chaining. */ public Builder setSchedulingStateValue(int value) { schedulingState_ = value; onChanged(); return this; } /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @return The schedulingState. */ @java.lang.Override public io.ray.runtime.generated.Common.TaskStatus getSchedulingState() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.TaskStatus result = io.ray.runtime.generated.Common.TaskStatus.valueOf(schedulingState_); return result == null ? io.ray.runtime.generated.Common.TaskStatus.UNRECOGNIZED : result; } /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @param value The schedulingState to set. * @return This builder for chaining. */ public Builder setSchedulingState(io.ray.runtime.generated.Common.TaskStatus value) { if (value == null) { throw new NullPointerException(); } schedulingState_ = value.getNumber(); onChanged(); return this; } /** * .ray.rpc.TaskStatus scheduling_state = 5 [json_name = "schedulingState"]; * @return This builder for chaining. */ public Builder clearSchedulingState() { schedulingState_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString jobId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes job_id = 6 [json_name = "jobId"]; * @return The jobId. */ @java.lang.Override public com.google.protobuf.ByteString getJobId() { return jobId_; } /** * bytes job_id = 6 [json_name = "jobId"]; * @param value The jobId to set. * @return This builder for chaining. */ public Builder setJobId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } jobId_ = value; onChanged(); return this; } /** * bytes job_id = 6 [json_name = "jobId"]; * @return This builder for chaining. */ public Builder clearJobId() { jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } private com.google.protobuf.ByteString taskId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes task_id = 7 [json_name = "taskId"]; * @return The taskId. */ @java.lang.Override public com.google.protobuf.ByteString getTaskId() { return taskId_; } /** * bytes task_id = 7 [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 = 7 [json_name = "taskId"]; * @return This builder for chaining. */ public Builder clearTaskId() { taskId_ = getDefaultInstance().getTaskId(); onChanged(); return this; } private com.google.protobuf.ByteString parentTaskId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes parent_task_id = 8 [json_name = "parentTaskId"]; * @return The parentTaskId. */ @java.lang.Override public com.google.protobuf.ByteString getParentTaskId() { return parentTaskId_; } /** * bytes parent_task_id = 8 [json_name = "parentTaskId"]; * @param value The parentTaskId to set. * @return This builder for chaining. */ public Builder setParentTaskId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } parentTaskId_ = value; onChanged(); return this; } /** * bytes parent_task_id = 8 [json_name = "parentTaskId"]; * @return This builder for chaining. */ public Builder clearParentTaskId() { parentTaskId_ = getDefaultInstance().getParentTaskId(); onChanged(); return this; } 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_; } private com.google.protobuf.MapField internalGetMutableRequiredResources() { onChanged();; if (requiredResources_ == null) { requiredResources_ = com.google.protobuf.MapField.newMapField( RequiredResourcesDefaultEntryHolder.defaultEntry); } if (!requiredResources_.isMutable()) { requiredResources_ = requiredResources_.copy(); } 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 Builder clearRequiredResources() { internalGetMutableRequiredResources().getMutableMap() .clear(); return this; } /** * map<string, double> required_resources = 13 [json_name = "requiredResources"]; */ public Builder removeRequiredResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableRequiredResources().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableRequiredResources() { return internalGetMutableRequiredResources().getMutableMap(); } /** * map<string, double> required_resources = 13 [json_name = "requiredResources"]; */ public Builder putRequiredResources( java.lang.String key, double value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableRequiredResources().getMutableMap() .put(key, value); return this; } /** * map<string, double> required_resources = 13 [json_name = "requiredResources"]; */ public Builder putAllRequiredResources( java.util.Map values) { internalGetMutableRequiredResources().getMutableMap() .putAll(values); 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 = 23 [json_name = "runtimeEnvInfo"]; * @return Whether the runtimeEnvInfo field is set. */ public boolean hasRuntimeEnvInfo() { return runtimeEnvInfoBuilder_ != null || runtimeEnvInfo_ != null; } /** * .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [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 = 23 [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 = 23 [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 = 23 [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 = 23 [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 = 23 [json_name = "runtimeEnvInfo"]; */ public io.ray.runtime.generated.RuntimeEnvCommon.RuntimeEnvInfo.Builder getRuntimeEnvInfoBuilder() { onChanged(); return getRuntimeEnvInfoFieldBuilder().getBuilder(); } /** * .ray.rpc.RuntimeEnvInfo runtime_env_info = 23 [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 = 23 [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 com.google.protobuf.ByteString nodeId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes node_id = 24 [json_name = "nodeId"]; * @return Whether the nodeId field is set. */ @java.lang.Override public boolean hasNodeId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes node_id = 24 [json_name = "nodeId"]; * @return The nodeId. */ @java.lang.Override public com.google.protobuf.ByteString getNodeId() { return nodeId_; } /** * optional bytes node_id = 24 [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(); } bitField0_ |= 0x00000002; nodeId_ = value; onChanged(); return this; } /** * optional bytes node_id = 24 [json_name = "nodeId"]; * @return This builder for chaining. */ public Builder clearNodeId() { bitField0_ = (bitField0_ & ~0x00000002); nodeId_ = getDefaultInstance().getNodeId(); onChanged(); return this; } private com.google.protobuf.ByteString actorId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes actor_id = 25 [json_name = "actorId"]; * @return Whether the actorId field is set. */ @java.lang.Override public boolean hasActorId() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bytes actor_id = 25 [json_name = "actorId"]; * @return The actorId. */ @java.lang.Override public com.google.protobuf.ByteString getActorId() { return actorId_; } /** * optional bytes actor_id = 25 [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_ |= 0x00000004; actorId_ = value; onChanged(); return this; } /** * optional bytes actor_id = 25 [json_name = "actorId"]; * @return This builder for chaining. */ public Builder clearActorId() { bitField0_ = (bitField0_ & ~0x00000004); actorId_ = getDefaultInstance().getActorId(); onChanged(); return this; } private com.google.protobuf.ByteString placementGroupId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes placement_group_id = 26 [json_name = "placementGroupId"]; * @return Whether the placementGroupId field is set. */ @java.lang.Override public boolean hasPlacementGroupId() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bytes placement_group_id = 26 [json_name = "placementGroupId"]; * @return The placementGroupId. */ @java.lang.Override public com.google.protobuf.ByteString getPlacementGroupId() { return placementGroupId_; } /** * optional bytes placement_group_id = 26 [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(); } bitField0_ |= 0x00000008; placementGroupId_ = value; onChanged(); return this; } /** * optional bytes placement_group_id = 26 [json_name = "placementGroupId"]; * @return This builder for chaining. */ public Builder clearPlacementGroupId() { bitField0_ = (bitField0_ & ~0x00000008); placementGroupId_ = getDefaultInstance().getPlacementGroupId(); 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.TaskInfoEntry) } // @@protoc_insertion_point(class_scope:ray.rpc.TaskInfoEntry) private static final io.ray.runtime.generated.Common.TaskInfoEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.TaskInfoEntry(); } public static io.ray.runtime.generated.Common.TaskInfoEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TaskInfoEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskInfoEntry(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.TaskInfoEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BundleOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.Bundle) com.google.protobuf.MessageOrBuilder { /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; * @return Whether the bundleId field is set. */ boolean hasBundleId(); /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; * @return The bundleId. */ io.ray.runtime.generated.Common.Bundle.BundleIdentifier getBundleId(); /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ io.ray.runtime.generated.Common.Bundle.BundleIdentifierOrBuilder getBundleIdOrBuilder(); /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ int getUnitResourcesCount(); /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ boolean containsUnitResources( java.lang.String key); /** * Use {@link #getUnitResourcesMap()} instead. */ @java.lang.Deprecated java.util.Map getUnitResources(); /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ java.util.Map getUnitResourcesMap(); /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ double getUnitResourcesOrDefault( java.lang.String key, double defaultValue); /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ double getUnitResourcesOrThrow( java.lang.String key); /** * bytes node_id = 3 [json_name = "nodeId"]; * @return The nodeId. */ com.google.protobuf.ByteString getNodeId(); } /** * Protobuf type {@code ray.rpc.Bundle} */ public static final class Bundle extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.Bundle) BundleOrBuilder { private static final long serialVersionUID = 0L; // Use Bundle.newBuilder() to construct. private Bundle(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Bundle() { nodeId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Bundle(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Bundle( 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: { io.ray.runtime.generated.Common.Bundle.BundleIdentifier.Builder subBuilder = null; if (bundleId_ != null) { subBuilder = bundleId_.toBuilder(); } bundleId_ = input.readMessage(io.ray.runtime.generated.Common.Bundle.BundleIdentifier.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(bundleId_); bundleId_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { unitResources_ = com.google.protobuf.MapField.newMapField( UnitResourcesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry unitResources__ = input.readMessage( UnitResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); unitResources_.getMutableMap().put( unitResources__.getKey(), unitResources__.getValue()); break; } case 26: { nodeId_ = 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_Bundle_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetUnitResources(); 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_Bundle_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.Bundle.class, io.ray.runtime.generated.Common.Bundle.Builder.class); } public interface BundleIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.Bundle.BundleIdentifier) com.google.protobuf.MessageOrBuilder { /** * bytes placement_group_id = 1 [json_name = "placementGroupId"]; * @return The placementGroupId. */ com.google.protobuf.ByteString getPlacementGroupId(); /** * int32 bundle_index = 2 [json_name = "bundleIndex"]; * @return The bundleIndex. */ int getBundleIndex(); } /** * Protobuf type {@code ray.rpc.Bundle.BundleIdentifier} */ public static final class BundleIdentifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.Bundle.BundleIdentifier) BundleIdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use BundleIdentifier.newBuilder() to construct. private BundleIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BundleIdentifier() { placementGroupId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BundleIdentifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BundleIdentifier( 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: { bundleIndex_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Bundle_BundleIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Bundle_BundleIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.Bundle.BundleIdentifier.class, io.ray.runtime.generated.Common.Bundle.BundleIdentifier.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 BUNDLE_INDEX_FIELD_NUMBER = 2; private int bundleIndex_; /** * int32 bundle_index = 2 [json_name = "bundleIndex"]; * @return The bundleIndex. */ @java.lang.Override public int getBundleIndex() { return bundleIndex_; } 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 (bundleIndex_ != 0) { output.writeInt32(2, bundleIndex_); } 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 (bundleIndex_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, bundleIndex_); } 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.Bundle.BundleIdentifier)) { return super.equals(obj); } io.ray.runtime.generated.Common.Bundle.BundleIdentifier other = (io.ray.runtime.generated.Common.Bundle.BundleIdentifier) obj; if (!getPlacementGroupId() .equals(other.getPlacementGroupId())) return false; if (getBundleIndex() != other.getBundleIndex()) 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) + BUNDLE_INDEX_FIELD_NUMBER; hash = (53 * hash) + getBundleIndex(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.Bundle.BundleIdentifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Bundle.BundleIdentifier 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.Bundle.BundleIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Bundle.BundleIdentifier 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.Bundle.BundleIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Bundle.BundleIdentifier 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.Bundle.BundleIdentifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.Bundle.BundleIdentifier 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.Bundle.BundleIdentifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.Bundle.BundleIdentifier 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.Bundle.BundleIdentifier 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.Bundle.BundleIdentifier 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.Bundle.BundleIdentifier 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.Bundle.BundleIdentifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.Bundle.BundleIdentifier) io.ray.runtime.generated.Common.Bundle.BundleIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Bundle_BundleIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Bundle_BundleIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.Bundle.BundleIdentifier.class, io.ray.runtime.generated.Common.Bundle.BundleIdentifier.Builder.class); } // Construct using io.ray.runtime.generated.Common.Bundle.BundleIdentifier.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; bundleIndex_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Bundle_BundleIdentifier_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.Bundle.BundleIdentifier getDefaultInstanceForType() { return io.ray.runtime.generated.Common.Bundle.BundleIdentifier.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.Bundle.BundleIdentifier build() { io.ray.runtime.generated.Common.Bundle.BundleIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.Bundle.BundleIdentifier buildPartial() { io.ray.runtime.generated.Common.Bundle.BundleIdentifier result = new io.ray.runtime.generated.Common.Bundle.BundleIdentifier(this); result.placementGroupId_ = placementGroupId_; result.bundleIndex_ = bundleIndex_; 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.Bundle.BundleIdentifier) { return mergeFrom((io.ray.runtime.generated.Common.Bundle.BundleIdentifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.Bundle.BundleIdentifier other) { if (other == io.ray.runtime.generated.Common.Bundle.BundleIdentifier.getDefaultInstance()) return this; if (other.getPlacementGroupId() != com.google.protobuf.ByteString.EMPTY) { setPlacementGroupId(other.getPlacementGroupId()); } if (other.getBundleIndex() != 0) { setBundleIndex(other.getBundleIndex()); } 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.Bundle.BundleIdentifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.Bundle.BundleIdentifier) 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 int bundleIndex_ ; /** * int32 bundle_index = 2 [json_name = "bundleIndex"]; * @return The bundleIndex. */ @java.lang.Override public int getBundleIndex() { return bundleIndex_; } /** * int32 bundle_index = 2 [json_name = "bundleIndex"]; * @param value The bundleIndex to set. * @return This builder for chaining. */ public Builder setBundleIndex(int value) { bundleIndex_ = value; onChanged(); return this; } /** * int32 bundle_index = 2 [json_name = "bundleIndex"]; * @return This builder for chaining. */ public Builder clearBundleIndex() { bundleIndex_ = 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.Bundle.BundleIdentifier) } // @@protoc_insertion_point(class_scope:ray.rpc.Bundle.BundleIdentifier) private static final io.ray.runtime.generated.Common.Bundle.BundleIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.Bundle.BundleIdentifier(); } public static io.ray.runtime.generated.Common.Bundle.BundleIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BundleIdentifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BundleIdentifier(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.Bundle.BundleIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int BUNDLE_ID_FIELD_NUMBER = 1; private io.ray.runtime.generated.Common.Bundle.BundleIdentifier bundleId_; /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; * @return Whether the bundleId field is set. */ @java.lang.Override public boolean hasBundleId() { return bundleId_ != null; } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; * @return The bundleId. */ @java.lang.Override public io.ray.runtime.generated.Common.Bundle.BundleIdentifier getBundleId() { return bundleId_ == null ? io.ray.runtime.generated.Common.Bundle.BundleIdentifier.getDefaultInstance() : bundleId_; } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ @java.lang.Override public io.ray.runtime.generated.Common.Bundle.BundleIdentifierOrBuilder getBundleIdOrBuilder() { return getBundleId(); } public static final int UNIT_RESOURCES_FIELD_NUMBER = 2; private static final class UnitResourcesDefaultEntryHolder { 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_Bundle_UnitResourcesEntry_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> unitResources_; private com.google.protobuf.MapField internalGetUnitResources() { if (unitResources_ == null) { return com.google.protobuf.MapField.emptyMapField( UnitResourcesDefaultEntryHolder.defaultEntry); } return unitResources_; } public int getUnitResourcesCount() { return internalGetUnitResources().getMap().size(); } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ @java.lang.Override public boolean containsUnitResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetUnitResources().getMap().containsKey(key); } /** * Use {@link #getUnitResourcesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUnitResources() { return getUnitResourcesMap(); } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ @java.lang.Override public java.util.Map getUnitResourcesMap() { return internalGetUnitResources().getMap(); } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ @java.lang.Override public double getUnitResourcesOrDefault( java.lang.String key, double defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUnitResources().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ @java.lang.Override public double getUnitResourcesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUnitResources().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int NODE_ID_FIELD_NUMBER = 3; private com.google.protobuf.ByteString nodeId_; /** * bytes node_id = 3 [json_name = "nodeId"]; * @return The nodeId. */ @java.lang.Override public com.google.protobuf.ByteString getNodeId() { return nodeId_; } 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 (bundleId_ != null) { output.writeMessage(1, getBundleId()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetUnitResources(), UnitResourcesDefaultEntryHolder.defaultEntry, 2); if (!nodeId_.isEmpty()) { output.writeBytes(3, nodeId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (bundleId_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getBundleId()); } for (java.util.Map.Entry entry : internalGetUnitResources().getMap().entrySet()) { com.google.protobuf.MapEntry unitResources__ = UnitResourcesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, unitResources__); } if (!nodeId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, nodeId_); } 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.Bundle)) { return super.equals(obj); } io.ray.runtime.generated.Common.Bundle other = (io.ray.runtime.generated.Common.Bundle) obj; if (hasBundleId() != other.hasBundleId()) return false; if (hasBundleId()) { if (!getBundleId() .equals(other.getBundleId())) return false; } if (!internalGetUnitResources().equals( other.internalGetUnitResources())) return false; if (!getNodeId() .equals(other.getNodeId())) 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 (hasBundleId()) { hash = (37 * hash) + BUNDLE_ID_FIELD_NUMBER; hash = (53 * hash) + getBundleId().hashCode(); } if (!internalGetUnitResources().getMap().isEmpty()) { hash = (37 * hash) + UNIT_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + internalGetUnitResources().hashCode(); } hash = (37 * hash) + NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getNodeId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.Bundle parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Bundle 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.Bundle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Bundle 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.Bundle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Bundle 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.Bundle parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.Bundle 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.Bundle parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.Bundle 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.Bundle 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.Bundle 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.Bundle 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.Bundle} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.Bundle) io.ray.runtime.generated.Common.BundleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Bundle_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetUnitResources(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableUnitResources(); 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_Bundle_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.Bundle.class, io.ray.runtime.generated.Common.Bundle.Builder.class); } // Construct using io.ray.runtime.generated.Common.Bundle.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 (bundleIdBuilder_ == null) { bundleId_ = null; } else { bundleId_ = null; bundleIdBuilder_ = null; } internalGetMutableUnitResources().clear(); nodeId_ = 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_Bundle_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.Bundle getDefaultInstanceForType() { return io.ray.runtime.generated.Common.Bundle.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.Bundle build() { io.ray.runtime.generated.Common.Bundle result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.Bundle buildPartial() { io.ray.runtime.generated.Common.Bundle result = new io.ray.runtime.generated.Common.Bundle(this); int from_bitField0_ = bitField0_; if (bundleIdBuilder_ == null) { result.bundleId_ = bundleId_; } else { result.bundleId_ = bundleIdBuilder_.build(); } result.unitResources_ = internalGetUnitResources(); result.unitResources_.makeImmutable(); result.nodeId_ = nodeId_; 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.Bundle) { return mergeFrom((io.ray.runtime.generated.Common.Bundle)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.Bundle other) { if (other == io.ray.runtime.generated.Common.Bundle.getDefaultInstance()) return this; if (other.hasBundleId()) { mergeBundleId(other.getBundleId()); } internalGetMutableUnitResources().mergeFrom( other.internalGetUnitResources()); if (other.getNodeId() != com.google.protobuf.ByteString.EMPTY) { setNodeId(other.getNodeId()); } 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.Bundle parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.Bundle) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.ray.runtime.generated.Common.Bundle.BundleIdentifier bundleId_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Bundle.BundleIdentifier, io.ray.runtime.generated.Common.Bundle.BundleIdentifier.Builder, io.ray.runtime.generated.Common.Bundle.BundleIdentifierOrBuilder> bundleIdBuilder_; /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; * @return Whether the bundleId field is set. */ public boolean hasBundleId() { return bundleIdBuilder_ != null || bundleId_ != null; } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; * @return The bundleId. */ public io.ray.runtime.generated.Common.Bundle.BundleIdentifier getBundleId() { if (bundleIdBuilder_ == null) { return bundleId_ == null ? io.ray.runtime.generated.Common.Bundle.BundleIdentifier.getDefaultInstance() : bundleId_; } else { return bundleIdBuilder_.getMessage(); } } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ public Builder setBundleId(io.ray.runtime.generated.Common.Bundle.BundleIdentifier value) { if (bundleIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } bundleId_ = value; onChanged(); } else { bundleIdBuilder_.setMessage(value); } return this; } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ public Builder setBundleId( io.ray.runtime.generated.Common.Bundle.BundleIdentifier.Builder builderForValue) { if (bundleIdBuilder_ == null) { bundleId_ = builderForValue.build(); onChanged(); } else { bundleIdBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ public Builder mergeBundleId(io.ray.runtime.generated.Common.Bundle.BundleIdentifier value) { if (bundleIdBuilder_ == null) { if (bundleId_ != null) { bundleId_ = io.ray.runtime.generated.Common.Bundle.BundleIdentifier.newBuilder(bundleId_).mergeFrom(value).buildPartial(); } else { bundleId_ = value; } onChanged(); } else { bundleIdBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ public Builder clearBundleId() { if (bundleIdBuilder_ == null) { bundleId_ = null; onChanged(); } else { bundleId_ = null; bundleIdBuilder_ = null; } return this; } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ public io.ray.runtime.generated.Common.Bundle.BundleIdentifier.Builder getBundleIdBuilder() { onChanged(); return getBundleIdFieldBuilder().getBuilder(); } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ public io.ray.runtime.generated.Common.Bundle.BundleIdentifierOrBuilder getBundleIdOrBuilder() { if (bundleIdBuilder_ != null) { return bundleIdBuilder_.getMessageOrBuilder(); } else { return bundleId_ == null ? io.ray.runtime.generated.Common.Bundle.BundleIdentifier.getDefaultInstance() : bundleId_; } } /** * .ray.rpc.Bundle.BundleIdentifier bundle_id = 1 [json_name = "bundleId"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Bundle.BundleIdentifier, io.ray.runtime.generated.Common.Bundle.BundleIdentifier.Builder, io.ray.runtime.generated.Common.Bundle.BundleIdentifierOrBuilder> getBundleIdFieldBuilder() { if (bundleIdBuilder_ == null) { bundleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Bundle.BundleIdentifier, io.ray.runtime.generated.Common.Bundle.BundleIdentifier.Builder, io.ray.runtime.generated.Common.Bundle.BundleIdentifierOrBuilder>( getBundleId(), getParentForChildren(), isClean()); bundleId_ = null; } return bundleIdBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.Double> unitResources_; private com.google.protobuf.MapField internalGetUnitResources() { if (unitResources_ == null) { return com.google.protobuf.MapField.emptyMapField( UnitResourcesDefaultEntryHolder.defaultEntry); } return unitResources_; } private com.google.protobuf.MapField internalGetMutableUnitResources() { onChanged();; if (unitResources_ == null) { unitResources_ = com.google.protobuf.MapField.newMapField( UnitResourcesDefaultEntryHolder.defaultEntry); } if (!unitResources_.isMutable()) { unitResources_ = unitResources_.copy(); } return unitResources_; } public int getUnitResourcesCount() { return internalGetUnitResources().getMap().size(); } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ @java.lang.Override public boolean containsUnitResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetUnitResources().getMap().containsKey(key); } /** * Use {@link #getUnitResourcesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUnitResources() { return getUnitResourcesMap(); } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ @java.lang.Override public java.util.Map getUnitResourcesMap() { return internalGetUnitResources().getMap(); } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ @java.lang.Override public double getUnitResourcesOrDefault( java.lang.String key, double defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUnitResources().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ @java.lang.Override public double getUnitResourcesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUnitResources().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearUnitResources() { internalGetMutableUnitResources().getMutableMap() .clear(); return this; } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ public Builder removeUnitResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableUnitResources().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUnitResources() { return internalGetMutableUnitResources().getMutableMap(); } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ public Builder putUnitResources( java.lang.String key, double value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableUnitResources().getMutableMap() .put(key, value); return this; } /** * map<string, double> unit_resources = 2 [json_name = "unitResources"]; */ public Builder putAllUnitResources( java.util.Map values) { internalGetMutableUnitResources().getMutableMap() .putAll(values); return this; } private com.google.protobuf.ByteString nodeId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes node_id = 3 [json_name = "nodeId"]; * @return The nodeId. */ @java.lang.Override public com.google.protobuf.ByteString getNodeId() { return nodeId_; } /** * bytes node_id = 3 [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 = 3 [json_name = "nodeId"]; * @return This builder for chaining. */ public Builder clearNodeId() { nodeId_ = getDefaultInstance().getNodeId(); 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.Bundle) } // @@protoc_insertion_point(class_scope:ray.rpc.Bundle) private static final io.ray.runtime.generated.Common.Bundle DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.Bundle(); } public static io.ray.runtime.generated.Common.Bundle getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Bundle parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Bundle(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.Bundle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlacementGroupSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.PlacementGroupSpec) com.google.protobuf.MessageOrBuilder { /** * bytes placement_group_id = 1 [json_name = "placementGroupId"]; * @return The placementGroupId. */ com.google.protobuf.ByteString getPlacementGroupId(); /** * 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(); /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ java.util.List getBundlesList(); /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ io.ray.runtime.generated.Common.Bundle getBundles(int index); /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ int getBundlesCount(); /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ java.util.List getBundlesOrBuilderList(); /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ io.ray.runtime.generated.Common.BundleOrBuilder getBundlesOrBuilder( int index); /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @return The enum numeric value on the wire for strategy. */ int getStrategyValue(); /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @return The strategy. */ io.ray.runtime.generated.Common.PlacementStrategy getStrategy(); /** * bytes creator_job_id = 5 [json_name = "creatorJobId"]; * @return The creatorJobId. */ com.google.protobuf.ByteString getCreatorJobId(); /** * bytes creator_actor_id = 6 [json_name = "creatorActorId"]; * @return The creatorActorId. */ com.google.protobuf.ByteString getCreatorActorId(); /** * bool creator_job_dead = 7 [json_name = "creatorJobDead"]; * @return The creatorJobDead. */ boolean getCreatorJobDead(); /** * bool creator_actor_dead = 8 [json_name = "creatorActorDead"]; * @return The creatorActorDead. */ boolean getCreatorActorDead(); /** * bool is_detached = 9 [json_name = "isDetached"]; * @return The isDetached. */ boolean getIsDetached(); /** * double max_cpu_fraction_per_node = 10 [json_name = "maxCpuFractionPerNode"]; * @return The maxCpuFractionPerNode. */ double getMaxCpuFractionPerNode(); /** * bytes soft_target_node_id = 11 [json_name = "softTargetNodeId"]; * @return The softTargetNodeId. */ com.google.protobuf.ByteString getSoftTargetNodeId(); } /** * Protobuf type {@code ray.rpc.PlacementGroupSpec} */ public static final class PlacementGroupSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.PlacementGroupSpec) PlacementGroupSpecOrBuilder { private static final long serialVersionUID = 0L; // Use PlacementGroupSpec.newBuilder() to construct. private PlacementGroupSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlacementGroupSpec() { placementGroupId_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; bundles_ = java.util.Collections.emptyList(); strategy_ = 0; creatorJobId_ = com.google.protobuf.ByteString.EMPTY; creatorActorId_ = com.google.protobuf.ByteString.EMPTY; softTargetNodeId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlacementGroupSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PlacementGroupSpec( 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: { placementGroupId_ = input.readBytes(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { bundles_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } bundles_.add( input.readMessage(io.ray.runtime.generated.Common.Bundle.parser(), extensionRegistry)); break; } case 32: { int rawValue = input.readEnum(); strategy_ = rawValue; break; } case 42: { creatorJobId_ = input.readBytes(); break; } case 50: { creatorActorId_ = input.readBytes(); break; } case 56: { creatorJobDead_ = input.readBool(); break; } case 64: { creatorActorDead_ = input.readBool(); break; } case 72: { isDetached_ = input.readBool(); break; } case 81: { maxCpuFractionPerNode_ = input.readDouble(); break; } case 90: { softTargetNodeId_ = 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)) { bundles_ = java.util.Collections.unmodifiableList(bundles_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.PlacementGroupSpec.class, io.ray.runtime.generated.Common.PlacementGroupSpec.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 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 BUNDLES_FIELD_NUMBER = 3; private java.util.List bundles_; /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ @java.lang.Override public java.util.List getBundlesList() { return bundles_; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ @java.lang.Override public java.util.List getBundlesOrBuilderList() { return bundles_; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ @java.lang.Override public int getBundlesCount() { return bundles_.size(); } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ @java.lang.Override public io.ray.runtime.generated.Common.Bundle getBundles(int index) { return bundles_.get(index); } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ @java.lang.Override public io.ray.runtime.generated.Common.BundleOrBuilder getBundlesOrBuilder( int index) { return bundles_.get(index); } public static final int STRATEGY_FIELD_NUMBER = 4; private int strategy_; /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @return The enum numeric value on the wire for strategy. */ @java.lang.Override public int getStrategyValue() { return strategy_; } /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @return The strategy. */ @java.lang.Override public io.ray.runtime.generated.Common.PlacementStrategy getStrategy() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.PlacementStrategy result = io.ray.runtime.generated.Common.PlacementStrategy.valueOf(strategy_); return result == null ? io.ray.runtime.generated.Common.PlacementStrategy.UNRECOGNIZED : result; } public static final int CREATOR_JOB_ID_FIELD_NUMBER = 5; private com.google.protobuf.ByteString creatorJobId_; /** * bytes creator_job_id = 5 [json_name = "creatorJobId"]; * @return The creatorJobId. */ @java.lang.Override public com.google.protobuf.ByteString getCreatorJobId() { return creatorJobId_; } public static final int CREATOR_ACTOR_ID_FIELD_NUMBER = 6; private com.google.protobuf.ByteString creatorActorId_; /** * bytes creator_actor_id = 6 [json_name = "creatorActorId"]; * @return The creatorActorId. */ @java.lang.Override public com.google.protobuf.ByteString getCreatorActorId() { return creatorActorId_; } public static final int CREATOR_JOB_DEAD_FIELD_NUMBER = 7; private boolean creatorJobDead_; /** * bool creator_job_dead = 7 [json_name = "creatorJobDead"]; * @return The creatorJobDead. */ @java.lang.Override public boolean getCreatorJobDead() { return creatorJobDead_; } public static final int CREATOR_ACTOR_DEAD_FIELD_NUMBER = 8; private boolean creatorActorDead_; /** * bool creator_actor_dead = 8 [json_name = "creatorActorDead"]; * @return The creatorActorDead. */ @java.lang.Override public boolean getCreatorActorDead() { return creatorActorDead_; } public static final int IS_DETACHED_FIELD_NUMBER = 9; private boolean isDetached_; /** * bool is_detached = 9 [json_name = "isDetached"]; * @return The isDetached. */ @java.lang.Override public boolean getIsDetached() { return isDetached_; } public static final int MAX_CPU_FRACTION_PER_NODE_FIELD_NUMBER = 10; private double maxCpuFractionPerNode_; /** * double max_cpu_fraction_per_node = 10 [json_name = "maxCpuFractionPerNode"]; * @return The maxCpuFractionPerNode. */ @java.lang.Override public double getMaxCpuFractionPerNode() { return maxCpuFractionPerNode_; } public static final int SOFT_TARGET_NODE_ID_FIELD_NUMBER = 11; private com.google.protobuf.ByteString softTargetNodeId_; /** * bytes soft_target_node_id = 11 [json_name = "softTargetNodeId"]; * @return The softTargetNodeId. */ @java.lang.Override public com.google.protobuf.ByteString getSoftTargetNodeId() { return softTargetNodeId_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } for (int i = 0; i < bundles_.size(); i++) { output.writeMessage(3, bundles_.get(i)); } if (strategy_ != io.ray.runtime.generated.Common.PlacementStrategy.PACK.getNumber()) { output.writeEnum(4, strategy_); } if (!creatorJobId_.isEmpty()) { output.writeBytes(5, creatorJobId_); } if (!creatorActorId_.isEmpty()) { output.writeBytes(6, creatorActorId_); } if (creatorJobDead_ != false) { output.writeBool(7, creatorJobDead_); } if (creatorActorDead_ != false) { output.writeBool(8, creatorActorDead_); } if (isDetached_ != false) { output.writeBool(9, isDetached_); } if (java.lang.Double.doubleToRawLongBits(maxCpuFractionPerNode_) != 0) { output.writeDouble(10, maxCpuFractionPerNode_); } if (!softTargetNodeId_.isEmpty()) { output.writeBytes(11, softTargetNodeId_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } for (int i = 0; i < bundles_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, bundles_.get(i)); } if (strategy_ != io.ray.runtime.generated.Common.PlacementStrategy.PACK.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, strategy_); } if (!creatorJobId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, creatorJobId_); } if (!creatorActorId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, creatorActorId_); } if (creatorJobDead_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, creatorJobDead_); } if (creatorActorDead_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, creatorActorDead_); } if (isDetached_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, isDetached_); } if (java.lang.Double.doubleToRawLongBits(maxCpuFractionPerNode_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, maxCpuFractionPerNode_); } if (!softTargetNodeId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, softTargetNodeId_); } 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.PlacementGroupSpec)) { return super.equals(obj); } io.ray.runtime.generated.Common.PlacementGroupSpec other = (io.ray.runtime.generated.Common.PlacementGroupSpec) obj; if (!getPlacementGroupId() .equals(other.getPlacementGroupId())) return false; if (!getName() .equals(other.getName())) return false; if (!getBundlesList() .equals(other.getBundlesList())) return false; if (strategy_ != other.strategy_) return false; if (!getCreatorJobId() .equals(other.getCreatorJobId())) return false; if (!getCreatorActorId() .equals(other.getCreatorActorId())) return false; if (getCreatorJobDead() != other.getCreatorJobDead()) return false; if (getCreatorActorDead() != other.getCreatorActorDead()) return false; if (getIsDetached() != other.getIsDetached()) return false; if (java.lang.Double.doubleToLongBits(getMaxCpuFractionPerNode()) != java.lang.Double.doubleToLongBits( other.getMaxCpuFractionPerNode())) return false; if (!getSoftTargetNodeId() .equals(other.getSoftTargetNodeId())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getBundlesCount() > 0) { hash = (37 * hash) + BUNDLES_FIELD_NUMBER; hash = (53 * hash) + getBundlesList().hashCode(); } hash = (37 * hash) + STRATEGY_FIELD_NUMBER; hash = (53 * hash) + strategy_; hash = (37 * hash) + CREATOR_JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getCreatorJobId().hashCode(); hash = (37 * hash) + CREATOR_ACTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getCreatorActorId().hashCode(); hash = (37 * hash) + CREATOR_JOB_DEAD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCreatorJobDead()); hash = (37 * hash) + CREATOR_ACTOR_DEAD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCreatorActorDead()); hash = (37 * hash) + IS_DETACHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsDetached()); hash = (37 * hash) + MAX_CPU_FRACTION_PER_NODE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMaxCpuFractionPerNode())); hash = (37 * hash) + SOFT_TARGET_NODE_ID_FIELD_NUMBER; hash = (53 * hash) + getSoftTargetNodeId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.PlacementGroupSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.PlacementGroupSpec 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.PlacementGroupSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.PlacementGroupSpec 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.PlacementGroupSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.PlacementGroupSpec 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.PlacementGroupSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.PlacementGroupSpec 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.PlacementGroupSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.PlacementGroupSpec 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.PlacementGroupSpec 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.PlacementGroupSpec 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.PlacementGroupSpec 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.PlacementGroupSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.PlacementGroupSpec) io.ray.runtime.generated.Common.PlacementGroupSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_PlacementGroupSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.PlacementGroupSpec.class, io.ray.runtime.generated.Common.PlacementGroupSpec.Builder.class); } // Construct using io.ray.runtime.generated.Common.PlacementGroupSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBundlesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); placementGroupId_ = com.google.protobuf.ByteString.EMPTY; name_ = ""; if (bundlesBuilder_ == null) { bundles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { bundlesBuilder_.clear(); } strategy_ = 0; creatorJobId_ = com.google.protobuf.ByteString.EMPTY; creatorActorId_ = com.google.protobuf.ByteString.EMPTY; creatorJobDead_ = false; creatorActorDead_ = false; isDetached_ = false; maxCpuFractionPerNode_ = 0D; softTargetNodeId_ = 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_PlacementGroupSpec_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.PlacementGroupSpec getDefaultInstanceForType() { return io.ray.runtime.generated.Common.PlacementGroupSpec.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.PlacementGroupSpec build() { io.ray.runtime.generated.Common.PlacementGroupSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.PlacementGroupSpec buildPartial() { io.ray.runtime.generated.Common.PlacementGroupSpec result = new io.ray.runtime.generated.Common.PlacementGroupSpec(this); int from_bitField0_ = bitField0_; result.placementGroupId_ = placementGroupId_; result.name_ = name_; if (bundlesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { bundles_ = java.util.Collections.unmodifiableList(bundles_); bitField0_ = (bitField0_ & ~0x00000001); } result.bundles_ = bundles_; } else { result.bundles_ = bundlesBuilder_.build(); } result.strategy_ = strategy_; result.creatorJobId_ = creatorJobId_; result.creatorActorId_ = creatorActorId_; result.creatorJobDead_ = creatorJobDead_; result.creatorActorDead_ = creatorActorDead_; result.isDetached_ = isDetached_; result.maxCpuFractionPerNode_ = maxCpuFractionPerNode_; result.softTargetNodeId_ = softTargetNodeId_; 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.PlacementGroupSpec) { return mergeFrom((io.ray.runtime.generated.Common.PlacementGroupSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.PlacementGroupSpec other) { if (other == io.ray.runtime.generated.Common.PlacementGroupSpec.getDefaultInstance()) return this; if (other.getPlacementGroupId() != com.google.protobuf.ByteString.EMPTY) { setPlacementGroupId(other.getPlacementGroupId()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (bundlesBuilder_ == null) { if (!other.bundles_.isEmpty()) { if (bundles_.isEmpty()) { bundles_ = other.bundles_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBundlesIsMutable(); bundles_.addAll(other.bundles_); } onChanged(); } } else { if (!other.bundles_.isEmpty()) { if (bundlesBuilder_.isEmpty()) { bundlesBuilder_.dispose(); bundlesBuilder_ = null; bundles_ = other.bundles_; bitField0_ = (bitField0_ & ~0x00000001); bundlesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBundlesFieldBuilder() : null; } else { bundlesBuilder_.addAllMessages(other.bundles_); } } } if (other.strategy_ != 0) { setStrategyValue(other.getStrategyValue()); } if (other.getCreatorJobId() != com.google.protobuf.ByteString.EMPTY) { setCreatorJobId(other.getCreatorJobId()); } if (other.getCreatorActorId() != com.google.protobuf.ByteString.EMPTY) { setCreatorActorId(other.getCreatorActorId()); } if (other.getCreatorJobDead() != false) { setCreatorJobDead(other.getCreatorJobDead()); } if (other.getCreatorActorDead() != false) { setCreatorActorDead(other.getCreatorActorDead()); } if (other.getIsDetached() != false) { setIsDetached(other.getIsDetached()); } if (other.getMaxCpuFractionPerNode() != 0D) { setMaxCpuFractionPerNode(other.getMaxCpuFractionPerNode()); } if (other.getSoftTargetNodeId() != com.google.protobuf.ByteString.EMPTY) { setSoftTargetNodeId(other.getSoftTargetNodeId()); } 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.PlacementGroupSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.PlacementGroupSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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 java.lang.Object name_ = ""; /** * string name = 2 [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 = 2 [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 = 2 [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 = 2 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2 [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.util.List bundles_ = java.util.Collections.emptyList(); private void ensureBundlesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { bundles_ = new java.util.ArrayList(bundles_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.Bundle, io.ray.runtime.generated.Common.Bundle.Builder, io.ray.runtime.generated.Common.BundleOrBuilder> bundlesBuilder_; /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public java.util.List getBundlesList() { if (bundlesBuilder_ == null) { return java.util.Collections.unmodifiableList(bundles_); } else { return bundlesBuilder_.getMessageList(); } } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public int getBundlesCount() { if (bundlesBuilder_ == null) { return bundles_.size(); } else { return bundlesBuilder_.getCount(); } } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public io.ray.runtime.generated.Common.Bundle getBundles(int index) { if (bundlesBuilder_ == null) { return bundles_.get(index); } else { return bundlesBuilder_.getMessage(index); } } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder setBundles( int index, io.ray.runtime.generated.Common.Bundle value) { if (bundlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBundlesIsMutable(); bundles_.set(index, value); onChanged(); } else { bundlesBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder setBundles( int index, io.ray.runtime.generated.Common.Bundle.Builder builderForValue) { if (bundlesBuilder_ == null) { ensureBundlesIsMutable(); bundles_.set(index, builderForValue.build()); onChanged(); } else { bundlesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder addBundles(io.ray.runtime.generated.Common.Bundle value) { if (bundlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBundlesIsMutable(); bundles_.add(value); onChanged(); } else { bundlesBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder addBundles( int index, io.ray.runtime.generated.Common.Bundle value) { if (bundlesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBundlesIsMutable(); bundles_.add(index, value); onChanged(); } else { bundlesBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder addBundles( io.ray.runtime.generated.Common.Bundle.Builder builderForValue) { if (bundlesBuilder_ == null) { ensureBundlesIsMutable(); bundles_.add(builderForValue.build()); onChanged(); } else { bundlesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder addBundles( int index, io.ray.runtime.generated.Common.Bundle.Builder builderForValue) { if (bundlesBuilder_ == null) { ensureBundlesIsMutable(); bundles_.add(index, builderForValue.build()); onChanged(); } else { bundlesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder addAllBundles( java.lang.Iterable values) { if (bundlesBuilder_ == null) { ensureBundlesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bundles_); onChanged(); } else { bundlesBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder clearBundles() { if (bundlesBuilder_ == null) { bundles_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { bundlesBuilder_.clear(); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public Builder removeBundles(int index) { if (bundlesBuilder_ == null) { ensureBundlesIsMutable(); bundles_.remove(index); onChanged(); } else { bundlesBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public io.ray.runtime.generated.Common.Bundle.Builder getBundlesBuilder( int index) { return getBundlesFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public io.ray.runtime.generated.Common.BundleOrBuilder getBundlesOrBuilder( int index) { if (bundlesBuilder_ == null) { return bundles_.get(index); } else { return bundlesBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public java.util.List getBundlesOrBuilderList() { if (bundlesBuilder_ != null) { return bundlesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(bundles_); } } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public io.ray.runtime.generated.Common.Bundle.Builder addBundlesBuilder() { return getBundlesFieldBuilder().addBuilder( io.ray.runtime.generated.Common.Bundle.getDefaultInstance()); } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public io.ray.runtime.generated.Common.Bundle.Builder addBundlesBuilder( int index) { return getBundlesFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.Bundle.getDefaultInstance()); } /** * repeated .ray.rpc.Bundle bundles = 3 [json_name = "bundles"]; */ public java.util.List getBundlesBuilderList() { return getBundlesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.Bundle, io.ray.runtime.generated.Common.Bundle.Builder, io.ray.runtime.generated.Common.BundleOrBuilder> getBundlesFieldBuilder() { if (bundlesBuilder_ == null) { bundlesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.Bundle, io.ray.runtime.generated.Common.Bundle.Builder, io.ray.runtime.generated.Common.BundleOrBuilder>( bundles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); bundles_ = null; } return bundlesBuilder_; } private int strategy_ = 0; /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @return The enum numeric value on the wire for strategy. */ @java.lang.Override public int getStrategyValue() { return strategy_; } /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @param value The enum numeric value on the wire for strategy to set. * @return This builder for chaining. */ public Builder setStrategyValue(int value) { strategy_ = value; onChanged(); return this; } /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @return The strategy. */ @java.lang.Override public io.ray.runtime.generated.Common.PlacementStrategy getStrategy() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.PlacementStrategy result = io.ray.runtime.generated.Common.PlacementStrategy.valueOf(strategy_); return result == null ? io.ray.runtime.generated.Common.PlacementStrategy.UNRECOGNIZED : result; } /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @param value The strategy to set. * @return This builder for chaining. */ public Builder setStrategy(io.ray.runtime.generated.Common.PlacementStrategy value) { if (value == null) { throw new NullPointerException(); } strategy_ = value.getNumber(); onChanged(); return this; } /** * .ray.rpc.PlacementStrategy strategy = 4 [json_name = "strategy"]; * @return This builder for chaining. */ public Builder clearStrategy() { strategy_ = 0; onChanged(); return this; } private com.google.protobuf.ByteString creatorJobId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes creator_job_id = 5 [json_name = "creatorJobId"]; * @return The creatorJobId. */ @java.lang.Override public com.google.protobuf.ByteString getCreatorJobId() { return creatorJobId_; } /** * bytes creator_job_id = 5 [json_name = "creatorJobId"]; * @param value The creatorJobId to set. * @return This builder for chaining. */ public Builder setCreatorJobId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } creatorJobId_ = value; onChanged(); return this; } /** * bytes creator_job_id = 5 [json_name = "creatorJobId"]; * @return This builder for chaining. */ public Builder clearCreatorJobId() { creatorJobId_ = getDefaultInstance().getCreatorJobId(); onChanged(); return this; } private com.google.protobuf.ByteString creatorActorId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes creator_actor_id = 6 [json_name = "creatorActorId"]; * @return The creatorActorId. */ @java.lang.Override public com.google.protobuf.ByteString getCreatorActorId() { return creatorActorId_; } /** * bytes creator_actor_id = 6 [json_name = "creatorActorId"]; * @param value The creatorActorId to set. * @return This builder for chaining. */ public Builder setCreatorActorId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } creatorActorId_ = value; onChanged(); return this; } /** * bytes creator_actor_id = 6 [json_name = "creatorActorId"]; * @return This builder for chaining. */ public Builder clearCreatorActorId() { creatorActorId_ = getDefaultInstance().getCreatorActorId(); onChanged(); return this; } private boolean creatorJobDead_ ; /** * bool creator_job_dead = 7 [json_name = "creatorJobDead"]; * @return The creatorJobDead. */ @java.lang.Override public boolean getCreatorJobDead() { return creatorJobDead_; } /** * bool creator_job_dead = 7 [json_name = "creatorJobDead"]; * @param value The creatorJobDead to set. * @return This builder for chaining. */ public Builder setCreatorJobDead(boolean value) { creatorJobDead_ = value; onChanged(); return this; } /** * bool creator_job_dead = 7 [json_name = "creatorJobDead"]; * @return This builder for chaining. */ public Builder clearCreatorJobDead() { creatorJobDead_ = false; onChanged(); return this; } private boolean creatorActorDead_ ; /** * bool creator_actor_dead = 8 [json_name = "creatorActorDead"]; * @return The creatorActorDead. */ @java.lang.Override public boolean getCreatorActorDead() { return creatorActorDead_; } /** * bool creator_actor_dead = 8 [json_name = "creatorActorDead"]; * @param value The creatorActorDead to set. * @return This builder for chaining. */ public Builder setCreatorActorDead(boolean value) { creatorActorDead_ = value; onChanged(); return this; } /** * bool creator_actor_dead = 8 [json_name = "creatorActorDead"]; * @return This builder for chaining. */ public Builder clearCreatorActorDead() { creatorActorDead_ = false; onChanged(); return this; } private boolean isDetached_ ; /** * bool is_detached = 9 [json_name = "isDetached"]; * @return The isDetached. */ @java.lang.Override public boolean getIsDetached() { return isDetached_; } /** * bool is_detached = 9 [json_name = "isDetached"]; * @param value The isDetached to set. * @return This builder for chaining. */ public Builder setIsDetached(boolean value) { isDetached_ = value; onChanged(); return this; } /** * bool is_detached = 9 [json_name = "isDetached"]; * @return This builder for chaining. */ public Builder clearIsDetached() { isDetached_ = false; onChanged(); return this; } private double maxCpuFractionPerNode_ ; /** * double max_cpu_fraction_per_node = 10 [json_name = "maxCpuFractionPerNode"]; * @return The maxCpuFractionPerNode. */ @java.lang.Override public double getMaxCpuFractionPerNode() { return maxCpuFractionPerNode_; } /** * double max_cpu_fraction_per_node = 10 [json_name = "maxCpuFractionPerNode"]; * @param value The maxCpuFractionPerNode to set. * @return This builder for chaining. */ public Builder setMaxCpuFractionPerNode(double value) { maxCpuFractionPerNode_ = value; onChanged(); return this; } /** * double max_cpu_fraction_per_node = 10 [json_name = "maxCpuFractionPerNode"]; * @return This builder for chaining. */ public Builder clearMaxCpuFractionPerNode() { maxCpuFractionPerNode_ = 0D; onChanged(); return this; } private com.google.protobuf.ByteString softTargetNodeId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes soft_target_node_id = 11 [json_name = "softTargetNodeId"]; * @return The softTargetNodeId. */ @java.lang.Override public com.google.protobuf.ByteString getSoftTargetNodeId() { return softTargetNodeId_; } /** * bytes soft_target_node_id = 11 [json_name = "softTargetNodeId"]; * @param value The softTargetNodeId to set. * @return This builder for chaining. */ public Builder setSoftTargetNodeId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } softTargetNodeId_ = value; onChanged(); return this; } /** * bytes soft_target_node_id = 11 [json_name = "softTargetNodeId"]; * @return This builder for chaining. */ public Builder clearSoftTargetNodeId() { softTargetNodeId_ = getDefaultInstance().getSoftTargetNodeId(); 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.PlacementGroupSpec) } // @@protoc_insertion_point(class_scope:ray.rpc.PlacementGroupSpec) private static final io.ray.runtime.generated.Common.PlacementGroupSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.PlacementGroupSpec(); } public static io.ray.runtime.generated.Common.PlacementGroupSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlacementGroupSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PlacementGroupSpec(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.PlacementGroupSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObjectReferenceOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ObjectReference) com.google.protobuf.MessageOrBuilder { /** * bytes object_id = 1 [json_name = "objectId"]; * @return The objectId. */ com.google.protobuf.ByteString getObjectId(); /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; * @return Whether the ownerAddress field is set. */ boolean hasOwnerAddress(); /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; * @return The ownerAddress. */ io.ray.runtime.generated.Common.Address getOwnerAddress(); /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ io.ray.runtime.generated.Common.AddressOrBuilder getOwnerAddressOrBuilder(); /** * string call_site = 3 [json_name = "callSite"]; * @return The callSite. */ java.lang.String getCallSite(); /** * string call_site = 3 [json_name = "callSite"]; * @return The bytes for callSite. */ com.google.protobuf.ByteString getCallSiteBytes(); } /** * Protobuf type {@code ray.rpc.ObjectReference} */ public static final class ObjectReference extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ObjectReference) ObjectReferenceOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectReference.newBuilder() to construct. private ObjectReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectReference() { objectId_ = com.google.protobuf.ByteString.EMPTY; callSite_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ObjectReference(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ObjectReference( 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 18: { io.ray.runtime.generated.Common.Address.Builder subBuilder = null; if (ownerAddress_ != null) { subBuilder = ownerAddress_.toBuilder(); } ownerAddress_ = input.readMessage(io.ray.runtime.generated.Common.Address.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(ownerAddress_); ownerAddress_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); callSite_ = 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_ObjectReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ObjectReference.class, io.ray.runtime.generated.Common.ObjectReference.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 OWNER_ADDRESS_FIELD_NUMBER = 2; private io.ray.runtime.generated.Common.Address ownerAddress_; /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; * @return Whether the ownerAddress field is set. */ @java.lang.Override public boolean hasOwnerAddress() { return ownerAddress_ != null; } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; * @return The ownerAddress. */ @java.lang.Override public io.ray.runtime.generated.Common.Address getOwnerAddress() { return ownerAddress_ == null ? io.ray.runtime.generated.Common.Address.getDefaultInstance() : ownerAddress_; } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ @java.lang.Override public io.ray.runtime.generated.Common.AddressOrBuilder getOwnerAddressOrBuilder() { return getOwnerAddress(); } public static final int CALL_SITE_FIELD_NUMBER = 3; private volatile java.lang.Object callSite_; /** * string call_site = 3 [json_name = "callSite"]; * @return The callSite. */ @java.lang.Override public java.lang.String getCallSite() { java.lang.Object ref = callSite_; 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(); callSite_ = s; return s; } } /** * string call_site = 3 [json_name = "callSite"]; * @return The bytes for callSite. */ @java.lang.Override public com.google.protobuf.ByteString getCallSiteBytes() { java.lang.Object ref = callSite_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callSite_ = 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 (!objectId_.isEmpty()) { output.writeBytes(1, objectId_); } if (ownerAddress_ != null) { output.writeMessage(2, getOwnerAddress()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callSite_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, callSite_); } 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 (ownerAddress_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOwnerAddress()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callSite_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, callSite_); } 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.ObjectReference)) { return super.equals(obj); } io.ray.runtime.generated.Common.ObjectReference other = (io.ray.runtime.generated.Common.ObjectReference) obj; if (!getObjectId() .equals(other.getObjectId())) return false; if (hasOwnerAddress() != other.hasOwnerAddress()) return false; if (hasOwnerAddress()) { if (!getOwnerAddress() .equals(other.getOwnerAddress())) return false; } if (!getCallSite() .equals(other.getCallSite())) 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(); if (hasOwnerAddress()) { hash = (37 * hash) + OWNER_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getOwnerAddress().hashCode(); } hash = (37 * hash) + CALL_SITE_FIELD_NUMBER; hash = (53 * hash) + getCallSite().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ObjectReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectReference 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.ObjectReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectReference 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.ObjectReference parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectReference 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.ObjectReference parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ObjectReference 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.ObjectReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ObjectReference 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.ObjectReference 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.ObjectReference 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.ObjectReference 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.ObjectReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ObjectReference) io.ray.runtime.generated.Common.ObjectReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectReference_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ObjectReference.class, io.ray.runtime.generated.Common.ObjectReference.Builder.class); } // Construct using io.ray.runtime.generated.Common.ObjectReference.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; if (ownerAddressBuilder_ == null) { ownerAddress_ = null; } else { ownerAddress_ = null; ownerAddressBuilder_ = null; } callSite_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectReference_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ObjectReference getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ObjectReference build() { io.ray.runtime.generated.Common.ObjectReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ObjectReference buildPartial() { io.ray.runtime.generated.Common.ObjectReference result = new io.ray.runtime.generated.Common.ObjectReference(this); result.objectId_ = objectId_; if (ownerAddressBuilder_ == null) { result.ownerAddress_ = ownerAddress_; } else { result.ownerAddress_ = ownerAddressBuilder_.build(); } result.callSite_ = callSite_; 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.ObjectReference) { return mergeFrom((io.ray.runtime.generated.Common.ObjectReference)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ObjectReference other) { if (other == io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance()) return this; if (other.getObjectId() != com.google.protobuf.ByteString.EMPTY) { setObjectId(other.getObjectId()); } if (other.hasOwnerAddress()) { mergeOwnerAddress(other.getOwnerAddress()); } if (!other.getCallSite().isEmpty()) { callSite_ = other.callSite_; 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.ObjectReference parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ObjectReference) 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 io.ray.runtime.generated.Common.Address ownerAddress_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder> ownerAddressBuilder_; /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; * @return Whether the ownerAddress field is set. */ public boolean hasOwnerAddress() { return ownerAddressBuilder_ != null || ownerAddress_ != null; } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; * @return The ownerAddress. */ public io.ray.runtime.generated.Common.Address getOwnerAddress() { if (ownerAddressBuilder_ == null) { return ownerAddress_ == null ? io.ray.runtime.generated.Common.Address.getDefaultInstance() : ownerAddress_; } else { return ownerAddressBuilder_.getMessage(); } } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ public Builder setOwnerAddress(io.ray.runtime.generated.Common.Address value) { if (ownerAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ownerAddress_ = value; onChanged(); } else { ownerAddressBuilder_.setMessage(value); } return this; } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ public Builder setOwnerAddress( io.ray.runtime.generated.Common.Address.Builder builderForValue) { if (ownerAddressBuilder_ == null) { ownerAddress_ = builderForValue.build(); onChanged(); } else { ownerAddressBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ public Builder mergeOwnerAddress(io.ray.runtime.generated.Common.Address value) { if (ownerAddressBuilder_ == null) { if (ownerAddress_ != null) { ownerAddress_ = io.ray.runtime.generated.Common.Address.newBuilder(ownerAddress_).mergeFrom(value).buildPartial(); } else { ownerAddress_ = value; } onChanged(); } else { ownerAddressBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ public Builder clearOwnerAddress() { if (ownerAddressBuilder_ == null) { ownerAddress_ = null; onChanged(); } else { ownerAddress_ = null; ownerAddressBuilder_ = null; } return this; } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ public io.ray.runtime.generated.Common.Address.Builder getOwnerAddressBuilder() { onChanged(); return getOwnerAddressFieldBuilder().getBuilder(); } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ public io.ray.runtime.generated.Common.AddressOrBuilder getOwnerAddressOrBuilder() { if (ownerAddressBuilder_ != null) { return ownerAddressBuilder_.getMessageOrBuilder(); } else { return ownerAddress_ == null ? io.ray.runtime.generated.Common.Address.getDefaultInstance() : ownerAddress_; } } /** * .ray.rpc.Address owner_address = 2 [json_name = "ownerAddress"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder> getOwnerAddressFieldBuilder() { if (ownerAddressBuilder_ == null) { ownerAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder>( getOwnerAddress(), getParentForChildren(), isClean()); ownerAddress_ = null; } return ownerAddressBuilder_; } private java.lang.Object callSite_ = ""; /** * string call_site = 3 [json_name = "callSite"]; * @return The callSite. */ public java.lang.String getCallSite() { java.lang.Object ref = callSite_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callSite_ = s; return s; } else { return (java.lang.String) ref; } } /** * string call_site = 3 [json_name = "callSite"]; * @return The bytes for callSite. */ public com.google.protobuf.ByteString getCallSiteBytes() { java.lang.Object ref = callSite_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callSite_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string call_site = 3 [json_name = "callSite"]; * @param value The callSite to set. * @return This builder for chaining. */ public Builder setCallSite( java.lang.String value) { if (value == null) { throw new NullPointerException(); } callSite_ = value; onChanged(); return this; } /** * string call_site = 3 [json_name = "callSite"]; * @return This builder for chaining. */ public Builder clearCallSite() { callSite_ = getDefaultInstance().getCallSite(); onChanged(); return this; } /** * string call_site = 3 [json_name = "callSite"]; * @param value The bytes for callSite to set. * @return This builder for chaining. */ public Builder setCallSiteBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); callSite_ = 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.ObjectReference) } // @@protoc_insertion_point(class_scope:ray.rpc.ObjectReference) private static final io.ray.runtime.generated.Common.ObjectReference DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ObjectReference(); } public static io.ray.runtime.generated.Common.ObjectReference getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObjectReference(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.ObjectReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObjectReferenceCountOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ObjectReferenceCount) com.google.protobuf.MessageOrBuilder { /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; * @return Whether the reference field is set. */ boolean hasReference(); /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; * @return The reference. */ io.ray.runtime.generated.Common.ObjectReference getReference(); /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getReferenceOrBuilder(); /** * bool has_local_ref = 2 [json_name = "hasLocalRef"]; * @return The hasLocalRef. */ boolean getHasLocalRef(); /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ java.util.List getBorrowersList(); /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ io.ray.runtime.generated.Common.Address getBorrowers(int index); /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ int getBorrowersCount(); /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ java.util.List getBorrowersOrBuilderList(); /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ io.ray.runtime.generated.Common.AddressOrBuilder getBorrowersOrBuilder( int index); /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ java.util.List getStoredInObjectsList(); /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ io.ray.runtime.generated.Common.ObjectReference getStoredInObjects(int index); /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ int getStoredInObjectsCount(); /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ java.util.List getStoredInObjectsOrBuilderList(); /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getStoredInObjectsOrBuilder( int index); /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @return A list containing the containedInBorrowedIds. */ java.util.List getContainedInBorrowedIdsList(); /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @return The count of containedInBorrowedIds. */ int getContainedInBorrowedIdsCount(); /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @param index The index of the element to return. * @return The containedInBorrowedIds at the given index. */ com.google.protobuf.ByteString getContainedInBorrowedIds(int index); /** * repeated bytes contains = 6 [json_name = "contains"]; * @return A list containing the contains. */ java.util.List getContainsList(); /** * repeated bytes contains = 6 [json_name = "contains"]; * @return The count of contains. */ int getContainsCount(); /** * repeated bytes contains = 6 [json_name = "contains"]; * @param index The index of the element to return. * @return The contains at the given index. */ com.google.protobuf.ByteString getContains(int index); } /** * Protobuf type {@code ray.rpc.ObjectReferenceCount} */ public static final class ObjectReferenceCount extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ObjectReferenceCount) ObjectReferenceCountOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectReferenceCount.newBuilder() to construct. private ObjectReferenceCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectReferenceCount() { borrowers_ = java.util.Collections.emptyList(); storedInObjects_ = java.util.Collections.emptyList(); containedInBorrowedIds_ = java.util.Collections.emptyList(); contains_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ObjectReferenceCount(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ObjectReferenceCount( 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: { io.ray.runtime.generated.Common.ObjectReference.Builder subBuilder = null; if (reference_ != null) { subBuilder = reference_.toBuilder(); } reference_ = input.readMessage(io.ray.runtime.generated.Common.ObjectReference.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(reference_); reference_ = subBuilder.buildPartial(); } break; } case 16: { hasLocalRef_ = input.readBool(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { borrowers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } borrowers_.add( input.readMessage(io.ray.runtime.generated.Common.Address.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { storedInObjects_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } storedInObjects_.add( input.readMessage(io.ray.runtime.generated.Common.ObjectReference.parser(), extensionRegistry)); break; } case 42: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { containedInBorrowedIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } containedInBorrowedIds_.add(input.readBytes()); break; } case 50: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { contains_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } contains_.add(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)) { borrowers_ = java.util.Collections.unmodifiableList(borrowers_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { storedInObjects_ = java.util.Collections.unmodifiableList(storedInObjects_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { containedInBorrowedIds_ = java.util.Collections.unmodifiableList(containedInBorrowedIds_); // C } if (((mutable_bitField0_ & 0x00000008) != 0)) { contains_ = java.util.Collections.unmodifiableList(contains_); // 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_ObjectReferenceCount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectReferenceCount_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ObjectReferenceCount.class, io.ray.runtime.generated.Common.ObjectReferenceCount.Builder.class); } public static final int REFERENCE_FIELD_NUMBER = 1; private io.ray.runtime.generated.Common.ObjectReference reference_; /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; * @return Whether the reference field is set. */ @java.lang.Override public boolean hasReference() { return reference_ != null; } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; * @return The reference. */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReference getReference() { return reference_ == null ? io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance() : reference_; } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getReferenceOrBuilder() { return getReference(); } public static final int HAS_LOCAL_REF_FIELD_NUMBER = 2; private boolean hasLocalRef_; /** * bool has_local_ref = 2 [json_name = "hasLocalRef"]; * @return The hasLocalRef. */ @java.lang.Override public boolean getHasLocalRef() { return hasLocalRef_; } public static final int BORROWERS_FIELD_NUMBER = 3; private java.util.List borrowers_; /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ @java.lang.Override public java.util.List getBorrowersList() { return borrowers_; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ @java.lang.Override public java.util.List getBorrowersOrBuilderList() { return borrowers_; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ @java.lang.Override public int getBorrowersCount() { return borrowers_.size(); } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ @java.lang.Override public io.ray.runtime.generated.Common.Address getBorrowers(int index) { return borrowers_.get(index); } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ @java.lang.Override public io.ray.runtime.generated.Common.AddressOrBuilder getBorrowersOrBuilder( int index) { return borrowers_.get(index); } public static final int STORED_IN_OBJECTS_FIELD_NUMBER = 4; private java.util.List storedInObjects_; /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ @java.lang.Override public java.util.List getStoredInObjectsList() { return storedInObjects_; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ @java.lang.Override public java.util.List getStoredInObjectsOrBuilderList() { return storedInObjects_; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ @java.lang.Override public int getStoredInObjectsCount() { return storedInObjects_.size(); } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReference getStoredInObjects(int index) { return storedInObjects_.get(index); } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getStoredInObjectsOrBuilder( int index) { return storedInObjects_.get(index); } public static final int CONTAINED_IN_BORROWED_IDS_FIELD_NUMBER = 5; private java.util.List containedInBorrowedIds_; /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @return A list containing the containedInBorrowedIds. */ @java.lang.Override public java.util.List getContainedInBorrowedIdsList() { return containedInBorrowedIds_; } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @return The count of containedInBorrowedIds. */ public int getContainedInBorrowedIdsCount() { return containedInBorrowedIds_.size(); } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @param index The index of the element to return. * @return The containedInBorrowedIds at the given index. */ public com.google.protobuf.ByteString getContainedInBorrowedIds(int index) { return containedInBorrowedIds_.get(index); } public static final int CONTAINS_FIELD_NUMBER = 6; private java.util.List contains_; /** * repeated bytes contains = 6 [json_name = "contains"]; * @return A list containing the contains. */ @java.lang.Override public java.util.List getContainsList() { return contains_; } /** * repeated bytes contains = 6 [json_name = "contains"]; * @return The count of contains. */ public int getContainsCount() { return contains_.size(); } /** * repeated bytes contains = 6 [json_name = "contains"]; * @param index The index of the element to return. * @return The contains at the given index. */ public com.google.protobuf.ByteString getContains(int index) { return contains_.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 (reference_ != null) { output.writeMessage(1, getReference()); } if (hasLocalRef_ != false) { output.writeBool(2, hasLocalRef_); } for (int i = 0; i < borrowers_.size(); i++) { output.writeMessage(3, borrowers_.get(i)); } for (int i = 0; i < storedInObjects_.size(); i++) { output.writeMessage(4, storedInObjects_.get(i)); } for (int i = 0; i < containedInBorrowedIds_.size(); i++) { output.writeBytes(5, containedInBorrowedIds_.get(i)); } for (int i = 0; i < contains_.size(); i++) { output.writeBytes(6, contains_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (reference_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getReference()); } if (hasLocalRef_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, hasLocalRef_); } for (int i = 0; i < borrowers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, borrowers_.get(i)); } for (int i = 0; i < storedInObjects_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, storedInObjects_.get(i)); } { int dataSize = 0; for (int i = 0; i < containedInBorrowedIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(containedInBorrowedIds_.get(i)); } size += dataSize; size += 1 * getContainedInBorrowedIdsList().size(); } { int dataSize = 0; for (int i = 0; i < contains_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(contains_.get(i)); } size += dataSize; size += 1 * getContainsList().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.ObjectReferenceCount)) { return super.equals(obj); } io.ray.runtime.generated.Common.ObjectReferenceCount other = (io.ray.runtime.generated.Common.ObjectReferenceCount) obj; if (hasReference() != other.hasReference()) return false; if (hasReference()) { if (!getReference() .equals(other.getReference())) return false; } if (getHasLocalRef() != other.getHasLocalRef()) return false; if (!getBorrowersList() .equals(other.getBorrowersList())) return false; if (!getStoredInObjectsList() .equals(other.getStoredInObjectsList())) return false; if (!getContainedInBorrowedIdsList() .equals(other.getContainedInBorrowedIdsList())) return false; if (!getContainsList() .equals(other.getContainsList())) 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 (hasReference()) { hash = (37 * hash) + REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getReference().hashCode(); } hash = (37 * hash) + HAS_LOCAL_REF_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasLocalRef()); if (getBorrowersCount() > 0) { hash = (37 * hash) + BORROWERS_FIELD_NUMBER; hash = (53 * hash) + getBorrowersList().hashCode(); } if (getStoredInObjectsCount() > 0) { hash = (37 * hash) + STORED_IN_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getStoredInObjectsList().hashCode(); } if (getContainedInBorrowedIdsCount() > 0) { hash = (37 * hash) + CONTAINED_IN_BORROWED_IDS_FIELD_NUMBER; hash = (53 * hash) + getContainedInBorrowedIdsList().hashCode(); } if (getContainsCount() > 0) { hash = (37 * hash) + CONTAINS_FIELD_NUMBER; hash = (53 * hash) + getContainsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ObjectReferenceCount parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectReferenceCount 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.ObjectReferenceCount parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectReferenceCount 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.ObjectReferenceCount parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectReferenceCount 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.ObjectReferenceCount parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ObjectReferenceCount 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.ObjectReferenceCount parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ObjectReferenceCount 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.ObjectReferenceCount 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.ObjectReferenceCount 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.ObjectReferenceCount 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.ObjectReferenceCount} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ObjectReferenceCount) io.ray.runtime.generated.Common.ObjectReferenceCountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectReferenceCount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectReferenceCount_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ObjectReferenceCount.class, io.ray.runtime.generated.Common.ObjectReferenceCount.Builder.class); } // Construct using io.ray.runtime.generated.Common.ObjectReferenceCount.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBorrowersFieldBuilder(); getStoredInObjectsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (referenceBuilder_ == null) { reference_ = null; } else { reference_ = null; referenceBuilder_ = null; } hasLocalRef_ = false; if (borrowersBuilder_ == null) { borrowers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { borrowersBuilder_.clear(); } if (storedInObjectsBuilder_ == null) { storedInObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { storedInObjectsBuilder_.clear(); } containedInBorrowedIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); contains_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectReferenceCount_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ObjectReferenceCount getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ObjectReferenceCount.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ObjectReferenceCount build() { io.ray.runtime.generated.Common.ObjectReferenceCount result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ObjectReferenceCount buildPartial() { io.ray.runtime.generated.Common.ObjectReferenceCount result = new io.ray.runtime.generated.Common.ObjectReferenceCount(this); int from_bitField0_ = bitField0_; if (referenceBuilder_ == null) { result.reference_ = reference_; } else { result.reference_ = referenceBuilder_.build(); } result.hasLocalRef_ = hasLocalRef_; if (borrowersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { borrowers_ = java.util.Collections.unmodifiableList(borrowers_); bitField0_ = (bitField0_ & ~0x00000001); } result.borrowers_ = borrowers_; } else { result.borrowers_ = borrowersBuilder_.build(); } if (storedInObjectsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { storedInObjects_ = java.util.Collections.unmodifiableList(storedInObjects_); bitField0_ = (bitField0_ & ~0x00000002); } result.storedInObjects_ = storedInObjects_; } else { result.storedInObjects_ = storedInObjectsBuilder_.build(); } if (((bitField0_ & 0x00000004) != 0)) { containedInBorrowedIds_ = java.util.Collections.unmodifiableList(containedInBorrowedIds_); bitField0_ = (bitField0_ & ~0x00000004); } result.containedInBorrowedIds_ = containedInBorrowedIds_; if (((bitField0_ & 0x00000008) != 0)) { contains_ = java.util.Collections.unmodifiableList(contains_); bitField0_ = (bitField0_ & ~0x00000008); } result.contains_ = contains_; 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.ObjectReferenceCount) { return mergeFrom((io.ray.runtime.generated.Common.ObjectReferenceCount)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ObjectReferenceCount other) { if (other == io.ray.runtime.generated.Common.ObjectReferenceCount.getDefaultInstance()) return this; if (other.hasReference()) { mergeReference(other.getReference()); } if (other.getHasLocalRef() != false) { setHasLocalRef(other.getHasLocalRef()); } if (borrowersBuilder_ == null) { if (!other.borrowers_.isEmpty()) { if (borrowers_.isEmpty()) { borrowers_ = other.borrowers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBorrowersIsMutable(); borrowers_.addAll(other.borrowers_); } onChanged(); } } else { if (!other.borrowers_.isEmpty()) { if (borrowersBuilder_.isEmpty()) { borrowersBuilder_.dispose(); borrowersBuilder_ = null; borrowers_ = other.borrowers_; bitField0_ = (bitField0_ & ~0x00000001); borrowersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBorrowersFieldBuilder() : null; } else { borrowersBuilder_.addAllMessages(other.borrowers_); } } } if (storedInObjectsBuilder_ == null) { if (!other.storedInObjects_.isEmpty()) { if (storedInObjects_.isEmpty()) { storedInObjects_ = other.storedInObjects_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureStoredInObjectsIsMutable(); storedInObjects_.addAll(other.storedInObjects_); } onChanged(); } } else { if (!other.storedInObjects_.isEmpty()) { if (storedInObjectsBuilder_.isEmpty()) { storedInObjectsBuilder_.dispose(); storedInObjectsBuilder_ = null; storedInObjects_ = other.storedInObjects_; bitField0_ = (bitField0_ & ~0x00000002); storedInObjectsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStoredInObjectsFieldBuilder() : null; } else { storedInObjectsBuilder_.addAllMessages(other.storedInObjects_); } } } if (!other.containedInBorrowedIds_.isEmpty()) { if (containedInBorrowedIds_.isEmpty()) { containedInBorrowedIds_ = other.containedInBorrowedIds_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureContainedInBorrowedIdsIsMutable(); containedInBorrowedIds_.addAll(other.containedInBorrowedIds_); } onChanged(); } if (!other.contains_.isEmpty()) { if (contains_.isEmpty()) { contains_ = other.contains_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureContainsIsMutable(); contains_.addAll(other.contains_); } 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.ObjectReferenceCount parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ObjectReferenceCount) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.ray.runtime.generated.Common.ObjectReference reference_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> referenceBuilder_; /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; * @return Whether the reference field is set. */ public boolean hasReference() { return referenceBuilder_ != null || reference_ != null; } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; * @return The reference. */ public io.ray.runtime.generated.Common.ObjectReference getReference() { if (referenceBuilder_ == null) { return reference_ == null ? io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance() : reference_; } else { return referenceBuilder_.getMessage(); } } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ public Builder setReference(io.ray.runtime.generated.Common.ObjectReference value) { if (referenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reference_ = value; onChanged(); } else { referenceBuilder_.setMessage(value); } return this; } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ public Builder setReference( io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (referenceBuilder_ == null) { reference_ = builderForValue.build(); onChanged(); } else { referenceBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ public Builder mergeReference(io.ray.runtime.generated.Common.ObjectReference value) { if (referenceBuilder_ == null) { if (reference_ != null) { reference_ = io.ray.runtime.generated.Common.ObjectReference.newBuilder(reference_).mergeFrom(value).buildPartial(); } else { reference_ = value; } onChanged(); } else { referenceBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ public Builder clearReference() { if (referenceBuilder_ == null) { reference_ = null; onChanged(); } else { reference_ = null; referenceBuilder_ = null; } return this; } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder getReferenceBuilder() { onChanged(); return getReferenceFieldBuilder().getBuilder(); } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getReferenceOrBuilder() { if (referenceBuilder_ != null) { return referenceBuilder_.getMessageOrBuilder(); } else { return reference_ == null ? io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance() : reference_; } } /** * .ray.rpc.ObjectReference reference = 1 [json_name = "reference"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> getReferenceFieldBuilder() { if (referenceBuilder_ == null) { referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder>( getReference(), getParentForChildren(), isClean()); reference_ = null; } return referenceBuilder_; } private boolean hasLocalRef_ ; /** * bool has_local_ref = 2 [json_name = "hasLocalRef"]; * @return The hasLocalRef. */ @java.lang.Override public boolean getHasLocalRef() { return hasLocalRef_; } /** * bool has_local_ref = 2 [json_name = "hasLocalRef"]; * @param value The hasLocalRef to set. * @return This builder for chaining. */ public Builder setHasLocalRef(boolean value) { hasLocalRef_ = value; onChanged(); return this; } /** * bool has_local_ref = 2 [json_name = "hasLocalRef"]; * @return This builder for chaining. */ public Builder clearHasLocalRef() { hasLocalRef_ = false; onChanged(); return this; } private java.util.List borrowers_ = java.util.Collections.emptyList(); private void ensureBorrowersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { borrowers_ = new java.util.ArrayList(borrowers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder> borrowersBuilder_; /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public java.util.List getBorrowersList() { if (borrowersBuilder_ == null) { return java.util.Collections.unmodifiableList(borrowers_); } else { return borrowersBuilder_.getMessageList(); } } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public int getBorrowersCount() { if (borrowersBuilder_ == null) { return borrowers_.size(); } else { return borrowersBuilder_.getCount(); } } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public io.ray.runtime.generated.Common.Address getBorrowers(int index) { if (borrowersBuilder_ == null) { return borrowers_.get(index); } else { return borrowersBuilder_.getMessage(index); } } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder setBorrowers( int index, io.ray.runtime.generated.Common.Address value) { if (borrowersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBorrowersIsMutable(); borrowers_.set(index, value); onChanged(); } else { borrowersBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder setBorrowers( int index, io.ray.runtime.generated.Common.Address.Builder builderForValue) { if (borrowersBuilder_ == null) { ensureBorrowersIsMutable(); borrowers_.set(index, builderForValue.build()); onChanged(); } else { borrowersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder addBorrowers(io.ray.runtime.generated.Common.Address value) { if (borrowersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBorrowersIsMutable(); borrowers_.add(value); onChanged(); } else { borrowersBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder addBorrowers( int index, io.ray.runtime.generated.Common.Address value) { if (borrowersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBorrowersIsMutable(); borrowers_.add(index, value); onChanged(); } else { borrowersBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder addBorrowers( io.ray.runtime.generated.Common.Address.Builder builderForValue) { if (borrowersBuilder_ == null) { ensureBorrowersIsMutable(); borrowers_.add(builderForValue.build()); onChanged(); } else { borrowersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder addBorrowers( int index, io.ray.runtime.generated.Common.Address.Builder builderForValue) { if (borrowersBuilder_ == null) { ensureBorrowersIsMutable(); borrowers_.add(index, builderForValue.build()); onChanged(); } else { borrowersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder addAllBorrowers( java.lang.Iterable values) { if (borrowersBuilder_ == null) { ensureBorrowersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, borrowers_); onChanged(); } else { borrowersBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder clearBorrowers() { if (borrowersBuilder_ == null) { borrowers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { borrowersBuilder_.clear(); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public Builder removeBorrowers(int index) { if (borrowersBuilder_ == null) { ensureBorrowersIsMutable(); borrowers_.remove(index); onChanged(); } else { borrowersBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public io.ray.runtime.generated.Common.Address.Builder getBorrowersBuilder( int index) { return getBorrowersFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public io.ray.runtime.generated.Common.AddressOrBuilder getBorrowersOrBuilder( int index) { if (borrowersBuilder_ == null) { return borrowers_.get(index); } else { return borrowersBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public java.util.List getBorrowersOrBuilderList() { if (borrowersBuilder_ != null) { return borrowersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(borrowers_); } } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public io.ray.runtime.generated.Common.Address.Builder addBorrowersBuilder() { return getBorrowersFieldBuilder().addBuilder( io.ray.runtime.generated.Common.Address.getDefaultInstance()); } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public io.ray.runtime.generated.Common.Address.Builder addBorrowersBuilder( int index) { return getBorrowersFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.Address.getDefaultInstance()); } /** * repeated .ray.rpc.Address borrowers = 3 [json_name = "borrowers"]; */ public java.util.List getBorrowersBuilderList() { return getBorrowersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder> getBorrowersFieldBuilder() { if (borrowersBuilder_ == null) { borrowersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.Address, io.ray.runtime.generated.Common.Address.Builder, io.ray.runtime.generated.Common.AddressOrBuilder>( borrowers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); borrowers_ = null; } return borrowersBuilder_; } private java.util.List storedInObjects_ = java.util.Collections.emptyList(); private void ensureStoredInObjectsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { storedInObjects_ = new java.util.ArrayList(storedInObjects_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> storedInObjectsBuilder_; /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public java.util.List getStoredInObjectsList() { if (storedInObjectsBuilder_ == null) { return java.util.Collections.unmodifiableList(storedInObjects_); } else { return storedInObjectsBuilder_.getMessageList(); } } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public int getStoredInObjectsCount() { if (storedInObjectsBuilder_ == null) { return storedInObjects_.size(); } else { return storedInObjectsBuilder_.getCount(); } } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public io.ray.runtime.generated.Common.ObjectReference getStoredInObjects(int index) { if (storedInObjectsBuilder_ == null) { return storedInObjects_.get(index); } else { return storedInObjectsBuilder_.getMessage(index); } } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder setStoredInObjects( int index, io.ray.runtime.generated.Common.ObjectReference value) { if (storedInObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoredInObjectsIsMutable(); storedInObjects_.set(index, value); onChanged(); } else { storedInObjectsBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder setStoredInObjects( int index, io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (storedInObjectsBuilder_ == null) { ensureStoredInObjectsIsMutable(); storedInObjects_.set(index, builderForValue.build()); onChanged(); } else { storedInObjectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder addStoredInObjects(io.ray.runtime.generated.Common.ObjectReference value) { if (storedInObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoredInObjectsIsMutable(); storedInObjects_.add(value); onChanged(); } else { storedInObjectsBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder addStoredInObjects( int index, io.ray.runtime.generated.Common.ObjectReference value) { if (storedInObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoredInObjectsIsMutable(); storedInObjects_.add(index, value); onChanged(); } else { storedInObjectsBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder addStoredInObjects( io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (storedInObjectsBuilder_ == null) { ensureStoredInObjectsIsMutable(); storedInObjects_.add(builderForValue.build()); onChanged(); } else { storedInObjectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder addStoredInObjects( int index, io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (storedInObjectsBuilder_ == null) { ensureStoredInObjectsIsMutable(); storedInObjects_.add(index, builderForValue.build()); onChanged(); } else { storedInObjectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder addAllStoredInObjects( java.lang.Iterable values) { if (storedInObjectsBuilder_ == null) { ensureStoredInObjectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, storedInObjects_); onChanged(); } else { storedInObjectsBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder clearStoredInObjects() { if (storedInObjectsBuilder_ == null) { storedInObjects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { storedInObjectsBuilder_.clear(); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public Builder removeStoredInObjects(int index) { if (storedInObjectsBuilder_ == null) { ensureStoredInObjectsIsMutable(); storedInObjects_.remove(index); onChanged(); } else { storedInObjectsBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder getStoredInObjectsBuilder( int index) { return getStoredInObjectsFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getStoredInObjectsOrBuilder( int index) { if (storedInObjectsBuilder_ == null) { return storedInObjects_.get(index); } else { return storedInObjectsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public java.util.List getStoredInObjectsOrBuilderList() { if (storedInObjectsBuilder_ != null) { return storedInObjectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(storedInObjects_); } } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder addStoredInObjectsBuilder() { return getStoredInObjectsFieldBuilder().addBuilder( io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance()); } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder addStoredInObjectsBuilder( int index) { return getStoredInObjectsFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance()); } /** * repeated .ray.rpc.ObjectReference stored_in_objects = 4 [json_name = "storedInObjects"]; */ public java.util.List getStoredInObjectsBuilderList() { return getStoredInObjectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> getStoredInObjectsFieldBuilder() { if (storedInObjectsBuilder_ == null) { storedInObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder>( storedInObjects_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); storedInObjects_ = null; } return storedInObjectsBuilder_; } private java.util.List containedInBorrowedIds_ = java.util.Collections.emptyList(); private void ensureContainedInBorrowedIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { containedInBorrowedIds_ = new java.util.ArrayList(containedInBorrowedIds_); bitField0_ |= 0x00000004; } } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @return A list containing the containedInBorrowedIds. */ public java.util.List getContainedInBorrowedIdsList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(containedInBorrowedIds_) : containedInBorrowedIds_; } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @return The count of containedInBorrowedIds. */ public int getContainedInBorrowedIdsCount() { return containedInBorrowedIds_.size(); } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @param index The index of the element to return. * @return The containedInBorrowedIds at the given index. */ public com.google.protobuf.ByteString getContainedInBorrowedIds(int index) { return containedInBorrowedIds_.get(index); } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @param index The index to set the value at. * @param value The containedInBorrowedIds to set. * @return This builder for chaining. */ public Builder setContainedInBorrowedIds( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureContainedInBorrowedIdsIsMutable(); containedInBorrowedIds_.set(index, value); onChanged(); return this; } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @param value The containedInBorrowedIds to add. * @return This builder for chaining. */ public Builder addContainedInBorrowedIds(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureContainedInBorrowedIdsIsMutable(); containedInBorrowedIds_.add(value); onChanged(); return this; } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @param values The containedInBorrowedIds to add. * @return This builder for chaining. */ public Builder addAllContainedInBorrowedIds( java.lang.Iterable values) { ensureContainedInBorrowedIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, containedInBorrowedIds_); onChanged(); return this; } /** * repeated bytes contained_in_borrowed_ids = 5 [json_name = "containedInBorrowedIds"]; * @return This builder for chaining. */ public Builder clearContainedInBorrowedIds() { containedInBorrowedIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List contains_ = java.util.Collections.emptyList(); private void ensureContainsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { contains_ = new java.util.ArrayList(contains_); bitField0_ |= 0x00000008; } } /** * repeated bytes contains = 6 [json_name = "contains"]; * @return A list containing the contains. */ public java.util.List getContainsList() { return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(contains_) : contains_; } /** * repeated bytes contains = 6 [json_name = "contains"]; * @return The count of contains. */ public int getContainsCount() { return contains_.size(); } /** * repeated bytes contains = 6 [json_name = "contains"]; * @param index The index of the element to return. * @return The contains at the given index. */ public com.google.protobuf.ByteString getContains(int index) { return contains_.get(index); } /** * repeated bytes contains = 6 [json_name = "contains"]; * @param index The index to set the value at. * @param value The contains to set. * @return This builder for chaining. */ public Builder setContains( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureContainsIsMutable(); contains_.set(index, value); onChanged(); return this; } /** * repeated bytes contains = 6 [json_name = "contains"]; * @param value The contains to add. * @return This builder for chaining. */ public Builder addContains(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureContainsIsMutable(); contains_.add(value); onChanged(); return this; } /** * repeated bytes contains = 6 [json_name = "contains"]; * @param values The contains to add. * @return This builder for chaining. */ public Builder addAllContains( java.lang.Iterable values) { ensureContainsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contains_); onChanged(); return this; } /** * repeated bytes contains = 6 [json_name = "contains"]; * @return This builder for chaining. */ public Builder clearContains() { contains_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); 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.ObjectReferenceCount) } // @@protoc_insertion_point(class_scope:ray.rpc.ObjectReferenceCount) private static final io.ray.runtime.generated.Common.ObjectReferenceCount DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ObjectReferenceCount(); } public static io.ray.runtime.generated.Common.ObjectReferenceCount getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectReferenceCount parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObjectReferenceCount(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.ObjectReferenceCount getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskArgOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.TaskArg) com.google.protobuf.MessageOrBuilder { /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; * @return Whether the objectRef field is set. */ boolean hasObjectRef(); /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; * @return The objectRef. */ io.ray.runtime.generated.Common.ObjectReference getObjectRef(); /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getObjectRefOrBuilder(); /** * bytes data = 2 [json_name = "data"]; * @return The data. */ com.google.protobuf.ByteString getData(); /** * bytes metadata = 3 [json_name = "metadata"]; * @return The metadata. */ com.google.protobuf.ByteString getMetadata(); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ java.util.List getNestedInlinedRefsList(); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ io.ray.runtime.generated.Common.ObjectReference getNestedInlinedRefs(int index); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ int getNestedInlinedRefsCount(); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ java.util.List getNestedInlinedRefsOrBuilderList(); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getNestedInlinedRefsOrBuilder( int index); } /** * Protobuf type {@code ray.rpc.TaskArg} */ public static final class TaskArg extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.TaskArg) TaskArgOrBuilder { private static final long serialVersionUID = 0L; // Use TaskArg.newBuilder() to construct. private TaskArg(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TaskArg() { data_ = com.google.protobuf.ByteString.EMPTY; metadata_ = com.google.protobuf.ByteString.EMPTY; nestedInlinedRefs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TaskArg(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TaskArg( 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: { io.ray.runtime.generated.Common.ObjectReference.Builder subBuilder = null; if (objectRef_ != null) { subBuilder = objectRef_.toBuilder(); } objectRef_ = input.readMessage(io.ray.runtime.generated.Common.ObjectReference.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(objectRef_); objectRef_ = subBuilder.buildPartial(); } break; } case 18: { data_ = input.readBytes(); break; } case 26: { metadata_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { nestedInlinedRefs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } nestedInlinedRefs_.add( input.readMessage(io.ray.runtime.generated.Common.ObjectReference.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)) { nestedInlinedRefs_ = java.util.Collections.unmodifiableList(nestedInlinedRefs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskArg_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskArg_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.TaskArg.class, io.ray.runtime.generated.Common.TaskArg.Builder.class); } public static final int OBJECT_REF_FIELD_NUMBER = 1; private io.ray.runtime.generated.Common.ObjectReference objectRef_; /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; * @return Whether the objectRef field is set. */ @java.lang.Override public boolean hasObjectRef() { return objectRef_ != null; } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; * @return The objectRef. */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReference getObjectRef() { return objectRef_ == null ? io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance() : objectRef_; } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getObjectRefOrBuilder() { return getObjectRef(); } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString data_; /** * bytes data = 2 [json_name = "data"]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int METADATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString metadata_; /** * bytes metadata = 3 [json_name = "metadata"]; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int NESTED_INLINED_REFS_FIELD_NUMBER = 4; private java.util.List nestedInlinedRefs_; /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public java.util.List getNestedInlinedRefsList() { return nestedInlinedRefs_; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public java.util.List getNestedInlinedRefsOrBuilderList() { return nestedInlinedRefs_; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public int getNestedInlinedRefsCount() { return nestedInlinedRefs_.size(); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReference getNestedInlinedRefs(int index) { return nestedInlinedRefs_.get(index); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getNestedInlinedRefsOrBuilder( int index) { return nestedInlinedRefs_.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 (objectRef_ != null) { output.writeMessage(1, getObjectRef()); } if (!data_.isEmpty()) { output.writeBytes(2, data_); } if (!metadata_.isEmpty()) { output.writeBytes(3, metadata_); } for (int i = 0; i < nestedInlinedRefs_.size(); i++) { output.writeMessage(4, nestedInlinedRefs_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (objectRef_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getObjectRef()); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, data_); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, metadata_); } for (int i = 0; i < nestedInlinedRefs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, nestedInlinedRefs_.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.TaskArg)) { return super.equals(obj); } io.ray.runtime.generated.Common.TaskArg other = (io.ray.runtime.generated.Common.TaskArg) obj; if (hasObjectRef() != other.hasObjectRef()) return false; if (hasObjectRef()) { if (!getObjectRef() .equals(other.getObjectRef())) return false; } if (!getData() .equals(other.getData())) return false; if (!getMetadata() .equals(other.getMetadata())) return false; if (!getNestedInlinedRefsList() .equals(other.getNestedInlinedRefsList())) 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 (hasObjectRef()) { hash = (37 * hash) + OBJECT_REF_FIELD_NUMBER; hash = (53 * hash) + getObjectRef().hashCode(); } hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); if (getNestedInlinedRefsCount() > 0) { hash = (37 * hash) + NESTED_INLINED_REFS_FIELD_NUMBER; hash = (53 * hash) + getNestedInlinedRefsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.TaskArg parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskArg 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.TaskArg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskArg 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.TaskArg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.TaskArg 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.TaskArg parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.TaskArg 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.TaskArg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.TaskArg 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.TaskArg 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.TaskArg 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.TaskArg 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.TaskArg} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.TaskArg) io.ray.runtime.generated.Common.TaskArgOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskArg_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskArg_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.TaskArg.class, io.ray.runtime.generated.Common.TaskArg.Builder.class); } // Construct using io.ray.runtime.generated.Common.TaskArg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNestedInlinedRefsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (objectRefBuilder_ == null) { objectRef_ = null; } else { objectRef_ = null; objectRefBuilder_ = null; } data_ = com.google.protobuf.ByteString.EMPTY; metadata_ = com.google.protobuf.ByteString.EMPTY; if (nestedInlinedRefsBuilder_ == null) { nestedInlinedRefs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nestedInlinedRefsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_TaskArg_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.TaskArg getDefaultInstanceForType() { return io.ray.runtime.generated.Common.TaskArg.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.TaskArg build() { io.ray.runtime.generated.Common.TaskArg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.TaskArg buildPartial() { io.ray.runtime.generated.Common.TaskArg result = new io.ray.runtime.generated.Common.TaskArg(this); int from_bitField0_ = bitField0_; if (objectRefBuilder_ == null) { result.objectRef_ = objectRef_; } else { result.objectRef_ = objectRefBuilder_.build(); } result.data_ = data_; result.metadata_ = metadata_; if (nestedInlinedRefsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { nestedInlinedRefs_ = java.util.Collections.unmodifiableList(nestedInlinedRefs_); bitField0_ = (bitField0_ & ~0x00000001); } result.nestedInlinedRefs_ = nestedInlinedRefs_; } else { result.nestedInlinedRefs_ = nestedInlinedRefsBuilder_.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.TaskArg) { return mergeFrom((io.ray.runtime.generated.Common.TaskArg)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.TaskArg other) { if (other == io.ray.runtime.generated.Common.TaskArg.getDefaultInstance()) return this; if (other.hasObjectRef()) { mergeObjectRef(other.getObjectRef()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } if (nestedInlinedRefsBuilder_ == null) { if (!other.nestedInlinedRefs_.isEmpty()) { if (nestedInlinedRefs_.isEmpty()) { nestedInlinedRefs_ = other.nestedInlinedRefs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.addAll(other.nestedInlinedRefs_); } onChanged(); } } else { if (!other.nestedInlinedRefs_.isEmpty()) { if (nestedInlinedRefsBuilder_.isEmpty()) { nestedInlinedRefsBuilder_.dispose(); nestedInlinedRefsBuilder_ = null; nestedInlinedRefs_ = other.nestedInlinedRefs_; bitField0_ = (bitField0_ & ~0x00000001); nestedInlinedRefsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNestedInlinedRefsFieldBuilder() : null; } else { nestedInlinedRefsBuilder_.addAllMessages(other.nestedInlinedRefs_); } } } 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.TaskArg parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.TaskArg) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.ray.runtime.generated.Common.ObjectReference objectRef_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> objectRefBuilder_; /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; * @return Whether the objectRef field is set. */ public boolean hasObjectRef() { return objectRefBuilder_ != null || objectRef_ != null; } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; * @return The objectRef. */ public io.ray.runtime.generated.Common.ObjectReference getObjectRef() { if (objectRefBuilder_ == null) { return objectRef_ == null ? io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance() : objectRef_; } else { return objectRefBuilder_.getMessage(); } } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ public Builder setObjectRef(io.ray.runtime.generated.Common.ObjectReference value) { if (objectRefBuilder_ == null) { if (value == null) { throw new NullPointerException(); } objectRef_ = value; onChanged(); } else { objectRefBuilder_.setMessage(value); } return this; } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ public Builder setObjectRef( io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (objectRefBuilder_ == null) { objectRef_ = builderForValue.build(); onChanged(); } else { objectRefBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ public Builder mergeObjectRef(io.ray.runtime.generated.Common.ObjectReference value) { if (objectRefBuilder_ == null) { if (objectRef_ != null) { objectRef_ = io.ray.runtime.generated.Common.ObjectReference.newBuilder(objectRef_).mergeFrom(value).buildPartial(); } else { objectRef_ = value; } onChanged(); } else { objectRefBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ public Builder clearObjectRef() { if (objectRefBuilder_ == null) { objectRef_ = null; onChanged(); } else { objectRef_ = null; objectRefBuilder_ = null; } return this; } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder getObjectRefBuilder() { onChanged(); return getObjectRefFieldBuilder().getBuilder(); } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getObjectRefOrBuilder() { if (objectRefBuilder_ != null) { return objectRefBuilder_.getMessageOrBuilder(); } else { return objectRef_ == null ? io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance() : objectRef_; } } /** * .ray.rpc.ObjectReference object_ref = 1 [json_name = "objectRef"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> getObjectRefFieldBuilder() { if (objectRefBuilder_ == null) { objectRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder>( getObjectRef(), getParentForChildren(), isClean()); objectRef_ = null; } return objectRefBuilder_; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 2 [json_name = "data"]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 2 [json_name = "data"]; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * bytes data = 2 [json_name = "data"]; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** * bytes metadata = 3 [json_name = "metadata"]; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * bytes metadata = 3 [json_name = "metadata"]; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * bytes metadata = 3 [json_name = "metadata"]; * @return This builder for chaining. */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private java.util.List nestedInlinedRefs_ = java.util.Collections.emptyList(); private void ensureNestedInlinedRefsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nestedInlinedRefs_ = new java.util.ArrayList(nestedInlinedRefs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> nestedInlinedRefsBuilder_; /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public java.util.List getNestedInlinedRefsList() { if (nestedInlinedRefsBuilder_ == null) { return java.util.Collections.unmodifiableList(nestedInlinedRefs_); } else { return nestedInlinedRefsBuilder_.getMessageList(); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public int getNestedInlinedRefsCount() { if (nestedInlinedRefsBuilder_ == null) { return nestedInlinedRefs_.size(); } else { return nestedInlinedRefsBuilder_.getCount(); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReference getNestedInlinedRefs(int index) { if (nestedInlinedRefsBuilder_ == null) { return nestedInlinedRefs_.get(index); } else { return nestedInlinedRefsBuilder_.getMessage(index); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder setNestedInlinedRefs( int index, io.ray.runtime.generated.Common.ObjectReference value) { if (nestedInlinedRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.set(index, value); onChanged(); } else { nestedInlinedRefsBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder setNestedInlinedRefs( int index, io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.set(index, builderForValue.build()); onChanged(); } else { nestedInlinedRefsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder addNestedInlinedRefs(io.ray.runtime.generated.Common.ObjectReference value) { if (nestedInlinedRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.add(value); onChanged(); } else { nestedInlinedRefsBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder addNestedInlinedRefs( int index, io.ray.runtime.generated.Common.ObjectReference value) { if (nestedInlinedRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.add(index, value); onChanged(); } else { nestedInlinedRefsBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder addNestedInlinedRefs( io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.add(builderForValue.build()); onChanged(); } else { nestedInlinedRefsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder addNestedInlinedRefs( int index, io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.add(index, builderForValue.build()); onChanged(); } else { nestedInlinedRefsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder addAllNestedInlinedRefs( java.lang.Iterable values) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nestedInlinedRefs_); onChanged(); } else { nestedInlinedRefsBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder clearNestedInlinedRefs() { if (nestedInlinedRefsBuilder_ == null) { nestedInlinedRefs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nestedInlinedRefsBuilder_.clear(); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public Builder removeNestedInlinedRefs(int index) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.remove(index); onChanged(); } else { nestedInlinedRefsBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder getNestedInlinedRefsBuilder( int index) { return getNestedInlinedRefsFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getNestedInlinedRefsOrBuilder( int index) { if (nestedInlinedRefsBuilder_ == null) { return nestedInlinedRefs_.get(index); } else { return nestedInlinedRefsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public java.util.List getNestedInlinedRefsOrBuilderList() { if (nestedInlinedRefsBuilder_ != null) { return nestedInlinedRefsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nestedInlinedRefs_); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder addNestedInlinedRefsBuilder() { return getNestedInlinedRefsFieldBuilder().addBuilder( io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance()); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder addNestedInlinedRefsBuilder( int index) { return getNestedInlinedRefsFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance()); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 4 [json_name = "nestedInlinedRefs"]; */ public java.util.List getNestedInlinedRefsBuilderList() { return getNestedInlinedRefsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> getNestedInlinedRefsFieldBuilder() { if (nestedInlinedRefsBuilder_ == null) { nestedInlinedRefsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder>( nestedInlinedRefs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nestedInlinedRefs_ = null; } return nestedInlinedRefsBuilder_; } @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.TaskArg) } // @@protoc_insertion_point(class_scope:ray.rpc.TaskArg) private static final io.ray.runtime.generated.Common.TaskArg DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.TaskArg(); } public static io.ray.runtime.generated.Common.TaskArg getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TaskArg parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TaskArg(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.TaskArg getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ReturnObjectOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ReturnObject) com.google.protobuf.MessageOrBuilder { /** * bytes object_id = 1 [json_name = "objectId"]; * @return The objectId. */ com.google.protobuf.ByteString getObjectId(); /** * bool in_plasma = 2 [json_name = "inPlasma"]; * @return The inPlasma. */ boolean getInPlasma(); /** * bytes data = 3 [json_name = "data"]; * @return The data. */ com.google.protobuf.ByteString getData(); /** * bytes metadata = 4 [json_name = "metadata"]; * @return The metadata. */ com.google.protobuf.ByteString getMetadata(); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ java.util.List getNestedInlinedRefsList(); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ io.ray.runtime.generated.Common.ObjectReference getNestedInlinedRefs(int index); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ int getNestedInlinedRefsCount(); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ java.util.List getNestedInlinedRefsOrBuilderList(); /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getNestedInlinedRefsOrBuilder( int index); /** * int64 size = 6 [json_name = "size"]; * @return The size. */ long getSize(); } /** * Protobuf type {@code ray.rpc.ReturnObject} */ public static final class ReturnObject extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ReturnObject) ReturnObjectOrBuilder { private static final long serialVersionUID = 0L; // Use ReturnObject.newBuilder() to construct. private ReturnObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReturnObject() { objectId_ = com.google.protobuf.ByteString.EMPTY; data_ = com.google.protobuf.ByteString.EMPTY; metadata_ = com.google.protobuf.ByteString.EMPTY; nestedInlinedRefs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ReturnObject(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ReturnObject( 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: { objectId_ = input.readBytes(); break; } case 16: { inPlasma_ = input.readBool(); break; } case 26: { data_ = input.readBytes(); break; } case 34: { metadata_ = input.readBytes(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { nestedInlinedRefs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } nestedInlinedRefs_.add( input.readMessage(io.ray.runtime.generated.Common.ObjectReference.parser(), extensionRegistry)); break; } case 48: { size_ = input.readInt64(); 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)) { nestedInlinedRefs_ = java.util.Collections.unmodifiableList(nestedInlinedRefs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ReturnObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ReturnObject_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ReturnObject.class, io.ray.runtime.generated.Common.ReturnObject.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 IN_PLASMA_FIELD_NUMBER = 2; private boolean inPlasma_; /** * bool in_plasma = 2 [json_name = "inPlasma"]; * @return The inPlasma. */ @java.lang.Override public boolean getInPlasma() { return inPlasma_; } public static final int DATA_FIELD_NUMBER = 3; private com.google.protobuf.ByteString data_; /** * bytes data = 3 [json_name = "data"]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int METADATA_FIELD_NUMBER = 4; private com.google.protobuf.ByteString metadata_; /** * bytes metadata = 4 [json_name = "metadata"]; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } public static final int NESTED_INLINED_REFS_FIELD_NUMBER = 5; private java.util.List nestedInlinedRefs_; /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public java.util.List getNestedInlinedRefsList() { return nestedInlinedRefs_; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public java.util.List getNestedInlinedRefsOrBuilderList() { return nestedInlinedRefs_; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public int getNestedInlinedRefsCount() { return nestedInlinedRefs_.size(); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReference getNestedInlinedRefs(int index) { return nestedInlinedRefs_.get(index); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getNestedInlinedRefsOrBuilder( int index) { return nestedInlinedRefs_.get(index); } public static final int SIZE_FIELD_NUMBER = 6; private long size_; /** * int64 size = 6 [json_name = "size"]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } 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 (inPlasma_ != false) { output.writeBool(2, inPlasma_); } if (!data_.isEmpty()) { output.writeBytes(3, data_); } if (!metadata_.isEmpty()) { output.writeBytes(4, metadata_); } for (int i = 0; i < nestedInlinedRefs_.size(); i++) { output.writeMessage(5, nestedInlinedRefs_.get(i)); } if (size_ != 0L) { output.writeInt64(6, size_); } 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 (inPlasma_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, inPlasma_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, data_); } if (!metadata_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, metadata_); } for (int i = 0; i < nestedInlinedRefs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, nestedInlinedRefs_.get(i)); } if (size_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, 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.ReturnObject)) { return super.equals(obj); } io.ray.runtime.generated.Common.ReturnObject other = (io.ray.runtime.generated.Common.ReturnObject) obj; if (!getObjectId() .equals(other.getObjectId())) return false; if (getInPlasma() != other.getInPlasma()) return false; if (!getData() .equals(other.getData())) return false; if (!getMetadata() .equals(other.getMetadata())) return false; if (!getNestedInlinedRefsList() .equals(other.getNestedInlinedRefsList())) return false; if (getSize() != other.getSize()) 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) + IN_PLASMA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getInPlasma()); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); if (getNestedInlinedRefsCount() > 0) { hash = (37 * hash) + NESTED_INLINED_REFS_FIELD_NUMBER; hash = (53 * hash) + getNestedInlinedRefsList().hashCode(); } hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ReturnObject parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ReturnObject 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.ReturnObject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ReturnObject 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.ReturnObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ReturnObject 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.ReturnObject parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ReturnObject 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.ReturnObject parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ReturnObject 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.ReturnObject 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.ReturnObject 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.ReturnObject 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.ReturnObject} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ReturnObject) io.ray.runtime.generated.Common.ReturnObjectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ReturnObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ReturnObject_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ReturnObject.class, io.ray.runtime.generated.Common.ReturnObject.Builder.class); } // Construct using io.ray.runtime.generated.Common.ReturnObject.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getNestedInlinedRefsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); objectId_ = com.google.protobuf.ByteString.EMPTY; inPlasma_ = false; data_ = com.google.protobuf.ByteString.EMPTY; metadata_ = com.google.protobuf.ByteString.EMPTY; if (nestedInlinedRefsBuilder_ == null) { nestedInlinedRefs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nestedInlinedRefsBuilder_.clear(); } size_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ReturnObject_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ReturnObject getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ReturnObject.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ReturnObject build() { io.ray.runtime.generated.Common.ReturnObject result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ReturnObject buildPartial() { io.ray.runtime.generated.Common.ReturnObject result = new io.ray.runtime.generated.Common.ReturnObject(this); int from_bitField0_ = bitField0_; result.objectId_ = objectId_; result.inPlasma_ = inPlasma_; result.data_ = data_; result.metadata_ = metadata_; if (nestedInlinedRefsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { nestedInlinedRefs_ = java.util.Collections.unmodifiableList(nestedInlinedRefs_); bitField0_ = (bitField0_ & ~0x00000001); } result.nestedInlinedRefs_ = nestedInlinedRefs_; } else { result.nestedInlinedRefs_ = nestedInlinedRefsBuilder_.build(); } result.size_ = size_; 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.ReturnObject) { return mergeFrom((io.ray.runtime.generated.Common.ReturnObject)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ReturnObject other) { if (other == io.ray.runtime.generated.Common.ReturnObject.getDefaultInstance()) return this; if (other.getObjectId() != com.google.protobuf.ByteString.EMPTY) { setObjectId(other.getObjectId()); } if (other.getInPlasma() != false) { setInPlasma(other.getInPlasma()); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.getMetadata() != com.google.protobuf.ByteString.EMPTY) { setMetadata(other.getMetadata()); } if (nestedInlinedRefsBuilder_ == null) { if (!other.nestedInlinedRefs_.isEmpty()) { if (nestedInlinedRefs_.isEmpty()) { nestedInlinedRefs_ = other.nestedInlinedRefs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.addAll(other.nestedInlinedRefs_); } onChanged(); } } else { if (!other.nestedInlinedRefs_.isEmpty()) { if (nestedInlinedRefsBuilder_.isEmpty()) { nestedInlinedRefsBuilder_.dispose(); nestedInlinedRefsBuilder_ = null; nestedInlinedRefs_ = other.nestedInlinedRefs_; bitField0_ = (bitField0_ & ~0x00000001); nestedInlinedRefsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNestedInlinedRefsFieldBuilder() : null; } else { nestedInlinedRefsBuilder_.addAllMessages(other.nestedInlinedRefs_); } } } if (other.getSize() != 0L) { setSize(other.getSize()); } 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.ReturnObject parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ReturnObject) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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 inPlasma_ ; /** * bool in_plasma = 2 [json_name = "inPlasma"]; * @return The inPlasma. */ @java.lang.Override public boolean getInPlasma() { return inPlasma_; } /** * bool in_plasma = 2 [json_name = "inPlasma"]; * @param value The inPlasma to set. * @return This builder for chaining. */ public Builder setInPlasma(boolean value) { inPlasma_ = value; onChanged(); return this; } /** * bool in_plasma = 2 [json_name = "inPlasma"]; * @return This builder for chaining. */ public Builder clearInPlasma() { inPlasma_ = false; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 3 [json_name = "data"]; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 3 [json_name = "data"]; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * bytes data = 3 [json_name = "data"]; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private com.google.protobuf.ByteString metadata_ = com.google.protobuf.ByteString.EMPTY; /** * bytes metadata = 4 [json_name = "metadata"]; * @return The metadata. */ @java.lang.Override public com.google.protobuf.ByteString getMetadata() { return metadata_; } /** * bytes metadata = 4 [json_name = "metadata"]; * @param value The metadata to set. * @return This builder for chaining. */ public Builder setMetadata(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); return this; } /** * bytes metadata = 4 [json_name = "metadata"]; * @return This builder for chaining. */ public Builder clearMetadata() { metadata_ = getDefaultInstance().getMetadata(); onChanged(); return this; } private java.util.List nestedInlinedRefs_ = java.util.Collections.emptyList(); private void ensureNestedInlinedRefsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { nestedInlinedRefs_ = new java.util.ArrayList(nestedInlinedRefs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> nestedInlinedRefsBuilder_; /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public java.util.List getNestedInlinedRefsList() { if (nestedInlinedRefsBuilder_ == null) { return java.util.Collections.unmodifiableList(nestedInlinedRefs_); } else { return nestedInlinedRefsBuilder_.getMessageList(); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public int getNestedInlinedRefsCount() { if (nestedInlinedRefsBuilder_ == null) { return nestedInlinedRefs_.size(); } else { return nestedInlinedRefsBuilder_.getCount(); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReference getNestedInlinedRefs(int index) { if (nestedInlinedRefsBuilder_ == null) { return nestedInlinedRefs_.get(index); } else { return nestedInlinedRefsBuilder_.getMessage(index); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder setNestedInlinedRefs( int index, io.ray.runtime.generated.Common.ObjectReference value) { if (nestedInlinedRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.set(index, value); onChanged(); } else { nestedInlinedRefsBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder setNestedInlinedRefs( int index, io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.set(index, builderForValue.build()); onChanged(); } else { nestedInlinedRefsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder addNestedInlinedRefs(io.ray.runtime.generated.Common.ObjectReference value) { if (nestedInlinedRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.add(value); onChanged(); } else { nestedInlinedRefsBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder addNestedInlinedRefs( int index, io.ray.runtime.generated.Common.ObjectReference value) { if (nestedInlinedRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.add(index, value); onChanged(); } else { nestedInlinedRefsBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder addNestedInlinedRefs( io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.add(builderForValue.build()); onChanged(); } else { nestedInlinedRefsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder addNestedInlinedRefs( int index, io.ray.runtime.generated.Common.ObjectReference.Builder builderForValue) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.add(index, builderForValue.build()); onChanged(); } else { nestedInlinedRefsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder addAllNestedInlinedRefs( java.lang.Iterable values) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, nestedInlinedRefs_); onChanged(); } else { nestedInlinedRefsBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder clearNestedInlinedRefs() { if (nestedInlinedRefsBuilder_ == null) { nestedInlinedRefs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nestedInlinedRefsBuilder_.clear(); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public Builder removeNestedInlinedRefs(int index) { if (nestedInlinedRefsBuilder_ == null) { ensureNestedInlinedRefsIsMutable(); nestedInlinedRefs_.remove(index); onChanged(); } else { nestedInlinedRefsBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder getNestedInlinedRefsBuilder( int index) { return getNestedInlinedRefsFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReferenceOrBuilder getNestedInlinedRefsOrBuilder( int index) { if (nestedInlinedRefsBuilder_ == null) { return nestedInlinedRefs_.get(index); } else { return nestedInlinedRefsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public java.util.List getNestedInlinedRefsOrBuilderList() { if (nestedInlinedRefsBuilder_ != null) { return nestedInlinedRefsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(nestedInlinedRefs_); } } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder addNestedInlinedRefsBuilder() { return getNestedInlinedRefsFieldBuilder().addBuilder( io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance()); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public io.ray.runtime.generated.Common.ObjectReference.Builder addNestedInlinedRefsBuilder( int index) { return getNestedInlinedRefsFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.ObjectReference.getDefaultInstance()); } /** * repeated .ray.rpc.ObjectReference nested_inlined_refs = 5 [json_name = "nestedInlinedRefs"]; */ public java.util.List getNestedInlinedRefsBuilderList() { return getNestedInlinedRefsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder> getNestedInlinedRefsFieldBuilder() { if (nestedInlinedRefsBuilder_ == null) { nestedInlinedRefsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectReference, io.ray.runtime.generated.Common.ObjectReference.Builder, io.ray.runtime.generated.Common.ObjectReferenceOrBuilder>( nestedInlinedRefs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nestedInlinedRefs_ = null; } return nestedInlinedRefsBuilder_; } private long size_ ; /** * int64 size = 6 [json_name = "size"]; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** * int64 size = 6 [json_name = "size"]; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { size_ = value; onChanged(); return this; } /** * int64 size = 6 [json_name = "size"]; * @return This builder for chaining. */ public Builder clearSize() { size_ = 0L; 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.ReturnObject) } // @@protoc_insertion_point(class_scope:ray.rpc.ReturnObject) private static final io.ray.runtime.generated.Common.ReturnObject DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ReturnObject(); } public static io.ray.runtime.generated.Common.ReturnObject getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReturnObject parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ReturnObject(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.ReturnObject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActorCreationTaskSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ActorCreationTaskSpec) com.google.protobuf.MessageOrBuilder { /** * bytes actor_id = 2 [json_name = "actorId"]; * @return The actorId. */ com.google.protobuf.ByteString getActorId(); /** * int64 max_actor_restarts = 3 [json_name = "maxActorRestarts"]; * @return The maxActorRestarts. */ long getMaxActorRestarts(); /** * int64 max_task_retries = 4 [json_name = "maxTaskRetries"]; * @return The maxTaskRetries. */ long getMaxTaskRetries(); /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @return A list containing the dynamicWorkerOptions. */ java.util.List getDynamicWorkerOptionsList(); /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @return The count of dynamicWorkerOptions. */ int getDynamicWorkerOptionsCount(); /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param index The index of the element to return. * @return The dynamicWorkerOptions at the given index. */ java.lang.String getDynamicWorkerOptions(int index); /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param index The index of the value to return. * @return The bytes of the dynamicWorkerOptions at the given index. */ com.google.protobuf.ByteString getDynamicWorkerOptionsBytes(int index); /** * int32 max_concurrency = 6 [json_name = "maxConcurrency"]; * @return The maxConcurrency. */ int getMaxConcurrency(); /** * bool is_detached = 7 [json_name = "isDetached"]; * @return The isDetached. */ boolean getIsDetached(); /** * string name = 8 [json_name = "name"]; * @return The name. */ java.lang.String getName(); /** * string name = 8 [json_name = "name"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string ray_namespace = 9 [json_name = "rayNamespace"]; * @return The rayNamespace. */ java.lang.String getRayNamespace(); /** * string ray_namespace = 9 [json_name = "rayNamespace"]; * @return The bytes for rayNamespace. */ com.google.protobuf.ByteString getRayNamespaceBytes(); /** * bool is_asyncio = 10 [json_name = "isAsyncio"]; * @return The isAsyncio. */ boolean getIsAsyncio(); /** * string extension_data = 11 [json_name = "extensionData"]; * @return The extensionData. */ java.lang.String getExtensionData(); /** * string extension_data = 11 [json_name = "extensionData"]; * @return The bytes for extensionData. */ com.google.protobuf.ByteString getExtensionDataBytes(); /** * bytes serialized_actor_handle = 12 [json_name = "serializedActorHandle"]; * @return The serializedActorHandle. */ com.google.protobuf.ByteString getSerializedActorHandle(); /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ java.util.List getConcurrencyGroupsList(); /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ io.ray.runtime.generated.Common.ConcurrencyGroup getConcurrencyGroups(int index); /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ int getConcurrencyGroupsCount(); /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ java.util.List getConcurrencyGroupsOrBuilderList(); /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ io.ray.runtime.generated.Common.ConcurrencyGroupOrBuilder getConcurrencyGroupsOrBuilder( int index); /** * bool execute_out_of_order = 14 [json_name = "executeOutOfOrder"]; * @return The executeOutOfOrder. */ boolean getExecuteOutOfOrder(); /** * int32 max_pending_calls = 15 [json_name = "maxPendingCalls"]; * @return The maxPendingCalls. */ int getMaxPendingCalls(); } /** * Protobuf type {@code ray.rpc.ActorCreationTaskSpec} */ public static final class ActorCreationTaskSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ActorCreationTaskSpec) ActorCreationTaskSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ActorCreationTaskSpec.newBuilder() to construct. private ActorCreationTaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActorCreationTaskSpec() { actorId_ = com.google.protobuf.ByteString.EMPTY; dynamicWorkerOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; name_ = ""; rayNamespace_ = ""; extensionData_ = ""; serializedActorHandle_ = com.google.protobuf.ByteString.EMPTY; concurrencyGroups_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActorCreationTaskSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ActorCreationTaskSpec( 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: { actorId_ = input.readBytes(); break; } case 24: { maxActorRestarts_ = input.readInt64(); break; } case 32: { maxTaskRetries_ = input.readInt64(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { dynamicWorkerOptions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } dynamicWorkerOptions_.add(s); break; } case 48: { maxConcurrency_ = input.readInt32(); break; } case 56: { isDetached_ = input.readBool(); break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); rayNamespace_ = s; break; } case 80: { isAsyncio_ = input.readBool(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); extensionData_ = s; break; } case 98: { serializedActorHandle_ = input.readBytes(); break; } case 106: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { concurrencyGroups_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } concurrencyGroups_.add( input.readMessage(io.ray.runtime.generated.Common.ConcurrencyGroup.parser(), extensionRegistry)); break; } case 112: { executeOutOfOrder_ = input.readBool(); break; } case 120: { maxPendingCalls_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { dynamicWorkerOptions_ = dynamicWorkerOptions_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) != 0)) { concurrencyGroups_ = java.util.Collections.unmodifiableList(concurrencyGroups_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorCreationTaskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorCreationTaskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ActorCreationTaskSpec.class, io.ray.runtime.generated.Common.ActorCreationTaskSpec.Builder.class); } public static final int ACTOR_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString actorId_; /** * bytes actor_id = 2 [json_name = "actorId"]; * @return The actorId. */ @java.lang.Override public com.google.protobuf.ByteString getActorId() { return actorId_; } public static final int MAX_ACTOR_RESTARTS_FIELD_NUMBER = 3; private long maxActorRestarts_; /** * int64 max_actor_restarts = 3 [json_name = "maxActorRestarts"]; * @return The maxActorRestarts. */ @java.lang.Override public long getMaxActorRestarts() { return maxActorRestarts_; } public static final int MAX_TASK_RETRIES_FIELD_NUMBER = 4; private long maxTaskRetries_; /** * int64 max_task_retries = 4 [json_name = "maxTaskRetries"]; * @return The maxTaskRetries. */ @java.lang.Override public long getMaxTaskRetries() { return maxTaskRetries_; } public static final int DYNAMIC_WORKER_OPTIONS_FIELD_NUMBER = 5; private com.google.protobuf.LazyStringList dynamicWorkerOptions_; /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @return A list containing the dynamicWorkerOptions. */ public com.google.protobuf.ProtocolStringList getDynamicWorkerOptionsList() { return dynamicWorkerOptions_; } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @return The count of dynamicWorkerOptions. */ public int getDynamicWorkerOptionsCount() { return dynamicWorkerOptions_.size(); } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param index The index of the element to return. * @return The dynamicWorkerOptions at the given index. */ public java.lang.String getDynamicWorkerOptions(int index) { return dynamicWorkerOptions_.get(index); } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param index The index of the value to return. * @return The bytes of the dynamicWorkerOptions at the given index. */ public com.google.protobuf.ByteString getDynamicWorkerOptionsBytes(int index) { return dynamicWorkerOptions_.getByteString(index); } public static final int MAX_CONCURRENCY_FIELD_NUMBER = 6; private int maxConcurrency_; /** * int32 max_concurrency = 6 [json_name = "maxConcurrency"]; * @return The maxConcurrency. */ @java.lang.Override public int getMaxConcurrency() { return maxConcurrency_; } public static final int IS_DETACHED_FIELD_NUMBER = 7; private boolean isDetached_; /** * bool is_detached = 7 [json_name = "isDetached"]; * @return The isDetached. */ @java.lang.Override public boolean getIsDetached() { return isDetached_; } public static final int NAME_FIELD_NUMBER = 8; private volatile java.lang.Object name_; /** * string name = 8 [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 = 8 [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 = 9; private volatile java.lang.Object rayNamespace_; /** * string ray_namespace = 9 [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 = 9 [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 IS_ASYNCIO_FIELD_NUMBER = 10; private boolean isAsyncio_; /** * bool is_asyncio = 10 [json_name = "isAsyncio"]; * @return The isAsyncio. */ @java.lang.Override public boolean getIsAsyncio() { return isAsyncio_; } public static final int EXTENSION_DATA_FIELD_NUMBER = 11; private volatile java.lang.Object extensionData_; /** * string extension_data = 11 [json_name = "extensionData"]; * @return The extensionData. */ @java.lang.Override public java.lang.String getExtensionData() { java.lang.Object ref = extensionData_; 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(); extensionData_ = s; return s; } } /** * string extension_data = 11 [json_name = "extensionData"]; * @return The bytes for extensionData. */ @java.lang.Override public com.google.protobuf.ByteString getExtensionDataBytes() { java.lang.Object ref = extensionData_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extensionData_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERIALIZED_ACTOR_HANDLE_FIELD_NUMBER = 12; private com.google.protobuf.ByteString serializedActorHandle_; /** * bytes serialized_actor_handle = 12 [json_name = "serializedActorHandle"]; * @return The serializedActorHandle. */ @java.lang.Override public com.google.protobuf.ByteString getSerializedActorHandle() { return serializedActorHandle_; } public static final int CONCURRENCY_GROUPS_FIELD_NUMBER = 13; private java.util.List concurrencyGroups_; /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ @java.lang.Override public java.util.List getConcurrencyGroupsList() { return concurrencyGroups_; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ @java.lang.Override public java.util.List getConcurrencyGroupsOrBuilderList() { return concurrencyGroups_; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ @java.lang.Override public int getConcurrencyGroupsCount() { return concurrencyGroups_.size(); } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ConcurrencyGroup getConcurrencyGroups(int index) { return concurrencyGroups_.get(index); } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ConcurrencyGroupOrBuilder getConcurrencyGroupsOrBuilder( int index) { return concurrencyGroups_.get(index); } public static final int EXECUTE_OUT_OF_ORDER_FIELD_NUMBER = 14; private boolean executeOutOfOrder_; /** * bool execute_out_of_order = 14 [json_name = "executeOutOfOrder"]; * @return The executeOutOfOrder. */ @java.lang.Override public boolean getExecuteOutOfOrder() { return executeOutOfOrder_; } public static final int MAX_PENDING_CALLS_FIELD_NUMBER = 15; private int maxPendingCalls_; /** * int32 max_pending_calls = 15 [json_name = "maxPendingCalls"]; * @return The maxPendingCalls. */ @java.lang.Override public int getMaxPendingCalls() { return maxPendingCalls_; } 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 (!actorId_.isEmpty()) { output.writeBytes(2, actorId_); } if (maxActorRestarts_ != 0L) { output.writeInt64(3, maxActorRestarts_); } if (maxTaskRetries_ != 0L) { output.writeInt64(4, maxTaskRetries_); } for (int i = 0; i < dynamicWorkerOptions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dynamicWorkerOptions_.getRaw(i)); } if (maxConcurrency_ != 0) { output.writeInt32(6, maxConcurrency_); } if (isDetached_ != false) { output.writeBool(7, isDetached_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rayNamespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, rayNamespace_); } if (isAsyncio_ != false) { output.writeBool(10, isAsyncio_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(extensionData_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, extensionData_); } if (!serializedActorHandle_.isEmpty()) { output.writeBytes(12, serializedActorHandle_); } for (int i = 0; i < concurrencyGroups_.size(); i++) { output.writeMessage(13, concurrencyGroups_.get(i)); } if (executeOutOfOrder_ != false) { output.writeBool(14, executeOutOfOrder_); } if (maxPendingCalls_ != 0) { output.writeInt32(15, maxPendingCalls_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!actorId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, actorId_); } if (maxActorRestarts_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, maxActorRestarts_); } if (maxTaskRetries_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, maxTaskRetries_); } { int dataSize = 0; for (int i = 0; i < dynamicWorkerOptions_.size(); i++) { dataSize += computeStringSizeNoTag(dynamicWorkerOptions_.getRaw(i)); } size += dataSize; size += 1 * getDynamicWorkerOptionsList().size(); } if (maxConcurrency_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, maxConcurrency_); } if (isDetached_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isDetached_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rayNamespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, rayNamespace_); } if (isAsyncio_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, isAsyncio_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(extensionData_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, extensionData_); } if (!serializedActorHandle_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, serializedActorHandle_); } for (int i = 0; i < concurrencyGroups_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, concurrencyGroups_.get(i)); } if (executeOutOfOrder_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, executeOutOfOrder_); } if (maxPendingCalls_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, maxPendingCalls_); } 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.ActorCreationTaskSpec)) { return super.equals(obj); } io.ray.runtime.generated.Common.ActorCreationTaskSpec other = (io.ray.runtime.generated.Common.ActorCreationTaskSpec) obj; if (!getActorId() .equals(other.getActorId())) return false; if (getMaxActorRestarts() != other.getMaxActorRestarts()) return false; if (getMaxTaskRetries() != other.getMaxTaskRetries()) return false; if (!getDynamicWorkerOptionsList() .equals(other.getDynamicWorkerOptionsList())) return false; if (getMaxConcurrency() != other.getMaxConcurrency()) return false; if (getIsDetached() != other.getIsDetached()) return false; if (!getName() .equals(other.getName())) return false; if (!getRayNamespace() .equals(other.getRayNamespace())) return false; if (getIsAsyncio() != other.getIsAsyncio()) return false; if (!getExtensionData() .equals(other.getExtensionData())) return false; if (!getSerializedActorHandle() .equals(other.getSerializedActorHandle())) return false; if (!getConcurrencyGroupsList() .equals(other.getConcurrencyGroupsList())) return false; if (getExecuteOutOfOrder() != other.getExecuteOutOfOrder()) return false; if (getMaxPendingCalls() != other.getMaxPendingCalls()) 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) + ACTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getActorId().hashCode(); hash = (37 * hash) + MAX_ACTOR_RESTARTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxActorRestarts()); hash = (37 * hash) + MAX_TASK_RETRIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxTaskRetries()); if (getDynamicWorkerOptionsCount() > 0) { hash = (37 * hash) + DYNAMIC_WORKER_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getDynamicWorkerOptionsList().hashCode(); } hash = (37 * hash) + MAX_CONCURRENCY_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrency(); hash = (37 * hash) + IS_DETACHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsDetached()); 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) + IS_ASYNCIO_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsAsyncio()); hash = (37 * hash) + EXTENSION_DATA_FIELD_NUMBER; hash = (53 * hash) + getExtensionData().hashCode(); hash = (37 * hash) + SERIALIZED_ACTOR_HANDLE_FIELD_NUMBER; hash = (53 * hash) + getSerializedActorHandle().hashCode(); if (getConcurrencyGroupsCount() > 0) { hash = (37 * hash) + CONCURRENCY_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getConcurrencyGroupsList().hashCode(); } hash = (37 * hash) + EXECUTE_OUT_OF_ORDER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getExecuteOutOfOrder()); hash = (37 * hash) + MAX_PENDING_CALLS_FIELD_NUMBER; hash = (53 * hash) + getMaxPendingCalls(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ActorCreationTaskSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ActorCreationTaskSpec 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.ActorCreationTaskSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ActorCreationTaskSpec 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.ActorCreationTaskSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ActorCreationTaskSpec 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.ActorCreationTaskSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ActorCreationTaskSpec 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.ActorCreationTaskSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ActorCreationTaskSpec 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.ActorCreationTaskSpec 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.ActorCreationTaskSpec 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.ActorCreationTaskSpec 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.ActorCreationTaskSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ActorCreationTaskSpec) io.ray.runtime.generated.Common.ActorCreationTaskSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorCreationTaskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorCreationTaskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ActorCreationTaskSpec.class, io.ray.runtime.generated.Common.ActorCreationTaskSpec.Builder.class); } // Construct using io.ray.runtime.generated.Common.ActorCreationTaskSpec.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConcurrencyGroupsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); actorId_ = com.google.protobuf.ByteString.EMPTY; maxActorRestarts_ = 0L; maxTaskRetries_ = 0L; dynamicWorkerOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); maxConcurrency_ = 0; isDetached_ = false; name_ = ""; rayNamespace_ = ""; isAsyncio_ = false; extensionData_ = ""; serializedActorHandle_ = com.google.protobuf.ByteString.EMPTY; if (concurrencyGroupsBuilder_ == null) { concurrencyGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { concurrencyGroupsBuilder_.clear(); } executeOutOfOrder_ = false; maxPendingCalls_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorCreationTaskSpec_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ActorCreationTaskSpec getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ActorCreationTaskSpec.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ActorCreationTaskSpec build() { io.ray.runtime.generated.Common.ActorCreationTaskSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ActorCreationTaskSpec buildPartial() { io.ray.runtime.generated.Common.ActorCreationTaskSpec result = new io.ray.runtime.generated.Common.ActorCreationTaskSpec(this); int from_bitField0_ = bitField0_; result.actorId_ = actorId_; result.maxActorRestarts_ = maxActorRestarts_; result.maxTaskRetries_ = maxTaskRetries_; if (((bitField0_ & 0x00000001) != 0)) { dynamicWorkerOptions_ = dynamicWorkerOptions_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.dynamicWorkerOptions_ = dynamicWorkerOptions_; result.maxConcurrency_ = maxConcurrency_; result.isDetached_ = isDetached_; result.name_ = name_; result.rayNamespace_ = rayNamespace_; result.isAsyncio_ = isAsyncio_; result.extensionData_ = extensionData_; result.serializedActorHandle_ = serializedActorHandle_; if (concurrencyGroupsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { concurrencyGroups_ = java.util.Collections.unmodifiableList(concurrencyGroups_); bitField0_ = (bitField0_ & ~0x00000002); } result.concurrencyGroups_ = concurrencyGroups_; } else { result.concurrencyGroups_ = concurrencyGroupsBuilder_.build(); } result.executeOutOfOrder_ = executeOutOfOrder_; result.maxPendingCalls_ = maxPendingCalls_; 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.ActorCreationTaskSpec) { return mergeFrom((io.ray.runtime.generated.Common.ActorCreationTaskSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ActorCreationTaskSpec other) { if (other == io.ray.runtime.generated.Common.ActorCreationTaskSpec.getDefaultInstance()) return this; if (other.getActorId() != com.google.protobuf.ByteString.EMPTY) { setActorId(other.getActorId()); } if (other.getMaxActorRestarts() != 0L) { setMaxActorRestarts(other.getMaxActorRestarts()); } if (other.getMaxTaskRetries() != 0L) { setMaxTaskRetries(other.getMaxTaskRetries()); } if (!other.dynamicWorkerOptions_.isEmpty()) { if (dynamicWorkerOptions_.isEmpty()) { dynamicWorkerOptions_ = other.dynamicWorkerOptions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDynamicWorkerOptionsIsMutable(); dynamicWorkerOptions_.addAll(other.dynamicWorkerOptions_); } onChanged(); } if (other.getMaxConcurrency() != 0) { setMaxConcurrency(other.getMaxConcurrency()); } if (other.getIsDetached() != false) { setIsDetached(other.getIsDetached()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getRayNamespace().isEmpty()) { rayNamespace_ = other.rayNamespace_; onChanged(); } if (other.getIsAsyncio() != false) { setIsAsyncio(other.getIsAsyncio()); } if (!other.getExtensionData().isEmpty()) { extensionData_ = other.extensionData_; onChanged(); } if (other.getSerializedActorHandle() != com.google.protobuf.ByteString.EMPTY) { setSerializedActorHandle(other.getSerializedActorHandle()); } if (concurrencyGroupsBuilder_ == null) { if (!other.concurrencyGroups_.isEmpty()) { if (concurrencyGroups_.isEmpty()) { concurrencyGroups_ = other.concurrencyGroups_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureConcurrencyGroupsIsMutable(); concurrencyGroups_.addAll(other.concurrencyGroups_); } onChanged(); } } else { if (!other.concurrencyGroups_.isEmpty()) { if (concurrencyGroupsBuilder_.isEmpty()) { concurrencyGroupsBuilder_.dispose(); concurrencyGroupsBuilder_ = null; concurrencyGroups_ = other.concurrencyGroups_; bitField0_ = (bitField0_ & ~0x00000002); concurrencyGroupsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConcurrencyGroupsFieldBuilder() : null; } else { concurrencyGroupsBuilder_.addAllMessages(other.concurrencyGroups_); } } } if (other.getExecuteOutOfOrder() != false) { setExecuteOutOfOrder(other.getExecuteOutOfOrder()); } if (other.getMaxPendingCalls() != 0) { setMaxPendingCalls(other.getMaxPendingCalls()); } 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.ActorCreationTaskSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ActorCreationTaskSpec) 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; /** * bytes actor_id = 2 [json_name = "actorId"]; * @return The actorId. */ @java.lang.Override public com.google.protobuf.ByteString getActorId() { return actorId_; } /** * bytes actor_id = 2 [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 = 2 [json_name = "actorId"]; * @return This builder for chaining. */ public Builder clearActorId() { actorId_ = getDefaultInstance().getActorId(); onChanged(); return this; } private long maxActorRestarts_ ; /** * int64 max_actor_restarts = 3 [json_name = "maxActorRestarts"]; * @return The maxActorRestarts. */ @java.lang.Override public long getMaxActorRestarts() { return maxActorRestarts_; } /** * int64 max_actor_restarts = 3 [json_name = "maxActorRestarts"]; * @param value The maxActorRestarts to set. * @return This builder for chaining. */ public Builder setMaxActorRestarts(long value) { maxActorRestarts_ = value; onChanged(); return this; } /** * int64 max_actor_restarts = 3 [json_name = "maxActorRestarts"]; * @return This builder for chaining. */ public Builder clearMaxActorRestarts() { maxActorRestarts_ = 0L; onChanged(); return this; } private long maxTaskRetries_ ; /** * int64 max_task_retries = 4 [json_name = "maxTaskRetries"]; * @return The maxTaskRetries. */ @java.lang.Override public long getMaxTaskRetries() { return maxTaskRetries_; } /** * int64 max_task_retries = 4 [json_name = "maxTaskRetries"]; * @param value The maxTaskRetries to set. * @return This builder for chaining. */ public Builder setMaxTaskRetries(long value) { maxTaskRetries_ = value; onChanged(); return this; } /** * int64 max_task_retries = 4 [json_name = "maxTaskRetries"]; * @return This builder for chaining. */ public Builder clearMaxTaskRetries() { maxTaskRetries_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringList dynamicWorkerOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDynamicWorkerOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { dynamicWorkerOptions_ = new com.google.protobuf.LazyStringArrayList(dynamicWorkerOptions_); bitField0_ |= 0x00000001; } } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @return A list containing the dynamicWorkerOptions. */ public com.google.protobuf.ProtocolStringList getDynamicWorkerOptionsList() { return dynamicWorkerOptions_.getUnmodifiableView(); } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @return The count of dynamicWorkerOptions. */ public int getDynamicWorkerOptionsCount() { return dynamicWorkerOptions_.size(); } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param index The index of the element to return. * @return The dynamicWorkerOptions at the given index. */ public java.lang.String getDynamicWorkerOptions(int index) { return dynamicWorkerOptions_.get(index); } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param index The index of the value to return. * @return The bytes of the dynamicWorkerOptions at the given index. */ public com.google.protobuf.ByteString getDynamicWorkerOptionsBytes(int index) { return dynamicWorkerOptions_.getByteString(index); } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param index The index to set the value at. * @param value The dynamicWorkerOptions to set. * @return This builder for chaining. */ public Builder setDynamicWorkerOptions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDynamicWorkerOptionsIsMutable(); dynamicWorkerOptions_.set(index, value); onChanged(); return this; } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param value The dynamicWorkerOptions to add. * @return This builder for chaining. */ public Builder addDynamicWorkerOptions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDynamicWorkerOptionsIsMutable(); dynamicWorkerOptions_.add(value); onChanged(); return this; } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param values The dynamicWorkerOptions to add. * @return This builder for chaining. */ public Builder addAllDynamicWorkerOptions( java.lang.Iterable values) { ensureDynamicWorkerOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dynamicWorkerOptions_); onChanged(); return this; } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @return This builder for chaining. */ public Builder clearDynamicWorkerOptions() { dynamicWorkerOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string dynamic_worker_options = 5 [json_name = "dynamicWorkerOptions"]; * @param value The bytes of the dynamicWorkerOptions to add. * @return This builder for chaining. */ public Builder addDynamicWorkerOptionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureDynamicWorkerOptionsIsMutable(); dynamicWorkerOptions_.add(value); onChanged(); return this; } private int maxConcurrency_ ; /** * int32 max_concurrency = 6 [json_name = "maxConcurrency"]; * @return The maxConcurrency. */ @java.lang.Override public int getMaxConcurrency() { return maxConcurrency_; } /** * int32 max_concurrency = 6 [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 = 6 [json_name = "maxConcurrency"]; * @return This builder for chaining. */ public Builder clearMaxConcurrency() { maxConcurrency_ = 0; onChanged(); return this; } private boolean isDetached_ ; /** * bool is_detached = 7 [json_name = "isDetached"]; * @return The isDetached. */ @java.lang.Override public boolean getIsDetached() { return isDetached_; } /** * bool is_detached = 7 [json_name = "isDetached"]; * @param value The isDetached to set. * @return This builder for chaining. */ public Builder setIsDetached(boolean value) { isDetached_ = value; onChanged(); return this; } /** * bool is_detached = 7 [json_name = "isDetached"]; * @return This builder for chaining. */ public Builder clearIsDetached() { isDetached_ = false; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 8 [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 = 8 [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 = 8 [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 = 8 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 8 [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 = 9 [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 = 9 [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 = 9 [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 = 9 [json_name = "rayNamespace"]; * @return This builder for chaining. */ public Builder clearRayNamespace() { rayNamespace_ = getDefaultInstance().getRayNamespace(); onChanged(); return this; } /** * string ray_namespace = 9 [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 boolean isAsyncio_ ; /** * bool is_asyncio = 10 [json_name = "isAsyncio"]; * @return The isAsyncio. */ @java.lang.Override public boolean getIsAsyncio() { return isAsyncio_; } /** * bool is_asyncio = 10 [json_name = "isAsyncio"]; * @param value The isAsyncio to set. * @return This builder for chaining. */ public Builder setIsAsyncio(boolean value) { isAsyncio_ = value; onChanged(); return this; } /** * bool is_asyncio = 10 [json_name = "isAsyncio"]; * @return This builder for chaining. */ public Builder clearIsAsyncio() { isAsyncio_ = false; onChanged(); return this; } private java.lang.Object extensionData_ = ""; /** * string extension_data = 11 [json_name = "extensionData"]; * @return The extensionData. */ public java.lang.String getExtensionData() { java.lang.Object ref = extensionData_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extensionData_ = s; return s; } else { return (java.lang.String) ref; } } /** * string extension_data = 11 [json_name = "extensionData"]; * @return The bytes for extensionData. */ public com.google.protobuf.ByteString getExtensionDataBytes() { java.lang.Object ref = extensionData_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extensionData_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string extension_data = 11 [json_name = "extensionData"]; * @param value The extensionData to set. * @return This builder for chaining. */ public Builder setExtensionData( java.lang.String value) { if (value == null) { throw new NullPointerException(); } extensionData_ = value; onChanged(); return this; } /** * string extension_data = 11 [json_name = "extensionData"]; * @return This builder for chaining. */ public Builder clearExtensionData() { extensionData_ = getDefaultInstance().getExtensionData(); onChanged(); return this; } /** * string extension_data = 11 [json_name = "extensionData"]; * @param value The bytes for extensionData to set. * @return This builder for chaining. */ public Builder setExtensionDataBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); extensionData_ = value; onChanged(); return this; } private com.google.protobuf.ByteString serializedActorHandle_ = com.google.protobuf.ByteString.EMPTY; /** * bytes serialized_actor_handle = 12 [json_name = "serializedActorHandle"]; * @return The serializedActorHandle. */ @java.lang.Override public com.google.protobuf.ByteString getSerializedActorHandle() { return serializedActorHandle_; } /** * bytes serialized_actor_handle = 12 [json_name = "serializedActorHandle"]; * @param value The serializedActorHandle to set. * @return This builder for chaining. */ public Builder setSerializedActorHandle(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } serializedActorHandle_ = value; onChanged(); return this; } /** * bytes serialized_actor_handle = 12 [json_name = "serializedActorHandle"]; * @return This builder for chaining. */ public Builder clearSerializedActorHandle() { serializedActorHandle_ = getDefaultInstance().getSerializedActorHandle(); onChanged(); return this; } private java.util.List concurrencyGroups_ = java.util.Collections.emptyList(); private void ensureConcurrencyGroupsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { concurrencyGroups_ = new java.util.ArrayList(concurrencyGroups_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ConcurrencyGroup, io.ray.runtime.generated.Common.ConcurrencyGroup.Builder, io.ray.runtime.generated.Common.ConcurrencyGroupOrBuilder> concurrencyGroupsBuilder_; /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public java.util.List getConcurrencyGroupsList() { if (concurrencyGroupsBuilder_ == null) { return java.util.Collections.unmodifiableList(concurrencyGroups_); } else { return concurrencyGroupsBuilder_.getMessageList(); } } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public int getConcurrencyGroupsCount() { if (concurrencyGroupsBuilder_ == null) { return concurrencyGroups_.size(); } else { return concurrencyGroupsBuilder_.getCount(); } } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public io.ray.runtime.generated.Common.ConcurrencyGroup getConcurrencyGroups(int index) { if (concurrencyGroupsBuilder_ == null) { return concurrencyGroups_.get(index); } else { return concurrencyGroupsBuilder_.getMessage(index); } } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder setConcurrencyGroups( int index, io.ray.runtime.generated.Common.ConcurrencyGroup value) { if (concurrencyGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConcurrencyGroupsIsMutable(); concurrencyGroups_.set(index, value); onChanged(); } else { concurrencyGroupsBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder setConcurrencyGroups( int index, io.ray.runtime.generated.Common.ConcurrencyGroup.Builder builderForValue) { if (concurrencyGroupsBuilder_ == null) { ensureConcurrencyGroupsIsMutable(); concurrencyGroups_.set(index, builderForValue.build()); onChanged(); } else { concurrencyGroupsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder addConcurrencyGroups(io.ray.runtime.generated.Common.ConcurrencyGroup value) { if (concurrencyGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConcurrencyGroupsIsMutable(); concurrencyGroups_.add(value); onChanged(); } else { concurrencyGroupsBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder addConcurrencyGroups( int index, io.ray.runtime.generated.Common.ConcurrencyGroup value) { if (concurrencyGroupsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConcurrencyGroupsIsMutable(); concurrencyGroups_.add(index, value); onChanged(); } else { concurrencyGroupsBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder addConcurrencyGroups( io.ray.runtime.generated.Common.ConcurrencyGroup.Builder builderForValue) { if (concurrencyGroupsBuilder_ == null) { ensureConcurrencyGroupsIsMutable(); concurrencyGroups_.add(builderForValue.build()); onChanged(); } else { concurrencyGroupsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder addConcurrencyGroups( int index, io.ray.runtime.generated.Common.ConcurrencyGroup.Builder builderForValue) { if (concurrencyGroupsBuilder_ == null) { ensureConcurrencyGroupsIsMutable(); concurrencyGroups_.add(index, builderForValue.build()); onChanged(); } else { concurrencyGroupsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder addAllConcurrencyGroups( java.lang.Iterable values) { if (concurrencyGroupsBuilder_ == null) { ensureConcurrencyGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, concurrencyGroups_); onChanged(); } else { concurrencyGroupsBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder clearConcurrencyGroups() { if (concurrencyGroupsBuilder_ == null) { concurrencyGroups_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { concurrencyGroupsBuilder_.clear(); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public Builder removeConcurrencyGroups(int index) { if (concurrencyGroupsBuilder_ == null) { ensureConcurrencyGroupsIsMutable(); concurrencyGroups_.remove(index); onChanged(); } else { concurrencyGroupsBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public io.ray.runtime.generated.Common.ConcurrencyGroup.Builder getConcurrencyGroupsBuilder( int index) { return getConcurrencyGroupsFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public io.ray.runtime.generated.Common.ConcurrencyGroupOrBuilder getConcurrencyGroupsOrBuilder( int index) { if (concurrencyGroupsBuilder_ == null) { return concurrencyGroups_.get(index); } else { return concurrencyGroupsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public java.util.List getConcurrencyGroupsOrBuilderList() { if (concurrencyGroupsBuilder_ != null) { return concurrencyGroupsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(concurrencyGroups_); } } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public io.ray.runtime.generated.Common.ConcurrencyGroup.Builder addConcurrencyGroupsBuilder() { return getConcurrencyGroupsFieldBuilder().addBuilder( io.ray.runtime.generated.Common.ConcurrencyGroup.getDefaultInstance()); } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public io.ray.runtime.generated.Common.ConcurrencyGroup.Builder addConcurrencyGroupsBuilder( int index) { return getConcurrencyGroupsFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.ConcurrencyGroup.getDefaultInstance()); } /** * repeated .ray.rpc.ConcurrencyGroup concurrency_groups = 13 [json_name = "concurrencyGroups"]; */ public java.util.List getConcurrencyGroupsBuilderList() { return getConcurrencyGroupsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ConcurrencyGroup, io.ray.runtime.generated.Common.ConcurrencyGroup.Builder, io.ray.runtime.generated.Common.ConcurrencyGroupOrBuilder> getConcurrencyGroupsFieldBuilder() { if (concurrencyGroupsBuilder_ == null) { concurrencyGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ConcurrencyGroup, io.ray.runtime.generated.Common.ConcurrencyGroup.Builder, io.ray.runtime.generated.Common.ConcurrencyGroupOrBuilder>( concurrencyGroups_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); concurrencyGroups_ = null; } return concurrencyGroupsBuilder_; } private boolean executeOutOfOrder_ ; /** * bool execute_out_of_order = 14 [json_name = "executeOutOfOrder"]; * @return The executeOutOfOrder. */ @java.lang.Override public boolean getExecuteOutOfOrder() { return executeOutOfOrder_; } /** * bool execute_out_of_order = 14 [json_name = "executeOutOfOrder"]; * @param value The executeOutOfOrder to set. * @return This builder for chaining. */ public Builder setExecuteOutOfOrder(boolean value) { executeOutOfOrder_ = value; onChanged(); return this; } /** * bool execute_out_of_order = 14 [json_name = "executeOutOfOrder"]; * @return This builder for chaining. */ public Builder clearExecuteOutOfOrder() { executeOutOfOrder_ = false; onChanged(); return this; } private int maxPendingCalls_ ; /** * int32 max_pending_calls = 15 [json_name = "maxPendingCalls"]; * @return The maxPendingCalls. */ @java.lang.Override public int getMaxPendingCalls() { return maxPendingCalls_; } /** * int32 max_pending_calls = 15 [json_name = "maxPendingCalls"]; * @param value The maxPendingCalls to set. * @return This builder for chaining. */ public Builder setMaxPendingCalls(int value) { maxPendingCalls_ = value; onChanged(); return this; } /** * int32 max_pending_calls = 15 [json_name = "maxPendingCalls"]; * @return This builder for chaining. */ public Builder clearMaxPendingCalls() { maxPendingCalls_ = 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.ActorCreationTaskSpec) } // @@protoc_insertion_point(class_scope:ray.rpc.ActorCreationTaskSpec) private static final io.ray.runtime.generated.Common.ActorCreationTaskSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ActorCreationTaskSpec(); } public static io.ray.runtime.generated.Common.ActorCreationTaskSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActorCreationTaskSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ActorCreationTaskSpec(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.ActorCreationTaskSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActorTaskSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ActorTaskSpec) com.google.protobuf.MessageOrBuilder { /** * bytes actor_id = 2 [json_name = "actorId"]; * @return The actorId. */ com.google.protobuf.ByteString getActorId(); /** * bytes actor_creation_dummy_object_id = 4 [json_name = "actorCreationDummyObjectId"]; * @return The actorCreationDummyObjectId. */ com.google.protobuf.ByteString getActorCreationDummyObjectId(); /** * uint64 actor_counter = 5 [json_name = "actorCounter"]; * @return The actorCounter. */ long getActorCounter(); } /** * Protobuf type {@code ray.rpc.ActorTaskSpec} */ public static final class ActorTaskSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ActorTaskSpec) ActorTaskSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ActorTaskSpec.newBuilder() to construct. private ActorTaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActorTaskSpec() { actorId_ = com.google.protobuf.ByteString.EMPTY; actorCreationDummyObjectId_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActorTaskSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ActorTaskSpec( 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: { actorId_ = input.readBytes(); break; } case 34: { actorCreationDummyObjectId_ = input.readBytes(); break; } case 40: { actorCounter_ = input.readUInt64(); 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_ActorTaskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorTaskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ActorTaskSpec.class, io.ray.runtime.generated.Common.ActorTaskSpec.Builder.class); } public static final int ACTOR_ID_FIELD_NUMBER = 2; private com.google.protobuf.ByteString actorId_; /** * bytes actor_id = 2 [json_name = "actorId"]; * @return The actorId. */ @java.lang.Override public com.google.protobuf.ByteString getActorId() { return actorId_; } public static final int ACTOR_CREATION_DUMMY_OBJECT_ID_FIELD_NUMBER = 4; private com.google.protobuf.ByteString actorCreationDummyObjectId_; /** * bytes actor_creation_dummy_object_id = 4 [json_name = "actorCreationDummyObjectId"]; * @return The actorCreationDummyObjectId. */ @java.lang.Override public com.google.protobuf.ByteString getActorCreationDummyObjectId() { return actorCreationDummyObjectId_; } public static final int ACTOR_COUNTER_FIELD_NUMBER = 5; private long actorCounter_; /** * uint64 actor_counter = 5 [json_name = "actorCounter"]; * @return The actorCounter. */ @java.lang.Override public long getActorCounter() { return actorCounter_; } 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 (!actorId_.isEmpty()) { output.writeBytes(2, actorId_); } if (!actorCreationDummyObjectId_.isEmpty()) { output.writeBytes(4, actorCreationDummyObjectId_); } if (actorCounter_ != 0L) { output.writeUInt64(5, actorCounter_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!actorId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, actorId_); } if (!actorCreationDummyObjectId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, actorCreationDummyObjectId_); } if (actorCounter_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(5, actorCounter_); } 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.ActorTaskSpec)) { return super.equals(obj); } io.ray.runtime.generated.Common.ActorTaskSpec other = (io.ray.runtime.generated.Common.ActorTaskSpec) obj; if (!getActorId() .equals(other.getActorId())) return false; if (!getActorCreationDummyObjectId() .equals(other.getActorCreationDummyObjectId())) return false; if (getActorCounter() != other.getActorCounter()) 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) + ACTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getActorId().hashCode(); hash = (37 * hash) + ACTOR_CREATION_DUMMY_OBJECT_ID_FIELD_NUMBER; hash = (53 * hash) + getActorCreationDummyObjectId().hashCode(); hash = (37 * hash) + ACTOR_COUNTER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getActorCounter()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ActorTaskSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ActorTaskSpec 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.ActorTaskSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ActorTaskSpec 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.ActorTaskSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ActorTaskSpec 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.ActorTaskSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ActorTaskSpec 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.ActorTaskSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ActorTaskSpec 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.ActorTaskSpec 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.ActorTaskSpec 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.ActorTaskSpec 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.ActorTaskSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ActorTaskSpec) io.ray.runtime.generated.Common.ActorTaskSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorTaskSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorTaskSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ActorTaskSpec.class, io.ray.runtime.generated.Common.ActorTaskSpec.Builder.class); } // Construct using io.ray.runtime.generated.Common.ActorTaskSpec.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; actorCreationDummyObjectId_ = com.google.protobuf.ByteString.EMPTY; actorCounter_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ActorTaskSpec_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ActorTaskSpec getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ActorTaskSpec.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ActorTaskSpec build() { io.ray.runtime.generated.Common.ActorTaskSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ActorTaskSpec buildPartial() { io.ray.runtime.generated.Common.ActorTaskSpec result = new io.ray.runtime.generated.Common.ActorTaskSpec(this); result.actorId_ = actorId_; result.actorCreationDummyObjectId_ = actorCreationDummyObjectId_; result.actorCounter_ = actorCounter_; 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.ActorTaskSpec) { return mergeFrom((io.ray.runtime.generated.Common.ActorTaskSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ActorTaskSpec other) { if (other == io.ray.runtime.generated.Common.ActorTaskSpec.getDefaultInstance()) return this; if (other.getActorId() != com.google.protobuf.ByteString.EMPTY) { setActorId(other.getActorId()); } if (other.getActorCreationDummyObjectId() != com.google.protobuf.ByteString.EMPTY) { setActorCreationDummyObjectId(other.getActorCreationDummyObjectId()); } if (other.getActorCounter() != 0L) { setActorCounter(other.getActorCounter()); } 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.ActorTaskSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ActorTaskSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString actorId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes actor_id = 2 [json_name = "actorId"]; * @return The actorId. */ @java.lang.Override public com.google.protobuf.ByteString getActorId() { return actorId_; } /** * bytes actor_id = 2 [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 = 2 [json_name = "actorId"]; * @return This builder for chaining. */ public Builder clearActorId() { actorId_ = getDefaultInstance().getActorId(); onChanged(); return this; } private com.google.protobuf.ByteString actorCreationDummyObjectId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes actor_creation_dummy_object_id = 4 [json_name = "actorCreationDummyObjectId"]; * @return The actorCreationDummyObjectId. */ @java.lang.Override public com.google.protobuf.ByteString getActorCreationDummyObjectId() { return actorCreationDummyObjectId_; } /** * bytes actor_creation_dummy_object_id = 4 [json_name = "actorCreationDummyObjectId"]; * @param value The actorCreationDummyObjectId to set. * @return This builder for chaining. */ public Builder setActorCreationDummyObjectId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } actorCreationDummyObjectId_ = value; onChanged(); return this; } /** * bytes actor_creation_dummy_object_id = 4 [json_name = "actorCreationDummyObjectId"]; * @return This builder for chaining. */ public Builder clearActorCreationDummyObjectId() { actorCreationDummyObjectId_ = getDefaultInstance().getActorCreationDummyObjectId(); onChanged(); return this; } private long actorCounter_ ; /** * uint64 actor_counter = 5 [json_name = "actorCounter"]; * @return The actorCounter. */ @java.lang.Override public long getActorCounter() { return actorCounter_; } /** * uint64 actor_counter = 5 [json_name = "actorCounter"]; * @param value The actorCounter to set. * @return This builder for chaining. */ public Builder setActorCounter(long value) { actorCounter_ = value; onChanged(); return this; } /** * uint64 actor_counter = 5 [json_name = "actorCounter"]; * @return This builder for chaining. */ public Builder clearActorCounter() { actorCounter_ = 0L; 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.ActorTaskSpec) } // @@protoc_insertion_point(class_scope:ray.rpc.ActorTaskSpec) private static final io.ray.runtime.generated.Common.ActorTaskSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ActorTaskSpec(); } public static io.ray.runtime.generated.Common.ActorTaskSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActorTaskSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ActorTaskSpec(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.ActorTaskSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TaskOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.Task) com.google.protobuf.MessageOrBuilder { /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; * @return Whether the taskSpec field is set. */ boolean hasTaskSpec(); /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; * @return The taskSpec. */ io.ray.runtime.generated.Common.TaskSpec getTaskSpec(); /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ io.ray.runtime.generated.Common.TaskSpecOrBuilder getTaskSpecOrBuilder(); } /** * Protobuf type {@code ray.rpc.Task} */ public static final class Task extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.Task) TaskOrBuilder { private static final long serialVersionUID = 0L; // Use Task.newBuilder() to construct. private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Task() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Task(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Task( 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.TaskSpec.Builder subBuilder = null; if (taskSpec_ != null) { subBuilder = taskSpec_.toBuilder(); } taskSpec_ = input.readMessage(io.ray.runtime.generated.Common.TaskSpec.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(taskSpec_); taskSpec_ = 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_Task_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.Task.class, io.ray.runtime.generated.Common.Task.Builder.class); } public static final int TASK_SPEC_FIELD_NUMBER = 1; private io.ray.runtime.generated.Common.TaskSpec taskSpec_; /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; * @return Whether the taskSpec field is set. */ @java.lang.Override public boolean hasTaskSpec() { return taskSpec_ != null; } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; * @return The taskSpec. */ @java.lang.Override public io.ray.runtime.generated.Common.TaskSpec getTaskSpec() { return taskSpec_ == null ? io.ray.runtime.generated.Common.TaskSpec.getDefaultInstance() : taskSpec_; } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ @java.lang.Override public io.ray.runtime.generated.Common.TaskSpecOrBuilder getTaskSpecOrBuilder() { return getTaskSpec(); } 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 (taskSpec_ != null) { output.writeMessage(1, getTaskSpec()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (taskSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTaskSpec()); } 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.Task)) { return super.equals(obj); } io.ray.runtime.generated.Common.Task other = (io.ray.runtime.generated.Common.Task) obj; if (hasTaskSpec() != other.hasTaskSpec()) return false; if (hasTaskSpec()) { if (!getTaskSpec() .equals(other.getTaskSpec())) 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 (hasTaskSpec()) { hash = (37 * hash) + TASK_SPEC_FIELD_NUMBER; hash = (53 * hash) + getTaskSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.Task parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Task 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.Task parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Task 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.Task parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.Task 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.Task parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.Task 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.Task parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.Task 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.Task 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.Task 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.Task 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.Task} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.Task) io.ray.runtime.generated.Common.TaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Task_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Task_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.Task.class, io.ray.runtime.generated.Common.Task.Builder.class); } // Construct using io.ray.runtime.generated.Common.Task.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 (taskSpecBuilder_ == null) { taskSpec_ = null; } else { taskSpec_ = null; taskSpecBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_Task_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.Task getDefaultInstanceForType() { return io.ray.runtime.generated.Common.Task.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.Task build() { io.ray.runtime.generated.Common.Task result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.Task buildPartial() { io.ray.runtime.generated.Common.Task result = new io.ray.runtime.generated.Common.Task(this); if (taskSpecBuilder_ == null) { result.taskSpec_ = taskSpec_; } else { result.taskSpec_ = taskSpecBuilder_.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.Task) { return mergeFrom((io.ray.runtime.generated.Common.Task)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.Task other) { if (other == io.ray.runtime.generated.Common.Task.getDefaultInstance()) return this; if (other.hasTaskSpec()) { mergeTaskSpec(other.getTaskSpec()); } 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.Task parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.Task) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.ray.runtime.generated.Common.TaskSpec taskSpec_; private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.TaskSpec, io.ray.runtime.generated.Common.TaskSpec.Builder, io.ray.runtime.generated.Common.TaskSpecOrBuilder> taskSpecBuilder_; /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; * @return Whether the taskSpec field is set. */ public boolean hasTaskSpec() { return taskSpecBuilder_ != null || taskSpec_ != null; } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; * @return The taskSpec. */ public io.ray.runtime.generated.Common.TaskSpec getTaskSpec() { if (taskSpecBuilder_ == null) { return taskSpec_ == null ? io.ray.runtime.generated.Common.TaskSpec.getDefaultInstance() : taskSpec_; } else { return taskSpecBuilder_.getMessage(); } } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ public Builder setTaskSpec(io.ray.runtime.generated.Common.TaskSpec value) { if (taskSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } taskSpec_ = value; onChanged(); } else { taskSpecBuilder_.setMessage(value); } return this; } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ public Builder setTaskSpec( io.ray.runtime.generated.Common.TaskSpec.Builder builderForValue) { if (taskSpecBuilder_ == null) { taskSpec_ = builderForValue.build(); onChanged(); } else { taskSpecBuilder_.setMessage(builderForValue.build()); } return this; } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ public Builder mergeTaskSpec(io.ray.runtime.generated.Common.TaskSpec value) { if (taskSpecBuilder_ == null) { if (taskSpec_ != null) { taskSpec_ = io.ray.runtime.generated.Common.TaskSpec.newBuilder(taskSpec_).mergeFrom(value).buildPartial(); } else { taskSpec_ = value; } onChanged(); } else { taskSpecBuilder_.mergeFrom(value); } return this; } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ public Builder clearTaskSpec() { if (taskSpecBuilder_ == null) { taskSpec_ = null; onChanged(); } else { taskSpec_ = null; taskSpecBuilder_ = null; } return this; } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ public io.ray.runtime.generated.Common.TaskSpec.Builder getTaskSpecBuilder() { onChanged(); return getTaskSpecFieldBuilder().getBuilder(); } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ public io.ray.runtime.generated.Common.TaskSpecOrBuilder getTaskSpecOrBuilder() { if (taskSpecBuilder_ != null) { return taskSpecBuilder_.getMessageOrBuilder(); } else { return taskSpec_ == null ? io.ray.runtime.generated.Common.TaskSpec.getDefaultInstance() : taskSpec_; } } /** * .ray.rpc.TaskSpec task_spec = 1 [json_name = "taskSpec"]; */ private com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.TaskSpec, io.ray.runtime.generated.Common.TaskSpec.Builder, io.ray.runtime.generated.Common.TaskSpecOrBuilder> getTaskSpecFieldBuilder() { if (taskSpecBuilder_ == null) { taskSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.ray.runtime.generated.Common.TaskSpec, io.ray.runtime.generated.Common.TaskSpec.Builder, io.ray.runtime.generated.Common.TaskSpecOrBuilder>( getTaskSpec(), getParentForChildren(), isClean()); taskSpec_ = null; } return taskSpecBuilder_; } @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.Task) } // @@protoc_insertion_point(class_scope:ray.rpc.Task) private static final io.ray.runtime.generated.Common.Task DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.Task(); } public static io.ray.runtime.generated.Common.Task getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Task parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Task(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.Task getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceIdOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ResourceId) com.google.protobuf.MessageOrBuilder { /** * int64 index = 1 [json_name = "index"]; * @return The index. */ long getIndex(); /** * double quantity = 2 [json_name = "quantity"]; * @return The quantity. */ double getQuantity(); } /** * Protobuf type {@code ray.rpc.ResourceId} */ public static final class ResourceId extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ResourceId) ResourceIdOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceId.newBuilder() to construct. private ResourceId(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceId() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResourceId(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceId( 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: { index_ = input.readInt64(); break; } case 17: { quantity_ = 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_ResourceId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceId_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ResourceId.class, io.ray.runtime.generated.Common.ResourceId.Builder.class); } public static final int INDEX_FIELD_NUMBER = 1; private long index_; /** * int64 index = 1 [json_name = "index"]; * @return The index. */ @java.lang.Override public long getIndex() { return index_; } public static final int QUANTITY_FIELD_NUMBER = 2; private double quantity_; /** * double quantity = 2 [json_name = "quantity"]; * @return The quantity. */ @java.lang.Override public double getQuantity() { return quantity_; } 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 (index_ != 0L) { output.writeInt64(1, index_); } if (java.lang.Double.doubleToRawLongBits(quantity_) != 0) { output.writeDouble(2, quantity_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, index_); } if (java.lang.Double.doubleToRawLongBits(quantity_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, quantity_); } 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.ResourceId)) { return super.equals(obj); } io.ray.runtime.generated.Common.ResourceId other = (io.ray.runtime.generated.Common.ResourceId) obj; if (getIndex() != other.getIndex()) return false; if (java.lang.Double.doubleToLongBits(getQuantity()) != java.lang.Double.doubleToLongBits( other.getQuantity())) 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) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIndex()); hash = (37 * hash) + QUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getQuantity())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ResourceId parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceId 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.ResourceId parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceId 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.ResourceId parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceId 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.ResourceId parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ResourceId 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.ResourceId parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ResourceId 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.ResourceId 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.ResourceId 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.ResourceId 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.ResourceId} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ResourceId) io.ray.runtime.generated.Common.ResourceIdOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceId_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceId_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ResourceId.class, io.ray.runtime.generated.Common.ResourceId.Builder.class); } // Construct using io.ray.runtime.generated.Common.ResourceId.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(); index_ = 0L; quantity_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceId_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ResourceId getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ResourceId.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ResourceId build() { io.ray.runtime.generated.Common.ResourceId result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ResourceId buildPartial() { io.ray.runtime.generated.Common.ResourceId result = new io.ray.runtime.generated.Common.ResourceId(this); result.index_ = index_; result.quantity_ = quantity_; 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.ResourceId) { return mergeFrom((io.ray.runtime.generated.Common.ResourceId)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ResourceId other) { if (other == io.ray.runtime.generated.Common.ResourceId.getDefaultInstance()) return this; if (other.getIndex() != 0L) { setIndex(other.getIndex()); } if (other.getQuantity() != 0D) { setQuantity(other.getQuantity()); } 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.ResourceId parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ResourceId) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long index_ ; /** * int64 index = 1 [json_name = "index"]; * @return The index. */ @java.lang.Override public long getIndex() { return index_; } /** * int64 index = 1 [json_name = "index"]; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(long value) { index_ = value; onChanged(); return this; } /** * int64 index = 1 [json_name = "index"]; * @return This builder for chaining. */ public Builder clearIndex() { index_ = 0L; onChanged(); return this; } private double quantity_ ; /** * double quantity = 2 [json_name = "quantity"]; * @return The quantity. */ @java.lang.Override public double getQuantity() { return quantity_; } /** * double quantity = 2 [json_name = "quantity"]; * @param value The quantity to set. * @return This builder for chaining. */ public Builder setQuantity(double value) { quantity_ = value; onChanged(); return this; } /** * double quantity = 2 [json_name = "quantity"]; * @return This builder for chaining. */ public Builder clearQuantity() { quantity_ = 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.ResourceId) } // @@protoc_insertion_point(class_scope:ray.rpc.ResourceId) private static final io.ray.runtime.generated.Common.ResourceId DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ResourceId(); } public static io.ray.runtime.generated.Common.ResourceId getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceId parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceId(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.ResourceId getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceMapEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ResourceMapEntry) 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(); /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ java.util.List getResourceIdsList(); /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ io.ray.runtime.generated.Common.ResourceId getResourceIds(int index); /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ int getResourceIdsCount(); /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ java.util.List getResourceIdsOrBuilderList(); /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ io.ray.runtime.generated.Common.ResourceIdOrBuilder getResourceIdsOrBuilder( int index); } /** * Protobuf type {@code ray.rpc.ResourceMapEntry} */ public static final class ResourceMapEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ResourceMapEntry) ResourceMapEntryOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceMapEntry.newBuilder() to construct. private ResourceMapEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceMapEntry() { name_ = ""; resourceIds_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResourceMapEntry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceMapEntry( 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 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { resourceIds_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resourceIds_.add( input.readMessage(io.ray.runtime.generated.Common.ResourceId.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)) { resourceIds_ = java.util.Collections.unmodifiableList(resourceIds_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceMapEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceMapEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ResourceMapEntry.class, io.ray.runtime.generated.Common.ResourceMapEntry.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 RESOURCE_IDS_FIELD_NUMBER = 2; private java.util.List resourceIds_; /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ @java.lang.Override public java.util.List getResourceIdsList() { return resourceIds_; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ @java.lang.Override public java.util.List getResourceIdsOrBuilderList() { return resourceIds_; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ @java.lang.Override public int getResourceIdsCount() { return resourceIds_.size(); } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ResourceId getResourceIds(int index) { return resourceIds_.get(index); } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ResourceIdOrBuilder getResourceIdsOrBuilder( int index) { return resourceIds_.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_); } for (int i = 0; i < resourceIds_.size(); i++) { output.writeMessage(2, resourceIds_.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_); } for (int i = 0; i < resourceIds_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, resourceIds_.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.ResourceMapEntry)) { return super.equals(obj); } io.ray.runtime.generated.Common.ResourceMapEntry other = (io.ray.runtime.generated.Common.ResourceMapEntry) obj; if (!getName() .equals(other.getName())) return false; if (!getResourceIdsList() .equals(other.getResourceIdsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getResourceIdsCount() > 0) { hash = (37 * hash) + RESOURCE_IDS_FIELD_NUMBER; hash = (53 * hash) + getResourceIdsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ResourceMapEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceMapEntry 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.ResourceMapEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceMapEntry 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.ResourceMapEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceMapEntry 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.ResourceMapEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ResourceMapEntry 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.ResourceMapEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ResourceMapEntry 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.ResourceMapEntry 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.ResourceMapEntry 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.ResourceMapEntry 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.ResourceMapEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ResourceMapEntry) io.ray.runtime.generated.Common.ResourceMapEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceMapEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceMapEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ResourceMapEntry.class, io.ray.runtime.generated.Common.ResourceMapEntry.Builder.class); } // Construct using io.ray.runtime.generated.Common.ResourceMapEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourceIdsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; if (resourceIdsBuilder_ == null) { resourceIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourceIdsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceMapEntry_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ResourceMapEntry getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ResourceMapEntry.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ResourceMapEntry build() { io.ray.runtime.generated.Common.ResourceMapEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ResourceMapEntry buildPartial() { io.ray.runtime.generated.Common.ResourceMapEntry result = new io.ray.runtime.generated.Common.ResourceMapEntry(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (resourceIdsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resourceIds_ = java.util.Collections.unmodifiableList(resourceIds_); bitField0_ = (bitField0_ & ~0x00000001); } result.resourceIds_ = resourceIds_; } else { result.resourceIds_ = resourceIdsBuilder_.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.ResourceMapEntry) { return mergeFrom((io.ray.runtime.generated.Common.ResourceMapEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ResourceMapEntry other) { if (other == io.ray.runtime.generated.Common.ResourceMapEntry.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (resourceIdsBuilder_ == null) { if (!other.resourceIds_.isEmpty()) { if (resourceIds_.isEmpty()) { resourceIds_ = other.resourceIds_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourceIdsIsMutable(); resourceIds_.addAll(other.resourceIds_); } onChanged(); } } else { if (!other.resourceIds_.isEmpty()) { if (resourceIdsBuilder_.isEmpty()) { resourceIdsBuilder_.dispose(); resourceIdsBuilder_ = null; resourceIds_ = other.resourceIds_; bitField0_ = (bitField0_ & ~0x00000001); resourceIdsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourceIdsFieldBuilder() : null; } else { resourceIdsBuilder_.addAllMessages(other.resourceIds_); } } } 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.ResourceMapEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ResourceMapEntry) 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 java.util.List resourceIds_ = java.util.Collections.emptyList(); private void ensureResourceIdsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceIds_ = new java.util.ArrayList(resourceIds_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ResourceId, io.ray.runtime.generated.Common.ResourceId.Builder, io.ray.runtime.generated.Common.ResourceIdOrBuilder> resourceIdsBuilder_; /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public java.util.List getResourceIdsList() { if (resourceIdsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceIds_); } else { return resourceIdsBuilder_.getMessageList(); } } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public int getResourceIdsCount() { if (resourceIdsBuilder_ == null) { return resourceIds_.size(); } else { return resourceIdsBuilder_.getCount(); } } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public io.ray.runtime.generated.Common.ResourceId getResourceIds(int index) { if (resourceIdsBuilder_ == null) { return resourceIds_.get(index); } else { return resourceIdsBuilder_.getMessage(index); } } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder setResourceIds( int index, io.ray.runtime.generated.Common.ResourceId value) { if (resourceIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceIdsIsMutable(); resourceIds_.set(index, value); onChanged(); } else { resourceIdsBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder setResourceIds( int index, io.ray.runtime.generated.Common.ResourceId.Builder builderForValue) { if (resourceIdsBuilder_ == null) { ensureResourceIdsIsMutable(); resourceIds_.set(index, builderForValue.build()); onChanged(); } else { resourceIdsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder addResourceIds(io.ray.runtime.generated.Common.ResourceId value) { if (resourceIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceIdsIsMutable(); resourceIds_.add(value); onChanged(); } else { resourceIdsBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder addResourceIds( int index, io.ray.runtime.generated.Common.ResourceId value) { if (resourceIdsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceIdsIsMutable(); resourceIds_.add(index, value); onChanged(); } else { resourceIdsBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder addResourceIds( io.ray.runtime.generated.Common.ResourceId.Builder builderForValue) { if (resourceIdsBuilder_ == null) { ensureResourceIdsIsMutable(); resourceIds_.add(builderForValue.build()); onChanged(); } else { resourceIdsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder addResourceIds( int index, io.ray.runtime.generated.Common.ResourceId.Builder builderForValue) { if (resourceIdsBuilder_ == null) { ensureResourceIdsIsMutable(); resourceIds_.add(index, builderForValue.build()); onChanged(); } else { resourceIdsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder addAllResourceIds( java.lang.Iterable values) { if (resourceIdsBuilder_ == null) { ensureResourceIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resourceIds_); onChanged(); } else { resourceIdsBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder clearResourceIds() { if (resourceIdsBuilder_ == null) { resourceIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourceIdsBuilder_.clear(); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public Builder removeResourceIds(int index) { if (resourceIdsBuilder_ == null) { ensureResourceIdsIsMutable(); resourceIds_.remove(index); onChanged(); } else { resourceIdsBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public io.ray.runtime.generated.Common.ResourceId.Builder getResourceIdsBuilder( int index) { return getResourceIdsFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public io.ray.runtime.generated.Common.ResourceIdOrBuilder getResourceIdsOrBuilder( int index) { if (resourceIdsBuilder_ == null) { return resourceIds_.get(index); } else { return resourceIdsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public java.util.List getResourceIdsOrBuilderList() { if (resourceIdsBuilder_ != null) { return resourceIdsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resourceIds_); } } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public io.ray.runtime.generated.Common.ResourceId.Builder addResourceIdsBuilder() { return getResourceIdsFieldBuilder().addBuilder( io.ray.runtime.generated.Common.ResourceId.getDefaultInstance()); } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public io.ray.runtime.generated.Common.ResourceId.Builder addResourceIdsBuilder( int index) { return getResourceIdsFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.ResourceId.getDefaultInstance()); } /** * repeated .ray.rpc.ResourceId resource_ids = 2 [json_name = "resourceIds"]; */ public java.util.List getResourceIdsBuilderList() { return getResourceIdsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ResourceId, io.ray.runtime.generated.Common.ResourceId.Builder, io.ray.runtime.generated.Common.ResourceIdOrBuilder> getResourceIdsFieldBuilder() { if (resourceIdsBuilder_ == null) { resourceIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ResourceId, io.ray.runtime.generated.Common.ResourceId.Builder, io.ray.runtime.generated.Common.ResourceIdOrBuilder>( resourceIds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resourceIds_ = null; } return resourceIdsBuilder_; } @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.ResourceMapEntry) } // @@protoc_insertion_point(class_scope:ray.rpc.ResourceMapEntry) private static final io.ray.runtime.generated.Common.ResourceMapEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ResourceMapEntry(); } public static io.ray.runtime.generated.Common.ResourceMapEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceMapEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceMapEntry(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.ResourceMapEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ViewDataOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ViewData) com.google.protobuf.MessageOrBuilder { /** * string view_name = 1 [json_name = "viewName"]; * @return The viewName. */ java.lang.String getViewName(); /** * string view_name = 1 [json_name = "viewName"]; * @return The bytes for viewName. */ com.google.protobuf.ByteString getViewNameBytes(); /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ java.util.List getMeasuresList(); /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ io.ray.runtime.generated.Common.ViewData.Measure getMeasures(int index); /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ int getMeasuresCount(); /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ java.util.List getMeasuresOrBuilderList(); /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ io.ray.runtime.generated.Common.ViewData.MeasureOrBuilder getMeasuresOrBuilder( int index); } /** * Protobuf type {@code ray.rpc.ViewData} */ public static final class ViewData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ViewData) ViewDataOrBuilder { private static final long serialVersionUID = 0L; // Use ViewData.newBuilder() to construct. private ViewData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ViewData() { viewName_ = ""; measures_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ViewData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ViewData( 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(); viewName_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { measures_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } measures_.add( input.readMessage(io.ray.runtime.generated.Common.ViewData.Measure.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)) { measures_ = java.util.Collections.unmodifiableList(measures_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ViewData.class, io.ray.runtime.generated.Common.ViewData.Builder.class); } public interface MeasureOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ViewData.Measure) com.google.protobuf.MessageOrBuilder { /** * string tags = 1 [json_name = "tags"]; * @return The tags. */ java.lang.String getTags(); /** * string tags = 1 [json_name = "tags"]; * @return The bytes for tags. */ com.google.protobuf.ByteString getTagsBytes(); /** * int64 int_value = 2 [json_name = "intValue"]; * @return The intValue. */ long getIntValue(); /** * double double_value = 3 [json_name = "doubleValue"]; * @return The doubleValue. */ double getDoubleValue(); /** * double distribution_min = 4 [json_name = "distributionMin"]; * @return The distributionMin. */ double getDistributionMin(); /** * double distribution_mean = 5 [json_name = "distributionMean"]; * @return The distributionMean. */ double getDistributionMean(); /** * double distribution_max = 6 [json_name = "distributionMax"]; * @return The distributionMax. */ double getDistributionMax(); /** * double distribution_count = 7 [json_name = "distributionCount"]; * @return The distributionCount. */ double getDistributionCount(); /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @return A list containing the distributionBucketBoundaries. */ java.util.List getDistributionBucketBoundariesList(); /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @return The count of distributionBucketBoundaries. */ int getDistributionBucketBoundariesCount(); /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @param index The index of the element to return. * @return The distributionBucketBoundaries at the given index. */ double getDistributionBucketBoundaries(int index); /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @return A list containing the distributionBucketCounts. */ java.util.List getDistributionBucketCountsList(); /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @return The count of distributionBucketCounts. */ int getDistributionBucketCountsCount(); /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @param index The index of the element to return. * @return The distributionBucketCounts at the given index. */ double getDistributionBucketCounts(int index); } /** * Protobuf type {@code ray.rpc.ViewData.Measure} */ public static final class Measure extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ViewData.Measure) MeasureOrBuilder { private static final long serialVersionUID = 0L; // Use Measure.newBuilder() to construct. private Measure(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Measure() { tags_ = ""; distributionBucketBoundaries_ = emptyDoubleList(); distributionBucketCounts_ = emptyDoubleList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Measure(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Measure( 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(); tags_ = s; break; } case 16: { intValue_ = input.readInt64(); break; } case 25: { doubleValue_ = input.readDouble(); break; } case 33: { distributionMin_ = input.readDouble(); break; } case 41: { distributionMean_ = input.readDouble(); break; } case 49: { distributionMax_ = input.readDouble(); break; } case 57: { distributionCount_ = input.readDouble(); break; } case 65: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { distributionBucketBoundaries_ = newDoubleList(); mutable_bitField0_ |= 0x00000001; } distributionBucketBoundaries_.addDouble(input.readDouble()); break; } case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) { distributionBucketBoundaries_ = newDoubleList(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { distributionBucketBoundaries_.addDouble(input.readDouble()); } input.popLimit(limit); break; } case 73: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { distributionBucketCounts_ = newDoubleList(); mutable_bitField0_ |= 0x00000002; } distributionBucketCounts_.addDouble(input.readDouble()); break; } case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) { distributionBucketCounts_ = newDoubleList(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { distributionBucketCounts_.addDouble(input.readDouble()); } input.popLimit(limit); 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)) { distributionBucketBoundaries_.makeImmutable(); // C } if (((mutable_bitField0_ & 0x00000002) != 0)) { distributionBucketCounts_.makeImmutable(); // 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_ViewData_Measure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_Measure_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ViewData.Measure.class, io.ray.runtime.generated.Common.ViewData.Measure.Builder.class); } public static final int TAGS_FIELD_NUMBER = 1; private volatile java.lang.Object tags_; /** * string tags = 1 [json_name = "tags"]; * @return The tags. */ @java.lang.Override public java.lang.String getTags() { java.lang.Object ref = tags_; 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(); tags_ = s; return s; } } /** * string tags = 1 [json_name = "tags"]; * @return The bytes for tags. */ @java.lang.Override public com.google.protobuf.ByteString getTagsBytes() { java.lang.Object ref = tags_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tags_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INT_VALUE_FIELD_NUMBER = 2; private long intValue_; /** * int64 int_value = 2 [json_name = "intValue"]; * @return The intValue. */ @java.lang.Override public long getIntValue() { return intValue_; } public static final int DOUBLE_VALUE_FIELD_NUMBER = 3; private double doubleValue_; /** * double double_value = 3 [json_name = "doubleValue"]; * @return The doubleValue. */ @java.lang.Override public double getDoubleValue() { return doubleValue_; } public static final int DISTRIBUTION_MIN_FIELD_NUMBER = 4; private double distributionMin_; /** * double distribution_min = 4 [json_name = "distributionMin"]; * @return The distributionMin. */ @java.lang.Override public double getDistributionMin() { return distributionMin_; } public static final int DISTRIBUTION_MEAN_FIELD_NUMBER = 5; private double distributionMean_; /** * double distribution_mean = 5 [json_name = "distributionMean"]; * @return The distributionMean. */ @java.lang.Override public double getDistributionMean() { return distributionMean_; } public static final int DISTRIBUTION_MAX_FIELD_NUMBER = 6; private double distributionMax_; /** * double distribution_max = 6 [json_name = "distributionMax"]; * @return The distributionMax. */ @java.lang.Override public double getDistributionMax() { return distributionMax_; } public static final int DISTRIBUTION_COUNT_FIELD_NUMBER = 7; private double distributionCount_; /** * double distribution_count = 7 [json_name = "distributionCount"]; * @return The distributionCount. */ @java.lang.Override public double getDistributionCount() { return distributionCount_; } public static final int DISTRIBUTION_BUCKET_BOUNDARIES_FIELD_NUMBER = 8; private com.google.protobuf.Internal.DoubleList distributionBucketBoundaries_; /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @return A list containing the distributionBucketBoundaries. */ @java.lang.Override public java.util.List getDistributionBucketBoundariesList() { return distributionBucketBoundaries_; } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @return The count of distributionBucketBoundaries. */ public int getDistributionBucketBoundariesCount() { return distributionBucketBoundaries_.size(); } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @param index The index of the element to return. * @return The distributionBucketBoundaries at the given index. */ public double getDistributionBucketBoundaries(int index) { return distributionBucketBoundaries_.getDouble(index); } private int distributionBucketBoundariesMemoizedSerializedSize = -1; public static final int DISTRIBUTION_BUCKET_COUNTS_FIELD_NUMBER = 9; private com.google.protobuf.Internal.DoubleList distributionBucketCounts_; /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @return A list containing the distributionBucketCounts. */ @java.lang.Override public java.util.List getDistributionBucketCountsList() { return distributionBucketCounts_; } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @return The count of distributionBucketCounts. */ public int getDistributionBucketCountsCount() { return distributionBucketCounts_.size(); } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @param index The index of the element to return. * @return The distributionBucketCounts at the given index. */ public double getDistributionBucketCounts(int index) { return distributionBucketCounts_.getDouble(index); } private int distributionBucketCountsMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tags_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_); } if (intValue_ != 0L) { output.writeInt64(2, intValue_); } if (java.lang.Double.doubleToRawLongBits(doubleValue_) != 0) { output.writeDouble(3, doubleValue_); } if (java.lang.Double.doubleToRawLongBits(distributionMin_) != 0) { output.writeDouble(4, distributionMin_); } if (java.lang.Double.doubleToRawLongBits(distributionMean_) != 0) { output.writeDouble(5, distributionMean_); } if (java.lang.Double.doubleToRawLongBits(distributionMax_) != 0) { output.writeDouble(6, distributionMax_); } if (java.lang.Double.doubleToRawLongBits(distributionCount_) != 0) { output.writeDouble(7, distributionCount_); } if (getDistributionBucketBoundariesList().size() > 0) { output.writeUInt32NoTag(66); output.writeUInt32NoTag(distributionBucketBoundariesMemoizedSerializedSize); } for (int i = 0; i < distributionBucketBoundaries_.size(); i++) { output.writeDoubleNoTag(distributionBucketBoundaries_.getDouble(i)); } if (getDistributionBucketCountsList().size() > 0) { output.writeUInt32NoTag(74); output.writeUInt32NoTag(distributionBucketCountsMemoizedSerializedSize); } for (int i = 0; i < distributionBucketCounts_.size(); i++) { output.writeDoubleNoTag(distributionBucketCounts_.getDouble(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(tags_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tags_); } if (intValue_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, intValue_); } if (java.lang.Double.doubleToRawLongBits(doubleValue_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, doubleValue_); } if (java.lang.Double.doubleToRawLongBits(distributionMin_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, distributionMin_); } if (java.lang.Double.doubleToRawLongBits(distributionMean_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, distributionMean_); } if (java.lang.Double.doubleToRawLongBits(distributionMax_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, distributionMax_); } if (java.lang.Double.doubleToRawLongBits(distributionCount_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, distributionCount_); } { int dataSize = 0; dataSize = 8 * getDistributionBucketBoundariesList().size(); size += dataSize; if (!getDistributionBucketBoundariesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } distributionBucketBoundariesMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getDistributionBucketCountsList().size(); size += dataSize; if (!getDistributionBucketCountsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } distributionBucketCountsMemoizedSerializedSize = dataSize; } 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.ViewData.Measure)) { return super.equals(obj); } io.ray.runtime.generated.Common.ViewData.Measure other = (io.ray.runtime.generated.Common.ViewData.Measure) obj; if (!getTags() .equals(other.getTags())) return false; if (getIntValue() != other.getIntValue()) return false; if (java.lang.Double.doubleToLongBits(getDoubleValue()) != java.lang.Double.doubleToLongBits( other.getDoubleValue())) return false; if (java.lang.Double.doubleToLongBits(getDistributionMin()) != java.lang.Double.doubleToLongBits( other.getDistributionMin())) return false; if (java.lang.Double.doubleToLongBits(getDistributionMean()) != java.lang.Double.doubleToLongBits( other.getDistributionMean())) return false; if (java.lang.Double.doubleToLongBits(getDistributionMax()) != java.lang.Double.doubleToLongBits( other.getDistributionMax())) return false; if (java.lang.Double.doubleToLongBits(getDistributionCount()) != java.lang.Double.doubleToLongBits( other.getDistributionCount())) return false; if (!getDistributionBucketBoundariesList() .equals(other.getDistributionBucketBoundariesList())) return false; if (!getDistributionBucketCountsList() .equals(other.getDistributionBucketCountsList())) 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) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTags().hashCode(); hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getIntValue()); hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); hash = (37 * hash) + DISTRIBUTION_MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDistributionMin())); hash = (37 * hash) + DISTRIBUTION_MEAN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDistributionMean())); hash = (37 * hash) + DISTRIBUTION_MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDistributionMax())); hash = (37 * hash) + DISTRIBUTION_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDistributionCount())); if (getDistributionBucketBoundariesCount() > 0) { hash = (37 * hash) + DISTRIBUTION_BUCKET_BOUNDARIES_FIELD_NUMBER; hash = (53 * hash) + getDistributionBucketBoundariesList().hashCode(); } if (getDistributionBucketCountsCount() > 0) { hash = (37 * hash) + DISTRIBUTION_BUCKET_COUNTS_FIELD_NUMBER; hash = (53 * hash) + getDistributionBucketCountsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ViewData.Measure parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ViewData.Measure 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.ViewData.Measure parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ViewData.Measure 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.ViewData.Measure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ViewData.Measure 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.ViewData.Measure parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ViewData.Measure 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.ViewData.Measure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ViewData.Measure 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.ViewData.Measure 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.ViewData.Measure 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.ViewData.Measure 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.ViewData.Measure} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ViewData.Measure) io.ray.runtime.generated.Common.ViewData.MeasureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_Measure_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_Measure_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ViewData.Measure.class, io.ray.runtime.generated.Common.ViewData.Measure.Builder.class); } // Construct using io.ray.runtime.generated.Common.ViewData.Measure.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(); tags_ = ""; intValue_ = 0L; doubleValue_ = 0D; distributionMin_ = 0D; distributionMean_ = 0D; distributionMax_ = 0D; distributionCount_ = 0D; distributionBucketBoundaries_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000001); distributionBucketCounts_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_Measure_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ViewData.Measure getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ViewData.Measure.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ViewData.Measure build() { io.ray.runtime.generated.Common.ViewData.Measure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ViewData.Measure buildPartial() { io.ray.runtime.generated.Common.ViewData.Measure result = new io.ray.runtime.generated.Common.ViewData.Measure(this); int from_bitField0_ = bitField0_; result.tags_ = tags_; result.intValue_ = intValue_; result.doubleValue_ = doubleValue_; result.distributionMin_ = distributionMin_; result.distributionMean_ = distributionMean_; result.distributionMax_ = distributionMax_; result.distributionCount_ = distributionCount_; if (((bitField0_ & 0x00000001) != 0)) { distributionBucketBoundaries_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.distributionBucketBoundaries_ = distributionBucketBoundaries_; if (((bitField0_ & 0x00000002) != 0)) { distributionBucketCounts_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.distributionBucketCounts_ = distributionBucketCounts_; 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.ViewData.Measure) { return mergeFrom((io.ray.runtime.generated.Common.ViewData.Measure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ViewData.Measure other) { if (other == io.ray.runtime.generated.Common.ViewData.Measure.getDefaultInstance()) return this; if (!other.getTags().isEmpty()) { tags_ = other.tags_; onChanged(); } if (other.getIntValue() != 0L) { setIntValue(other.getIntValue()); } if (other.getDoubleValue() != 0D) { setDoubleValue(other.getDoubleValue()); } if (other.getDistributionMin() != 0D) { setDistributionMin(other.getDistributionMin()); } if (other.getDistributionMean() != 0D) { setDistributionMean(other.getDistributionMean()); } if (other.getDistributionMax() != 0D) { setDistributionMax(other.getDistributionMax()); } if (other.getDistributionCount() != 0D) { setDistributionCount(other.getDistributionCount()); } if (!other.distributionBucketBoundaries_.isEmpty()) { if (distributionBucketBoundaries_.isEmpty()) { distributionBucketBoundaries_ = other.distributionBucketBoundaries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDistributionBucketBoundariesIsMutable(); distributionBucketBoundaries_.addAll(other.distributionBucketBoundaries_); } onChanged(); } if (!other.distributionBucketCounts_.isEmpty()) { if (distributionBucketCounts_.isEmpty()) { distributionBucketCounts_ = other.distributionBucketCounts_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDistributionBucketCountsIsMutable(); distributionBucketCounts_.addAll(other.distributionBucketCounts_); } 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.ViewData.Measure parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ViewData.Measure) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object tags_ = ""; /** * string tags = 1 [json_name = "tags"]; * @return The tags. */ public java.lang.String getTags() { java.lang.Object ref = tags_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tags_ = s; return s; } else { return (java.lang.String) ref; } } /** * string tags = 1 [json_name = "tags"]; * @return The bytes for tags. */ public com.google.protobuf.ByteString getTagsBytes() { java.lang.Object ref = tags_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tags_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string tags = 1 [json_name = "tags"]; * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tags_ = value; onChanged(); return this; } /** * string tags = 1 [json_name = "tags"]; * @return This builder for chaining. */ public Builder clearTags() { tags_ = getDefaultInstance().getTags(); onChanged(); return this; } /** * string tags = 1 [json_name = "tags"]; * @param value The bytes for tags to set. * @return This builder for chaining. */ public Builder setTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tags_ = value; onChanged(); return this; } private long intValue_ ; /** * int64 int_value = 2 [json_name = "intValue"]; * @return The intValue. */ @java.lang.Override public long getIntValue() { return intValue_; } /** * int64 int_value = 2 [json_name = "intValue"]; * @param value The intValue to set. * @return This builder for chaining. */ public Builder setIntValue(long value) { intValue_ = value; onChanged(); return this; } /** * int64 int_value = 2 [json_name = "intValue"]; * @return This builder for chaining. */ public Builder clearIntValue() { intValue_ = 0L; onChanged(); return this; } private double doubleValue_ ; /** * double double_value = 3 [json_name = "doubleValue"]; * @return The doubleValue. */ @java.lang.Override public double getDoubleValue() { return doubleValue_; } /** * double double_value = 3 [json_name = "doubleValue"]; * @param value The doubleValue to set. * @return This builder for chaining. */ public Builder setDoubleValue(double value) { doubleValue_ = value; onChanged(); return this; } /** * double double_value = 3 [json_name = "doubleValue"]; * @return This builder for chaining. */ public Builder clearDoubleValue() { doubleValue_ = 0D; onChanged(); return this; } private double distributionMin_ ; /** * double distribution_min = 4 [json_name = "distributionMin"]; * @return The distributionMin. */ @java.lang.Override public double getDistributionMin() { return distributionMin_; } /** * double distribution_min = 4 [json_name = "distributionMin"]; * @param value The distributionMin to set. * @return This builder for chaining. */ public Builder setDistributionMin(double value) { distributionMin_ = value; onChanged(); return this; } /** * double distribution_min = 4 [json_name = "distributionMin"]; * @return This builder for chaining. */ public Builder clearDistributionMin() { distributionMin_ = 0D; onChanged(); return this; } private double distributionMean_ ; /** * double distribution_mean = 5 [json_name = "distributionMean"]; * @return The distributionMean. */ @java.lang.Override public double getDistributionMean() { return distributionMean_; } /** * double distribution_mean = 5 [json_name = "distributionMean"]; * @param value The distributionMean to set. * @return This builder for chaining. */ public Builder setDistributionMean(double value) { distributionMean_ = value; onChanged(); return this; } /** * double distribution_mean = 5 [json_name = "distributionMean"]; * @return This builder for chaining. */ public Builder clearDistributionMean() { distributionMean_ = 0D; onChanged(); return this; } private double distributionMax_ ; /** * double distribution_max = 6 [json_name = "distributionMax"]; * @return The distributionMax. */ @java.lang.Override public double getDistributionMax() { return distributionMax_; } /** * double distribution_max = 6 [json_name = "distributionMax"]; * @param value The distributionMax to set. * @return This builder for chaining. */ public Builder setDistributionMax(double value) { distributionMax_ = value; onChanged(); return this; } /** * double distribution_max = 6 [json_name = "distributionMax"]; * @return This builder for chaining. */ public Builder clearDistributionMax() { distributionMax_ = 0D; onChanged(); return this; } private double distributionCount_ ; /** * double distribution_count = 7 [json_name = "distributionCount"]; * @return The distributionCount. */ @java.lang.Override public double getDistributionCount() { return distributionCount_; } /** * double distribution_count = 7 [json_name = "distributionCount"]; * @param value The distributionCount to set. * @return This builder for chaining. */ public Builder setDistributionCount(double value) { distributionCount_ = value; onChanged(); return this; } /** * double distribution_count = 7 [json_name = "distributionCount"]; * @return This builder for chaining. */ public Builder clearDistributionCount() { distributionCount_ = 0D; onChanged(); return this; } private com.google.protobuf.Internal.DoubleList distributionBucketBoundaries_ = emptyDoubleList(); private void ensureDistributionBucketBoundariesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { distributionBucketBoundaries_ = mutableCopy(distributionBucketBoundaries_); bitField0_ |= 0x00000001; } } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @return A list containing the distributionBucketBoundaries. */ public java.util.List getDistributionBucketBoundariesList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(distributionBucketBoundaries_) : distributionBucketBoundaries_; } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @return The count of distributionBucketBoundaries. */ public int getDistributionBucketBoundariesCount() { return distributionBucketBoundaries_.size(); } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @param index The index of the element to return. * @return The distributionBucketBoundaries at the given index. */ public double getDistributionBucketBoundaries(int index) { return distributionBucketBoundaries_.getDouble(index); } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @param index The index to set the value at. * @param value The distributionBucketBoundaries to set. * @return This builder for chaining. */ public Builder setDistributionBucketBoundaries( int index, double value) { ensureDistributionBucketBoundariesIsMutable(); distributionBucketBoundaries_.setDouble(index, value); onChanged(); return this; } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @param value The distributionBucketBoundaries to add. * @return This builder for chaining. */ public Builder addDistributionBucketBoundaries(double value) { ensureDistributionBucketBoundariesIsMutable(); distributionBucketBoundaries_.addDouble(value); onChanged(); return this; } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @param values The distributionBucketBoundaries to add. * @return This builder for chaining. */ public Builder addAllDistributionBucketBoundaries( java.lang.Iterable values) { ensureDistributionBucketBoundariesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, distributionBucketBoundaries_); onChanged(); return this; } /** * repeated double distribution_bucket_boundaries = 8 [json_name = "distributionBucketBoundaries"]; * @return This builder for chaining. */ public Builder clearDistributionBucketBoundaries() { distributionBucketBoundaries_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.Internal.DoubleList distributionBucketCounts_ = emptyDoubleList(); private void ensureDistributionBucketCountsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { distributionBucketCounts_ = mutableCopy(distributionBucketCounts_); bitField0_ |= 0x00000002; } } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @return A list containing the distributionBucketCounts. */ public java.util.List getDistributionBucketCountsList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(distributionBucketCounts_) : distributionBucketCounts_; } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @return The count of distributionBucketCounts. */ public int getDistributionBucketCountsCount() { return distributionBucketCounts_.size(); } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @param index The index of the element to return. * @return The distributionBucketCounts at the given index. */ public double getDistributionBucketCounts(int index) { return distributionBucketCounts_.getDouble(index); } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @param index The index to set the value at. * @param value The distributionBucketCounts to set. * @return This builder for chaining. */ public Builder setDistributionBucketCounts( int index, double value) { ensureDistributionBucketCountsIsMutable(); distributionBucketCounts_.setDouble(index, value); onChanged(); return this; } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @param value The distributionBucketCounts to add. * @return This builder for chaining. */ public Builder addDistributionBucketCounts(double value) { ensureDistributionBucketCountsIsMutable(); distributionBucketCounts_.addDouble(value); onChanged(); return this; } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @param values The distributionBucketCounts to add. * @return This builder for chaining. */ public Builder addAllDistributionBucketCounts( java.lang.Iterable values) { ensureDistributionBucketCountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, distributionBucketCounts_); onChanged(); return this; } /** * repeated double distribution_bucket_counts = 9 [json_name = "distributionBucketCounts"]; * @return This builder for chaining. */ public Builder clearDistributionBucketCounts() { distributionBucketCounts_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000002); 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.ViewData.Measure) } // @@protoc_insertion_point(class_scope:ray.rpc.ViewData.Measure) private static final io.ray.runtime.generated.Common.ViewData.Measure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ViewData.Measure(); } public static io.ray.runtime.generated.Common.ViewData.Measure getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Measure parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Measure(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.ViewData.Measure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int VIEW_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object viewName_; /** * string view_name = 1 [json_name = "viewName"]; * @return The viewName. */ @java.lang.Override public java.lang.String getViewName() { java.lang.Object ref = viewName_; 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(); viewName_ = s; return s; } } /** * string view_name = 1 [json_name = "viewName"]; * @return The bytes for viewName. */ @java.lang.Override public com.google.protobuf.ByteString getViewNameBytes() { java.lang.Object ref = viewName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); viewName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MEASURES_FIELD_NUMBER = 2; private java.util.List measures_; /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ @java.lang.Override public java.util.List getMeasuresList() { return measures_; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ @java.lang.Override public java.util.List getMeasuresOrBuilderList() { return measures_; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ @java.lang.Override public int getMeasuresCount() { return measures_.size(); } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ViewData.Measure getMeasures(int index) { return measures_.get(index); } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ViewData.MeasureOrBuilder getMeasuresOrBuilder( int index) { return measures_.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(viewName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, viewName_); } for (int i = 0; i < measures_.size(); i++) { output.writeMessage(2, measures_.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(viewName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, viewName_); } for (int i = 0; i < measures_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, measures_.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.ViewData)) { return super.equals(obj); } io.ray.runtime.generated.Common.ViewData other = (io.ray.runtime.generated.Common.ViewData) obj; if (!getViewName() .equals(other.getViewName())) return false; if (!getMeasuresList() .equals(other.getMeasuresList())) 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) + VIEW_NAME_FIELD_NUMBER; hash = (53 * hash) + getViewName().hashCode(); if (getMeasuresCount() > 0) { hash = (37 * hash) + MEASURES_FIELD_NUMBER; hash = (53 * hash) + getMeasuresList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ViewData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ViewData 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.ViewData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ViewData 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.ViewData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ViewData 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.ViewData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ViewData 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.ViewData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ViewData 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.ViewData 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.ViewData 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.ViewData 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.ViewData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ViewData) io.ray.runtime.generated.Common.ViewDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ViewData.class, io.ray.runtime.generated.Common.ViewData.Builder.class); } // Construct using io.ray.runtime.generated.Common.ViewData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMeasuresFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); viewName_ = ""; if (measuresBuilder_ == null) { measures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { measuresBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ViewData_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ViewData getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ViewData.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ViewData build() { io.ray.runtime.generated.Common.ViewData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ViewData buildPartial() { io.ray.runtime.generated.Common.ViewData result = new io.ray.runtime.generated.Common.ViewData(this); int from_bitField0_ = bitField0_; result.viewName_ = viewName_; if (measuresBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { measures_ = java.util.Collections.unmodifiableList(measures_); bitField0_ = (bitField0_ & ~0x00000001); } result.measures_ = measures_; } else { result.measures_ = measuresBuilder_.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.ViewData) { return mergeFrom((io.ray.runtime.generated.Common.ViewData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ViewData other) { if (other == io.ray.runtime.generated.Common.ViewData.getDefaultInstance()) return this; if (!other.getViewName().isEmpty()) { viewName_ = other.viewName_; onChanged(); } if (measuresBuilder_ == null) { if (!other.measures_.isEmpty()) { if (measures_.isEmpty()) { measures_ = other.measures_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMeasuresIsMutable(); measures_.addAll(other.measures_); } onChanged(); } } else { if (!other.measures_.isEmpty()) { if (measuresBuilder_.isEmpty()) { measuresBuilder_.dispose(); measuresBuilder_ = null; measures_ = other.measures_; bitField0_ = (bitField0_ & ~0x00000001); measuresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMeasuresFieldBuilder() : null; } else { measuresBuilder_.addAllMessages(other.measures_); } } } 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.ViewData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ViewData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object viewName_ = ""; /** * string view_name = 1 [json_name = "viewName"]; * @return The viewName. */ public java.lang.String getViewName() { java.lang.Object ref = viewName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); viewName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string view_name = 1 [json_name = "viewName"]; * @return The bytes for viewName. */ public com.google.protobuf.ByteString getViewNameBytes() { java.lang.Object ref = viewName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); viewName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string view_name = 1 [json_name = "viewName"]; * @param value The viewName to set. * @return This builder for chaining. */ public Builder setViewName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } viewName_ = value; onChanged(); return this; } /** * string view_name = 1 [json_name = "viewName"]; * @return This builder for chaining. */ public Builder clearViewName() { viewName_ = getDefaultInstance().getViewName(); onChanged(); return this; } /** * string view_name = 1 [json_name = "viewName"]; * @param value The bytes for viewName to set. * @return This builder for chaining. */ public Builder setViewNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); viewName_ = value; onChanged(); return this; } private java.util.List measures_ = java.util.Collections.emptyList(); private void ensureMeasuresIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { measures_ = new java.util.ArrayList(measures_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ViewData.Measure, io.ray.runtime.generated.Common.ViewData.Measure.Builder, io.ray.runtime.generated.Common.ViewData.MeasureOrBuilder> measuresBuilder_; /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public java.util.List getMeasuresList() { if (measuresBuilder_ == null) { return java.util.Collections.unmodifiableList(measures_); } else { return measuresBuilder_.getMessageList(); } } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public int getMeasuresCount() { if (measuresBuilder_ == null) { return measures_.size(); } else { return measuresBuilder_.getCount(); } } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public io.ray.runtime.generated.Common.ViewData.Measure getMeasures(int index) { if (measuresBuilder_ == null) { return measures_.get(index); } else { return measuresBuilder_.getMessage(index); } } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder setMeasures( int index, io.ray.runtime.generated.Common.ViewData.Measure value) { if (measuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMeasuresIsMutable(); measures_.set(index, value); onChanged(); } else { measuresBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder setMeasures( int index, io.ray.runtime.generated.Common.ViewData.Measure.Builder builderForValue) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.set(index, builderForValue.build()); onChanged(); } else { measuresBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder addMeasures(io.ray.runtime.generated.Common.ViewData.Measure value) { if (measuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMeasuresIsMutable(); measures_.add(value); onChanged(); } else { measuresBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder addMeasures( int index, io.ray.runtime.generated.Common.ViewData.Measure value) { if (measuresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMeasuresIsMutable(); measures_.add(index, value); onChanged(); } else { measuresBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder addMeasures( io.ray.runtime.generated.Common.ViewData.Measure.Builder builderForValue) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.add(builderForValue.build()); onChanged(); } else { measuresBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder addMeasures( int index, io.ray.runtime.generated.Common.ViewData.Measure.Builder builderForValue) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.add(index, builderForValue.build()); onChanged(); } else { measuresBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder addAllMeasures( java.lang.Iterable values) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, measures_); onChanged(); } else { measuresBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder clearMeasures() { if (measuresBuilder_ == null) { measures_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { measuresBuilder_.clear(); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public Builder removeMeasures(int index) { if (measuresBuilder_ == null) { ensureMeasuresIsMutable(); measures_.remove(index); onChanged(); } else { measuresBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public io.ray.runtime.generated.Common.ViewData.Measure.Builder getMeasuresBuilder( int index) { return getMeasuresFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public io.ray.runtime.generated.Common.ViewData.MeasureOrBuilder getMeasuresOrBuilder( int index) { if (measuresBuilder_ == null) { return measures_.get(index); } else { return measuresBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public java.util.List getMeasuresOrBuilderList() { if (measuresBuilder_ != null) { return measuresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(measures_); } } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public io.ray.runtime.generated.Common.ViewData.Measure.Builder addMeasuresBuilder() { return getMeasuresFieldBuilder().addBuilder( io.ray.runtime.generated.Common.ViewData.Measure.getDefaultInstance()); } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public io.ray.runtime.generated.Common.ViewData.Measure.Builder addMeasuresBuilder( int index) { return getMeasuresFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.ViewData.Measure.getDefaultInstance()); } /** * repeated .ray.rpc.ViewData.Measure measures = 2 [json_name = "measures"]; */ public java.util.List getMeasuresBuilderList() { return getMeasuresFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ViewData.Measure, io.ray.runtime.generated.Common.ViewData.Measure.Builder, io.ray.runtime.generated.Common.ViewData.MeasureOrBuilder> getMeasuresFieldBuilder() { if (measuresBuilder_ == null) { measuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ViewData.Measure, io.ray.runtime.generated.Common.ViewData.Measure.Builder, io.ray.runtime.generated.Common.ViewData.MeasureOrBuilder>( measures_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); measures_ = null; } return measuresBuilder_; } @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.ViewData) } // @@protoc_insertion_point(class_scope:ray.rpc.ViewData) private static final io.ray.runtime.generated.Common.ViewData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ViewData(); } public static io.ray.runtime.generated.Common.ViewData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ViewData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ViewData(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.ViewData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObjectRefInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ObjectRefInfo) com.google.protobuf.MessageOrBuilder { /** * bytes object_id = 1 [json_name = "objectId"]; * @return The objectId. */ com.google.protobuf.ByteString getObjectId(); /** * string call_site = 2 [json_name = "callSite"]; * @return The callSite. */ java.lang.String getCallSite(); /** * string call_site = 2 [json_name = "callSite"]; * @return The bytes for callSite. */ com.google.protobuf.ByteString getCallSiteBytes(); /** * int64 object_size = 3 [json_name = "objectSize"]; * @return The objectSize. */ long getObjectSize(); /** * int64 local_ref_count = 4 [json_name = "localRefCount"]; * @return The localRefCount. */ long getLocalRefCount(); /** * int64 submitted_task_ref_count = 5 [json_name = "submittedTaskRefCount"]; * @return The submittedTaskRefCount. */ long getSubmittedTaskRefCount(); /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @return A list containing the containedInOwned. */ java.util.List getContainedInOwnedList(); /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @return The count of containedInOwned. */ int getContainedInOwnedCount(); /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @param index The index of the element to return. * @return The containedInOwned at the given index. */ com.google.protobuf.ByteString getContainedInOwned(int index); /** * bool pinned_in_memory = 7 [json_name = "pinnedInMemory"]; * @return The pinnedInMemory. */ boolean getPinnedInMemory(); /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @return The enum numeric value on the wire for taskStatus. */ int getTaskStatusValue(); /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @return The taskStatus. */ io.ray.runtime.generated.Common.TaskStatus getTaskStatus(); /** * uint64 attempt_number = 9 [json_name = "attemptNumber"]; * @return The attemptNumber. */ long getAttemptNumber(); } /** * Protobuf type {@code ray.rpc.ObjectRefInfo} */ public static final class ObjectRefInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ObjectRefInfo) ObjectRefInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ObjectRefInfo.newBuilder() to construct. private ObjectRefInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObjectRefInfo() { objectId_ = com.google.protobuf.ByteString.EMPTY; callSite_ = ""; containedInOwned_ = java.util.Collections.emptyList(); taskStatus_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ObjectRefInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ObjectRefInfo( 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: { objectId_ = input.readBytes(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); callSite_ = s; break; } case 24: { objectSize_ = input.readInt64(); break; } case 32: { localRefCount_ = input.readInt64(); break; } case 40: { submittedTaskRefCount_ = input.readInt64(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { containedInOwned_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } containedInOwned_.add(input.readBytes()); break; } case 56: { pinnedInMemory_ = input.readBool(); break; } case 64: { int rawValue = input.readEnum(); taskStatus_ = rawValue; break; } case 72: { attemptNumber_ = input.readUInt64(); 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)) { containedInOwned_ = java.util.Collections.unmodifiableList(containedInOwned_); // 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_ObjectRefInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectRefInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ObjectRefInfo.class, io.ray.runtime.generated.Common.ObjectRefInfo.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 CALL_SITE_FIELD_NUMBER = 2; private volatile java.lang.Object callSite_; /** * string call_site = 2 [json_name = "callSite"]; * @return The callSite. */ @java.lang.Override public java.lang.String getCallSite() { java.lang.Object ref = callSite_; 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(); callSite_ = s; return s; } } /** * string call_site = 2 [json_name = "callSite"]; * @return The bytes for callSite. */ @java.lang.Override public com.google.protobuf.ByteString getCallSiteBytes() { java.lang.Object ref = callSite_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callSite_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECT_SIZE_FIELD_NUMBER = 3; private long objectSize_; /** * int64 object_size = 3 [json_name = "objectSize"]; * @return The objectSize. */ @java.lang.Override public long getObjectSize() { return objectSize_; } public static final int LOCAL_REF_COUNT_FIELD_NUMBER = 4; private long localRefCount_; /** * int64 local_ref_count = 4 [json_name = "localRefCount"]; * @return The localRefCount. */ @java.lang.Override public long getLocalRefCount() { return localRefCount_; } public static final int SUBMITTED_TASK_REF_COUNT_FIELD_NUMBER = 5; private long submittedTaskRefCount_; /** * int64 submitted_task_ref_count = 5 [json_name = "submittedTaskRefCount"]; * @return The submittedTaskRefCount. */ @java.lang.Override public long getSubmittedTaskRefCount() { return submittedTaskRefCount_; } public static final int CONTAINED_IN_OWNED_FIELD_NUMBER = 6; private java.util.List containedInOwned_; /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @return A list containing the containedInOwned. */ @java.lang.Override public java.util.List getContainedInOwnedList() { return containedInOwned_; } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @return The count of containedInOwned. */ public int getContainedInOwnedCount() { return containedInOwned_.size(); } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @param index The index of the element to return. * @return The containedInOwned at the given index. */ public com.google.protobuf.ByteString getContainedInOwned(int index) { return containedInOwned_.get(index); } public static final int PINNED_IN_MEMORY_FIELD_NUMBER = 7; private boolean pinnedInMemory_; /** * bool pinned_in_memory = 7 [json_name = "pinnedInMemory"]; * @return The pinnedInMemory. */ @java.lang.Override public boolean getPinnedInMemory() { return pinnedInMemory_; } public static final int TASK_STATUS_FIELD_NUMBER = 8; private int taskStatus_; /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @return The enum numeric value on the wire for taskStatus. */ @java.lang.Override public int getTaskStatusValue() { return taskStatus_; } /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @return The taskStatus. */ @java.lang.Override public io.ray.runtime.generated.Common.TaskStatus getTaskStatus() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.TaskStatus result = io.ray.runtime.generated.Common.TaskStatus.valueOf(taskStatus_); return result == null ? io.ray.runtime.generated.Common.TaskStatus.UNRECOGNIZED : result; } public static final int ATTEMPT_NUMBER_FIELD_NUMBER = 9; private long attemptNumber_; /** * uint64 attempt_number = 9 [json_name = "attemptNumber"]; * @return The attemptNumber. */ @java.lang.Override public long getAttemptNumber() { return attemptNumber_; } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callSite_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, callSite_); } if (objectSize_ != 0L) { output.writeInt64(3, objectSize_); } if (localRefCount_ != 0L) { output.writeInt64(4, localRefCount_); } if (submittedTaskRefCount_ != 0L) { output.writeInt64(5, submittedTaskRefCount_); } for (int i = 0; i < containedInOwned_.size(); i++) { output.writeBytes(6, containedInOwned_.get(i)); } if (pinnedInMemory_ != false) { output.writeBool(7, pinnedInMemory_); } if (taskStatus_ != io.ray.runtime.generated.Common.TaskStatus.NIL.getNumber()) { output.writeEnum(8, taskStatus_); } if (attemptNumber_ != 0L) { output.writeUInt64(9, attemptNumber_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(callSite_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callSite_); } if (objectSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, objectSize_); } if (localRefCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, localRefCount_); } if (submittedTaskRefCount_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, submittedTaskRefCount_); } { int dataSize = 0; for (int i = 0; i < containedInOwned_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(containedInOwned_.get(i)); } size += dataSize; size += 1 * getContainedInOwnedList().size(); } if (pinnedInMemory_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, pinnedInMemory_); } if (taskStatus_ != io.ray.runtime.generated.Common.TaskStatus.NIL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(8, taskStatus_); } if (attemptNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(9, attemptNumber_); } 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.ObjectRefInfo)) { return super.equals(obj); } io.ray.runtime.generated.Common.ObjectRefInfo other = (io.ray.runtime.generated.Common.ObjectRefInfo) obj; if (!getObjectId() .equals(other.getObjectId())) return false; if (!getCallSite() .equals(other.getCallSite())) return false; if (getObjectSize() != other.getObjectSize()) return false; if (getLocalRefCount() != other.getLocalRefCount()) return false; if (getSubmittedTaskRefCount() != other.getSubmittedTaskRefCount()) return false; if (!getContainedInOwnedList() .equals(other.getContainedInOwnedList())) return false; if (getPinnedInMemory() != other.getPinnedInMemory()) return false; if (taskStatus_ != other.taskStatus_) return false; if (getAttemptNumber() != other.getAttemptNumber()) 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) + CALL_SITE_FIELD_NUMBER; hash = (53 * hash) + getCallSite().hashCode(); hash = (37 * hash) + OBJECT_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getObjectSize()); hash = (37 * hash) + LOCAL_REF_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLocalRefCount()); hash = (37 * hash) + SUBMITTED_TASK_REF_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSubmittedTaskRefCount()); if (getContainedInOwnedCount() > 0) { hash = (37 * hash) + CONTAINED_IN_OWNED_FIELD_NUMBER; hash = (53 * hash) + getContainedInOwnedList().hashCode(); } hash = (37 * hash) + PINNED_IN_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPinnedInMemory()); hash = (37 * hash) + TASK_STATUS_FIELD_NUMBER; hash = (53 * hash) + taskStatus_; hash = (37 * hash) + ATTEMPT_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAttemptNumber()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ObjectRefInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectRefInfo 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.ObjectRefInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectRefInfo 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.ObjectRefInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ObjectRefInfo 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.ObjectRefInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ObjectRefInfo 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.ObjectRefInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ObjectRefInfo 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.ObjectRefInfo 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.ObjectRefInfo 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.ObjectRefInfo 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.ObjectRefInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ObjectRefInfo) io.ray.runtime.generated.Common.ObjectRefInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectRefInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectRefInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ObjectRefInfo.class, io.ray.runtime.generated.Common.ObjectRefInfo.Builder.class); } // Construct using io.ray.runtime.generated.Common.ObjectRefInfo.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; callSite_ = ""; objectSize_ = 0L; localRefCount_ = 0L; submittedTaskRefCount_ = 0L; containedInOwned_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); pinnedInMemory_ = false; taskStatus_ = 0; attemptNumber_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ObjectRefInfo_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ObjectRefInfo getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ObjectRefInfo.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ObjectRefInfo build() { io.ray.runtime.generated.Common.ObjectRefInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ObjectRefInfo buildPartial() { io.ray.runtime.generated.Common.ObjectRefInfo result = new io.ray.runtime.generated.Common.ObjectRefInfo(this); int from_bitField0_ = bitField0_; result.objectId_ = objectId_; result.callSite_ = callSite_; result.objectSize_ = objectSize_; result.localRefCount_ = localRefCount_; result.submittedTaskRefCount_ = submittedTaskRefCount_; if (((bitField0_ & 0x00000001) != 0)) { containedInOwned_ = java.util.Collections.unmodifiableList(containedInOwned_); bitField0_ = (bitField0_ & ~0x00000001); } result.containedInOwned_ = containedInOwned_; result.pinnedInMemory_ = pinnedInMemory_; result.taskStatus_ = taskStatus_; result.attemptNumber_ = attemptNumber_; 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.ObjectRefInfo) { return mergeFrom((io.ray.runtime.generated.Common.ObjectRefInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ObjectRefInfo other) { if (other == io.ray.runtime.generated.Common.ObjectRefInfo.getDefaultInstance()) return this; if (other.getObjectId() != com.google.protobuf.ByteString.EMPTY) { setObjectId(other.getObjectId()); } if (!other.getCallSite().isEmpty()) { callSite_ = other.callSite_; onChanged(); } if (other.getObjectSize() != 0L) { setObjectSize(other.getObjectSize()); } if (other.getLocalRefCount() != 0L) { setLocalRefCount(other.getLocalRefCount()); } if (other.getSubmittedTaskRefCount() != 0L) { setSubmittedTaskRefCount(other.getSubmittedTaskRefCount()); } if (!other.containedInOwned_.isEmpty()) { if (containedInOwned_.isEmpty()) { containedInOwned_ = other.containedInOwned_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureContainedInOwnedIsMutable(); containedInOwned_.addAll(other.containedInOwned_); } onChanged(); } if (other.getPinnedInMemory() != false) { setPinnedInMemory(other.getPinnedInMemory()); } if (other.taskStatus_ != 0) { setTaskStatusValue(other.getTaskStatusValue()); } if (other.getAttemptNumber() != 0L) { setAttemptNumber(other.getAttemptNumber()); } 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.ObjectRefInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ObjectRefInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; 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 java.lang.Object callSite_ = ""; /** * string call_site = 2 [json_name = "callSite"]; * @return The callSite. */ public java.lang.String getCallSite() { java.lang.Object ref = callSite_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); callSite_ = s; return s; } else { return (java.lang.String) ref; } } /** * string call_site = 2 [json_name = "callSite"]; * @return The bytes for callSite. */ public com.google.protobuf.ByteString getCallSiteBytes() { java.lang.Object ref = callSite_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); callSite_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string call_site = 2 [json_name = "callSite"]; * @param value The callSite to set. * @return This builder for chaining. */ public Builder setCallSite( java.lang.String value) { if (value == null) { throw new NullPointerException(); } callSite_ = value; onChanged(); return this; } /** * string call_site = 2 [json_name = "callSite"]; * @return This builder for chaining. */ public Builder clearCallSite() { callSite_ = getDefaultInstance().getCallSite(); onChanged(); return this; } /** * string call_site = 2 [json_name = "callSite"]; * @param value The bytes for callSite to set. * @return This builder for chaining. */ public Builder setCallSiteBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); callSite_ = value; onChanged(); return this; } private long objectSize_ ; /** * int64 object_size = 3 [json_name = "objectSize"]; * @return The objectSize. */ @java.lang.Override public long getObjectSize() { return objectSize_; } /** * int64 object_size = 3 [json_name = "objectSize"]; * @param value The objectSize to set. * @return This builder for chaining. */ public Builder setObjectSize(long value) { objectSize_ = value; onChanged(); return this; } /** * int64 object_size = 3 [json_name = "objectSize"]; * @return This builder for chaining. */ public Builder clearObjectSize() { objectSize_ = 0L; onChanged(); return this; } private long localRefCount_ ; /** * int64 local_ref_count = 4 [json_name = "localRefCount"]; * @return The localRefCount. */ @java.lang.Override public long getLocalRefCount() { return localRefCount_; } /** * int64 local_ref_count = 4 [json_name = "localRefCount"]; * @param value The localRefCount to set. * @return This builder for chaining. */ public Builder setLocalRefCount(long value) { localRefCount_ = value; onChanged(); return this; } /** * int64 local_ref_count = 4 [json_name = "localRefCount"]; * @return This builder for chaining. */ public Builder clearLocalRefCount() { localRefCount_ = 0L; onChanged(); return this; } private long submittedTaskRefCount_ ; /** * int64 submitted_task_ref_count = 5 [json_name = "submittedTaskRefCount"]; * @return The submittedTaskRefCount. */ @java.lang.Override public long getSubmittedTaskRefCount() { return submittedTaskRefCount_; } /** * int64 submitted_task_ref_count = 5 [json_name = "submittedTaskRefCount"]; * @param value The submittedTaskRefCount to set. * @return This builder for chaining. */ public Builder setSubmittedTaskRefCount(long value) { submittedTaskRefCount_ = value; onChanged(); return this; } /** * int64 submitted_task_ref_count = 5 [json_name = "submittedTaskRefCount"]; * @return This builder for chaining. */ public Builder clearSubmittedTaskRefCount() { submittedTaskRefCount_ = 0L; onChanged(); return this; } private java.util.List containedInOwned_ = java.util.Collections.emptyList(); private void ensureContainedInOwnedIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { containedInOwned_ = new java.util.ArrayList(containedInOwned_); bitField0_ |= 0x00000001; } } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @return A list containing the containedInOwned. */ public java.util.List getContainedInOwnedList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(containedInOwned_) : containedInOwned_; } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @return The count of containedInOwned. */ public int getContainedInOwnedCount() { return containedInOwned_.size(); } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @param index The index of the element to return. * @return The containedInOwned at the given index. */ public com.google.protobuf.ByteString getContainedInOwned(int index) { return containedInOwned_.get(index); } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @param index The index to set the value at. * @param value The containedInOwned to set. * @return This builder for chaining. */ public Builder setContainedInOwned( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureContainedInOwnedIsMutable(); containedInOwned_.set(index, value); onChanged(); return this; } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @param value The containedInOwned to add. * @return This builder for chaining. */ public Builder addContainedInOwned(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureContainedInOwnedIsMutable(); containedInOwned_.add(value); onChanged(); return this; } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @param values The containedInOwned to add. * @return This builder for chaining. */ public Builder addAllContainedInOwned( java.lang.Iterable values) { ensureContainedInOwnedIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, containedInOwned_); onChanged(); return this; } /** * repeated bytes contained_in_owned = 6 [json_name = "containedInOwned"]; * @return This builder for chaining. */ public Builder clearContainedInOwned() { containedInOwned_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private boolean pinnedInMemory_ ; /** * bool pinned_in_memory = 7 [json_name = "pinnedInMemory"]; * @return The pinnedInMemory. */ @java.lang.Override public boolean getPinnedInMemory() { return pinnedInMemory_; } /** * bool pinned_in_memory = 7 [json_name = "pinnedInMemory"]; * @param value The pinnedInMemory to set. * @return This builder for chaining. */ public Builder setPinnedInMemory(boolean value) { pinnedInMemory_ = value; onChanged(); return this; } /** * bool pinned_in_memory = 7 [json_name = "pinnedInMemory"]; * @return This builder for chaining. */ public Builder clearPinnedInMemory() { pinnedInMemory_ = false; onChanged(); return this; } private int taskStatus_ = 0; /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @return The enum numeric value on the wire for taskStatus. */ @java.lang.Override public int getTaskStatusValue() { return taskStatus_; } /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @param value The enum numeric value on the wire for taskStatus to set. * @return This builder for chaining. */ public Builder setTaskStatusValue(int value) { taskStatus_ = value; onChanged(); return this; } /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @return The taskStatus. */ @java.lang.Override public io.ray.runtime.generated.Common.TaskStatus getTaskStatus() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.TaskStatus result = io.ray.runtime.generated.Common.TaskStatus.valueOf(taskStatus_); return result == null ? io.ray.runtime.generated.Common.TaskStatus.UNRECOGNIZED : result; } /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @param value The taskStatus to set. * @return This builder for chaining. */ public Builder setTaskStatus(io.ray.runtime.generated.Common.TaskStatus value) { if (value == null) { throw new NullPointerException(); } taskStatus_ = value.getNumber(); onChanged(); return this; } /** * .ray.rpc.TaskStatus task_status = 8 [json_name = "taskStatus"]; * @return This builder for chaining. */ public Builder clearTaskStatus() { taskStatus_ = 0; onChanged(); return this; } private long attemptNumber_ ; /** * uint64 attempt_number = 9 [json_name = "attemptNumber"]; * @return The attemptNumber. */ @java.lang.Override public long getAttemptNumber() { return attemptNumber_; } /** * uint64 attempt_number = 9 [json_name = "attemptNumber"]; * @param value The attemptNumber to set. * @return This builder for chaining. */ public Builder setAttemptNumber(long value) { attemptNumber_ = value; onChanged(); return this; } /** * uint64 attempt_number = 9 [json_name = "attemptNumber"]; * @return This builder for chaining. */ public Builder clearAttemptNumber() { attemptNumber_ = 0L; 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.ObjectRefInfo) } // @@protoc_insertion_point(class_scope:ray.rpc.ObjectRefInfo) private static final io.ray.runtime.generated.Common.ObjectRefInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ObjectRefInfo(); } public static io.ray.runtime.generated.Common.ObjectRefInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObjectRefInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ObjectRefInfo(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.ObjectRefInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceAllocationsOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ResourceAllocations) com.google.protobuf.MessageOrBuilder { /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ java.util.List getResourceSlotsList(); /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot getResourceSlots(int index); /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ int getResourceSlotsCount(); /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ java.util.List getResourceSlotsOrBuilderList(); /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlotOrBuilder getResourceSlotsOrBuilder( int index); } /** * Protobuf type {@code ray.rpc.ResourceAllocations} */ public static final class ResourceAllocations extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ResourceAllocations) ResourceAllocationsOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceAllocations.newBuilder() to construct. private ResourceAllocations(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceAllocations() { resourceSlots_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResourceAllocations(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceAllocations( 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)) { resourceSlots_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } resourceSlots_.add( input.readMessage(io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.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)) { resourceSlots_ = java.util.Collections.unmodifiableList(resourceSlots_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ResourceAllocations.class, io.ray.runtime.generated.Common.ResourceAllocations.Builder.class); } public interface ResourceSlotOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.ResourceAllocations.ResourceSlot) com.google.protobuf.MessageOrBuilder { /** * int64 slot = 1 [json_name = "slot"]; * @return The slot. */ long getSlot(); /** * double allocation = 2 [json_name = "allocation"]; * @return The allocation. */ double getAllocation(); } /** * Protobuf type {@code ray.rpc.ResourceAllocations.ResourceSlot} */ public static final class ResourceSlot extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.ResourceAllocations.ResourceSlot) ResourceSlotOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceSlot.newBuilder() to construct. private ResourceSlot(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceSlot() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResourceSlot(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResourceSlot( 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: { slot_ = input.readInt64(); break; } case 17: { allocation_ = 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_ResourceAllocations_ResourceSlot_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_ResourceSlot_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.class, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder.class); } public static final int SLOT_FIELD_NUMBER = 1; private long slot_; /** * int64 slot = 1 [json_name = "slot"]; * @return The slot. */ @java.lang.Override public long getSlot() { return slot_; } public static final int ALLOCATION_FIELD_NUMBER = 2; private double allocation_; /** * double allocation = 2 [json_name = "allocation"]; * @return The allocation. */ @java.lang.Override public double getAllocation() { return allocation_; } 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 (slot_ != 0L) { output.writeInt64(1, slot_); } if (java.lang.Double.doubleToRawLongBits(allocation_) != 0) { output.writeDouble(2, allocation_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (slot_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, slot_); } if (java.lang.Double.doubleToRawLongBits(allocation_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, allocation_); } 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.ResourceAllocations.ResourceSlot)) { return super.equals(obj); } io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot other = (io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot) obj; if (getSlot() != other.getSlot()) return false; if (java.lang.Double.doubleToLongBits(getAllocation()) != java.lang.Double.doubleToLongBits( other.getAllocation())) 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) + SLOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSlot()); hash = (37 * hash) + ALLOCATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAllocation())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot 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.ResourceAllocations.ResourceSlot parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot 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.ResourceAllocations.ResourceSlot parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot 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.ResourceAllocations.ResourceSlot parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot 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.ResourceAllocations.ResourceSlot parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot 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.ResourceAllocations.ResourceSlot 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.ResourceAllocations.ResourceSlot 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.ResourceAllocations.ResourceSlot 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.ResourceAllocations.ResourceSlot} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ResourceAllocations.ResourceSlot) io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlotOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_ResourceSlot_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_ResourceSlot_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.class, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder.class); } // Construct using io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.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(); slot_ = 0L; allocation_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_ResourceSlot_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot build() { io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot buildPartial() { io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot result = new io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot(this); result.slot_ = slot_; result.allocation_ = allocation_; 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.ResourceAllocations.ResourceSlot) { return mergeFrom((io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot other) { if (other == io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.getDefaultInstance()) return this; if (other.getSlot() != 0L) { setSlot(other.getSlot()); } if (other.getAllocation() != 0D) { setAllocation(other.getAllocation()); } 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.ResourceAllocations.ResourceSlot parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long slot_ ; /** * int64 slot = 1 [json_name = "slot"]; * @return The slot. */ @java.lang.Override public long getSlot() { return slot_; } /** * int64 slot = 1 [json_name = "slot"]; * @param value The slot to set. * @return This builder for chaining. */ public Builder setSlot(long value) { slot_ = value; onChanged(); return this; } /** * int64 slot = 1 [json_name = "slot"]; * @return This builder for chaining. */ public Builder clearSlot() { slot_ = 0L; onChanged(); return this; } private double allocation_ ; /** * double allocation = 2 [json_name = "allocation"]; * @return The allocation. */ @java.lang.Override public double getAllocation() { return allocation_; } /** * double allocation = 2 [json_name = "allocation"]; * @param value The allocation to set. * @return This builder for chaining. */ public Builder setAllocation(double value) { allocation_ = value; onChanged(); return this; } /** * double allocation = 2 [json_name = "allocation"]; * @return This builder for chaining. */ public Builder clearAllocation() { allocation_ = 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.ResourceAllocations.ResourceSlot) } // @@protoc_insertion_point(class_scope:ray.rpc.ResourceAllocations.ResourceSlot) private static final io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot(); } public static io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceSlot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceSlot(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.ResourceAllocations.ResourceSlot getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int RESOURCE_SLOTS_FIELD_NUMBER = 1; private java.util.List resourceSlots_; /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ @java.lang.Override public java.util.List getResourceSlotsList() { return resourceSlots_; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ @java.lang.Override public java.util.List getResourceSlotsOrBuilderList() { return resourceSlots_; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ @java.lang.Override public int getResourceSlotsCount() { return resourceSlots_.size(); } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot getResourceSlots(int index) { return resourceSlots_.get(index); } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlotOrBuilder getResourceSlotsOrBuilder( int index) { return resourceSlots_.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 < resourceSlots_.size(); i++) { output.writeMessage(1, resourceSlots_.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 < resourceSlots_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, resourceSlots_.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.ResourceAllocations)) { return super.equals(obj); } io.ray.runtime.generated.Common.ResourceAllocations other = (io.ray.runtime.generated.Common.ResourceAllocations) obj; if (!getResourceSlotsList() .equals(other.getResourceSlotsList())) 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 (getResourceSlotsCount() > 0) { hash = (37 * hash) + RESOURCE_SLOTS_FIELD_NUMBER; hash = (53 * hash) + getResourceSlotsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.ResourceAllocations parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceAllocations 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.ResourceAllocations parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceAllocations 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.ResourceAllocations parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.ResourceAllocations 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.ResourceAllocations parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ResourceAllocations 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.ResourceAllocations parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.ResourceAllocations 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.ResourceAllocations 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.ResourceAllocations 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.ResourceAllocations 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.ResourceAllocations} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.ResourceAllocations) io.ray.runtime.generated.Common.ResourceAllocationsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.ResourceAllocations.class, io.ray.runtime.generated.Common.ResourceAllocations.Builder.class); } // Construct using io.ray.runtime.generated.Common.ResourceAllocations.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResourceSlotsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (resourceSlotsBuilder_ == null) { resourceSlots_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { resourceSlotsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_ResourceAllocations_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations getDefaultInstanceForType() { return io.ray.runtime.generated.Common.ResourceAllocations.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations build() { io.ray.runtime.generated.Common.ResourceAllocations result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations buildPartial() { io.ray.runtime.generated.Common.ResourceAllocations result = new io.ray.runtime.generated.Common.ResourceAllocations(this); int from_bitField0_ = bitField0_; if (resourceSlotsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resourceSlots_ = java.util.Collections.unmodifiableList(resourceSlots_); bitField0_ = (bitField0_ & ~0x00000001); } result.resourceSlots_ = resourceSlots_; } else { result.resourceSlots_ = resourceSlotsBuilder_.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.ResourceAllocations) { return mergeFrom((io.ray.runtime.generated.Common.ResourceAllocations)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.ResourceAllocations other) { if (other == io.ray.runtime.generated.Common.ResourceAllocations.getDefaultInstance()) return this; if (resourceSlotsBuilder_ == null) { if (!other.resourceSlots_.isEmpty()) { if (resourceSlots_.isEmpty()) { resourceSlots_ = other.resourceSlots_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourceSlotsIsMutable(); resourceSlots_.addAll(other.resourceSlots_); } onChanged(); } } else { if (!other.resourceSlots_.isEmpty()) { if (resourceSlotsBuilder_.isEmpty()) { resourceSlotsBuilder_.dispose(); resourceSlotsBuilder_ = null; resourceSlots_ = other.resourceSlots_; bitField0_ = (bitField0_ & ~0x00000001); resourceSlotsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourceSlotsFieldBuilder() : null; } else { resourceSlotsBuilder_.addAllMessages(other.resourceSlots_); } } } 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.ResourceAllocations parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.ResourceAllocations) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List resourceSlots_ = java.util.Collections.emptyList(); private void ensureResourceSlotsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceSlots_ = new java.util.ArrayList(resourceSlots_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlotOrBuilder> resourceSlotsBuilder_; /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public java.util.List getResourceSlotsList() { if (resourceSlotsBuilder_ == null) { return java.util.Collections.unmodifiableList(resourceSlots_); } else { return resourceSlotsBuilder_.getMessageList(); } } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public int getResourceSlotsCount() { if (resourceSlotsBuilder_ == null) { return resourceSlots_.size(); } else { return resourceSlotsBuilder_.getCount(); } } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot getResourceSlots(int index) { if (resourceSlotsBuilder_ == null) { return resourceSlots_.get(index); } else { return resourceSlotsBuilder_.getMessage(index); } } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder setResourceSlots( int index, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot value) { if (resourceSlotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceSlotsIsMutable(); resourceSlots_.set(index, value); onChanged(); } else { resourceSlotsBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder setResourceSlots( int index, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder builderForValue) { if (resourceSlotsBuilder_ == null) { ensureResourceSlotsIsMutable(); resourceSlots_.set(index, builderForValue.build()); onChanged(); } else { resourceSlotsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder addResourceSlots(io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot value) { if (resourceSlotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceSlotsIsMutable(); resourceSlots_.add(value); onChanged(); } else { resourceSlotsBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder addResourceSlots( int index, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot value) { if (resourceSlotsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourceSlotsIsMutable(); resourceSlots_.add(index, value); onChanged(); } else { resourceSlotsBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder addResourceSlots( io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder builderForValue) { if (resourceSlotsBuilder_ == null) { ensureResourceSlotsIsMutable(); resourceSlots_.add(builderForValue.build()); onChanged(); } else { resourceSlotsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder addResourceSlots( int index, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder builderForValue) { if (resourceSlotsBuilder_ == null) { ensureResourceSlotsIsMutable(); resourceSlots_.add(index, builderForValue.build()); onChanged(); } else { resourceSlotsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder addAllResourceSlots( java.lang.Iterable values) { if (resourceSlotsBuilder_ == null) { ensureResourceSlotsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, resourceSlots_); onChanged(); } else { resourceSlotsBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder clearResourceSlots() { if (resourceSlotsBuilder_ == null) { resourceSlots_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourceSlotsBuilder_.clear(); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public Builder removeResourceSlots(int index) { if (resourceSlotsBuilder_ == null) { ensureResourceSlotsIsMutable(); resourceSlots_.remove(index); onChanged(); } else { resourceSlotsBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder getResourceSlotsBuilder( int index) { return getResourceSlotsFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlotOrBuilder getResourceSlotsOrBuilder( int index) { if (resourceSlotsBuilder_ == null) { return resourceSlots_.get(index); } else { return resourceSlotsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public java.util.List getResourceSlotsOrBuilderList() { if (resourceSlotsBuilder_ != null) { return resourceSlotsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resourceSlots_); } } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder addResourceSlotsBuilder() { return getResourceSlotsFieldBuilder().addBuilder( io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.getDefaultInstance()); } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder addResourceSlotsBuilder( int index) { return getResourceSlotsFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.getDefaultInstance()); } /** * repeated .ray.rpc.ResourceAllocations.ResourceSlot resource_slots = 1 [json_name = "resourceSlots"]; */ public java.util.List getResourceSlotsBuilderList() { return getResourceSlotsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlotOrBuilder> getResourceSlotsFieldBuilder() { if (resourceSlotsBuilder_ == null) { resourceSlotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlot.Builder, io.ray.runtime.generated.Common.ResourceAllocations.ResourceSlotOrBuilder>( resourceSlots_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resourceSlots_ = null; } return resourceSlotsBuilder_; } @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.ResourceAllocations) } // @@protoc_insertion_point(class_scope:ray.rpc.ResourceAllocations) private static final io.ray.runtime.generated.Common.ResourceAllocations DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.ResourceAllocations(); } public static io.ray.runtime.generated.Common.ResourceAllocations getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceAllocations parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResourceAllocations(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.ResourceAllocations getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CoreWorkerStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.CoreWorkerStats) com.google.protobuf.MessageOrBuilder { /** * int32 num_pending_tasks = 2 [json_name = "numPendingTasks"]; * @return The numPendingTasks. */ int getNumPendingTasks(); /** * int32 num_object_refs_in_scope = 3 [json_name = "numObjectRefsInScope"]; * @return The numObjectRefsInScope. */ int getNumObjectRefsInScope(); /** * string ip_address = 7 [json_name = "ipAddress"]; * @return The ipAddress. */ java.lang.String getIpAddress(); /** * string ip_address = 7 [json_name = "ipAddress"]; * @return The bytes for ipAddress. */ com.google.protobuf.ByteString getIpAddressBytes(); /** * int64 port = 8 [json_name = "port"]; * @return The port. */ long getPort(); /** * bytes actor_id = 9 [json_name = "actorId"]; * @return The actorId. */ com.google.protobuf.ByteString getActorId(); /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ int getUsedResourcesCount(); /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ boolean containsUsedResources( java.lang.String key); /** * Use {@link #getUsedResourcesMap()} instead. */ @java.lang.Deprecated java.util.Map getUsedResources(); /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ java.util.Map getUsedResourcesMap(); /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ io.ray.runtime.generated.Common.ResourceAllocations getUsedResourcesOrDefault( java.lang.String key, io.ray.runtime.generated.Common.ResourceAllocations defaultValue); /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ io.ray.runtime.generated.Common.ResourceAllocations getUsedResourcesOrThrow( java.lang.String key); /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ int getWebuiDisplayCount(); /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ boolean containsWebuiDisplay( java.lang.String key); /** * Use {@link #getWebuiDisplayMap()} instead. */ @java.lang.Deprecated java.util.Map getWebuiDisplay(); /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ java.util.Map getWebuiDisplayMap(); /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ java.lang.String getWebuiDisplayOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ java.lang.String getWebuiDisplayOrThrow( java.lang.String key); /** * int32 num_in_plasma = 12 [json_name = "numInPlasma"]; * @return The numInPlasma. */ int getNumInPlasma(); /** * int32 num_local_objects = 13 [json_name = "numLocalObjects"]; * @return The numLocalObjects. */ int getNumLocalObjects(); /** * int64 used_object_store_memory = 14 [json_name = "usedObjectStoreMemory"]; * @return The usedObjectStoreMemory. */ long getUsedObjectStoreMemory(); /** * int32 task_queue_length = 15 [json_name = "taskQueueLength"]; * @return The taskQueueLength. */ int getTaskQueueLength(); /** * int32 num_executed_tasks = 16 [json_name = "numExecutedTasks"]; * @return The numExecutedTasks. */ int getNumExecutedTasks(); /** * string actor_title = 17 [json_name = "actorTitle"]; * @return The actorTitle. */ java.lang.String getActorTitle(); /** * string actor_title = 17 [json_name = "actorTitle"]; * @return The bytes for actorTitle. */ com.google.protobuf.ByteString getActorTitleBytes(); /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ java.util.List getObjectRefsList(); /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ io.ray.runtime.generated.Common.ObjectRefInfo getObjectRefs(int index); /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ int getObjectRefsCount(); /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ java.util.List getObjectRefsOrBuilderList(); /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ io.ray.runtime.generated.Common.ObjectRefInfoOrBuilder getObjectRefsOrBuilder( int index); /** * bytes job_id = 19 [json_name = "jobId"]; * @return The jobId. */ com.google.protobuf.ByteString getJobId(); /** * bytes worker_id = 20 [json_name = "workerId"]; * @return The workerId. */ com.google.protobuf.ByteString getWorkerId(); /** * .ray.rpc.Language language = 21 [json_name = "language"]; * @return The enum numeric value on the wire for language. */ int getLanguageValue(); /** * .ray.rpc.Language language = 21 [json_name = "language"]; * @return The language. */ io.ray.runtime.generated.Common.Language getLanguage(); /** * uint32 pid = 22 [json_name = "pid"]; * @return The pid. */ int getPid(); /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @return The enum numeric value on the wire for workerType. */ int getWorkerTypeValue(); /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @return The workerType. */ io.ray.runtime.generated.Common.WorkerType getWorkerType(); /** * int64 objects_total = 24 [json_name = "objectsTotal"]; * @return The objectsTotal. */ long getObjectsTotal(); /** * int64 num_owned_objects = 25 [json_name = "numOwnedObjects"]; * @return The numOwnedObjects. */ long getNumOwnedObjects(); /** * int64 num_owned_actors = 26 [json_name = "numOwnedActors"]; * @return The numOwnedActors. */ long getNumOwnedActors(); /** * int64 num_running_tasks = 27 [json_name = "numRunningTasks"]; * @return The numRunningTasks. */ long getNumRunningTasks(); } /** * Protobuf type {@code ray.rpc.CoreWorkerStats} */ public static final class CoreWorkerStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.CoreWorkerStats) CoreWorkerStatsOrBuilder { private static final long serialVersionUID = 0L; // Use CoreWorkerStats.newBuilder() to construct. private CoreWorkerStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CoreWorkerStats() { ipAddress_ = ""; actorId_ = com.google.protobuf.ByteString.EMPTY; actorTitle_ = ""; objectRefs_ = java.util.Collections.emptyList(); jobId_ = com.google.protobuf.ByteString.EMPTY; workerId_ = com.google.protobuf.ByteString.EMPTY; language_ = 0; workerType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CoreWorkerStats(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CoreWorkerStats( 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 16: { numPendingTasks_ = input.readInt32(); break; } case 24: { numObjectRefsInScope_ = input.readInt32(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); ipAddress_ = s; break; } case 64: { port_ = input.readInt64(); break; } case 74: { actorId_ = input.readBytes(); break; } case 82: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { usedResources_ = com.google.protobuf.MapField.newMapField( UsedResourcesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry usedResources__ = input.readMessage( UsedResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); usedResources_.getMutableMap().put( usedResources__.getKey(), usedResources__.getValue()); break; } case 90: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { webuiDisplay_ = com.google.protobuf.MapField.newMapField( WebuiDisplayDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry webuiDisplay__ = input.readMessage( WebuiDisplayDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); webuiDisplay_.getMutableMap().put( webuiDisplay__.getKey(), webuiDisplay__.getValue()); break; } case 96: { numInPlasma_ = input.readInt32(); break; } case 104: { numLocalObjects_ = input.readInt32(); break; } case 112: { usedObjectStoreMemory_ = input.readInt64(); break; } case 120: { taskQueueLength_ = input.readInt32(); break; } case 128: { numExecutedTasks_ = input.readInt32(); break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); actorTitle_ = s; break; } case 146: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { objectRefs_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } objectRefs_.add( input.readMessage(io.ray.runtime.generated.Common.ObjectRefInfo.parser(), extensionRegistry)); break; } case 154: { jobId_ = input.readBytes(); break; } case 162: { workerId_ = input.readBytes(); break; } case 168: { int rawValue = input.readEnum(); language_ = rawValue; break; } case 176: { pid_ = input.readUInt32(); break; } case 184: { int rawValue = input.readEnum(); workerType_ = rawValue; break; } case 192: { objectsTotal_ = input.readInt64(); break; } case 200: { numOwnedObjects_ = input.readInt64(); break; } case 208: { numOwnedActors_ = input.readInt64(); break; } case 216: { numRunningTasks_ = input.readInt64(); 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_ & 0x00000004) != 0)) { objectRefs_ = java.util.Collections.unmodifiableList(objectRefs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_CoreWorkerStats_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetUsedResources(); case 11: return internalGetWebuiDisplay(); 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_CoreWorkerStats_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.CoreWorkerStats.class, io.ray.runtime.generated.Common.CoreWorkerStats.Builder.class); } public static final int NUM_PENDING_TASKS_FIELD_NUMBER = 2; private int numPendingTasks_; /** * int32 num_pending_tasks = 2 [json_name = "numPendingTasks"]; * @return The numPendingTasks. */ @java.lang.Override public int getNumPendingTasks() { return numPendingTasks_; } public static final int NUM_OBJECT_REFS_IN_SCOPE_FIELD_NUMBER = 3; private int numObjectRefsInScope_; /** * int32 num_object_refs_in_scope = 3 [json_name = "numObjectRefsInScope"]; * @return The numObjectRefsInScope. */ @java.lang.Override public int getNumObjectRefsInScope() { return numObjectRefsInScope_; } public static final int IP_ADDRESS_FIELD_NUMBER = 7; private volatile java.lang.Object ipAddress_; /** * string ip_address = 7 [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 = 7 [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 = 8; private long port_; /** * int64 port = 8 [json_name = "port"]; * @return The port. */ @java.lang.Override public long getPort() { return port_; } 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 USED_RESOURCES_FIELD_NUMBER = 10; private static final class UsedResourcesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.ray.runtime.generated.Common.ResourceAllocations> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.ray.runtime.generated.Common.internal_static_ray_rpc_CoreWorkerStats_UsedResourcesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.ray.runtime.generated.Common.ResourceAllocations.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.ray.runtime.generated.Common.ResourceAllocations> usedResources_; private com.google.protobuf.MapField internalGetUsedResources() { if (usedResources_ == null) { return com.google.protobuf.MapField.emptyMapField( UsedResourcesDefaultEntryHolder.defaultEntry); } return usedResources_; } public int getUsedResourcesCount() { return internalGetUsedResources().getMap().size(); } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ @java.lang.Override public boolean containsUsedResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetUsedResources().getMap().containsKey(key); } /** * Use {@link #getUsedResourcesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUsedResources() { return getUsedResourcesMap(); } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ @java.lang.Override public java.util.Map getUsedResourcesMap() { return internalGetUsedResources().getMap(); } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations getUsedResourcesOrDefault( java.lang.String key, io.ray.runtime.generated.Common.ResourceAllocations defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUsedResources().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations getUsedResourcesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUsedResources().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int WEBUI_DISPLAY_FIELD_NUMBER = 11; private static final class WebuiDisplayDefaultEntryHolder { 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_CoreWorkerStats_WebuiDisplayEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> webuiDisplay_; private com.google.protobuf.MapField internalGetWebuiDisplay() { if (webuiDisplay_ == null) { return com.google.protobuf.MapField.emptyMapField( WebuiDisplayDefaultEntryHolder.defaultEntry); } return webuiDisplay_; } public int getWebuiDisplayCount() { return internalGetWebuiDisplay().getMap().size(); } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ @java.lang.Override public boolean containsWebuiDisplay( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWebuiDisplay().getMap().containsKey(key); } /** * Use {@link #getWebuiDisplayMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getWebuiDisplay() { return getWebuiDisplayMap(); } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ @java.lang.Override public java.util.Map getWebuiDisplayMap() { return internalGetWebuiDisplay().getMap(); } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ @java.lang.Override public java.lang.String getWebuiDisplayOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWebuiDisplay().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ @java.lang.Override public java.lang.String getWebuiDisplayOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWebuiDisplay().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int NUM_IN_PLASMA_FIELD_NUMBER = 12; private int numInPlasma_; /** * int32 num_in_plasma = 12 [json_name = "numInPlasma"]; * @return The numInPlasma. */ @java.lang.Override public int getNumInPlasma() { return numInPlasma_; } public static final int NUM_LOCAL_OBJECTS_FIELD_NUMBER = 13; private int numLocalObjects_; /** * int32 num_local_objects = 13 [json_name = "numLocalObjects"]; * @return The numLocalObjects. */ @java.lang.Override public int getNumLocalObjects() { return numLocalObjects_; } public static final int USED_OBJECT_STORE_MEMORY_FIELD_NUMBER = 14; private long usedObjectStoreMemory_; /** * int64 used_object_store_memory = 14 [json_name = "usedObjectStoreMemory"]; * @return The usedObjectStoreMemory. */ @java.lang.Override public long getUsedObjectStoreMemory() { return usedObjectStoreMemory_; } public static final int TASK_QUEUE_LENGTH_FIELD_NUMBER = 15; private int taskQueueLength_; /** * int32 task_queue_length = 15 [json_name = "taskQueueLength"]; * @return The taskQueueLength. */ @java.lang.Override public int getTaskQueueLength() { return taskQueueLength_; } public static final int NUM_EXECUTED_TASKS_FIELD_NUMBER = 16; private int numExecutedTasks_; /** * int32 num_executed_tasks = 16 [json_name = "numExecutedTasks"]; * @return The numExecutedTasks. */ @java.lang.Override public int getNumExecutedTasks() { return numExecutedTasks_; } public static final int ACTOR_TITLE_FIELD_NUMBER = 17; private volatile java.lang.Object actorTitle_; /** * string actor_title = 17 [json_name = "actorTitle"]; * @return The actorTitle. */ @java.lang.Override public java.lang.String getActorTitle() { java.lang.Object ref = actorTitle_; 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(); actorTitle_ = s; return s; } } /** * string actor_title = 17 [json_name = "actorTitle"]; * @return The bytes for actorTitle. */ @java.lang.Override public com.google.protobuf.ByteString getActorTitleBytes() { java.lang.Object ref = actorTitle_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); actorTitle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OBJECT_REFS_FIELD_NUMBER = 18; private java.util.List objectRefs_; /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ @java.lang.Override public java.util.List getObjectRefsList() { return objectRefs_; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ @java.lang.Override public java.util.List getObjectRefsOrBuilderList() { return objectRefs_; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ @java.lang.Override public int getObjectRefsCount() { return objectRefs_.size(); } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectRefInfo getObjectRefs(int index) { return objectRefs_.get(index); } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ObjectRefInfoOrBuilder getObjectRefsOrBuilder( int index) { return objectRefs_.get(index); } public static final int JOB_ID_FIELD_NUMBER = 19; private com.google.protobuf.ByteString jobId_; /** * bytes job_id = 19 [json_name = "jobId"]; * @return The jobId. */ @java.lang.Override public com.google.protobuf.ByteString getJobId() { return jobId_; } public static final int WORKER_ID_FIELD_NUMBER = 20; private com.google.protobuf.ByteString workerId_; /** * bytes worker_id = 20 [json_name = "workerId"]; * @return The workerId. */ @java.lang.Override public com.google.protobuf.ByteString getWorkerId() { return workerId_; } public static final int LANGUAGE_FIELD_NUMBER = 21; private int language_; /** * .ray.rpc.Language language = 21 [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 = 21 [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 PID_FIELD_NUMBER = 22; private int pid_; /** * uint32 pid = 22 [json_name = "pid"]; * @return The pid. */ @java.lang.Override public int getPid() { return pid_; } public static final int WORKER_TYPE_FIELD_NUMBER = 23; private int workerType_; /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @return The enum numeric value on the wire for workerType. */ @java.lang.Override public int getWorkerTypeValue() { return workerType_; } /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @return The workerType. */ @java.lang.Override public io.ray.runtime.generated.Common.WorkerType getWorkerType() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.WorkerType result = io.ray.runtime.generated.Common.WorkerType.valueOf(workerType_); return result == null ? io.ray.runtime.generated.Common.WorkerType.UNRECOGNIZED : result; } public static final int OBJECTS_TOTAL_FIELD_NUMBER = 24; private long objectsTotal_; /** * int64 objects_total = 24 [json_name = "objectsTotal"]; * @return The objectsTotal. */ @java.lang.Override public long getObjectsTotal() { return objectsTotal_; } public static final int NUM_OWNED_OBJECTS_FIELD_NUMBER = 25; private long numOwnedObjects_; /** * int64 num_owned_objects = 25 [json_name = "numOwnedObjects"]; * @return The numOwnedObjects. */ @java.lang.Override public long getNumOwnedObjects() { return numOwnedObjects_; } public static final int NUM_OWNED_ACTORS_FIELD_NUMBER = 26; private long numOwnedActors_; /** * int64 num_owned_actors = 26 [json_name = "numOwnedActors"]; * @return The numOwnedActors. */ @java.lang.Override public long getNumOwnedActors() { return numOwnedActors_; } public static final int NUM_RUNNING_TASKS_FIELD_NUMBER = 27; private long numRunningTasks_; /** * int64 num_running_tasks = 27 [json_name = "numRunningTasks"]; * @return The numRunningTasks. */ @java.lang.Override public long getNumRunningTasks() { return numRunningTasks_; } 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 (numPendingTasks_ != 0) { output.writeInt32(2, numPendingTasks_); } if (numObjectRefsInScope_ != 0) { output.writeInt32(3, numObjectRefsInScope_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, ipAddress_); } if (port_ != 0L) { output.writeInt64(8, port_); } if (!actorId_.isEmpty()) { output.writeBytes(9, actorId_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetUsedResources(), UsedResourcesDefaultEntryHolder.defaultEntry, 10); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetWebuiDisplay(), WebuiDisplayDefaultEntryHolder.defaultEntry, 11); if (numInPlasma_ != 0) { output.writeInt32(12, numInPlasma_); } if (numLocalObjects_ != 0) { output.writeInt32(13, numLocalObjects_); } if (usedObjectStoreMemory_ != 0L) { output.writeInt64(14, usedObjectStoreMemory_); } if (taskQueueLength_ != 0) { output.writeInt32(15, taskQueueLength_); } if (numExecutedTasks_ != 0) { output.writeInt32(16, numExecutedTasks_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actorTitle_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, actorTitle_); } for (int i = 0; i < objectRefs_.size(); i++) { output.writeMessage(18, objectRefs_.get(i)); } if (!jobId_.isEmpty()) { output.writeBytes(19, jobId_); } if (!workerId_.isEmpty()) { output.writeBytes(20, workerId_); } if (language_ != io.ray.runtime.generated.Common.Language.PYTHON.getNumber()) { output.writeEnum(21, language_); } if (pid_ != 0) { output.writeUInt32(22, pid_); } if (workerType_ != io.ray.runtime.generated.Common.WorkerType.WORKER.getNumber()) { output.writeEnum(23, workerType_); } if (objectsTotal_ != 0L) { output.writeInt64(24, objectsTotal_); } if (numOwnedObjects_ != 0L) { output.writeInt64(25, numOwnedObjects_); } if (numOwnedActors_ != 0L) { output.writeInt64(26, numOwnedActors_); } if (numRunningTasks_ != 0L) { output.writeInt64(27, numRunningTasks_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (numPendingTasks_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, numPendingTasks_); } if (numObjectRefsInScope_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, numObjectRefsInScope_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, ipAddress_); } if (port_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, port_); } if (!actorId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, actorId_); } for (java.util.Map.Entry entry : internalGetUsedResources().getMap().entrySet()) { com.google.protobuf.MapEntry usedResources__ = UsedResourcesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, usedResources__); } for (java.util.Map.Entry entry : internalGetWebuiDisplay().getMap().entrySet()) { com.google.protobuf.MapEntry webuiDisplay__ = WebuiDisplayDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, webuiDisplay__); } if (numInPlasma_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, numInPlasma_); } if (numLocalObjects_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, numLocalObjects_); } if (usedObjectStoreMemory_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(14, usedObjectStoreMemory_); } if (taskQueueLength_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, taskQueueLength_); } if (numExecutedTasks_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, numExecutedTasks_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(actorTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, actorTitle_); } for (int i = 0; i < objectRefs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, objectRefs_.get(i)); } if (!jobId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(19, jobId_); } if (!workerId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(20, workerId_); } if (language_ != io.ray.runtime.generated.Common.Language.PYTHON.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(21, language_); } if (pid_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(22, pid_); } if (workerType_ != io.ray.runtime.generated.Common.WorkerType.WORKER.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(23, workerType_); } if (objectsTotal_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(24, objectsTotal_); } if (numOwnedObjects_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(25, numOwnedObjects_); } if (numOwnedActors_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(26, numOwnedActors_); } if (numRunningTasks_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(27, numRunningTasks_); } 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.CoreWorkerStats)) { return super.equals(obj); } io.ray.runtime.generated.Common.CoreWorkerStats other = (io.ray.runtime.generated.Common.CoreWorkerStats) obj; if (getNumPendingTasks() != other.getNumPendingTasks()) return false; if (getNumObjectRefsInScope() != other.getNumObjectRefsInScope()) return false; if (!getIpAddress() .equals(other.getIpAddress())) return false; if (getPort() != other.getPort()) return false; if (!getActorId() .equals(other.getActorId())) return false; if (!internalGetUsedResources().equals( other.internalGetUsedResources())) return false; if (!internalGetWebuiDisplay().equals( other.internalGetWebuiDisplay())) return false; if (getNumInPlasma() != other.getNumInPlasma()) return false; if (getNumLocalObjects() != other.getNumLocalObjects()) return false; if (getUsedObjectStoreMemory() != other.getUsedObjectStoreMemory()) return false; if (getTaskQueueLength() != other.getTaskQueueLength()) return false; if (getNumExecutedTasks() != other.getNumExecutedTasks()) return false; if (!getActorTitle() .equals(other.getActorTitle())) return false; if (!getObjectRefsList() .equals(other.getObjectRefsList())) return false; if (!getJobId() .equals(other.getJobId())) return false; if (!getWorkerId() .equals(other.getWorkerId())) return false; if (language_ != other.language_) return false; if (getPid() != other.getPid()) return false; if (workerType_ != other.workerType_) return false; if (getObjectsTotal() != other.getObjectsTotal()) return false; if (getNumOwnedObjects() != other.getNumOwnedObjects()) return false; if (getNumOwnedActors() != other.getNumOwnedActors()) return false; if (getNumRunningTasks() != other.getNumRunningTasks()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NUM_PENDING_TASKS_FIELD_NUMBER; hash = (53 * hash) + getNumPendingTasks(); hash = (37 * hash) + NUM_OBJECT_REFS_IN_SCOPE_FIELD_NUMBER; hash = (53 * hash) + getNumObjectRefsInScope(); hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getIpAddress().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPort()); hash = (37 * hash) + ACTOR_ID_FIELD_NUMBER; hash = (53 * hash) + getActorId().hashCode(); if (!internalGetUsedResources().getMap().isEmpty()) { hash = (37 * hash) + USED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + internalGetUsedResources().hashCode(); } if (!internalGetWebuiDisplay().getMap().isEmpty()) { hash = (37 * hash) + WEBUI_DISPLAY_FIELD_NUMBER; hash = (53 * hash) + internalGetWebuiDisplay().hashCode(); } hash = (37 * hash) + NUM_IN_PLASMA_FIELD_NUMBER; hash = (53 * hash) + getNumInPlasma(); hash = (37 * hash) + NUM_LOCAL_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getNumLocalObjects(); hash = (37 * hash) + USED_OBJECT_STORE_MEMORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUsedObjectStoreMemory()); hash = (37 * hash) + TASK_QUEUE_LENGTH_FIELD_NUMBER; hash = (53 * hash) + getTaskQueueLength(); hash = (37 * hash) + NUM_EXECUTED_TASKS_FIELD_NUMBER; hash = (53 * hash) + getNumExecutedTasks(); hash = (37 * hash) + ACTOR_TITLE_FIELD_NUMBER; hash = (53 * hash) + getActorTitle().hashCode(); if (getObjectRefsCount() > 0) { hash = (37 * hash) + OBJECT_REFS_FIELD_NUMBER; hash = (53 * hash) + getObjectRefsList().hashCode(); } hash = (37 * hash) + JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getJobId().hashCode(); hash = (37 * hash) + WORKER_ID_FIELD_NUMBER; hash = (53 * hash) + getWorkerId().hashCode(); hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; hash = (53 * hash) + language_; hash = (37 * hash) + PID_FIELD_NUMBER; hash = (53 * hash) + getPid(); hash = (37 * hash) + WORKER_TYPE_FIELD_NUMBER; hash = (53 * hash) + workerType_; hash = (37 * hash) + OBJECTS_TOTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getObjectsTotal()); hash = (37 * hash) + NUM_OWNED_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumOwnedObjects()); hash = (37 * hash) + NUM_OWNED_ACTORS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumOwnedActors()); hash = (37 * hash) + NUM_RUNNING_TASKS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNumRunningTasks()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.CoreWorkerStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.CoreWorkerStats 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.CoreWorkerStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.CoreWorkerStats 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.CoreWorkerStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.CoreWorkerStats 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.CoreWorkerStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.CoreWorkerStats 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.CoreWorkerStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.CoreWorkerStats 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.CoreWorkerStats 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.CoreWorkerStats 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.CoreWorkerStats 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.CoreWorkerStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.CoreWorkerStats) io.ray.runtime.generated.Common.CoreWorkerStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_CoreWorkerStats_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 10: return internalGetUsedResources(); case 11: return internalGetWebuiDisplay(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 10: return internalGetMutableUsedResources(); case 11: return internalGetMutableWebuiDisplay(); 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_CoreWorkerStats_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.CoreWorkerStats.class, io.ray.runtime.generated.Common.CoreWorkerStats.Builder.class); } // Construct using io.ray.runtime.generated.Common.CoreWorkerStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getObjectRefsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); numPendingTasks_ = 0; numObjectRefsInScope_ = 0; ipAddress_ = ""; port_ = 0L; actorId_ = com.google.protobuf.ByteString.EMPTY; internalGetMutableUsedResources().clear(); internalGetMutableWebuiDisplay().clear(); numInPlasma_ = 0; numLocalObjects_ = 0; usedObjectStoreMemory_ = 0L; taskQueueLength_ = 0; numExecutedTasks_ = 0; actorTitle_ = ""; if (objectRefsBuilder_ == null) { objectRefs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { objectRefsBuilder_.clear(); } jobId_ = com.google.protobuf.ByteString.EMPTY; workerId_ = com.google.protobuf.ByteString.EMPTY; language_ = 0; pid_ = 0; workerType_ = 0; objectsTotal_ = 0L; numOwnedObjects_ = 0L; numOwnedActors_ = 0L; numRunningTasks_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_CoreWorkerStats_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.CoreWorkerStats getDefaultInstanceForType() { return io.ray.runtime.generated.Common.CoreWorkerStats.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.CoreWorkerStats build() { io.ray.runtime.generated.Common.CoreWorkerStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.CoreWorkerStats buildPartial() { io.ray.runtime.generated.Common.CoreWorkerStats result = new io.ray.runtime.generated.Common.CoreWorkerStats(this); int from_bitField0_ = bitField0_; result.numPendingTasks_ = numPendingTasks_; result.numObjectRefsInScope_ = numObjectRefsInScope_; result.ipAddress_ = ipAddress_; result.port_ = port_; result.actorId_ = actorId_; result.usedResources_ = internalGetUsedResources(); result.usedResources_.makeImmutable(); result.webuiDisplay_ = internalGetWebuiDisplay(); result.webuiDisplay_.makeImmutable(); result.numInPlasma_ = numInPlasma_; result.numLocalObjects_ = numLocalObjects_; result.usedObjectStoreMemory_ = usedObjectStoreMemory_; result.taskQueueLength_ = taskQueueLength_; result.numExecutedTasks_ = numExecutedTasks_; result.actorTitle_ = actorTitle_; if (objectRefsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { objectRefs_ = java.util.Collections.unmodifiableList(objectRefs_); bitField0_ = (bitField0_ & ~0x00000004); } result.objectRefs_ = objectRefs_; } else { result.objectRefs_ = objectRefsBuilder_.build(); } result.jobId_ = jobId_; result.workerId_ = workerId_; result.language_ = language_; result.pid_ = pid_; result.workerType_ = workerType_; result.objectsTotal_ = objectsTotal_; result.numOwnedObjects_ = numOwnedObjects_; result.numOwnedActors_ = numOwnedActors_; result.numRunningTasks_ = numRunningTasks_; 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.CoreWorkerStats) { return mergeFrom((io.ray.runtime.generated.Common.CoreWorkerStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.CoreWorkerStats other) { if (other == io.ray.runtime.generated.Common.CoreWorkerStats.getDefaultInstance()) return this; if (other.getNumPendingTasks() != 0) { setNumPendingTasks(other.getNumPendingTasks()); } if (other.getNumObjectRefsInScope() != 0) { setNumObjectRefsInScope(other.getNumObjectRefsInScope()); } if (!other.getIpAddress().isEmpty()) { ipAddress_ = other.ipAddress_; onChanged(); } if (other.getPort() != 0L) { setPort(other.getPort()); } if (other.getActorId() != com.google.protobuf.ByteString.EMPTY) { setActorId(other.getActorId()); } internalGetMutableUsedResources().mergeFrom( other.internalGetUsedResources()); internalGetMutableWebuiDisplay().mergeFrom( other.internalGetWebuiDisplay()); if (other.getNumInPlasma() != 0) { setNumInPlasma(other.getNumInPlasma()); } if (other.getNumLocalObjects() != 0) { setNumLocalObjects(other.getNumLocalObjects()); } if (other.getUsedObjectStoreMemory() != 0L) { setUsedObjectStoreMemory(other.getUsedObjectStoreMemory()); } if (other.getTaskQueueLength() != 0) { setTaskQueueLength(other.getTaskQueueLength()); } if (other.getNumExecutedTasks() != 0) { setNumExecutedTasks(other.getNumExecutedTasks()); } if (!other.getActorTitle().isEmpty()) { actorTitle_ = other.actorTitle_; onChanged(); } if (objectRefsBuilder_ == null) { if (!other.objectRefs_.isEmpty()) { if (objectRefs_.isEmpty()) { objectRefs_ = other.objectRefs_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureObjectRefsIsMutable(); objectRefs_.addAll(other.objectRefs_); } onChanged(); } } else { if (!other.objectRefs_.isEmpty()) { if (objectRefsBuilder_.isEmpty()) { objectRefsBuilder_.dispose(); objectRefsBuilder_ = null; objectRefs_ = other.objectRefs_; bitField0_ = (bitField0_ & ~0x00000004); objectRefsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getObjectRefsFieldBuilder() : null; } else { objectRefsBuilder_.addAllMessages(other.objectRefs_); } } } if (other.getJobId() != com.google.protobuf.ByteString.EMPTY) { setJobId(other.getJobId()); } if (other.getWorkerId() != com.google.protobuf.ByteString.EMPTY) { setWorkerId(other.getWorkerId()); } if (other.language_ != 0) { setLanguageValue(other.getLanguageValue()); } if (other.getPid() != 0) { setPid(other.getPid()); } if (other.workerType_ != 0) { setWorkerTypeValue(other.getWorkerTypeValue()); } if (other.getObjectsTotal() != 0L) { setObjectsTotal(other.getObjectsTotal()); } if (other.getNumOwnedObjects() != 0L) { setNumOwnedObjects(other.getNumOwnedObjects()); } if (other.getNumOwnedActors() != 0L) { setNumOwnedActors(other.getNumOwnedActors()); } if (other.getNumRunningTasks() != 0L) { setNumRunningTasks(other.getNumRunningTasks()); } 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.CoreWorkerStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.CoreWorkerStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int numPendingTasks_ ; /** * int32 num_pending_tasks = 2 [json_name = "numPendingTasks"]; * @return The numPendingTasks. */ @java.lang.Override public int getNumPendingTasks() { return numPendingTasks_; } /** * int32 num_pending_tasks = 2 [json_name = "numPendingTasks"]; * @param value The numPendingTasks to set. * @return This builder for chaining. */ public Builder setNumPendingTasks(int value) { numPendingTasks_ = value; onChanged(); return this; } /** * int32 num_pending_tasks = 2 [json_name = "numPendingTasks"]; * @return This builder for chaining. */ public Builder clearNumPendingTasks() { numPendingTasks_ = 0; onChanged(); return this; } private int numObjectRefsInScope_ ; /** * int32 num_object_refs_in_scope = 3 [json_name = "numObjectRefsInScope"]; * @return The numObjectRefsInScope. */ @java.lang.Override public int getNumObjectRefsInScope() { return numObjectRefsInScope_; } /** * int32 num_object_refs_in_scope = 3 [json_name = "numObjectRefsInScope"]; * @param value The numObjectRefsInScope to set. * @return This builder for chaining. */ public Builder setNumObjectRefsInScope(int value) { numObjectRefsInScope_ = value; onChanged(); return this; } /** * int32 num_object_refs_in_scope = 3 [json_name = "numObjectRefsInScope"]; * @return This builder for chaining. */ public Builder clearNumObjectRefsInScope() { numObjectRefsInScope_ = 0; onChanged(); return this; } private java.lang.Object ipAddress_ = ""; /** * string ip_address = 7 [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 = 7 [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 = 7 [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 = 7 [json_name = "ipAddress"]; * @return This builder for chaining. */ public Builder clearIpAddress() { ipAddress_ = getDefaultInstance().getIpAddress(); onChanged(); return this; } /** * string ip_address = 7 [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 long port_ ; /** * int64 port = 8 [json_name = "port"]; * @return The port. */ @java.lang.Override public long getPort() { return port_; } /** * int64 port = 8 [json_name = "port"]; * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(long value) { port_ = value; onChanged(); return this; } /** * int64 port = 8 [json_name = "port"]; * @return This builder for chaining. */ public Builder clearPort() { port_ = 0L; 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 com.google.protobuf.MapField< java.lang.String, io.ray.runtime.generated.Common.ResourceAllocations> usedResources_; private com.google.protobuf.MapField internalGetUsedResources() { if (usedResources_ == null) { return com.google.protobuf.MapField.emptyMapField( UsedResourcesDefaultEntryHolder.defaultEntry); } return usedResources_; } private com.google.protobuf.MapField internalGetMutableUsedResources() { onChanged();; if (usedResources_ == null) { usedResources_ = com.google.protobuf.MapField.newMapField( UsedResourcesDefaultEntryHolder.defaultEntry); } if (!usedResources_.isMutable()) { usedResources_ = usedResources_.copy(); } return usedResources_; } public int getUsedResourcesCount() { return internalGetUsedResources().getMap().size(); } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ @java.lang.Override public boolean containsUsedResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetUsedResources().getMap().containsKey(key); } /** * Use {@link #getUsedResourcesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUsedResources() { return getUsedResourcesMap(); } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ @java.lang.Override public java.util.Map getUsedResourcesMap() { return internalGetUsedResources().getMap(); } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations getUsedResourcesOrDefault( java.lang.String key, io.ray.runtime.generated.Common.ResourceAllocations defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUsedResources().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ @java.lang.Override public io.ray.runtime.generated.Common.ResourceAllocations getUsedResourcesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetUsedResources().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearUsedResources() { internalGetMutableUsedResources().getMutableMap() .clear(); return this; } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ public Builder removeUsedResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableUsedResources().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUsedResources() { return internalGetMutableUsedResources().getMutableMap(); } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ public Builder putUsedResources( java.lang.String key, io.ray.runtime.generated.Common.ResourceAllocations value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableUsedResources().getMutableMap() .put(key, value); return this; } /** * map<string, .ray.rpc.ResourceAllocations> used_resources = 10 [json_name = "usedResources"]; */ public Builder putAllUsedResources( java.util.Map values) { internalGetMutableUsedResources().getMutableMap() .putAll(values); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> webuiDisplay_; private com.google.protobuf.MapField internalGetWebuiDisplay() { if (webuiDisplay_ == null) { return com.google.protobuf.MapField.emptyMapField( WebuiDisplayDefaultEntryHolder.defaultEntry); } return webuiDisplay_; } private com.google.protobuf.MapField internalGetMutableWebuiDisplay() { onChanged();; if (webuiDisplay_ == null) { webuiDisplay_ = com.google.protobuf.MapField.newMapField( WebuiDisplayDefaultEntryHolder.defaultEntry); } if (!webuiDisplay_.isMutable()) { webuiDisplay_ = webuiDisplay_.copy(); } return webuiDisplay_; } public int getWebuiDisplayCount() { return internalGetWebuiDisplay().getMap().size(); } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ @java.lang.Override public boolean containsWebuiDisplay( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetWebuiDisplay().getMap().containsKey(key); } /** * Use {@link #getWebuiDisplayMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getWebuiDisplay() { return getWebuiDisplayMap(); } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ @java.lang.Override public java.util.Map getWebuiDisplayMap() { return internalGetWebuiDisplay().getMap(); } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ @java.lang.Override public java.lang.String getWebuiDisplayOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWebuiDisplay().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ @java.lang.Override public java.lang.String getWebuiDisplayOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetWebuiDisplay().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearWebuiDisplay() { internalGetMutableWebuiDisplay().getMutableMap() .clear(); return this; } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ public Builder removeWebuiDisplay( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableWebuiDisplay().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWebuiDisplay() { return internalGetMutableWebuiDisplay().getMutableMap(); } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ public Builder putWebuiDisplay( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableWebuiDisplay().getMutableMap() .put(key, value); return this; } /** * map<string, string> webui_display = 11 [json_name = "webuiDisplay"]; */ public Builder putAllWebuiDisplay( java.util.Map values) { internalGetMutableWebuiDisplay().getMutableMap() .putAll(values); return this; } private int numInPlasma_ ; /** * int32 num_in_plasma = 12 [json_name = "numInPlasma"]; * @return The numInPlasma. */ @java.lang.Override public int getNumInPlasma() { return numInPlasma_; } /** * int32 num_in_plasma = 12 [json_name = "numInPlasma"]; * @param value The numInPlasma to set. * @return This builder for chaining. */ public Builder setNumInPlasma(int value) { numInPlasma_ = value; onChanged(); return this; } /** * int32 num_in_plasma = 12 [json_name = "numInPlasma"]; * @return This builder for chaining. */ public Builder clearNumInPlasma() { numInPlasma_ = 0; onChanged(); return this; } private int numLocalObjects_ ; /** * int32 num_local_objects = 13 [json_name = "numLocalObjects"]; * @return The numLocalObjects. */ @java.lang.Override public int getNumLocalObjects() { return numLocalObjects_; } /** * int32 num_local_objects = 13 [json_name = "numLocalObjects"]; * @param value The numLocalObjects to set. * @return This builder for chaining. */ public Builder setNumLocalObjects(int value) { numLocalObjects_ = value; onChanged(); return this; } /** * int32 num_local_objects = 13 [json_name = "numLocalObjects"]; * @return This builder for chaining. */ public Builder clearNumLocalObjects() { numLocalObjects_ = 0; onChanged(); return this; } private long usedObjectStoreMemory_ ; /** * int64 used_object_store_memory = 14 [json_name = "usedObjectStoreMemory"]; * @return The usedObjectStoreMemory. */ @java.lang.Override public long getUsedObjectStoreMemory() { return usedObjectStoreMemory_; } /** * int64 used_object_store_memory = 14 [json_name = "usedObjectStoreMemory"]; * @param value The usedObjectStoreMemory to set. * @return This builder for chaining. */ public Builder setUsedObjectStoreMemory(long value) { usedObjectStoreMemory_ = value; onChanged(); return this; } /** * int64 used_object_store_memory = 14 [json_name = "usedObjectStoreMemory"]; * @return This builder for chaining. */ public Builder clearUsedObjectStoreMemory() { usedObjectStoreMemory_ = 0L; onChanged(); return this; } private int taskQueueLength_ ; /** * int32 task_queue_length = 15 [json_name = "taskQueueLength"]; * @return The taskQueueLength. */ @java.lang.Override public int getTaskQueueLength() { return taskQueueLength_; } /** * int32 task_queue_length = 15 [json_name = "taskQueueLength"]; * @param value The taskQueueLength to set. * @return This builder for chaining. */ public Builder setTaskQueueLength(int value) { taskQueueLength_ = value; onChanged(); return this; } /** * int32 task_queue_length = 15 [json_name = "taskQueueLength"]; * @return This builder for chaining. */ public Builder clearTaskQueueLength() { taskQueueLength_ = 0; onChanged(); return this; } private int numExecutedTasks_ ; /** * int32 num_executed_tasks = 16 [json_name = "numExecutedTasks"]; * @return The numExecutedTasks. */ @java.lang.Override public int getNumExecutedTasks() { return numExecutedTasks_; } /** * int32 num_executed_tasks = 16 [json_name = "numExecutedTasks"]; * @param value The numExecutedTasks to set. * @return This builder for chaining. */ public Builder setNumExecutedTasks(int value) { numExecutedTasks_ = value; onChanged(); return this; } /** * int32 num_executed_tasks = 16 [json_name = "numExecutedTasks"]; * @return This builder for chaining. */ public Builder clearNumExecutedTasks() { numExecutedTasks_ = 0; onChanged(); return this; } private java.lang.Object actorTitle_ = ""; /** * string actor_title = 17 [json_name = "actorTitle"]; * @return The actorTitle. */ public java.lang.String getActorTitle() { java.lang.Object ref = actorTitle_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); actorTitle_ = s; return s; } else { return (java.lang.String) ref; } } /** * string actor_title = 17 [json_name = "actorTitle"]; * @return The bytes for actorTitle. */ public com.google.protobuf.ByteString getActorTitleBytes() { java.lang.Object ref = actorTitle_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); actorTitle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string actor_title = 17 [json_name = "actorTitle"]; * @param value The actorTitle to set. * @return This builder for chaining. */ public Builder setActorTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } actorTitle_ = value; onChanged(); return this; } /** * string actor_title = 17 [json_name = "actorTitle"]; * @return This builder for chaining. */ public Builder clearActorTitle() { actorTitle_ = getDefaultInstance().getActorTitle(); onChanged(); return this; } /** * string actor_title = 17 [json_name = "actorTitle"]; * @param value The bytes for actorTitle to set. * @return This builder for chaining. */ public Builder setActorTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); actorTitle_ = value; onChanged(); return this; } private java.util.List objectRefs_ = java.util.Collections.emptyList(); private void ensureObjectRefsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { objectRefs_ = new java.util.ArrayList(objectRefs_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectRefInfo, io.ray.runtime.generated.Common.ObjectRefInfo.Builder, io.ray.runtime.generated.Common.ObjectRefInfoOrBuilder> objectRefsBuilder_; /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public java.util.List getObjectRefsList() { if (objectRefsBuilder_ == null) { return java.util.Collections.unmodifiableList(objectRefs_); } else { return objectRefsBuilder_.getMessageList(); } } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public int getObjectRefsCount() { if (objectRefsBuilder_ == null) { return objectRefs_.size(); } else { return objectRefsBuilder_.getCount(); } } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public io.ray.runtime.generated.Common.ObjectRefInfo getObjectRefs(int index) { if (objectRefsBuilder_ == null) { return objectRefs_.get(index); } else { return objectRefsBuilder_.getMessage(index); } } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder setObjectRefs( int index, io.ray.runtime.generated.Common.ObjectRefInfo value) { if (objectRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectRefsIsMutable(); objectRefs_.set(index, value); onChanged(); } else { objectRefsBuilder_.setMessage(index, value); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder setObjectRefs( int index, io.ray.runtime.generated.Common.ObjectRefInfo.Builder builderForValue) { if (objectRefsBuilder_ == null) { ensureObjectRefsIsMutable(); objectRefs_.set(index, builderForValue.build()); onChanged(); } else { objectRefsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder addObjectRefs(io.ray.runtime.generated.Common.ObjectRefInfo value) { if (objectRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectRefsIsMutable(); objectRefs_.add(value); onChanged(); } else { objectRefsBuilder_.addMessage(value); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder addObjectRefs( int index, io.ray.runtime.generated.Common.ObjectRefInfo value) { if (objectRefsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureObjectRefsIsMutable(); objectRefs_.add(index, value); onChanged(); } else { objectRefsBuilder_.addMessage(index, value); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder addObjectRefs( io.ray.runtime.generated.Common.ObjectRefInfo.Builder builderForValue) { if (objectRefsBuilder_ == null) { ensureObjectRefsIsMutable(); objectRefs_.add(builderForValue.build()); onChanged(); } else { objectRefsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder addObjectRefs( int index, io.ray.runtime.generated.Common.ObjectRefInfo.Builder builderForValue) { if (objectRefsBuilder_ == null) { ensureObjectRefsIsMutable(); objectRefs_.add(index, builderForValue.build()); onChanged(); } else { objectRefsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder addAllObjectRefs( java.lang.Iterable values) { if (objectRefsBuilder_ == null) { ensureObjectRefsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, objectRefs_); onChanged(); } else { objectRefsBuilder_.addAllMessages(values); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder clearObjectRefs() { if (objectRefsBuilder_ == null) { objectRefs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { objectRefsBuilder_.clear(); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public Builder removeObjectRefs(int index) { if (objectRefsBuilder_ == null) { ensureObjectRefsIsMutable(); objectRefs_.remove(index); onChanged(); } else { objectRefsBuilder_.remove(index); } return this; } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public io.ray.runtime.generated.Common.ObjectRefInfo.Builder getObjectRefsBuilder( int index) { return getObjectRefsFieldBuilder().getBuilder(index); } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public io.ray.runtime.generated.Common.ObjectRefInfoOrBuilder getObjectRefsOrBuilder( int index) { if (objectRefsBuilder_ == null) { return objectRefs_.get(index); } else { return objectRefsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public java.util.List getObjectRefsOrBuilderList() { if (objectRefsBuilder_ != null) { return objectRefsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(objectRefs_); } } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public io.ray.runtime.generated.Common.ObjectRefInfo.Builder addObjectRefsBuilder() { return getObjectRefsFieldBuilder().addBuilder( io.ray.runtime.generated.Common.ObjectRefInfo.getDefaultInstance()); } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public io.ray.runtime.generated.Common.ObjectRefInfo.Builder addObjectRefsBuilder( int index) { return getObjectRefsFieldBuilder().addBuilder( index, io.ray.runtime.generated.Common.ObjectRefInfo.getDefaultInstance()); } /** * repeated .ray.rpc.ObjectRefInfo object_refs = 18 [json_name = "objectRefs"]; */ public java.util.List getObjectRefsBuilderList() { return getObjectRefsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectRefInfo, io.ray.runtime.generated.Common.ObjectRefInfo.Builder, io.ray.runtime.generated.Common.ObjectRefInfoOrBuilder> getObjectRefsFieldBuilder() { if (objectRefsBuilder_ == null) { objectRefsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.ray.runtime.generated.Common.ObjectRefInfo, io.ray.runtime.generated.Common.ObjectRefInfo.Builder, io.ray.runtime.generated.Common.ObjectRefInfoOrBuilder>( objectRefs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); objectRefs_ = null; } return objectRefsBuilder_; } private com.google.protobuf.ByteString jobId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes job_id = 19 [json_name = "jobId"]; * @return The jobId. */ @java.lang.Override public com.google.protobuf.ByteString getJobId() { return jobId_; } /** * bytes job_id = 19 [json_name = "jobId"]; * @param value The jobId to set. * @return This builder for chaining. */ public Builder setJobId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } jobId_ = value; onChanged(); return this; } /** * bytes job_id = 19 [json_name = "jobId"]; * @return This builder for chaining. */ public Builder clearJobId() { jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } private com.google.protobuf.ByteString workerId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes worker_id = 20 [json_name = "workerId"]; * @return The workerId. */ @java.lang.Override public com.google.protobuf.ByteString getWorkerId() { return workerId_; } /** * bytes worker_id = 20 [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 = 20 [json_name = "workerId"]; * @return This builder for chaining. */ public Builder clearWorkerId() { workerId_ = getDefaultInstance().getWorkerId(); onChanged(); return this; } private int language_ = 0; /** * .ray.rpc.Language language = 21 [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 = 21 [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 = 21 [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 = 21 [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 = 21 [json_name = "language"]; * @return This builder for chaining. */ public Builder clearLanguage() { language_ = 0; onChanged(); return this; } private int pid_ ; /** * uint32 pid = 22 [json_name = "pid"]; * @return The pid. */ @java.lang.Override public int getPid() { return pid_; } /** * uint32 pid = 22 [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 = 22 [json_name = "pid"]; * @return This builder for chaining. */ public Builder clearPid() { pid_ = 0; onChanged(); return this; } private int workerType_ = 0; /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @return The enum numeric value on the wire for workerType. */ @java.lang.Override public int getWorkerTypeValue() { return workerType_; } /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @param value The enum numeric value on the wire for workerType to set. * @return This builder for chaining. */ public Builder setWorkerTypeValue(int value) { workerType_ = value; onChanged(); return this; } /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @return The workerType. */ @java.lang.Override public io.ray.runtime.generated.Common.WorkerType getWorkerType() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.WorkerType result = io.ray.runtime.generated.Common.WorkerType.valueOf(workerType_); return result == null ? io.ray.runtime.generated.Common.WorkerType.UNRECOGNIZED : result; } /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @param value The workerType to set. * @return This builder for chaining. */ public Builder setWorkerType(io.ray.runtime.generated.Common.WorkerType value) { if (value == null) { throw new NullPointerException(); } workerType_ = value.getNumber(); onChanged(); return this; } /** * .ray.rpc.WorkerType worker_type = 23 [json_name = "workerType"]; * @return This builder for chaining. */ public Builder clearWorkerType() { workerType_ = 0; onChanged(); return this; } private long objectsTotal_ ; /** * int64 objects_total = 24 [json_name = "objectsTotal"]; * @return The objectsTotal. */ @java.lang.Override public long getObjectsTotal() { return objectsTotal_; } /** * int64 objects_total = 24 [json_name = "objectsTotal"]; * @param value The objectsTotal to set. * @return This builder for chaining. */ public Builder setObjectsTotal(long value) { objectsTotal_ = value; onChanged(); return this; } /** * int64 objects_total = 24 [json_name = "objectsTotal"]; * @return This builder for chaining. */ public Builder clearObjectsTotal() { objectsTotal_ = 0L; onChanged(); return this; } private long numOwnedObjects_ ; /** * int64 num_owned_objects = 25 [json_name = "numOwnedObjects"]; * @return The numOwnedObjects. */ @java.lang.Override public long getNumOwnedObjects() { return numOwnedObjects_; } /** * int64 num_owned_objects = 25 [json_name = "numOwnedObjects"]; * @param value The numOwnedObjects to set. * @return This builder for chaining. */ public Builder setNumOwnedObjects(long value) { numOwnedObjects_ = value; onChanged(); return this; } /** * int64 num_owned_objects = 25 [json_name = "numOwnedObjects"]; * @return This builder for chaining. */ public Builder clearNumOwnedObjects() { numOwnedObjects_ = 0L; onChanged(); return this; } private long numOwnedActors_ ; /** * int64 num_owned_actors = 26 [json_name = "numOwnedActors"]; * @return The numOwnedActors. */ @java.lang.Override public long getNumOwnedActors() { return numOwnedActors_; } /** * int64 num_owned_actors = 26 [json_name = "numOwnedActors"]; * @param value The numOwnedActors to set. * @return This builder for chaining. */ public Builder setNumOwnedActors(long value) { numOwnedActors_ = value; onChanged(); return this; } /** * int64 num_owned_actors = 26 [json_name = "numOwnedActors"]; * @return This builder for chaining. */ public Builder clearNumOwnedActors() { numOwnedActors_ = 0L; onChanged(); return this; } private long numRunningTasks_ ; /** * int64 num_running_tasks = 27 [json_name = "numRunningTasks"]; * @return The numRunningTasks. */ @java.lang.Override public long getNumRunningTasks() { return numRunningTasks_; } /** * int64 num_running_tasks = 27 [json_name = "numRunningTasks"]; * @param value The numRunningTasks to set. * @return This builder for chaining. */ public Builder setNumRunningTasks(long value) { numRunningTasks_ = value; onChanged(); return this; } /** * int64 num_running_tasks = 27 [json_name = "numRunningTasks"]; * @return This builder for chaining. */ public Builder clearNumRunningTasks() { numRunningTasks_ = 0L; 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.CoreWorkerStats) } // @@protoc_insertion_point(class_scope:ray.rpc.CoreWorkerStats) private static final io.ray.runtime.generated.Common.CoreWorkerStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.CoreWorkerStats(); } public static io.ray.runtime.generated.Common.CoreWorkerStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CoreWorkerStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CoreWorkerStats(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.CoreWorkerStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NodeResourceUsageOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.NodeResourceUsage) com.google.protobuf.MessageOrBuilder { /** * string json = 1 [json_name = "json"]; * @return The json. */ java.lang.String getJson(); /** * string json = 1 [json_name = "json"]; * @return The bytes for json. */ com.google.protobuf.ByteString getJsonBytes(); } /** * Protobuf type {@code ray.rpc.NodeResourceUsage} */ public static final class NodeResourceUsage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.NodeResourceUsage) NodeResourceUsageOrBuilder { private static final long serialVersionUID = 0L; // Use NodeResourceUsage.newBuilder() to construct. private NodeResourceUsage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NodeResourceUsage() { json_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NodeResourceUsage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NodeResourceUsage( 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(); json_ = 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_NodeResourceUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeResourceUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.NodeResourceUsage.class, io.ray.runtime.generated.Common.NodeResourceUsage.Builder.class); } public static final int JSON_FIELD_NUMBER = 1; private volatile java.lang.Object json_; /** * string json = 1 [json_name = "json"]; * @return The json. */ @java.lang.Override public java.lang.String getJson() { java.lang.Object ref = json_; 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(); json_ = s; return s; } } /** * string json = 1 [json_name = "json"]; * @return The bytes for json. */ @java.lang.Override public com.google.protobuf.ByteString getJsonBytes() { java.lang.Object ref = json_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); json_ = 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(json_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, json_); } 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(json_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, json_); } 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.NodeResourceUsage)) { return super.equals(obj); } io.ray.runtime.generated.Common.NodeResourceUsage other = (io.ray.runtime.generated.Common.NodeResourceUsage) obj; if (!getJson() .equals(other.getJson())) 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) + JSON_FIELD_NUMBER; hash = (53 * hash) + getJson().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.NodeResourceUsage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.NodeResourceUsage 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.NodeResourceUsage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.NodeResourceUsage 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.NodeResourceUsage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.NodeResourceUsage 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.NodeResourceUsage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.NodeResourceUsage 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.NodeResourceUsage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.NodeResourceUsage 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.NodeResourceUsage 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.NodeResourceUsage 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.NodeResourceUsage 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.NodeResourceUsage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.NodeResourceUsage) io.ray.runtime.generated.Common.NodeResourceUsageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeResourceUsage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeResourceUsage_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.NodeResourceUsage.class, io.ray.runtime.generated.Common.NodeResourceUsage.Builder.class); } // Construct using io.ray.runtime.generated.Common.NodeResourceUsage.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(); json_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_NodeResourceUsage_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.NodeResourceUsage getDefaultInstanceForType() { return io.ray.runtime.generated.Common.NodeResourceUsage.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.NodeResourceUsage build() { io.ray.runtime.generated.Common.NodeResourceUsage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.NodeResourceUsage buildPartial() { io.ray.runtime.generated.Common.NodeResourceUsage result = new io.ray.runtime.generated.Common.NodeResourceUsage(this); result.json_ = json_; 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.NodeResourceUsage) { return mergeFrom((io.ray.runtime.generated.Common.NodeResourceUsage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.NodeResourceUsage other) { if (other == io.ray.runtime.generated.Common.NodeResourceUsage.getDefaultInstance()) return this; if (!other.getJson().isEmpty()) { json_ = other.json_; 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.NodeResourceUsage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.NodeResourceUsage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object json_ = ""; /** * string json = 1 [json_name = "json"]; * @return The json. */ public java.lang.String getJson() { java.lang.Object ref = json_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); json_ = s; return s; } else { return (java.lang.String) ref; } } /** * string json = 1 [json_name = "json"]; * @return The bytes for json. */ public com.google.protobuf.ByteString getJsonBytes() { java.lang.Object ref = json_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); json_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string json = 1 [json_name = "json"]; * @param value The json to set. * @return This builder for chaining. */ public Builder setJson( java.lang.String value) { if (value == null) { throw new NullPointerException(); } json_ = value; onChanged(); return this; } /** * string json = 1 [json_name = "json"]; * @return This builder for chaining. */ public Builder clearJson() { json_ = getDefaultInstance().getJson(); onChanged(); return this; } /** * string json = 1 [json_name = "json"]; * @param value The bytes for json to set. * @return This builder for chaining. */ public Builder setJsonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); json_ = 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.NodeResourceUsage) } // @@protoc_insertion_point(class_scope:ray.rpc.NodeResourceUsage) private static final io.ray.runtime.generated.Common.NodeResourceUsage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.NodeResourceUsage(); } public static io.ray.runtime.generated.Common.NodeResourceUsage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NodeResourceUsage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NodeResourceUsage(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.NodeResourceUsage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface NamedActorInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.NamedActorInfo) com.google.protobuf.MessageOrBuilder { /** * string ray_namespace = 1 [json_name = "rayNamespace"]; * @return The rayNamespace. */ java.lang.String getRayNamespace(); /** * string ray_namespace = 1 [json_name = "rayNamespace"]; * @return The bytes for rayNamespace. */ com.google.protobuf.ByteString getRayNamespaceBytes(); /** * 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(); } /** * Protobuf type {@code ray.rpc.NamedActorInfo} */ public static final class NamedActorInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.NamedActorInfo) NamedActorInfoOrBuilder { private static final long serialVersionUID = 0L; // Use NamedActorInfo.newBuilder() to construct. private NamedActorInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NamedActorInfo() { rayNamespace_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NamedActorInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NamedActorInfo( 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(); rayNamespace_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = 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_NamedActorInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_NamedActorInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.NamedActorInfo.class, io.ray.runtime.generated.Common.NamedActorInfo.Builder.class); } public static final int RAY_NAMESPACE_FIELD_NUMBER = 1; private volatile java.lang.Object rayNamespace_; /** * string ray_namespace = 1 [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 = 1 [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 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; } } 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(rayNamespace_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rayNamespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } 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(rayNamespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rayNamespace_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } 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.NamedActorInfo)) { return super.equals(obj); } io.ray.runtime.generated.Common.NamedActorInfo other = (io.ray.runtime.generated.Common.NamedActorInfo) obj; if (!getRayNamespace() .equals(other.getRayNamespace())) return false; if (!getName() .equals(other.getName())) 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) + RAY_NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getRayNamespace().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.NamedActorInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.NamedActorInfo 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.NamedActorInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.NamedActorInfo 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.NamedActorInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.NamedActorInfo 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.NamedActorInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.NamedActorInfo 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.NamedActorInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.NamedActorInfo 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.NamedActorInfo 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.NamedActorInfo 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.NamedActorInfo 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.NamedActorInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.NamedActorInfo) io.ray.runtime.generated.Common.NamedActorInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_NamedActorInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_NamedActorInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.NamedActorInfo.class, io.ray.runtime.generated.Common.NamedActorInfo.Builder.class); } // Construct using io.ray.runtime.generated.Common.NamedActorInfo.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(); rayNamespace_ = ""; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_NamedActorInfo_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.NamedActorInfo getDefaultInstanceForType() { return io.ray.runtime.generated.Common.NamedActorInfo.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.NamedActorInfo build() { io.ray.runtime.generated.Common.NamedActorInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.NamedActorInfo buildPartial() { io.ray.runtime.generated.Common.NamedActorInfo result = new io.ray.runtime.generated.Common.NamedActorInfo(this); result.rayNamespace_ = rayNamespace_; result.name_ = name_; 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.NamedActorInfo) { return mergeFrom((io.ray.runtime.generated.Common.NamedActorInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.NamedActorInfo other) { if (other == io.ray.runtime.generated.Common.NamedActorInfo.getDefaultInstance()) return this; if (!other.getRayNamespace().isEmpty()) { rayNamespace_ = other.rayNamespace_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; 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.NamedActorInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.NamedActorInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object rayNamespace_ = ""; /** * string ray_namespace = 1 [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 = 1 [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 = 1 [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 = 1 [json_name = "rayNamespace"]; * @return This builder for chaining. */ public Builder clearRayNamespace() { rayNamespace_ = getDefaultInstance().getRayNamespace(); onChanged(); return this; } /** * string ray_namespace = 1 [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 name_ = ""; /** * string name = 2 [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 = 2 [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 = 2 [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 = 2 [json_name = "name"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 2 [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; } @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.NamedActorInfo) } // @@protoc_insertion_point(class_scope:ray.rpc.NamedActorInfo) private static final io.ray.runtime.generated.Common.NamedActorInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.NamedActorInfo(); } public static io.ray.runtime.generated.Common.NamedActorInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NamedActorInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NamedActorInfo(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.NamedActorInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LineageReconstructionTaskOrBuilder extends // @@protoc_insertion_point(interface_extends:ray.rpc.LineageReconstructionTask) 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(); /** * map<string, double> resources = 2 [json_name = "resources"]; */ int getResourcesCount(); /** * map<string, double> resources = 2 [json_name = "resources"]; */ boolean containsResources( java.lang.String key); /** * Use {@link #getResourcesMap()} instead. */ @java.lang.Deprecated java.util.Map getResources(); /** * map<string, double> resources = 2 [json_name = "resources"]; */ java.util.Map getResourcesMap(); /** * map<string, double> resources = 2 [json_name = "resources"]; */ double getResourcesOrDefault( java.lang.String key, double defaultValue); /** * map<string, double> resources = 2 [json_name = "resources"]; */ double getResourcesOrThrow( java.lang.String key); /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @return The status. */ io.ray.runtime.generated.Common.TaskStatus getStatus(); } /** * Protobuf type {@code ray.rpc.LineageReconstructionTask} */ public static final class LineageReconstructionTask extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:ray.rpc.LineageReconstructionTask) LineageReconstructionTaskOrBuilder { private static final long serialVersionUID = 0L; // Use LineageReconstructionTask.newBuilder() to construct. private LineageReconstructionTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LineageReconstructionTask() { name_ = ""; status_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LineageReconstructionTask(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LineageReconstructionTask( 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 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = com.google.protobuf.MapField.newMapField( ResourcesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry resources__ = input.readMessage( ResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); resources_.getMutableMap().put( resources__.getKey(), resources__.getValue()); break; } case 24: { int rawValue = input.readEnum(); status_ = 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_LineageReconstructionTask_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetResources(); 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_LineageReconstructionTask_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.LineageReconstructionTask.class, io.ray.runtime.generated.Common.LineageReconstructionTask.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 RESOURCES_FIELD_NUMBER = 2; private static final class ResourcesDefaultEntryHolder { 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_LineageReconstructionTask_ResourcesEntry_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> resources_; private com.google.protobuf.MapField internalGetResources() { if (resources_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcesDefaultEntryHolder.defaultEntry); } return resources_; } public int getResourcesCount() { return internalGetResources().getMap().size(); } /** * map<string, double> resources = 2 [json_name = "resources"]; */ @java.lang.Override public boolean containsResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResources().getMap().containsKey(key); } /** * Use {@link #getResourcesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResources() { return getResourcesMap(); } /** * map<string, double> resources = 2 [json_name = "resources"]; */ @java.lang.Override public java.util.Map getResourcesMap() { return internalGetResources().getMap(); } /** * map<string, double> resources = 2 [json_name = "resources"]; */ @java.lang.Override public double getResourcesOrDefault( java.lang.String key, double defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResources().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, double> resources = 2 [json_name = "resources"]; */ @java.lang.Override public double getResourcesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResources().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int STATUS_FIELD_NUMBER = 3; private int status_; /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @return The status. */ @java.lang.Override public io.ray.runtime.generated.Common.TaskStatus getStatus() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.TaskStatus result = io.ray.runtime.generated.Common.TaskStatus.valueOf(status_); return result == null ? io.ray.runtime.generated.Common.TaskStatus.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetResources(), ResourcesDefaultEntryHolder.defaultEntry, 2); if (status_ != io.ray.runtime.generated.Common.TaskStatus.NIL.getNumber()) { output.writeEnum(3, status_); } 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_); } for (java.util.Map.Entry entry : internalGetResources().getMap().entrySet()) { com.google.protobuf.MapEntry resources__ = ResourcesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, resources__); } if (status_ != io.ray.runtime.generated.Common.TaskStatus.NIL.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, status_); } 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.LineageReconstructionTask)) { return super.equals(obj); } io.ray.runtime.generated.Common.LineageReconstructionTask other = (io.ray.runtime.generated.Common.LineageReconstructionTask) obj; if (!getName() .equals(other.getName())) return false; if (!internalGetResources().equals( other.internalGetResources())) return false; if (status_ != other.status_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (!internalGetResources().getMap().isEmpty()) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + internalGetResources().hashCode(); } hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.ray.runtime.generated.Common.LineageReconstructionTask parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.LineageReconstructionTask 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.LineageReconstructionTask parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.LineageReconstructionTask 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.LineageReconstructionTask parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.ray.runtime.generated.Common.LineageReconstructionTask 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.LineageReconstructionTask parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.LineageReconstructionTask 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.LineageReconstructionTask parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.ray.runtime.generated.Common.LineageReconstructionTask 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.LineageReconstructionTask 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.LineageReconstructionTask 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.LineageReconstructionTask 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.LineageReconstructionTask} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:ray.rpc.LineageReconstructionTask) io.ray.runtime.generated.Common.LineageReconstructionTaskOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_LineageReconstructionTask_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 2: return internalGetResources(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 2: return internalGetMutableResources(); 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_LineageReconstructionTask_fieldAccessorTable .ensureFieldAccessorsInitialized( io.ray.runtime.generated.Common.LineageReconstructionTask.class, io.ray.runtime.generated.Common.LineageReconstructionTask.Builder.class); } // Construct using io.ray.runtime.generated.Common.LineageReconstructionTask.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; internalGetMutableResources().clear(); status_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.ray.runtime.generated.Common.internal_static_ray_rpc_LineageReconstructionTask_descriptor; } @java.lang.Override public io.ray.runtime.generated.Common.LineageReconstructionTask getDefaultInstanceForType() { return io.ray.runtime.generated.Common.LineageReconstructionTask.getDefaultInstance(); } @java.lang.Override public io.ray.runtime.generated.Common.LineageReconstructionTask build() { io.ray.runtime.generated.Common.LineageReconstructionTask result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.ray.runtime.generated.Common.LineageReconstructionTask buildPartial() { io.ray.runtime.generated.Common.LineageReconstructionTask result = new io.ray.runtime.generated.Common.LineageReconstructionTask(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.resources_ = internalGetResources(); result.resources_.makeImmutable(); result.status_ = status_; 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.LineageReconstructionTask) { return mergeFrom((io.ray.runtime.generated.Common.LineageReconstructionTask)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.ray.runtime.generated.Common.LineageReconstructionTask other) { if (other == io.ray.runtime.generated.Common.LineageReconstructionTask.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } internalGetMutableResources().mergeFrom( other.internalGetResources()); if (other.status_ != 0) { setStatusValue(other.getStatusValue()); } 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.LineageReconstructionTask parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.ray.runtime.generated.Common.LineageReconstructionTask) 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 com.google.protobuf.MapField< java.lang.String, java.lang.Double> resources_; private com.google.protobuf.MapField internalGetResources() { if (resources_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcesDefaultEntryHolder.defaultEntry); } return resources_; } private com.google.protobuf.MapField internalGetMutableResources() { onChanged();; if (resources_ == null) { resources_ = com.google.protobuf.MapField.newMapField( ResourcesDefaultEntryHolder.defaultEntry); } if (!resources_.isMutable()) { resources_ = resources_.copy(); } return resources_; } public int getResourcesCount() { return internalGetResources().getMap().size(); } /** * map<string, double> resources = 2 [json_name = "resources"]; */ @java.lang.Override public boolean containsResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResources().getMap().containsKey(key); } /** * Use {@link #getResourcesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResources() { return getResourcesMap(); } /** * map<string, double> resources = 2 [json_name = "resources"]; */ @java.lang.Override public java.util.Map getResourcesMap() { return internalGetResources().getMap(); } /** * map<string, double> resources = 2 [json_name = "resources"]; */ @java.lang.Override public double getResourcesOrDefault( java.lang.String key, double defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResources().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, double> resources = 2 [json_name = "resources"]; */ @java.lang.Override public double getResourcesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResources().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearResources() { internalGetMutableResources().getMutableMap() .clear(); return this; } /** * map<string, double> resources = 2 [json_name = "resources"]; */ public Builder removeResources( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableResources().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResources() { return internalGetMutableResources().getMutableMap(); } /** * map<string, double> resources = 2 [json_name = "resources"]; */ public Builder putResources( java.lang.String key, double value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableResources().getMutableMap() .put(key, value); return this; } /** * map<string, double> resources = 2 [json_name = "resources"]; */ public Builder putAllResources( java.util.Map values) { internalGetMutableResources().getMutableMap() .putAll(values); return this; } private int status_ = 0; /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @return The enum numeric value on the wire for status. */ @java.lang.Override public int getStatusValue() { return status_; } /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ public Builder setStatusValue(int value) { status_ = value; onChanged(); return this; } /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @return The status. */ @java.lang.Override public io.ray.runtime.generated.Common.TaskStatus getStatus() { @SuppressWarnings("deprecation") io.ray.runtime.generated.Common.TaskStatus result = io.ray.runtime.generated.Common.TaskStatus.valueOf(status_); return result == null ? io.ray.runtime.generated.Common.TaskStatus.UNRECOGNIZED : result; } /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(io.ray.runtime.generated.Common.TaskStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /** * .ray.rpc.TaskStatus status = 3 [json_name = "status"]; * @return This builder for chaining. */ public Builder clearStatus() { status_ = 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.LineageReconstructionTask) } // @@protoc_insertion_point(class_scope:ray.rpc.LineageReconstructionTask) private static final io.ray.runtime.generated.Common.LineageReconstructionTask DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.ray.runtime.generated.Common.LineageReconstructionTask(); } public static io.ray.runtime.generated.Common.LineageReconstructionTask getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LineageReconstructionTask parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LineageReconstructionTask(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.LineageReconstructionTask getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LabelIn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LabelIn_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LabelNotIn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LabelNotIn_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LabelExists_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LabelExists_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LabelDoesNotExist_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LabelDoesNotExist_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LabelOperator_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LabelOperator_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LabelMatchExpression_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LabelMatchExpression_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LabelMatchExpressions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LabelMatchExpressions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_NodeLabelSchedulingStrategy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_NodeLabelSchedulingStrategy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_NodeAffinitySchedulingStrategy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_NodeAffinitySchedulingStrategy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_PlacementGroupSchedulingStrategy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_PlacementGroupSchedulingStrategy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_DefaultSchedulingStrategy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_DefaultSchedulingStrategy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_SpreadSchedulingStrategy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_SpreadSchedulingStrategy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_SchedulingStrategy_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_SchedulingStrategy_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_Address_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_Address_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_JavaFunctionDescriptor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_JavaFunctionDescriptor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_PythonFunctionDescriptor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_PythonFunctionDescriptor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_CppFunctionDescriptor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_CppFunctionDescriptor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_FunctionDescriptor_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_FunctionDescriptor_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ConcurrencyGroup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ConcurrencyGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_RayErrorInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_RayErrorInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_OutOfMemoryErrorContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_OutOfMemoryErrorContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_NodeDiedErrorContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_NodeDiedErrorContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_RayException_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_RayException_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_NodeDeathInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_NodeDeathInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ActorDeathCause_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ActorDeathCause_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_RuntimeEnvFailedContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_RuntimeEnvFailedContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ActorUnschedulableContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ActorUnschedulableContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ActorDiedErrorContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ActorDiedErrorContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_OomContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_OomContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ActorUnavailableContext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ActorUnavailableContext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_JobConfig_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_JobConfig_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_JobConfig_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_JobConfig_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_TaskSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_TaskSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_TaskSpec_RequiredResourcesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_TaskSpec_RequiredResourcesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_TaskSpec_RequiredPlacementResourcesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_TaskSpec_RequiredPlacementResourcesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_TaskInfoEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_TaskInfoEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_TaskInfoEntry_RequiredResourcesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_TaskInfoEntry_RequiredResourcesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_Bundle_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_Bundle_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_Bundle_BundleIdentifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_Bundle_BundleIdentifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_Bundle_UnitResourcesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_Bundle_UnitResourcesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_PlacementGroupSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_PlacementGroupSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ObjectReference_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ObjectReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ObjectReferenceCount_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ObjectReferenceCount_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_TaskArg_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_TaskArg_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ReturnObject_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ReturnObject_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ActorCreationTaskSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ActorCreationTaskSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ActorTaskSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ActorTaskSpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_Task_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_Task_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ResourceId_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ResourceId_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ResourceMapEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ResourceMapEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ViewData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ViewData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ViewData_Measure_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ViewData_Measure_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ObjectRefInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ObjectRefInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ResourceAllocations_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ResourceAllocations_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_ResourceAllocations_ResourceSlot_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_ResourceAllocations_ResourceSlot_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_CoreWorkerStats_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_CoreWorkerStats_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_CoreWorkerStats_UsedResourcesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_CoreWorkerStats_UsedResourcesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_CoreWorkerStats_WebuiDisplayEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_CoreWorkerStats_WebuiDisplayEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_NodeResourceUsage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_NodeResourceUsage_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_NamedActorInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_NamedActorInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LineageReconstructionTask_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LineageReconstructionTask_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_ray_rpc_LineageReconstructionTask_ResourcesEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_ray_rpc_LineageReconstructionTask_ResourcesEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\035src/ray/protobuf/common.proto\022\007ray.rpc" + "\032)src/ray/protobuf/runtime_env_common.pr" + "oto\"!\n\007LabelIn\022\026\n\006values\030\001 \003(\tR\006values\"$" + "\n\nLabelNotIn\022\026\n\006values\030\001 \003(\tR\006values\"\r\n\013" + "LabelExists\"\023\n\021LabelDoesNotExist\"\223\002\n\rLab" + "elOperator\022-\n\010label_in\030\001 \001(\0132\020.ray.rpc.L" + "abelInH\000R\007labelIn\0227\n\014label_not_in\030\002 \001(\0132" + "\023.ray.rpc.LabelNotInH\000R\nlabelNotIn\0229\n\014la" + "bel_exists\030\003 \001(\0132\024.ray.rpc.LabelExistsH\000" + "R\013labelExists\022M\n\024label_does_not_exist\030\004 " + "\001(\0132\032.ray.rpc.LabelDoesNotExistH\000R\021label" + "DoesNotExistB\020\n\016label_operator\"\\\n\024LabelM" + "atchExpression\022\020\n\003key\030\001 \001(\tR\003key\0222\n\010oper" + "ator\030\002 \001(\0132\026.ray.rpc.LabelOperatorR\010oper" + "ator\"X\n\025LabelMatchExpressions\022?\n\013express" + "ions\030\001 \003(\0132\035.ray.rpc.LabelMatchExpressio" + "nR\013expressions\"\205\001\n\033NodeLabelSchedulingSt" + "rategy\0222\n\004hard\030\001 \001(\0132\036.ray.rpc.LabelMatc" + "hExpressionsR\004hard\0222\n\004soft\030\002 \001(\0132\036.ray.r" + "pc.LabelMatchExpressionsR\004soft\"\257\001\n\036NodeA" + "ffinitySchedulingStrategy\022\027\n\007node_id\030\001 \001" + "(\014R\006nodeId\022\022\n\004soft\030\002 \001(\010R\004soft\0220\n\024spill_" + "on_unavailable\030\003 \001(\010R\022spillOnUnavailable" + "\022.\n\023fail_on_unavailable\030\004 \001(\010R\021failOnUna" + "vailable\"\337\001\n PlacementGroupSchedulingStr" + "ategy\022,\n\022placement_group_id\030\001 \001(\014R\020place" + "mentGroupId\022?\n\034placement_group_bundle_in" + "dex\030\002 \001(\003R\031placementGroupBundleIndex\022L\n#" + "placement_group_capture_child_tasks\030\003 \001(" + "\010R\037placementGroupCaptureChildTasks\"\033\n\031De" + "faultSchedulingStrategy\"\032\n\030SpreadSchedul" + "ingStrategy\"\323\004\n\022SchedulingStrategy\022d\n\033de" + "fault_scheduling_strategy\030\001 \001(\0132\".ray.rp" + "c.DefaultSchedulingStrategyH\000R\031defaultSc" + "hedulingStrategy\022z\n#placement_group_sche" + "duling_strategy\030\002 \001(\0132).ray.rpc.Placemen" + "tGroupSchedulingStrategyH\000R placementGro" + "upSchedulingStrategy\022a\n\032spread_schedulin" + "g_strategy\030\003 \001(\0132!.ray.rpc.SpreadSchedul" + "ingStrategyH\000R\030spreadSchedulingStrategy\022" + "t\n!node_affinity_scheduling_strategy\030\004 \001" + "(\0132\'.ray.rpc.NodeAffinitySchedulingStrat" + "egyH\000R\036nodeAffinitySchedulingStrategy\022k\n" + "\036node_label_scheduling_strategy\030\005 \001(\0132$." + "ray.rpc.NodeLabelSchedulingStrategyH\000R\033n" + "odeLabelSchedulingStrategyB\025\n\023scheduling" + "_strategy\"v\n\007Address\022\033\n\traylet_id\030\001 \001(\014R" + "\010rayletId\022\035\n\nip_address\030\002 \001(\tR\tipAddress" + "\022\022\n\004port\030\003 \001(\005R\004port\022\033\n\tworker_id\030\004 \001(\014R" + "\010workerId\"z\n\026JavaFunctionDescriptor\022\035\n\nc" + "lass_name\030\001 \001(\tR\tclassName\022#\n\rfunction_n" + "ame\030\002 \001(\tR\014functionName\022\034\n\tsignature\030\003 \001" + "(\tR\tsignature\"\244\001\n\030PythonFunctionDescript" + "or\022\037\n\013module_name\030\001 \001(\tR\nmoduleName\022\035\n\nc" + "lass_name\030\002 \001(\tR\tclassName\022#\n\rfunction_n" + "ame\030\003 \001(\tR\014functionName\022#\n\rfunction_hash" + "\030\004 \001(\tR\014functionHash\"s\n\025CppFunctionDescr" + "iptor\022#\n\rfunction_name\030\001 \001(\tR\014functionNa" + "me\022\026\n\006caller\030\002 \001(\tR\006caller\022\035\n\nclass_name" + "\030\003 \001(\tR\tclassName\"\305\002\n\022FunctionDescriptor" + "\022[\n\030java_function_descriptor\030\001 \001(\0132\037.ray" + ".rpc.JavaFunctionDescriptorH\000R\026javaFunct" + "ionDescriptor\022a\n\032python_function_descrip" + "tor\030\002 \001(\0132!.ray.rpc.PythonFunctionDescri" + "ptorH\000R\030pythonFunctionDescriptor\022X\n\027cpp_" + "function_descriptor\030\003 \001(\0132\036.ray.rpc.CppF" + "unctionDescriptorH\000R\025cppFunctionDescript" + "orB\025\n\023function_descriptor\"\237\001\n\020Concurrenc" + "yGroup\022\022\n\004name\030\001 \001(\tR\004name\022\'\n\017max_concur" + "rency\030\002 \001(\005R\016maxConcurrency\022N\n\024function_" + "descriptors\030\003 \003(\0132\033.ray.rpc.FunctionDesc" + "riptorR\023functionDescriptors\"\371\002\n\014RayError" + "Info\022D\n\020actor_died_error\030\002 \001(\0132\030.ray.rpc" + ".ActorDeathCauseH\000R\016actorDiedError\022f\n\036ru" + "ntime_env_setup_failed_error\030\003 \001(\0132 .ray" + ".rpc.RuntimeEnvFailedContextH\000R\032runtimeE" + "nvSetupFailedError\022Z\n\027actor_unavailable_" + "error\030\004 \001(\0132 .ray.rpc.ActorUnavailableCo" + "ntextH\000R\025actorUnavailableError\022#\n\rerror_" + "message\030\005 \001(\tR\014errorMessage\0221\n\nerror_typ" + "e\030\013 \001(\0162\022.ray.rpc.ErrorTypeR\terrorTypeB\007" + "\n\005error\"\260\002\n\027OutOfMemoryErrorContext\022\027\n\007t" + "ask_id\030\001 \001(\014R\006taskId\022\033\n\ttask_name\030\002 \001(\tR" + "\010taskName\022&\n\017node_ip_address\030\003 \001(\tR\rnode" + "IpAddress\022*\n\021memory_used_bytes\030\004 \001(\004R\017me" + "moryUsedBytes\022,\n\022memory_total_bytes\030\005 \001(" + "\004R\020memoryTotalBytes\0222\n\025memory_usage_frac" + "tion\030\006 \001(\001R\023memoryUsageFraction\022)\n\020memor" + "y_threshold\030\007 \001(\001R\017memoryThreshold\"W\n\024No" + "deDiedErrorContext\022\027\n\007node_id\030\001 \001(\014R\006nod" + "eId\022&\n\017node_ip_address\030\002 \001(\tR\rnodeIpAddr" + "ess\"\256\001\n\014RayException\022-\n\010language\030\001 \001(\0162\021" + ".ray.rpc.LanguageR\010language\0221\n\024serialize" + "d_exception\030\002 \001(\014R\023serializedException\022<" + "\n\032formatted_exception_string\030\003 \001(\tR\030form" + "attedExceptionString\"\372\001\n\rNodeDeathInfo\0225" + "\n\006reason\030\001 \001(\0162\035.ray.rpc.NodeDeathInfo.R" + "easonR\006reason\022%\n\016reason_message\030\002 \001(\tR\rr" + "easonMessage\"\212\001\n\006Reason\022\017\n\013UNSPECIFIED\020\000" + "\022\030\n\024EXPECTED_TERMINATION\020\001\022\032\n\026UNEXPECTED" + "_TERMINATION\020\002\022\036\n\032AUTOSCALER_DRAIN_PREEM" + "PTED\020\003\022\031\n\025AUTOSCALER_DRAIN_IDLE\020\004\"\322\003\n\017Ac" + "torDeathCause\022Z\n\035creation_task_failure_c" + "ontext\030\001 \001(\0132\025.ray.rpc.RayExceptionH\000R\032c" + "reationTaskFailureContext\022_\n\032runtime_env" + "_failed_context\030\002 \001(\0132 .ray.rpc.RuntimeE" + "nvFailedContextH\000R\027runtimeEnvFailedConte" + "xt\022Y\n\030actor_died_error_context\030\003 \001(\0132\036.r" + "ay.rpc.ActorDiedErrorContextH\000R\025actorDie" + "dErrorContext\022d\n\033actor_unschedulable_con" + "text\030\004 \001(\0132\".ray.rpc.ActorUnschedulableC" + "ontextH\000R\031actorUnschedulableContext\0226\n\013o" + "om_context\030\005 \001(\0132\023.ray.rpc.OomContextH\000R" + "\noomContextB\t\n\007context\">\n\027RuntimeEnvFail" + "edContext\022#\n\rerror_message\030\001 \001(\tR\014errorM" + "essage\"@\n\031ActorUnschedulableContext\022#\n\re" + "rror_message\030\001 \001(\tR\014errorMessage\"\254\003\n\025Act" + "orDiedErrorContext\022#\n\rerror_message\030\001 \001(" + "\tR\014errorMessage\022\031\n\010owner_id\030\002 \001(\014R\007owner" + "Id\022(\n\020owner_ip_address\030\003 \001(\tR\016ownerIpAdd" + "ress\022&\n\017node_ip_address\030\004 \001(\tR\rnodeIpAdd" + "ress\022\020\n\003pid\030\005 \001(\rR\003pid\022\022\n\004name\030\006 \001(\tR\004na" + "me\022#\n\rray_namespace\030\007 \001(\tR\014rayNamespace\022" + "\035\n\nclass_name\030\010 \001(\tR\tclassName\022\031\n\010actor_" + "id\030\t \001(\014R\007actorId\022#\n\rnever_started\030\n \001(\010" + "R\014neverStarted\022C\n\017node_death_info\030\013 \001(\0132" + "\026.ray.rpc.NodeDeathInfoH\000R\rnodeDeathInfo" + "\210\001\001B\022\n\020_node_death_info\"\\\n\nOomContext\022#\n" + "\rerror_message\030\001 \001(\tR\014errorMessage\022)\n\020fa" + "il_immediately\030\002 \001(\010R\017failImmediately\"F\n" + "\027ActorUnavailableContext\022\036\n\010actor_id\030\001 \001" + "(\014H\000R\007actorId\210\001\001B\013\n\t_actor_id\"\260\004\n\tJobCon" + "fig\022\037\n\013jvm_options\030\002 \003(\tR\njvmOptions\022(\n\020" + "code_search_path\030\003 \003(\tR\016codeSearchPath\022A" + "\n\020runtime_env_info\030\004 \001(\0132\027.ray.rpc.Runti" + "meEnvInfoR\016runtimeEnvInfo\022#\n\rray_namespa" + "ce\030\005 \001(\tR\014rayNamespace\022<\n\010metadata\030\006 \003(\013" + "2 .ray.rpc.JobConfig.MetadataEntryR\010meta" + "data\022V\n\026default_actor_lifetime\030\007 \001(\0162 .r" + "ay.rpc.JobConfig.ActorLifetimeR\024defaultA" + "ctorLifetime\022+\n\022py_driver_sys_path\030\010 \003(\t" + "R\017pyDriverSysPath\022?\n\034serialized_py_loggi" + "ng_config\030\t \001(\014R\031serializedPyLoggingConf" + "ig\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n" + "\005value\030\002 \001(\tR\005value:\0028\001\"/\n\rActorLifetime" + "\022\014\n\010DETACHED\020\000\022\020\n\014NON_DETACHED\020\001\"g\n\036Stre" + "amingGeneratorReturnIdInfo\022\033\n\tobject_id\030" + "\001 \001(\014R\010objectId\022(\n\020is_plasma_object\030\002 \001(" + "\010R\016isPlasmaObject\"\362\020\n\010TaskSpec\022%\n\004type\030\001" + " \001(\0162\021.ray.rpc.TaskTypeR\004type\022\022\n\004name\030\002 " + "\001(\tR\004name\022-\n\010language\030\003 \001(\0162\021.ray.rpc.La" + "nguageR\010language\022L\n\023function_descriptor\030" + "\004 \001(\0132\033.ray.rpc.FunctionDescriptorR\022func" + "tionDescriptor\022\025\n\006job_id\030\005 \001(\014R\005jobId\022\027\n" + "\007task_id\030\006 \001(\014R\006taskId\022$\n\016parent_task_id" + "\030\007 \001(\014R\014parentTaskId\022%\n\016parent_counter\030\010" + " \001(\004R\rparentCounter\022\033\n\tcaller_id\030\t \001(\014R\010" + "callerId\0227\n\016caller_address\030\n \001(\0132\020.ray.r" + "pc.AddressR\rcallerAddress\022$\n\004args\030\013 \003(\0132" + "\020.ray.rpc.TaskArgR\004args\022\037\n\013num_returns\030\014" + " \001(\004R\nnumReturns\022W\n\022required_resources\030\r" + " \003(\0132(.ray.rpc.TaskSpec.RequiredResource" + "sEntryR\021requiredResources\022s\n\034required_pl" + "acement_resources\030\016 \003(\01321.ray.rpc.TaskSp" + "ec.RequiredPlacementResourcesEntryR\032requ" + "iredPlacementResources\022W\n\030actor_creation" + "_task_spec\030\017 \001(\0132\036.ray.rpc.ActorCreation" + "TaskSpecR\025actorCreationTaskSpec\022>\n\017actor" + "_task_spec\030\020 \001(\0132\026.ray.rpc.ActorTaskSpec" + "R\ractorTaskSpec\022\037\n\013max_retries\030\021 \001(\005R\nma" + "xRetries\022%\n\016skip_execution\030\025 \001(\010R\rskipEx" + "ecution\022/\n\023debugger_breakpoint\030\026 \001(\014R\022de" + "buggerBreakpoint\022A\n\020runtime_env_info\030\027 \001" + "(\0132\027.ray.rpc.RuntimeEnvInfoR\016runtimeEnvI" + "nfo\0224\n\026concurrency_group_name\030\030 \001(\tR\024con" + "currencyGroupName\022)\n\020retry_exceptions\030\031 " + "\001(\010R\017retryExceptions\022O\n$serialized_retry" + "_exception_allowlist\030\032 \001(\014R!serializedRe" + "tryExceptionAllowlist\022\024\n\005depth\030\033 \001(\003R\005de" + "pth\022L\n\023scheduling_strategy\030\034 \001(\0132\033.ray.r" + "pc.SchedulingStrategyR\022schedulingStrateg" + "y\022%\n\016attempt_number\030\035 \001(\004R\rattemptNumber" + "\022\'\n\017returns_dynamic\030\036 \001(\010R\016returnsDynami" + "c\022,\n\022dynamic_return_ids\030\037 \003(\014R\020dynamicRe" + "turnIds\0226\n\njob_config\030 \001(\0132\022.ray.rpc.Jo" + "bConfigH\000R\tjobConfig\210\001\001\022*\n\021submitter_tas" + "k_id\030! \001(\014R\017submitterTaskId\022/\n\023streaming" + "_generator\030\" \001(\010R\022streamingGenerator\022K\n\"" + "dependency_resolution_timestamp_ms\030# \001(\003" + "R\037dependencyResolutionTimestampMs\0227\n\030lea" + "se_grant_timestamp_ms\030$ \001(\003R\025leaseGrantT" + "imestampMs\022J\n\037num_streaming_generator_re" + "turns\030% \001(\004H\001R\034numStreamingGeneratorRetu" + "rns\210\001\001\022K\n\"generator_backpressure_num_obj" + "ects\030& \001(\003R\037generatorBackpressureNumObje" + "cts\022,\n\022enable_task_events\030\' \001(\010R\020enableT" + "askEvents\0223\n\026root_detached_actor_id\030( \001(" + "\014R\023rootDetachedActorId\032D\n\026RequiredResour" + "cesEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(" + "\001R\005value:\0028\001\032M\n\037RequiredPlacementResourc" + "esEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\001" + "R\005value:\0028\001B\r\n\013_job_configB\"\n _num_strea" + "ming_generator_returns\"\304\005\n\rTaskInfoEntry" + "\022%\n\004type\030\001 \001(\0162\021.ray.rpc.TaskTypeR\004type\022" + "\022\n\004name\030\002 \001(\tR\004name\022-\n\010language\030\003 \001(\0162\021." + "ray.rpc.LanguageR\010language\022+\n\022func_or_cl" + "ass_name\030\004 \001(\tR\017funcOrClassName\022>\n\020sched" + "uling_state\030\005 \001(\0162\023.ray.rpc.TaskStatusR\017" + "schedulingState\022\025\n\006job_id\030\006 \001(\014R\005jobId\022\027" + "\n\007task_id\030\007 \001(\014R\006taskId\022$\n\016parent_task_i" + "d\030\010 \001(\014R\014parentTaskId\022\\\n\022required_resour" + "ces\030\r \003(\0132-.ray.rpc.TaskInfoEntry.Requir" + "edResourcesEntryR\021requiredResources\022A\n\020r" + "untime_env_info\030\027 \001(\0132\027.ray.rpc.RuntimeE" + "nvInfoR\016runtimeEnvInfo\022\034\n\007node_id\030\030 \001(\014H" + "\000R\006nodeId\210\001\001\022\036\n\010actor_id\030\031 \001(\014H\001R\007actorI" + "d\210\001\001\0221\n\022placement_group_id\030\032 \001(\014H\002R\020plac" + "ementGroupId\210\001\001\032D\n\026RequiredResourcesEntr" + "y\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\001R\005valu" + "e:\0028\001B\n\n\010_node_idB\013\n\t_actor_idB\025\n\023_place" + "ment_group_id\"\322\002\n\006Bundle\022=\n\tbundle_id\030\001 " + "\001(\0132 .ray.rpc.Bundle.BundleIdentifierR\010b" + "undleId\022I\n\016unit_resources\030\002 \003(\0132\".ray.rp" + "c.Bundle.UnitResourcesEntryR\runitResourc" + "es\022\027\n\007node_id\030\003 \001(\014R\006nodeId\032c\n\020BundleIde" + "ntifier\022,\n\022placement_group_id\030\001 \001(\014R\020pla" + "cementGroupId\022!\n\014bundle_index\030\002 \001(\005R\013bun" + "dleIndex\032@\n\022UnitResourcesEntry\022\020\n\003key\030\001 " + "\001(\tR\003key\022\024\n\005value\030\002 \001(\001R\005value:\0028\001\"\353\003\n\022P" + "lacementGroupSpec\022,\n\022placement_group_id\030" + "\001 \001(\014R\020placementGroupId\022\022\n\004name\030\002 \001(\tR\004n" + "ame\022)\n\007bundles\030\003 \003(\0132\017.ray.rpc.BundleR\007b" + "undles\0226\n\010strategy\030\004 \001(\0162\032.ray.rpc.Place" + "mentStrategyR\010strategy\022$\n\016creator_job_id" + "\030\005 \001(\014R\014creatorJobId\022(\n\020creator_actor_id" + "\030\006 \001(\014R\016creatorActorId\022(\n\020creator_job_de" + "ad\030\007 \001(\010R\016creatorJobDead\022,\n\022creator_acto" + "r_dead\030\010 \001(\010R\020creatorActorDead\022\037\n\013is_det" + "ached\030\t \001(\010R\nisDetached\0228\n\031max_cpu_fract" + "ion_per_node\030\n \001(\001R\025maxCpuFractionPerNod" + "e\022-\n\023soft_target_node_id\030\013 \001(\014R\020softTarg" + "etNodeId\"\202\001\n\017ObjectReference\022\033\n\tobject_i" + "d\030\001 \001(\014R\010objectId\0225\n\rowner_address\030\002 \001(\013" + "2\020.ray.rpc.AddressR\014ownerAddress\022\033\n\tcall" + "_site\030\003 \001(\tR\010callSite\"\277\002\n\024ObjectReferenc" + "eCount\0226\n\treference\030\001 \001(\0132\030.ray.rpc.Obje" + "ctReferenceR\treference\022\"\n\rhas_local_ref\030" + "\002 \001(\010R\013hasLocalRef\022.\n\tborrowers\030\003 \003(\0132\020." + "ray.rpc.AddressR\tborrowers\022D\n\021stored_in_" + "objects\030\004 \003(\0132\030.ray.rpc.ObjectReferenceR" + "\017storedInObjects\0229\n\031contained_in_borrowe" + "d_ids\030\005 \003(\014R\026containedInBorrowedIds\022\032\n\010c" + "ontains\030\006 \003(\014R\010contains\"\274\001\n\007TaskArg\0227\n\no" + "bject_ref\030\001 \001(\0132\030.ray.rpc.ObjectReferenc" + "eR\tobjectRef\022\022\n\004data\030\002 \001(\014R\004data\022\032\n\010meta" + "data\030\003 \001(\014R\010metadata\022H\n\023nested_inlined_r" + "efs\030\004 \003(\0132\030.ray.rpc.ObjectReferenceR\021nes" + "tedInlinedRefs\"\326\001\n\014ReturnObject\022\033\n\tobjec" + "t_id\030\001 \001(\014R\010objectId\022\033\n\tin_plasma\030\002 \001(\010R" + "\010inPlasma\022\022\n\004data\030\003 \001(\014R\004data\022\032\n\010metadat" + "a\030\004 \001(\014R\010metadata\022H\n\023nested_inlined_refs" + "\030\005 \003(\0132\030.ray.rpc.ObjectReferenceR\021nested" + "InlinedRefs\022\022\n\004size\030\006 \001(\003R\004size\"\350\004\n\025Acto" + "rCreationTaskSpec\022\031\n\010actor_id\030\002 \001(\014R\007act" + "orId\022,\n\022max_actor_restarts\030\003 \001(\003R\020maxAct" + "orRestarts\022(\n\020max_task_retries\030\004 \001(\003R\016ma" + "xTaskRetries\0224\n\026dynamic_worker_options\030\005" + " \003(\tR\024dynamicWorkerOptions\022\'\n\017max_concur" + "rency\030\006 \001(\005R\016maxConcurrency\022\037\n\013is_detach" + "ed\030\007 \001(\010R\nisDetached\022\022\n\004name\030\010 \001(\tR\004name" + "\022#\n\rray_namespace\030\t \001(\tR\014rayNamespace\022\035\n" + "\nis_asyncio\030\n \001(\010R\tisAsyncio\022%\n\016extensio" + "n_data\030\013 \001(\tR\rextensionData\0226\n\027serialize" + "d_actor_handle\030\014 \001(\014R\025serializedActorHan" + "dle\022H\n\022concurrency_groups\030\r \003(\0132\031.ray.rp" + "c.ConcurrencyGroupR\021concurrencyGroups\022/\n" + "\024execute_out_of_order\030\016 \001(\010R\021executeOutO" + "fOrder\022*\n\021max_pending_calls\030\017 \001(\005R\017maxPe" + "ndingCalls\"\223\001\n\rActorTaskSpec\022\031\n\010actor_id" + "\030\002 \001(\014R\007actorId\022B\n\036actor_creation_dummy_" + "object_id\030\004 \001(\014R\032actorCreationDummyObjec" + "tId\022#\n\ractor_counter\030\005 \001(\004R\014actorCounter" + "\"6\n\004Task\022.\n\ttask_spec\030\001 \001(\0132\021.ray.rpc.Ta" + "skSpecR\010taskSpec\">\n\nResourceId\022\024\n\005index\030" + "\001 \001(\003R\005index\022\032\n\010quantity\030\002 \001(\001R\010quantity" + "\"^\n\020ResourceMapEntry\022\022\n\004name\030\001 \001(\tR\004name" + "\0226\n\014resource_ids\030\002 \003(\0132\023.ray.rpc.Resourc" + "eIdR\013resourceIds\"\364\003\n\010ViewData\022\033\n\tview_na" + "me\030\001 \001(\tR\010viewName\0225\n\010measures\030\002 \003(\0132\031.r" + "ay.rpc.ViewData.MeasureR\010measures\032\223\003\n\007Me" + "asure\022\022\n\004tags\030\001 \001(\tR\004tags\022\033\n\tint_value\030\002" + " \001(\003R\010intValue\022!\n\014double_value\030\003 \001(\001R\013do" + "ubleValue\022)\n\020distribution_min\030\004 \001(\001R\017dis" + "tributionMin\022+\n\021distribution_mean\030\005 \001(\001R" + "\020distributionMean\022)\n\020distribution_max\030\006 " + "\001(\001R\017distributionMax\022-\n\022distribution_cou" + "nt\030\007 \001(\001R\021distributionCount\022D\n\036distribut" + "ion_bucket_boundaries\030\010 \003(\001R\034distributio" + "nBucketBoundaries\022<\n\032distribution_bucket" + "_counts\030\t \003(\001R\030distributionBucketCounts\"" + "\200\003\n\rObjectRefInfo\022\033\n\tobject_id\030\001 \001(\014R\010ob" + "jectId\022\033\n\tcall_site\030\002 \001(\tR\010callSite\022\037\n\013o" + "bject_size\030\003 \001(\003R\nobjectSize\022&\n\017local_re" + "f_count\030\004 \001(\003R\rlocalRefCount\0227\n\030submitte" + "d_task_ref_count\030\005 \001(\003R\025submittedTaskRef" + "Count\022,\n\022contained_in_owned\030\006 \003(\014R\020conta" + "inedInOwned\022(\n\020pinned_in_memory\030\007 \001(\010R\016p" + "innedInMemory\0224\n\013task_status\030\010 \001(\0162\023.ray" + ".rpc.TaskStatusR\ntaskStatus\022%\n\016attempt_n" + "umber\030\t \001(\004R\rattemptNumber\"\253\001\n\023ResourceA" + "llocations\022P\n\016resource_slots\030\001 \003(\0132).ray" + ".rpc.ResourceAllocations.ResourceSlotR\rr" + "esourceSlots\032B\n\014ResourceSlot\022\022\n\004slot\030\001 \001" + "(\003R\004slot\022\036\n\nallocation\030\002 \001(\001R\nallocation" + "\"\236\t\n\017CoreWorkerStats\022*\n\021num_pending_task" + "s\030\002 \001(\005R\017numPendingTasks\0226\n\030num_object_r" + "efs_in_scope\030\003 \001(\005R\024numObjectRefsInScope" + "\022\035\n\nip_address\030\007 \001(\tR\tipAddress\022\022\n\004port\030" + "\010 \001(\003R\004port\022\031\n\010actor_id\030\t \001(\014R\007actorId\022R" + "\n\016used_resources\030\n \003(\0132+.ray.rpc.CoreWor" + "kerStats.UsedResourcesEntryR\rusedResourc" + "es\022O\n\rwebui_display\030\013 \003(\0132*.ray.rpc.Core" + "WorkerStats.WebuiDisplayEntryR\014webuiDisp" + "lay\022\"\n\rnum_in_plasma\030\014 \001(\005R\013numInPlasma\022" + "*\n\021num_local_objects\030\r \001(\005R\017numLocalObje" + "cts\0227\n\030used_object_store_memory\030\016 \001(\003R\025u" + "sedObjectStoreMemory\022*\n\021task_queue_lengt" + "h\030\017 \001(\005R\017taskQueueLength\022,\n\022num_executed" + "_tasks\030\020 \001(\005R\020numExecutedTasks\022\037\n\013actor_" + "title\030\021 \001(\tR\nactorTitle\0227\n\013object_refs\030\022" + " \003(\0132\026.ray.rpc.ObjectRefInfoR\nobjectRefs" + "\022\025\n\006job_id\030\023 \001(\014R\005jobId\022\033\n\tworker_id\030\024 \001" + "(\014R\010workerId\022-\n\010language\030\025 \001(\0162\021.ray.rpc" + ".LanguageR\010language\022\020\n\003pid\030\026 \001(\rR\003pid\0224\n" + "\013worker_type\030\027 \001(\0162\023.ray.rpc.WorkerTypeR" + "\nworkerType\022#\n\robjects_total\030\030 \001(\003R\014obje" + "ctsTotal\022*\n\021num_owned_objects\030\031 \001(\003R\017num" + "OwnedObjects\022(\n\020num_owned_actors\030\032 \001(\003R\016" + "numOwnedActors\022*\n\021num_running_tasks\030\033 \001(" + "\003R\017numRunningTasks\032^\n\022UsedResourcesEntry" + "\022\020\n\003key\030\001 \001(\tR\003key\0222\n\005value\030\002 \001(\0132\034.ray." + "rpc.ResourceAllocationsR\005value:\0028\001\032?\n\021We" + "buiDisplayEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" + "ue\030\002 \001(\tR\005value:\0028\001J\004\010\001\020\002\"\'\n\021NodeResourc" + "eUsage\022\022\n\004json\030\001 \001(\tR\004json\"I\n\016NamedActor" + "Info\022#\n\rray_namespace\030\001 \001(\tR\014rayNamespac" + "e\022\022\n\004name\030\002 \001(\tR\004name\"\353\001\n\031LineageReconst" + "ructionTask\022\022\n\004name\030\001 \001(\tR\004name\022O\n\tresou" + "rces\030\002 \003(\01321.ray.rpc.LineageReconstructi" + "onTask.ResourcesEntryR\tresources\022+\n\006stat" + "us\030\003 \001(\0162\023.ray.rpc.TaskStatusR\006status\032<\n" + "\016ResourcesEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" + "ue\030\002 \001(\001R\005value:\0028\001*)\n\010Language\022\n\n\006PYTHO" + "N\020\000\022\010\n\004JAVA\020\001\022\007\n\003CPP\020\002*J\n\nWorkerType\022\n\n\006" + "WORKER\020\000\022\n\n\006DRIVER\020\001\022\020\n\014SPILL_WORKER\020\002\022\022" + "\n\016RESTORE_WORKER\020\003*U\n\010TaskType\022\017\n\013NORMAL" + "_TASK\020\000\022\027\n\023ACTOR_CREATION_TASK\020\001\022\016\n\nACTO" + "R_TASK\020\002\022\017\n\013DRIVER_TASK\020\003*\273\005\n\tErrorType\022" + "\017\n\013WORKER_DIED\020\000\022\016\n\nACTOR_DIED\020\001\022\034\n\030OBJE" + "CT_UNRECONSTRUCTABLE\020\002\022\034\n\030TASK_EXECUTION" + "_EXCEPTION\020\003\022\024\n\020OBJECT_IN_PLASMA\020\004\022\022\n\016TA" + "SK_CANCELLED\020\005\022\031\n\025ACTOR_CREATION_FAILED\020" + "\006\022\034\n\030RUNTIME_ENV_SETUP_FAILED\020\007\022\017\n\013OBJEC" + "T_LOST\020\010\022\016\n\nOWNER_DIED\020\t\022\022\n\016OBJECT_DELET" + "ED\020\n\022 \n\034DEPENDENCY_RESOLUTION_FAILED\020\013\0222" + "\n.OBJECT_UNRECONSTRUCTABLE_MAX_ATTEMPTS_" + "EXCEEDED\020\014\022,\n(OBJECT_UNRECONSTRUCTABLE_L" + "INEAGE_EVICTED\020\r\022\032\n\026OBJECT_FETCH_TIMED_O" + "UT\020\016\022\025\n\021LOCAL_RAYLET_DIED\020\017\022 \n\034TASK_PLAC" + "EMENT_GROUP_REMOVED\020\020\022!\n\035ACTOR_PLACEMENT" + "_GROUP_REMOVED\020\021\022\034\n\030TASK_UNSCHEDULABLE_E" + "RROR\020\022\022\035\n\031ACTOR_UNSCHEDULABLE_ERROR\020\023\022\025\n" + "\021OUT_OF_DISK_ERROR\020\024\022\020\n\014OBJECT_FREED\020\025\022\021" + "\n\rOUT_OF_MEMORY\020\026\022\r\n\tNODE_DIED\020\027\022\036\n\032END_" + "OF_STREAMING_GENERATOR\020\030\022\025\n\021ACTOR_UNAVAI" + "LABLE\020\031*\364\001\n\nTaskStatus\022\007\n\003NIL\020\000\022\026\n\022PENDI" + "NG_ARGS_AVAIL\020\001\022\033\n\027PENDING_NODE_ASSIGNME" + "NT\020\002\022\037\n\033PENDING_OBJ_STORE_MEM_AVAIL\020\003\022\026\n" + "\022PENDING_ARGS_FETCH\020\004\022\027\n\023SUBMITTED_TO_WO" + "RKER\020\005\022\013\n\007RUNNING\020\006\022\026\n\022RUNNING_IN_RAY_GE" + "T\020\007\022\027\n\023RUNNING_IN_RAY_WAIT\020\010\022\014\n\010FINISHED" + "\020\t\022\n\n\006FAILED\020\n*|\n\016WorkerExitType\022\020\n\014SYST" + "EM_ERROR\020\000\022\030\n\024INTENDED_SYSTEM_EXIT\020\001\022\016\n\n" + "USER_ERROR\020\002\022\026\n\022INTENDED_USER_EXIT\020\003\022\026\n\022" + "NODE_OUT_OF_MEMORY\020\004*M\n\021PlacementStrateg" + "y\022\010\n\004PACK\020\000\022\n\n\006SPREAD\020\001\022\017\n\013STRICT_PACK\020\002" + "\022\021\n\rSTRICT_SPREAD\020\003B\035\n\030io.ray.runtime.ge" + "nerated\370\001\001b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.ray.runtime.generated.RuntimeEnvCommon.getDescriptor(), }); internal_static_ray_rpc_LabelIn_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_ray_rpc_LabelIn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LabelIn_descriptor, new java.lang.String[] { "Values", }); internal_static_ray_rpc_LabelNotIn_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_ray_rpc_LabelNotIn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LabelNotIn_descriptor, new java.lang.String[] { "Values", }); internal_static_ray_rpc_LabelExists_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_ray_rpc_LabelExists_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LabelExists_descriptor, new java.lang.String[] { }); internal_static_ray_rpc_LabelDoesNotExist_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_ray_rpc_LabelDoesNotExist_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LabelDoesNotExist_descriptor, new java.lang.String[] { }); internal_static_ray_rpc_LabelOperator_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_ray_rpc_LabelOperator_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LabelOperator_descriptor, new java.lang.String[] { "LabelIn", "LabelNotIn", "LabelExists", "LabelDoesNotExist", "LabelOperator", }); internal_static_ray_rpc_LabelMatchExpression_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_ray_rpc_LabelMatchExpression_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LabelMatchExpression_descriptor, new java.lang.String[] { "Key", "Operator", }); internal_static_ray_rpc_LabelMatchExpressions_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_ray_rpc_LabelMatchExpressions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LabelMatchExpressions_descriptor, new java.lang.String[] { "Expressions", }); internal_static_ray_rpc_NodeLabelSchedulingStrategy_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_ray_rpc_NodeLabelSchedulingStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_NodeLabelSchedulingStrategy_descriptor, new java.lang.String[] { "Hard", "Soft", }); internal_static_ray_rpc_NodeAffinitySchedulingStrategy_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_ray_rpc_NodeAffinitySchedulingStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_NodeAffinitySchedulingStrategy_descriptor, new java.lang.String[] { "NodeId", "Soft", "SpillOnUnavailable", "FailOnUnavailable", }); internal_static_ray_rpc_PlacementGroupSchedulingStrategy_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_ray_rpc_PlacementGroupSchedulingStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_PlacementGroupSchedulingStrategy_descriptor, new java.lang.String[] { "PlacementGroupId", "PlacementGroupBundleIndex", "PlacementGroupCaptureChildTasks", }); internal_static_ray_rpc_DefaultSchedulingStrategy_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_ray_rpc_DefaultSchedulingStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_DefaultSchedulingStrategy_descriptor, new java.lang.String[] { }); internal_static_ray_rpc_SpreadSchedulingStrategy_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_ray_rpc_SpreadSchedulingStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_SpreadSchedulingStrategy_descriptor, new java.lang.String[] { }); internal_static_ray_rpc_SchedulingStrategy_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_ray_rpc_SchedulingStrategy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_SchedulingStrategy_descriptor, new java.lang.String[] { "DefaultSchedulingStrategy", "PlacementGroupSchedulingStrategy", "SpreadSchedulingStrategy", "NodeAffinitySchedulingStrategy", "NodeLabelSchedulingStrategy", "SchedulingStrategy", }); internal_static_ray_rpc_Address_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_ray_rpc_Address_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_Address_descriptor, new java.lang.String[] { "RayletId", "IpAddress", "Port", "WorkerId", }); internal_static_ray_rpc_JavaFunctionDescriptor_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_ray_rpc_JavaFunctionDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_JavaFunctionDescriptor_descriptor, new java.lang.String[] { "ClassName", "FunctionName", "Signature", }); internal_static_ray_rpc_PythonFunctionDescriptor_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_ray_rpc_PythonFunctionDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_PythonFunctionDescriptor_descriptor, new java.lang.String[] { "ModuleName", "ClassName", "FunctionName", "FunctionHash", }); internal_static_ray_rpc_CppFunctionDescriptor_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_ray_rpc_CppFunctionDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_CppFunctionDescriptor_descriptor, new java.lang.String[] { "FunctionName", "Caller", "ClassName", }); internal_static_ray_rpc_FunctionDescriptor_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_ray_rpc_FunctionDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_FunctionDescriptor_descriptor, new java.lang.String[] { "JavaFunctionDescriptor", "PythonFunctionDescriptor", "CppFunctionDescriptor", "FunctionDescriptor", }); internal_static_ray_rpc_ConcurrencyGroup_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_ray_rpc_ConcurrencyGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ConcurrencyGroup_descriptor, new java.lang.String[] { "Name", "MaxConcurrency", "FunctionDescriptors", }); internal_static_ray_rpc_RayErrorInfo_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_ray_rpc_RayErrorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_RayErrorInfo_descriptor, new java.lang.String[] { "ActorDiedError", "RuntimeEnvSetupFailedError", "ActorUnavailableError", "ErrorMessage", "ErrorType", "Error", }); internal_static_ray_rpc_OutOfMemoryErrorContext_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_ray_rpc_OutOfMemoryErrorContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_OutOfMemoryErrorContext_descriptor, new java.lang.String[] { "TaskId", "TaskName", "NodeIpAddress", "MemoryUsedBytes", "MemoryTotalBytes", "MemoryUsageFraction", "MemoryThreshold", }); internal_static_ray_rpc_NodeDiedErrorContext_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_ray_rpc_NodeDiedErrorContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_NodeDiedErrorContext_descriptor, new java.lang.String[] { "NodeId", "NodeIpAddress", }); internal_static_ray_rpc_RayException_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_ray_rpc_RayException_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_RayException_descriptor, new java.lang.String[] { "Language", "SerializedException", "FormattedExceptionString", }); internal_static_ray_rpc_NodeDeathInfo_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_ray_rpc_NodeDeathInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_NodeDeathInfo_descriptor, new java.lang.String[] { "Reason", "ReasonMessage", }); internal_static_ray_rpc_ActorDeathCause_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_ray_rpc_ActorDeathCause_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ActorDeathCause_descriptor, new java.lang.String[] { "CreationTaskFailureContext", "RuntimeEnvFailedContext", "ActorDiedErrorContext", "ActorUnschedulableContext", "OomContext", "Context", }); internal_static_ray_rpc_RuntimeEnvFailedContext_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_ray_rpc_RuntimeEnvFailedContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_RuntimeEnvFailedContext_descriptor, new java.lang.String[] { "ErrorMessage", }); internal_static_ray_rpc_ActorUnschedulableContext_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_ray_rpc_ActorUnschedulableContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ActorUnschedulableContext_descriptor, new java.lang.String[] { "ErrorMessage", }); internal_static_ray_rpc_ActorDiedErrorContext_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_ray_rpc_ActorDiedErrorContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ActorDiedErrorContext_descriptor, new java.lang.String[] { "ErrorMessage", "OwnerId", "OwnerIpAddress", "NodeIpAddress", "Pid", "Name", "RayNamespace", "ClassName", "ActorId", "NeverStarted", "NodeDeathInfo", "NodeDeathInfo", }); internal_static_ray_rpc_OomContext_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_ray_rpc_OomContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_OomContext_descriptor, new java.lang.String[] { "ErrorMessage", "FailImmediately", }); internal_static_ray_rpc_ActorUnavailableContext_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_ray_rpc_ActorUnavailableContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ActorUnavailableContext_descriptor, new java.lang.String[] { "ActorId", "ActorId", }); internal_static_ray_rpc_JobConfig_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_ray_rpc_JobConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_JobConfig_descriptor, new java.lang.String[] { "JvmOptions", "CodeSearchPath", "RuntimeEnvInfo", "RayNamespace", "Metadata", "DefaultActorLifetime", "PyDriverSysPath", "SerializedPyLoggingConfig", }); internal_static_ray_rpc_JobConfig_MetadataEntry_descriptor = internal_static_ray_rpc_JobConfig_descriptor.getNestedTypes().get(0); internal_static_ray_rpc_JobConfig_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_JobConfig_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_StreamingGeneratorReturnIdInfo_descriptor, new java.lang.String[] { "ObjectId", "IsPlasmaObject", }); internal_static_ray_rpc_TaskSpec_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_ray_rpc_TaskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_TaskSpec_descriptor, new java.lang.String[] { "Type", "Name", "Language", "FunctionDescriptor", "JobId", "TaskId", "ParentTaskId", "ParentCounter", "CallerId", "CallerAddress", "Args", "NumReturns", "RequiredResources", "RequiredPlacementResources", "ActorCreationTaskSpec", "ActorTaskSpec", "MaxRetries", "SkipExecution", "DebuggerBreakpoint", "RuntimeEnvInfo", "ConcurrencyGroupName", "RetryExceptions", "SerializedRetryExceptionAllowlist", "Depth", "SchedulingStrategy", "AttemptNumber", "ReturnsDynamic", "DynamicReturnIds", "JobConfig", "SubmitterTaskId", "StreamingGenerator", "DependencyResolutionTimestampMs", "LeaseGrantTimestampMs", "NumStreamingGeneratorReturns", "GeneratorBackpressureNumObjects", "EnableTaskEvents", "RootDetachedActorId", "JobConfig", "NumStreamingGeneratorReturns", }); internal_static_ray_rpc_TaskSpec_RequiredResourcesEntry_descriptor = internal_static_ray_rpc_TaskSpec_descriptor.getNestedTypes().get(0); internal_static_ray_rpc_TaskSpec_RequiredResourcesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_TaskSpec_RequiredResourcesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_ray_rpc_TaskSpec_RequiredPlacementResourcesEntry_descriptor = internal_static_ray_rpc_TaskSpec_descriptor.getNestedTypes().get(1); internal_static_ray_rpc_TaskSpec_RequiredPlacementResourcesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_TaskSpec_RequiredPlacementResourcesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_ray_rpc_TaskInfoEntry_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_ray_rpc_TaskInfoEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_TaskInfoEntry_descriptor, new java.lang.String[] { "Type", "Name", "Language", "FuncOrClassName", "SchedulingState", "JobId", "TaskId", "ParentTaskId", "RequiredResources", "RuntimeEnvInfo", "NodeId", "ActorId", "PlacementGroupId", "NodeId", "ActorId", "PlacementGroupId", }); internal_static_ray_rpc_TaskInfoEntry_RequiredResourcesEntry_descriptor = internal_static_ray_rpc_TaskInfoEntry_descriptor.getNestedTypes().get(0); internal_static_ray_rpc_TaskInfoEntry_RequiredResourcesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_TaskInfoEntry_RequiredResourcesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_ray_rpc_Bundle_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_ray_rpc_Bundle_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_Bundle_descriptor, new java.lang.String[] { "BundleId", "UnitResources", "NodeId", }); internal_static_ray_rpc_Bundle_BundleIdentifier_descriptor = internal_static_ray_rpc_Bundle_descriptor.getNestedTypes().get(0); internal_static_ray_rpc_Bundle_BundleIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_Bundle_BundleIdentifier_descriptor, new java.lang.String[] { "PlacementGroupId", "BundleIndex", }); internal_static_ray_rpc_Bundle_UnitResourcesEntry_descriptor = internal_static_ray_rpc_Bundle_descriptor.getNestedTypes().get(1); internal_static_ray_rpc_Bundle_UnitResourcesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_Bundle_UnitResourcesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_ray_rpc_PlacementGroupSpec_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_ray_rpc_PlacementGroupSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_PlacementGroupSpec_descriptor, new java.lang.String[] { "PlacementGroupId", "Name", "Bundles", "Strategy", "CreatorJobId", "CreatorActorId", "CreatorJobDead", "CreatorActorDead", "IsDetached", "MaxCpuFractionPerNode", "SoftTargetNodeId", }); internal_static_ray_rpc_ObjectReference_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_ray_rpc_ObjectReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ObjectReference_descriptor, new java.lang.String[] { "ObjectId", "OwnerAddress", "CallSite", }); internal_static_ray_rpc_ObjectReferenceCount_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_ray_rpc_ObjectReferenceCount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ObjectReferenceCount_descriptor, new java.lang.String[] { "Reference", "HasLocalRef", "Borrowers", "StoredInObjects", "ContainedInBorrowedIds", "Contains", }); internal_static_ray_rpc_TaskArg_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_ray_rpc_TaskArg_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_TaskArg_descriptor, new java.lang.String[] { "ObjectRef", "Data", "Metadata", "NestedInlinedRefs", }); internal_static_ray_rpc_ReturnObject_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_ray_rpc_ReturnObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ReturnObject_descriptor, new java.lang.String[] { "ObjectId", "InPlasma", "Data", "Metadata", "NestedInlinedRefs", "Size", }); internal_static_ray_rpc_ActorCreationTaskSpec_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_ray_rpc_ActorCreationTaskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ActorCreationTaskSpec_descriptor, new java.lang.String[] { "ActorId", "MaxActorRestarts", "MaxTaskRetries", "DynamicWorkerOptions", "MaxConcurrency", "IsDetached", "Name", "RayNamespace", "IsAsyncio", "ExtensionData", "SerializedActorHandle", "ConcurrencyGroups", "ExecuteOutOfOrder", "MaxPendingCalls", }); internal_static_ray_rpc_ActorTaskSpec_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_ray_rpc_ActorTaskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ActorTaskSpec_descriptor, new java.lang.String[] { "ActorId", "ActorCreationDummyObjectId", "ActorCounter", }); internal_static_ray_rpc_Task_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_ray_rpc_Task_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_Task_descriptor, new java.lang.String[] { "TaskSpec", }); internal_static_ray_rpc_ResourceId_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_ray_rpc_ResourceId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ResourceId_descriptor, new java.lang.String[] { "Index", "Quantity", }); internal_static_ray_rpc_ResourceMapEntry_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_ray_rpc_ResourceMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ResourceMapEntry_descriptor, new java.lang.String[] { "Name", "ResourceIds", }); internal_static_ray_rpc_ViewData_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_ray_rpc_ViewData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ViewData_descriptor, new java.lang.String[] { "ViewName", "Measures", }); internal_static_ray_rpc_ViewData_Measure_descriptor = internal_static_ray_rpc_ViewData_descriptor.getNestedTypes().get(0); internal_static_ray_rpc_ViewData_Measure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ViewData_Measure_descriptor, new java.lang.String[] { "Tags", "IntValue", "DoubleValue", "DistributionMin", "DistributionMean", "DistributionMax", "DistributionCount", "DistributionBucketBoundaries", "DistributionBucketCounts", }); internal_static_ray_rpc_ObjectRefInfo_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_ray_rpc_ObjectRefInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ObjectRefInfo_descriptor, new java.lang.String[] { "ObjectId", "CallSite", "ObjectSize", "LocalRefCount", "SubmittedTaskRefCount", "ContainedInOwned", "PinnedInMemory", "TaskStatus", "AttemptNumber", }); internal_static_ray_rpc_ResourceAllocations_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_ray_rpc_ResourceAllocations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ResourceAllocations_descriptor, new java.lang.String[] { "ResourceSlots", }); internal_static_ray_rpc_ResourceAllocations_ResourceSlot_descriptor = internal_static_ray_rpc_ResourceAllocations_descriptor.getNestedTypes().get(0); internal_static_ray_rpc_ResourceAllocations_ResourceSlot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_ResourceAllocations_ResourceSlot_descriptor, new java.lang.String[] { "Slot", "Allocation", }); internal_static_ray_rpc_CoreWorkerStats_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_ray_rpc_CoreWorkerStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_CoreWorkerStats_descriptor, new java.lang.String[] { "NumPendingTasks", "NumObjectRefsInScope", "IpAddress", "Port", "ActorId", "UsedResources", "WebuiDisplay", "NumInPlasma", "NumLocalObjects", "UsedObjectStoreMemory", "TaskQueueLength", "NumExecutedTasks", "ActorTitle", "ObjectRefs", "JobId", "WorkerId", "Language", "Pid", "WorkerType", "ObjectsTotal", "NumOwnedObjects", "NumOwnedActors", "NumRunningTasks", }); internal_static_ray_rpc_CoreWorkerStats_UsedResourcesEntry_descriptor = internal_static_ray_rpc_CoreWorkerStats_descriptor.getNestedTypes().get(0); internal_static_ray_rpc_CoreWorkerStats_UsedResourcesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_CoreWorkerStats_UsedResourcesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_ray_rpc_CoreWorkerStats_WebuiDisplayEntry_descriptor = internal_static_ray_rpc_CoreWorkerStats_descriptor.getNestedTypes().get(1); internal_static_ray_rpc_CoreWorkerStats_WebuiDisplayEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_CoreWorkerStats_WebuiDisplayEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_ray_rpc_NodeResourceUsage_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_ray_rpc_NodeResourceUsage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_NodeResourceUsage_descriptor, new java.lang.String[] { "Json", }); internal_static_ray_rpc_NamedActorInfo_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_ray_rpc_NamedActorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_NamedActorInfo_descriptor, new java.lang.String[] { "RayNamespace", "Name", }); internal_static_ray_rpc_LineageReconstructionTask_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_ray_rpc_LineageReconstructionTask_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LineageReconstructionTask_descriptor, new java.lang.String[] { "Name", "Resources", "Status", }); internal_static_ray_rpc_LineageReconstructionTask_ResourcesEntry_descriptor = internal_static_ray_rpc_LineageReconstructionTask_descriptor.getNestedTypes().get(0); internal_static_ray_rpc_LineageReconstructionTask_ResourcesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_ray_rpc_LineageReconstructionTask_ResourcesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); io.ray.runtime.generated.RuntimeEnvCommon.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy