public GetTablesRequestBuilder with(GetTablesExtRequestFields type) {
        switch (type) {
            case ALL:
                this.requestedFields |= Integer.MAX_VALUE;
                break;
            case PROCESSOR_CAPABILITIES:
                this.requestedFields |= 0x2;
                break;
            case ACCESS_TYPE:
                this.requestedFields |= 0x1;
                break;
            default:
                this.requestedFields |= Integer.MAX_VALUE;
                break;
        }
        return this;
    }
Builder for requiredFields bitmask to be sent via GetTablesExtRequest
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/client/builder/GetTablesRequestBuilder.java