UNPKG

rocketmq-client-nodejs-beta

Version:
40 lines 2.56 kB
"use strict"; /** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.FilterExpression = void 0; const definition_pb_1 = require("../../proto/apache/rocketmq/v2/definition_pb"); const TAG_EXPRESSION_SUB_ALL = '*'; class FilterExpression { static SUB_ALL = new FilterExpression(TAG_EXPRESSION_SUB_ALL); expression; filterType; constructor(expression, filterType = definition_pb_1.FilterType.TAG) { this.expression = expression; this.filterType = filterType; } toProtobuf() { return new definition_pb_1.FilterExpression() .setType(this.filterType) .setExpression(this.expression); } toString() { return `FilterExpression(${this.filterType},${this.expression})`; } } exports.FilterExpression = FilterExpression; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmlsdGVyRXhwcmVzc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25zdW1lci9GaWx0ZXJFeHByZXNzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7OztBQUVILGdGQUFrSDtBQUVsSCxNQUFNLHNCQUFzQixHQUFHLEdBQUcsQ0FBQztBQUVuQyxNQUFhLGdCQUFnQjtJQUMzQixNQUFNLENBQVUsT0FBTyxHQUFHLElBQUksZ0JBQWdCLENBQUMsc0JBQXNCLENBQUMsQ0FBQztJQUU5RCxVQUFVLENBQVM7SUFDbkIsVUFBVSxDQUFhO0lBRWhDLFlBQVksVUFBa0IsRUFBRSxVQUFVLEdBQUcsMEJBQVUsQ0FBQyxHQUFHO1FBQ3pELElBQUksQ0FBQyxVQUFVLEdBQUcsVUFBVSxDQUFDO1FBQzdCLElBQUksQ0FBQyxVQUFVLEdBQUcsVUFBVSxDQUFDO0lBQy9CLENBQUM7SUFFRCxVQUFVO1FBQ1IsT0FBTyxJQUFJLGdDQUFrQixFQUFFO2FBQzVCLE9BQU8sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDO2FBQ3hCLGFBQWEsQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUM7SUFDcEMsQ0FBQztJQUVELFFBQVE7UUFDTixPQUFPLG9CQUFvQixJQUFJLENBQUMsVUFBVSxJQUFJLElBQUksQ0FBQyxVQUFVLEdBQUcsQ0FBQztJQUNuRSxDQUFDOztBQW5CSCw0Q0FvQkMifQ==