public static State forNumber(int value) {
      switch (value) {
        case 0:
          return STATE_UNSPECIFIED;
        case 1:
          return CREATING;
        case 2:
          return CREATED;
        case 3:
          return DEPLOYING;
        case 4:
          return DEPLOYED;
        case 5:
          return UNDEPLOYING;
        case 6:
          return DELETED;
        case 7:
          return ERROR;
        case 8:
          return UPDATING;
        case 9:
          return DELETING;
        case 10:
          return FIXING;
        case 11:
          return FINISHED;
        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/Instance.java