public static ErrorType forNumber(int value) {
      switch (value) {
        case 0:
          return ERROR_TYPE_UNSPECIFIED;
        case 1:
          return USER_SCOPE_REVOKED;
        case 2:
          return RESOURCE_DELETED;
        case 3:
          return USER_AUTHORIZATION_FAILURE;
        case 4:
          return ENDPOINT_PERMISSION_DENIED;
        case 6:
          return ENDPOINT_NOT_FOUND;
        case 7:
          return ENDPOINT_RESOURCE_EXHAUSTED;
        case 5:
          return OTHER;
        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-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/Subscription.java