@@ -437,7 +437,7 @@ message FloatRules {
437
437
// ```
438
438
optional float const = 1 [(predefined).cel = {
439
439
id : "float.const"
440
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
440
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
441
441
}];
442
442
443
443
oneof less_than {
@@ -592,7 +592,7 @@ message FloatRules {
592
592
// ```
593
593
repeated float in = 6 [(predefined).cel = {
594
594
id : "float.in"
595
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
595
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
596
596
}];
597
597
598
598
// `in` requires the field value to not be equal to any of the specified
@@ -661,7 +661,7 @@ message DoubleRules {
661
661
// ```
662
662
optional double const = 1 [(predefined).cel = {
663
663
id : "double.const"
664
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
664
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
665
665
}];
666
666
oneof less_than {
667
667
// `lt` requires the field value to be less than the specified value (field <
@@ -813,7 +813,7 @@ message DoubleRules {
813
813
// ```
814
814
repeated double in = 6 [(predefined).cel = {
815
815
id : "double.in"
816
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
816
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
817
817
}];
818
818
819
819
// `not_in` requires the field value to not be equal to any of the specified
@@ -882,7 +882,7 @@ message Int32Rules {
882
882
// ```
883
883
optional int32 const = 1 [(predefined).cel = {
884
884
id : "int32.const"
885
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
885
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
886
886
}];
887
887
oneof less_than {
888
888
// `lt` requires the field value to be less than the specified value (field
@@ -1035,7 +1035,7 @@ message Int32Rules {
1035
1035
// ```
1036
1036
repeated int32 in = 6 [(predefined).cel = {
1037
1037
id : "int32.in"
1038
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
1038
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
1039
1039
}];
1040
1040
1041
1041
// `not_in` requires the field value to not be equal to any of the specified
@@ -1097,7 +1097,7 @@ message Int64Rules {
1097
1097
// ```
1098
1098
optional int64 const = 1 [(predefined).cel = {
1099
1099
id : "int64.const"
1100
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
1100
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
1101
1101
}];
1102
1102
oneof less_than {
1103
1103
// `lt` requires the field value to be less than the specified value (field <
@@ -1250,7 +1250,7 @@ message Int64Rules {
1250
1250
// ```
1251
1251
repeated int64 in = 6 [(predefined).cel = {
1252
1252
id : "int64.in"
1253
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
1253
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
1254
1254
}];
1255
1255
1256
1256
// `not_in` requires the field value to not be equal to any of the specified
@@ -1312,7 +1312,7 @@ message UInt32Rules {
1312
1312
// ```
1313
1313
optional uint32 const = 1 [(predefined).cel = {
1314
1314
id : "uint32.const"
1315
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
1315
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
1316
1316
}];
1317
1317
oneof less_than {
1318
1318
// `lt` requires the field value to be less than the specified value (field <
@@ -1465,7 +1465,7 @@ message UInt32Rules {
1465
1465
// ```
1466
1466
repeated uint32 in = 6 [(predefined).cel = {
1467
1467
id : "uint32.in"
1468
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
1468
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
1469
1469
}];
1470
1470
1471
1471
// `not_in` requires the field value to not be equal to any of the specified
@@ -1527,7 +1527,7 @@ message UInt64Rules {
1527
1527
// ```
1528
1528
optional uint64 const = 1 [(predefined).cel = {
1529
1529
id : "uint64.const"
1530
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
1530
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
1531
1531
}];
1532
1532
oneof less_than {
1533
1533
// `lt` requires the field value to be less than the specified value (field <
@@ -1679,7 +1679,7 @@ message UInt64Rules {
1679
1679
// ```
1680
1680
repeated uint64 in = 6 [(predefined).cel = {
1681
1681
id : "uint64.in"
1682
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
1682
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
1683
1683
}];
1684
1684
1685
1685
// `not_in` requires the field value to not be equal to any of the specified
@@ -1740,7 +1740,7 @@ message SInt32Rules {
1740
1740
// ```
1741
1741
optional sint32 const = 1 [(predefined).cel = {
1742
1742
id : "sint32.const"
1743
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
1743
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
1744
1744
}];
1745
1745
oneof less_than {
1746
1746
// `lt` requires the field value to be less than the specified value (field
@@ -1893,7 +1893,7 @@ message SInt32Rules {
1893
1893
// ```
1894
1894
repeated sint32 in = 6 [(predefined).cel = {
1895
1895
id : "sint32.in"
1896
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
1896
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
1897
1897
}];
1898
1898
1899
1899
// `not_in` requires the field value to not be equal to any of the specified
@@ -1954,7 +1954,7 @@ message SInt64Rules {
1954
1954
// ```
1955
1955
optional sint64 const = 1 [(predefined).cel = {
1956
1956
id : "sint64.const"
1957
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
1957
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
1958
1958
}];
1959
1959
oneof less_than {
1960
1960
// `lt` requires the field value to be less than the specified value (field
@@ -2107,7 +2107,7 @@ message SInt64Rules {
2107
2107
// ```
2108
2108
repeated sint64 in = 6 [(predefined).cel = {
2109
2109
id : "sint64.in"
2110
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
2110
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
2111
2111
}];
2112
2112
2113
2113
// `not_in` requires the field value to not be equal to any of the specified
@@ -2168,7 +2168,7 @@ message Fixed32Rules {
2168
2168
// ```
2169
2169
optional fixed32 const = 1 [(predefined).cel = {
2170
2170
id : "fixed32.const"
2171
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
2171
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
2172
2172
}];
2173
2173
oneof less_than {
2174
2174
// `lt` requires the field value to be less than the specified value (field <
@@ -2321,7 +2321,7 @@ message Fixed32Rules {
2321
2321
// ```
2322
2322
repeated fixed32 in = 6 [(predefined).cel = {
2323
2323
id : "fixed32.in"
2324
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
2324
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
2325
2325
}];
2326
2326
2327
2327
// `not_in` requires the field value to not be equal to any of the specified
@@ -2382,7 +2382,7 @@ message Fixed64Rules {
2382
2382
// ```
2383
2383
optional fixed64 const = 1 [(predefined).cel = {
2384
2384
id : "fixed64.const"
2385
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
2385
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
2386
2386
}];
2387
2387
oneof less_than {
2388
2388
// `lt` requires the field value to be less than the specified value (field <
@@ -2535,7 +2535,7 @@ message Fixed64Rules {
2535
2535
// ```
2536
2536
repeated fixed64 in = 6 [(predefined).cel = {
2537
2537
id : "fixed64.in"
2538
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
2538
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
2539
2539
}];
2540
2540
2541
2541
// `not_in` requires the field value to not be equal to any of the specified
@@ -2596,7 +2596,7 @@ message SFixed32Rules {
2596
2596
// ```
2597
2597
optional sfixed32 const = 1 [(predefined).cel = {
2598
2598
id : "sfixed32.const"
2599
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
2599
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
2600
2600
}];
2601
2601
oneof less_than {
2602
2602
// `lt` requires the field value to be less than the specified value (field <
@@ -2749,7 +2749,7 @@ message SFixed32Rules {
2749
2749
// ```
2750
2750
repeated sfixed32 in = 6 [(predefined).cel = {
2751
2751
id : "sfixed32.in"
2752
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
2752
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
2753
2753
}];
2754
2754
2755
2755
// `not_in` requires the field value to not be equal to any of the specified
@@ -2810,7 +2810,7 @@ message SFixed64Rules {
2810
2810
// ```
2811
2811
optional sfixed64 const = 1 [(predefined).cel = {
2812
2812
id : "sfixed64.const"
2813
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
2813
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
2814
2814
}];
2815
2815
oneof less_than {
2816
2816
// `lt` requires the field value to be less than the specified value (field <
@@ -2963,7 +2963,7 @@ message SFixed64Rules {
2963
2963
// ```
2964
2964
repeated sfixed64 in = 6 [(predefined).cel = {
2965
2965
id : "sfixed64.in"
2966
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
2966
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
2967
2967
}];
2968
2968
2969
2969
// `not_in` requires the field value to not be equal to any of the specified
@@ -3025,7 +3025,7 @@ message BoolRules {
3025
3025
// ```
3026
3026
optional bool const = 1 [(predefined).cel = {
3027
3027
id : "bool.const"
3028
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
3028
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
3029
3029
}];
3030
3030
3031
3031
// `example` specifies values that the field may have. These values SHOULD
@@ -3072,7 +3072,7 @@ message StringRules {
3072
3072
// ```
3073
3073
optional string const = 1 [(predefined).cel = {
3074
3074
id : "string.const"
3075
- expression : "this != rules. const ? 'value must equal `%s`'.format([rules. const]) : ''"
3075
+ expression : "this != getField( rules, ' const') ? 'value must equal `%s`'.format([getField( rules, ' const') ]) : ''"
3076
3076
}];
3077
3077
3078
3078
// `len` dictates that the field value must have the specified
@@ -3258,7 +3258,7 @@ message StringRules {
3258
3258
// ```
3259
3259
repeated string in = 10 [(predefined).cel = {
3260
3260
id : "string.in"
3261
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
3261
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
3262
3262
}];
3263
3263
3264
3264
// `not_in` specifies that the field value cannot be equal to any
@@ -3833,7 +3833,7 @@ message BytesRules {
3833
3833
// ```
3834
3834
optional bytes const = 1 [(predefined).cel = {
3835
3835
id : "bytes.const"
3836
- expression : "this != rules. const ? 'value must be %x'.format([rules. const]) : ''"
3836
+ expression : "this != getField( rules, ' const') ? 'value must be %x'.format([getField( rules, ' const') ]) : ''"
3837
3837
}];
3838
3838
3839
3839
// `len` requires the field value to have the specified length in bytes.
@@ -3954,7 +3954,7 @@ message BytesRules {
3954
3954
// ```
3955
3955
repeated bytes in = 8 [(predefined).cel = {
3956
3956
id : "bytes.in"
3957
- expression : "dyn (rules)[ 'in'] .size() > 0 && !(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
3957
+ expression : "getField (rules, 'in') .size() > 0 && !(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
3958
3958
}];
3959
3959
3960
3960
// `not_in` requires the field value to be not equal to any of the specified
@@ -4091,7 +4091,7 @@ message EnumRules {
4091
4091
// ```
4092
4092
optional int32 const = 1 [(predefined).cel = {
4093
4093
id : "enum.const"
4094
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
4094
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
4095
4095
}];
4096
4096
4097
4097
// `defined_only` requires the field value to be one of the defined values for
@@ -4129,7 +4129,7 @@ message EnumRules {
4129
4129
// ```
4130
4130
repeated int32 in = 3 [(predefined).cel = {
4131
4131
id : "enum.in"
4132
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
4132
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
4133
4133
}];
4134
4134
4135
4135
// `not_in` requires the field value to be not equal to any of the
@@ -4381,7 +4381,7 @@ message DurationRules {
4381
4381
// ```
4382
4382
optional google.protobuf.Duration const = 2 [(predefined).cel = {
4383
4383
id : "duration.const"
4384
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
4384
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
4385
4385
}];
4386
4386
oneof less_than {
4387
4387
// `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type,
@@ -4534,7 +4534,7 @@ message DurationRules {
4534
4534
// ```
4535
4535
repeated google.protobuf.Duration in = 7 [(predefined).cel = {
4536
4536
id : "duration.in"
4537
- expression : "!(this in dyn (rules)[ 'in']) ? 'value must be in list %s'.format([dyn (rules)[ 'in'] ]) : ''"
4537
+ expression : "!(this in getField (rules, 'in')) ? 'value must be in list %s'.format([getField (rules, 'in') ]) : ''"
4538
4538
}];
4539
4539
4540
4540
// `not_in` denotes that the field must not be equal to
@@ -4595,7 +4595,7 @@ message TimestampRules {
4595
4595
// ```
4596
4596
optional google.protobuf.Timestamp const = 2 [(predefined).cel = {
4597
4597
id : "timestamp.const"
4598
- expression : "this != rules. const ? 'value must equal %s'.format([rules. const]) : ''"
4598
+ expression : "this != getField( rules, ' const') ? 'value must equal %s'.format([getField( rules, ' const') ]) : ''"
4599
4599
}];
4600
4600
oneof less_than {
4601
4601
// requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated.
0 commit comments