public static AcceleratorType forNumber(int value) {
    switch (value) {
      case 0:
        return ACCELERATOR_TYPE_UNSPECIFIED;
      case 1:
        return NVIDIA_TESLA_K80;
      case 2:
        return NVIDIA_TESLA_P100;
      case 3:
        return NVIDIA_TESLA_V100;
      case 4:
        return NVIDIA_TESLA_P4;
      case 5:
        return NVIDIA_TESLA_T4;
      case 8:
        return NVIDIA_TESLA_A100;
      case 6:
        return TPU_V2;
      case 7:
        return TPU_V3;
      default:
        return null;
    }
  }
@param value The numeric wire value of the corresponding enum entry.
@return The enum associated with the given numeric wire value.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/AcceleratorType.java