/proc/self/cwd/eval/public/cel_options.cc
Line | Count | Source |
1 | | // Copyright 2023 Google LLC |
2 | | // |
3 | | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | | // you may not use this file except in compliance with the License. |
5 | | // You may obtain a copy of the License at |
6 | | // |
7 | | // https://www.apache.org/licenses/LICENSE-2.0 |
8 | | // |
9 | | // Unless required by applicable law or agreed to in writing, software |
10 | | // distributed under the License is distributed on an "AS IS" BASIS, |
11 | | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | | // See the License for the specific language governing permissions and |
13 | | // limitations under the License. |
14 | | |
15 | | #include "eval/public/cel_options.h" |
16 | | |
17 | | #include "runtime/runtime_options.h" |
18 | | |
19 | | namespace google::api::expr::runtime { |
20 | | |
21 | 29.0k | cel::RuntimeOptions ConvertToRuntimeOptions(const InterpreterOptions& options) { |
22 | 29.0k | return cel::RuntimeOptions{/*.container=*/"", |
23 | 29.0k | options.unknown_processing, |
24 | 29.0k | options.enable_missing_attribute_errors, |
25 | 29.0k | options.enable_timestamp_duration_overflow_errors, |
26 | 29.0k | options.short_circuiting, |
27 | 29.0k | options.enable_comprehension, |
28 | 29.0k | options.comprehension_max_iterations, |
29 | 29.0k | options.enable_comprehension_list_append, |
30 | 29.0k | options.enable_comprehension_mutable_map, |
31 | 29.0k | options.enable_regex, |
32 | 29.0k | options.regex_max_program_size, |
33 | 29.0k | options.enable_string_conversion, |
34 | 29.0k | options.enable_string_concat, |
35 | 29.0k | options.enable_list_concat, |
36 | 29.0k | options.enable_list_contains, |
37 | 29.0k | options.fail_on_warnings, |
38 | 29.0k | options.enable_qualified_type_identifiers, |
39 | 29.0k | options.enable_heterogeneous_equality, |
40 | 29.0k | options.enable_empty_wrapper_null_unboxing, |
41 | 29.0k | options.enable_lazy_bind_initialization, |
42 | 29.0k | options.max_recursion_depth, |
43 | 29.0k | options.enable_recursive_tracing, |
44 | 29.0k | options.enable_fast_builtins}; |
45 | 29.0k | } |
46 | | |
47 | | } // namespace google::api::expr::runtime |