src/main/java/com/passkit/grpc/User.java
public static ScannerMembershipPermissions forNumber(int value) {
      switch (value) {
        case 0: return MEMBERSHIP_PERMISSION_NONE;
        case 1: return MEMBERSHIP_PERMISSION_VIEW_MEMBER;
        case 2: return MEMBERSHIP_PERMISSION_EDIT_MEMBER;
        case 4: return MEMBERSHIP_PERMISSION_EARN_POINTS;
        case 8: return MEMBERSHIP_PERMISSION_BURN_POINTS;
        case 16: return MEMBERSHIP_PERMISSION_SET_POINTS;
        case 32: return MEMBERSHIP_PERMISSION_CHANGE_TIER;
        case 64: return MEMBERSHIP_PERMISSION_VIEW_EVENTS;
        case 128: return MEMBERSHIP_PERMISSION_CHANGE_EXPIRY;
        case 256: return MEMBERSHIP_PERMISSION_CHECK_IN_OUT;
        case 512: return MEMBERSHIP_PERMISSION_VALIDATE;
        default: return null;
      }
    }
/**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
@param value The numeric wire value of the corresponding enum entry.
@return The enum associated with the given numeric wire value.
@param value The numeric wire value of the corresponding enum entry . @return The enum associated with the given numeric wire value .
public static ScannerMembershipPermissions forNumber(int value) {
      switch (value) {
        case 0: return MEMBERSHIP_PERMISSION_NONE;
        case 1: return MEMBERSHIP_PERMISSION_VIEW_MEMBER;
        case 2: return MEMBERSHIP_PERMISSION_EDIT_MEMBER;
        case 4: return MEMBERSHIP_PERMISSION_EARN_POINTS;
        case 8: return MEMBERSHIP_PERMISSION_BURN_POINTS;
        case 16: return MEMBERSHIP_PERMISSION_SET_POINTS;
        case 32: return MEMBERSHIP_PERMISSION_CHANGE_TIER;
        case 64: return MEMBERSHIP_PERMISSION_VIEW_EVENTS;
        case 128: return MEMBERSHIP_PERMISSION_CHANGE_EXPIRY;
        case 256: return MEMBERSHIP_PERMISSION_CHECK_IN_OUT;
        case 512: return MEMBERSHIP_PERMISSION_VALIDATE;
        default: return null;
      }
    }
public static ScannerMembershipPermissions forNumber ( int value ) { switch ( value ) { case 0 : return MEMBERSHIP_PERMISSION_NONE ; case 1 : return MEMBERSHIP_PERMISSION_VIEW_MEMBER ; case 2 : return MEMBERSHIP_PERMISSION_EDIT_MEMBER ; case 4 : return MEMBERSHIP_PERMISSION_EARN_POINTS ; case 8 : return MEMBERSHIP_PERMISSION_BURN_POINTS ; case 16 : return MEMBERSHIP_PERMISSION_SET_POINTS ; case 32 : return MEMBERSHIP_PERMISSION_CHANGE_TIER ; case 64 : return MEMBERSHIP_PERMISSION_VIEW_EVENTS ; case 128 : return MEMBERSHIP_PERMISSION_CHANGE_EXPIRY ; case 256 : return MEMBERSHIP_PERMISSION_CHECK_IN_OUT ; case 512 : return MEMBERSHIP_PERMISSION_VALIDATE ; default : return null ; } }
@param value The numeric wire value of the corresponding enum entry.
@param value The numeric wire value of the corresponding enum entry .