• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     validate/validate.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef VALIDATE_VALIDATE_PROTO_UPB_H_
10 #define VALIDATE_VALIDATE_PROTO_UPB_H_
11 
12 #include "upb/msg.h"
13 #include "upb/decode.h"
14 #include "upb/decode_fast.h"
15 #include "upb/encode.h"
16 
17 #include "upb/port_def.inc"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 struct validate_FieldRules;
24 struct validate_FloatRules;
25 struct validate_DoubleRules;
26 struct validate_Int32Rules;
27 struct validate_Int64Rules;
28 struct validate_UInt32Rules;
29 struct validate_UInt64Rules;
30 struct validate_SInt32Rules;
31 struct validate_SInt64Rules;
32 struct validate_Fixed32Rules;
33 struct validate_Fixed64Rules;
34 struct validate_SFixed32Rules;
35 struct validate_SFixed64Rules;
36 struct validate_BoolRules;
37 struct validate_StringRules;
38 struct validate_BytesRules;
39 struct validate_EnumRules;
40 struct validate_MessageRules;
41 struct validate_RepeatedRules;
42 struct validate_MapRules;
43 struct validate_AnyRules;
44 struct validate_DurationRules;
45 struct validate_TimestampRules;
46 typedef struct validate_FieldRules validate_FieldRules;
47 typedef struct validate_FloatRules validate_FloatRules;
48 typedef struct validate_DoubleRules validate_DoubleRules;
49 typedef struct validate_Int32Rules validate_Int32Rules;
50 typedef struct validate_Int64Rules validate_Int64Rules;
51 typedef struct validate_UInt32Rules validate_UInt32Rules;
52 typedef struct validate_UInt64Rules validate_UInt64Rules;
53 typedef struct validate_SInt32Rules validate_SInt32Rules;
54 typedef struct validate_SInt64Rules validate_SInt64Rules;
55 typedef struct validate_Fixed32Rules validate_Fixed32Rules;
56 typedef struct validate_Fixed64Rules validate_Fixed64Rules;
57 typedef struct validate_SFixed32Rules validate_SFixed32Rules;
58 typedef struct validate_SFixed64Rules validate_SFixed64Rules;
59 typedef struct validate_BoolRules validate_BoolRules;
60 typedef struct validate_StringRules validate_StringRules;
61 typedef struct validate_BytesRules validate_BytesRules;
62 typedef struct validate_EnumRules validate_EnumRules;
63 typedef struct validate_MessageRules validate_MessageRules;
64 typedef struct validate_RepeatedRules validate_RepeatedRules;
65 typedef struct validate_MapRules validate_MapRules;
66 typedef struct validate_AnyRules validate_AnyRules;
67 typedef struct validate_DurationRules validate_DurationRules;
68 typedef struct validate_TimestampRules validate_TimestampRules;
69 extern const upb_msglayout validate_FieldRules_msginit;
70 extern const upb_msglayout validate_FloatRules_msginit;
71 extern const upb_msglayout validate_DoubleRules_msginit;
72 extern const upb_msglayout validate_Int32Rules_msginit;
73 extern const upb_msglayout validate_Int64Rules_msginit;
74 extern const upb_msglayout validate_UInt32Rules_msginit;
75 extern const upb_msglayout validate_UInt64Rules_msginit;
76 extern const upb_msglayout validate_SInt32Rules_msginit;
77 extern const upb_msglayout validate_SInt64Rules_msginit;
78 extern const upb_msglayout validate_Fixed32Rules_msginit;
79 extern const upb_msglayout validate_Fixed64Rules_msginit;
80 extern const upb_msglayout validate_SFixed32Rules_msginit;
81 extern const upb_msglayout validate_SFixed64Rules_msginit;
82 extern const upb_msglayout validate_BoolRules_msginit;
83 extern const upb_msglayout validate_StringRules_msginit;
84 extern const upb_msglayout validate_BytesRules_msginit;
85 extern const upb_msglayout validate_EnumRules_msginit;
86 extern const upb_msglayout validate_MessageRules_msginit;
87 extern const upb_msglayout validate_RepeatedRules_msginit;
88 extern const upb_msglayout validate_MapRules_msginit;
89 extern const upb_msglayout validate_AnyRules_msginit;
90 extern const upb_msglayout validate_DurationRules_msginit;
91 extern const upb_msglayout validate_TimestampRules_msginit;
92 struct google_protobuf_Duration;
93 struct google_protobuf_Timestamp;
94 extern const upb_msglayout google_protobuf_Duration_msginit;
95 extern const upb_msglayout google_protobuf_Timestamp_msginit;
96 
97 typedef enum {
98   validate_UNKNOWN = 0,
99   validate_HTTP_HEADER_NAME = 1,
100   validate_HTTP_HEADER_VALUE = 2
101 } validate_KnownRegex;
102 
103 
104 /* validate.FieldRules */
105 
validate_FieldRules_new(upb_arena * arena)106 UPB_INLINE validate_FieldRules *validate_FieldRules_new(upb_arena *arena) {
107   return (validate_FieldRules *)_upb_msg_new(&validate_FieldRules_msginit, arena);
108 }
validate_FieldRules_parse(const char * buf,size_t size,upb_arena * arena)109 UPB_INLINE validate_FieldRules *validate_FieldRules_parse(const char *buf, size_t size,
110                         upb_arena *arena) {
111   validate_FieldRules *ret = validate_FieldRules_new(arena);
112   return (ret && upb_decode(buf, size, ret, &validate_FieldRules_msginit, arena)) ? ret : NULL;
113 }
validate_FieldRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)114 UPB_INLINE validate_FieldRules *validate_FieldRules_parse_ex(const char *buf, size_t size,
115                            upb_arena *arena, int options) {
116   validate_FieldRules *ret = validate_FieldRules_new(arena);
117   return (ret && _upb_decode(buf, size, ret, &validate_FieldRules_msginit, arena, options))
118       ? ret : NULL;
119 }
validate_FieldRules_serialize(const validate_FieldRules * msg,upb_arena * arena,size_t * len)120 UPB_INLINE char *validate_FieldRules_serialize(const validate_FieldRules *msg, upb_arena *arena, size_t *len) {
121   return upb_encode(msg, &validate_FieldRules_msginit, arena, len);
122 }
123 
124 typedef enum {
125   validate_FieldRules_type_float = 1,
126   validate_FieldRules_type_double = 2,
127   validate_FieldRules_type_int32 = 3,
128   validate_FieldRules_type_int64 = 4,
129   validate_FieldRules_type_uint32 = 5,
130   validate_FieldRules_type_uint64 = 6,
131   validate_FieldRules_type_sint32 = 7,
132   validate_FieldRules_type_sint64 = 8,
133   validate_FieldRules_type_fixed32 = 9,
134   validate_FieldRules_type_fixed64 = 10,
135   validate_FieldRules_type_sfixed32 = 11,
136   validate_FieldRules_type_sfixed64 = 12,
137   validate_FieldRules_type_bool = 13,
138   validate_FieldRules_type_string = 14,
139   validate_FieldRules_type_bytes = 15,
140   validate_FieldRules_type_enum = 16,
141   validate_FieldRules_type_repeated = 18,
142   validate_FieldRules_type_map = 19,
143   validate_FieldRules_type_any = 20,
144   validate_FieldRules_type_duration = 21,
145   validate_FieldRules_type_timestamp = 22,
146   validate_FieldRules_type_NOT_SET = 0
147 } validate_FieldRules_type_oneofcases;
validate_FieldRules_type_case(const validate_FieldRules * msg)148 UPB_INLINE validate_FieldRules_type_oneofcases validate_FieldRules_type_case(const validate_FieldRules* msg) { return (validate_FieldRules_type_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(12, 24), int32_t); }
149 
validate_FieldRules_has_float(const validate_FieldRules * msg)150 UPB_INLINE bool validate_FieldRules_has_float(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 1; }
validate_FieldRules_float(const validate_FieldRules * msg)151 UPB_INLINE const validate_FloatRules* validate_FieldRules_float(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_FloatRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 1, NULL); }
validate_FieldRules_has_double(const validate_FieldRules * msg)152 UPB_INLINE bool validate_FieldRules_has_double(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 2; }
validate_FieldRules_double(const validate_FieldRules * msg)153 UPB_INLINE const validate_DoubleRules* validate_FieldRules_double(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_DoubleRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 2, NULL); }
validate_FieldRules_has_int32(const validate_FieldRules * msg)154 UPB_INLINE bool validate_FieldRules_has_int32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 3; }
validate_FieldRules_int32(const validate_FieldRules * msg)155 UPB_INLINE const validate_Int32Rules* validate_FieldRules_int32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_Int32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 3, NULL); }
validate_FieldRules_has_int64(const validate_FieldRules * msg)156 UPB_INLINE bool validate_FieldRules_has_int64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 4; }
validate_FieldRules_int64(const validate_FieldRules * msg)157 UPB_INLINE const validate_Int64Rules* validate_FieldRules_int64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_Int64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 4, NULL); }
validate_FieldRules_has_uint32(const validate_FieldRules * msg)158 UPB_INLINE bool validate_FieldRules_has_uint32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 5; }
validate_FieldRules_uint32(const validate_FieldRules * msg)159 UPB_INLINE const validate_UInt32Rules* validate_FieldRules_uint32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_UInt32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 5, NULL); }
validate_FieldRules_has_uint64(const validate_FieldRules * msg)160 UPB_INLINE bool validate_FieldRules_has_uint64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 6; }
validate_FieldRules_uint64(const validate_FieldRules * msg)161 UPB_INLINE const validate_UInt64Rules* validate_FieldRules_uint64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_UInt64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 6, NULL); }
validate_FieldRules_has_sint32(const validate_FieldRules * msg)162 UPB_INLINE bool validate_FieldRules_has_sint32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 7; }
validate_FieldRules_sint32(const validate_FieldRules * msg)163 UPB_INLINE const validate_SInt32Rules* validate_FieldRules_sint32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_SInt32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 7, NULL); }
validate_FieldRules_has_sint64(const validate_FieldRules * msg)164 UPB_INLINE bool validate_FieldRules_has_sint64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 8; }
validate_FieldRules_sint64(const validate_FieldRules * msg)165 UPB_INLINE const validate_SInt64Rules* validate_FieldRules_sint64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_SInt64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 8, NULL); }
validate_FieldRules_has_fixed32(const validate_FieldRules * msg)166 UPB_INLINE bool validate_FieldRules_has_fixed32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 9; }
validate_FieldRules_fixed32(const validate_FieldRules * msg)167 UPB_INLINE const validate_Fixed32Rules* validate_FieldRules_fixed32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_Fixed32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 9, NULL); }
validate_FieldRules_has_fixed64(const validate_FieldRules * msg)168 UPB_INLINE bool validate_FieldRules_has_fixed64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 10; }
validate_FieldRules_fixed64(const validate_FieldRules * msg)169 UPB_INLINE const validate_Fixed64Rules* validate_FieldRules_fixed64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_Fixed64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 10, NULL); }
validate_FieldRules_has_sfixed32(const validate_FieldRules * msg)170 UPB_INLINE bool validate_FieldRules_has_sfixed32(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 11; }
validate_FieldRules_sfixed32(const validate_FieldRules * msg)171 UPB_INLINE const validate_SFixed32Rules* validate_FieldRules_sfixed32(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_SFixed32Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 11, NULL); }
validate_FieldRules_has_sfixed64(const validate_FieldRules * msg)172 UPB_INLINE bool validate_FieldRules_has_sfixed64(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 12; }
validate_FieldRules_sfixed64(const validate_FieldRules * msg)173 UPB_INLINE const validate_SFixed64Rules* validate_FieldRules_sfixed64(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_SFixed64Rules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 12, NULL); }
validate_FieldRules_has_bool(const validate_FieldRules * msg)174 UPB_INLINE bool validate_FieldRules_has_bool(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 13; }
validate_FieldRules_bool(const validate_FieldRules * msg)175 UPB_INLINE const validate_BoolRules* validate_FieldRules_bool(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_BoolRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 13, NULL); }
validate_FieldRules_has_string(const validate_FieldRules * msg)176 UPB_INLINE bool validate_FieldRules_has_string(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 14; }
validate_FieldRules_string(const validate_FieldRules * msg)177 UPB_INLINE const validate_StringRules* validate_FieldRules_string(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_StringRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 14, NULL); }
validate_FieldRules_has_bytes(const validate_FieldRules * msg)178 UPB_INLINE bool validate_FieldRules_has_bytes(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 15; }
validate_FieldRules_bytes(const validate_FieldRules * msg)179 UPB_INLINE const validate_BytesRules* validate_FieldRules_bytes(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_BytesRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 15, NULL); }
validate_FieldRules_has_enum(const validate_FieldRules * msg)180 UPB_INLINE bool validate_FieldRules_has_enum(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 16; }
validate_FieldRules_enum(const validate_FieldRules * msg)181 UPB_INLINE const validate_EnumRules* validate_FieldRules_enum(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_EnumRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 16, NULL); }
validate_FieldRules_has_message(const validate_FieldRules * msg)182 UPB_INLINE bool validate_FieldRules_has_message(const validate_FieldRules *msg) { return _upb_hasbit(msg, 1); }
validate_FieldRules_message(const validate_FieldRules * msg)183 UPB_INLINE const validate_MessageRules* validate_FieldRules_message(const validate_FieldRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const validate_MessageRules*); }
validate_FieldRules_has_repeated(const validate_FieldRules * msg)184 UPB_INLINE bool validate_FieldRules_has_repeated(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 18; }
validate_FieldRules_repeated(const validate_FieldRules * msg)185 UPB_INLINE const validate_RepeatedRules* validate_FieldRules_repeated(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_RepeatedRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 18, NULL); }
validate_FieldRules_has_map(const validate_FieldRules * msg)186 UPB_INLINE bool validate_FieldRules_has_map(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 19; }
validate_FieldRules_map(const validate_FieldRules * msg)187 UPB_INLINE const validate_MapRules* validate_FieldRules_map(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_MapRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 19, NULL); }
validate_FieldRules_has_any(const validate_FieldRules * msg)188 UPB_INLINE bool validate_FieldRules_has_any(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 20; }
validate_FieldRules_any(const validate_FieldRules * msg)189 UPB_INLINE const validate_AnyRules* validate_FieldRules_any(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_AnyRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 20, NULL); }
validate_FieldRules_has_duration(const validate_FieldRules * msg)190 UPB_INLINE bool validate_FieldRules_has_duration(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 21; }
validate_FieldRules_duration(const validate_FieldRules * msg)191 UPB_INLINE const validate_DurationRules* validate_FieldRules_duration(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_DurationRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 21, NULL); }
validate_FieldRules_has_timestamp(const validate_FieldRules * msg)192 UPB_INLINE bool validate_FieldRules_has_timestamp(const validate_FieldRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(12, 24)) == 22; }
validate_FieldRules_timestamp(const validate_FieldRules * msg)193 UPB_INLINE const validate_TimestampRules* validate_FieldRules_timestamp(const validate_FieldRules *msg) { return UPB_READ_ONEOF(msg, const validate_TimestampRules*, UPB_SIZE(8, 16), UPB_SIZE(12, 24), 22, NULL); }
194 
validate_FieldRules_set_float(validate_FieldRules * msg,validate_FloatRules * value)195 UPB_INLINE void validate_FieldRules_set_float(validate_FieldRules *msg, validate_FloatRules* value) {
196   UPB_WRITE_ONEOF(msg, validate_FloatRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 1);
197 }
validate_FieldRules_mutable_float(validate_FieldRules * msg,upb_arena * arena)198 UPB_INLINE struct validate_FloatRules* validate_FieldRules_mutable_float(validate_FieldRules *msg, upb_arena *arena) {
199   struct validate_FloatRules* sub = (struct validate_FloatRules*)validate_FieldRules_float(msg);
200   if (sub == NULL) {
201     sub = (struct validate_FloatRules*)_upb_msg_new(&validate_FloatRules_msginit, arena);
202     if (!sub) return NULL;
203     validate_FieldRules_set_float(msg, sub);
204   }
205   return sub;
206 }
validate_FieldRules_set_double(validate_FieldRules * msg,validate_DoubleRules * value)207 UPB_INLINE void validate_FieldRules_set_double(validate_FieldRules *msg, validate_DoubleRules* value) {
208   UPB_WRITE_ONEOF(msg, validate_DoubleRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 2);
209 }
validate_FieldRules_mutable_double(validate_FieldRules * msg,upb_arena * arena)210 UPB_INLINE struct validate_DoubleRules* validate_FieldRules_mutable_double(validate_FieldRules *msg, upb_arena *arena) {
211   struct validate_DoubleRules* sub = (struct validate_DoubleRules*)validate_FieldRules_double(msg);
212   if (sub == NULL) {
213     sub = (struct validate_DoubleRules*)_upb_msg_new(&validate_DoubleRules_msginit, arena);
214     if (!sub) return NULL;
215     validate_FieldRules_set_double(msg, sub);
216   }
217   return sub;
218 }
validate_FieldRules_set_int32(validate_FieldRules * msg,validate_Int32Rules * value)219 UPB_INLINE void validate_FieldRules_set_int32(validate_FieldRules *msg, validate_Int32Rules* value) {
220   UPB_WRITE_ONEOF(msg, validate_Int32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 3);
221 }
validate_FieldRules_mutable_int32(validate_FieldRules * msg,upb_arena * arena)222 UPB_INLINE struct validate_Int32Rules* validate_FieldRules_mutable_int32(validate_FieldRules *msg, upb_arena *arena) {
223   struct validate_Int32Rules* sub = (struct validate_Int32Rules*)validate_FieldRules_int32(msg);
224   if (sub == NULL) {
225     sub = (struct validate_Int32Rules*)_upb_msg_new(&validate_Int32Rules_msginit, arena);
226     if (!sub) return NULL;
227     validate_FieldRules_set_int32(msg, sub);
228   }
229   return sub;
230 }
validate_FieldRules_set_int64(validate_FieldRules * msg,validate_Int64Rules * value)231 UPB_INLINE void validate_FieldRules_set_int64(validate_FieldRules *msg, validate_Int64Rules* value) {
232   UPB_WRITE_ONEOF(msg, validate_Int64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 4);
233 }
validate_FieldRules_mutable_int64(validate_FieldRules * msg,upb_arena * arena)234 UPB_INLINE struct validate_Int64Rules* validate_FieldRules_mutable_int64(validate_FieldRules *msg, upb_arena *arena) {
235   struct validate_Int64Rules* sub = (struct validate_Int64Rules*)validate_FieldRules_int64(msg);
236   if (sub == NULL) {
237     sub = (struct validate_Int64Rules*)_upb_msg_new(&validate_Int64Rules_msginit, arena);
238     if (!sub) return NULL;
239     validate_FieldRules_set_int64(msg, sub);
240   }
241   return sub;
242 }
validate_FieldRules_set_uint32(validate_FieldRules * msg,validate_UInt32Rules * value)243 UPB_INLINE void validate_FieldRules_set_uint32(validate_FieldRules *msg, validate_UInt32Rules* value) {
244   UPB_WRITE_ONEOF(msg, validate_UInt32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 5);
245 }
validate_FieldRules_mutable_uint32(validate_FieldRules * msg,upb_arena * arena)246 UPB_INLINE struct validate_UInt32Rules* validate_FieldRules_mutable_uint32(validate_FieldRules *msg, upb_arena *arena) {
247   struct validate_UInt32Rules* sub = (struct validate_UInt32Rules*)validate_FieldRules_uint32(msg);
248   if (sub == NULL) {
249     sub = (struct validate_UInt32Rules*)_upb_msg_new(&validate_UInt32Rules_msginit, arena);
250     if (!sub) return NULL;
251     validate_FieldRules_set_uint32(msg, sub);
252   }
253   return sub;
254 }
validate_FieldRules_set_uint64(validate_FieldRules * msg,validate_UInt64Rules * value)255 UPB_INLINE void validate_FieldRules_set_uint64(validate_FieldRules *msg, validate_UInt64Rules* value) {
256   UPB_WRITE_ONEOF(msg, validate_UInt64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 6);
257 }
validate_FieldRules_mutable_uint64(validate_FieldRules * msg,upb_arena * arena)258 UPB_INLINE struct validate_UInt64Rules* validate_FieldRules_mutable_uint64(validate_FieldRules *msg, upb_arena *arena) {
259   struct validate_UInt64Rules* sub = (struct validate_UInt64Rules*)validate_FieldRules_uint64(msg);
260   if (sub == NULL) {
261     sub = (struct validate_UInt64Rules*)_upb_msg_new(&validate_UInt64Rules_msginit, arena);
262     if (!sub) return NULL;
263     validate_FieldRules_set_uint64(msg, sub);
264   }
265   return sub;
266 }
validate_FieldRules_set_sint32(validate_FieldRules * msg,validate_SInt32Rules * value)267 UPB_INLINE void validate_FieldRules_set_sint32(validate_FieldRules *msg, validate_SInt32Rules* value) {
268   UPB_WRITE_ONEOF(msg, validate_SInt32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 7);
269 }
validate_FieldRules_mutable_sint32(validate_FieldRules * msg,upb_arena * arena)270 UPB_INLINE struct validate_SInt32Rules* validate_FieldRules_mutable_sint32(validate_FieldRules *msg, upb_arena *arena) {
271   struct validate_SInt32Rules* sub = (struct validate_SInt32Rules*)validate_FieldRules_sint32(msg);
272   if (sub == NULL) {
273     sub = (struct validate_SInt32Rules*)_upb_msg_new(&validate_SInt32Rules_msginit, arena);
274     if (!sub) return NULL;
275     validate_FieldRules_set_sint32(msg, sub);
276   }
277   return sub;
278 }
validate_FieldRules_set_sint64(validate_FieldRules * msg,validate_SInt64Rules * value)279 UPB_INLINE void validate_FieldRules_set_sint64(validate_FieldRules *msg, validate_SInt64Rules* value) {
280   UPB_WRITE_ONEOF(msg, validate_SInt64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 8);
281 }
validate_FieldRules_mutable_sint64(validate_FieldRules * msg,upb_arena * arena)282 UPB_INLINE struct validate_SInt64Rules* validate_FieldRules_mutable_sint64(validate_FieldRules *msg, upb_arena *arena) {
283   struct validate_SInt64Rules* sub = (struct validate_SInt64Rules*)validate_FieldRules_sint64(msg);
284   if (sub == NULL) {
285     sub = (struct validate_SInt64Rules*)_upb_msg_new(&validate_SInt64Rules_msginit, arena);
286     if (!sub) return NULL;
287     validate_FieldRules_set_sint64(msg, sub);
288   }
289   return sub;
290 }
validate_FieldRules_set_fixed32(validate_FieldRules * msg,validate_Fixed32Rules * value)291 UPB_INLINE void validate_FieldRules_set_fixed32(validate_FieldRules *msg, validate_Fixed32Rules* value) {
292   UPB_WRITE_ONEOF(msg, validate_Fixed32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 9);
293 }
validate_FieldRules_mutable_fixed32(validate_FieldRules * msg,upb_arena * arena)294 UPB_INLINE struct validate_Fixed32Rules* validate_FieldRules_mutable_fixed32(validate_FieldRules *msg, upb_arena *arena) {
295   struct validate_Fixed32Rules* sub = (struct validate_Fixed32Rules*)validate_FieldRules_fixed32(msg);
296   if (sub == NULL) {
297     sub = (struct validate_Fixed32Rules*)_upb_msg_new(&validate_Fixed32Rules_msginit, arena);
298     if (!sub) return NULL;
299     validate_FieldRules_set_fixed32(msg, sub);
300   }
301   return sub;
302 }
validate_FieldRules_set_fixed64(validate_FieldRules * msg,validate_Fixed64Rules * value)303 UPB_INLINE void validate_FieldRules_set_fixed64(validate_FieldRules *msg, validate_Fixed64Rules* value) {
304   UPB_WRITE_ONEOF(msg, validate_Fixed64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 10);
305 }
validate_FieldRules_mutable_fixed64(validate_FieldRules * msg,upb_arena * arena)306 UPB_INLINE struct validate_Fixed64Rules* validate_FieldRules_mutable_fixed64(validate_FieldRules *msg, upb_arena *arena) {
307   struct validate_Fixed64Rules* sub = (struct validate_Fixed64Rules*)validate_FieldRules_fixed64(msg);
308   if (sub == NULL) {
309     sub = (struct validate_Fixed64Rules*)_upb_msg_new(&validate_Fixed64Rules_msginit, arena);
310     if (!sub) return NULL;
311     validate_FieldRules_set_fixed64(msg, sub);
312   }
313   return sub;
314 }
validate_FieldRules_set_sfixed32(validate_FieldRules * msg,validate_SFixed32Rules * value)315 UPB_INLINE void validate_FieldRules_set_sfixed32(validate_FieldRules *msg, validate_SFixed32Rules* value) {
316   UPB_WRITE_ONEOF(msg, validate_SFixed32Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 11);
317 }
validate_FieldRules_mutable_sfixed32(validate_FieldRules * msg,upb_arena * arena)318 UPB_INLINE struct validate_SFixed32Rules* validate_FieldRules_mutable_sfixed32(validate_FieldRules *msg, upb_arena *arena) {
319   struct validate_SFixed32Rules* sub = (struct validate_SFixed32Rules*)validate_FieldRules_sfixed32(msg);
320   if (sub == NULL) {
321     sub = (struct validate_SFixed32Rules*)_upb_msg_new(&validate_SFixed32Rules_msginit, arena);
322     if (!sub) return NULL;
323     validate_FieldRules_set_sfixed32(msg, sub);
324   }
325   return sub;
326 }
validate_FieldRules_set_sfixed64(validate_FieldRules * msg,validate_SFixed64Rules * value)327 UPB_INLINE void validate_FieldRules_set_sfixed64(validate_FieldRules *msg, validate_SFixed64Rules* value) {
328   UPB_WRITE_ONEOF(msg, validate_SFixed64Rules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 12);
329 }
validate_FieldRules_mutable_sfixed64(validate_FieldRules * msg,upb_arena * arena)330 UPB_INLINE struct validate_SFixed64Rules* validate_FieldRules_mutable_sfixed64(validate_FieldRules *msg, upb_arena *arena) {
331   struct validate_SFixed64Rules* sub = (struct validate_SFixed64Rules*)validate_FieldRules_sfixed64(msg);
332   if (sub == NULL) {
333     sub = (struct validate_SFixed64Rules*)_upb_msg_new(&validate_SFixed64Rules_msginit, arena);
334     if (!sub) return NULL;
335     validate_FieldRules_set_sfixed64(msg, sub);
336   }
337   return sub;
338 }
validate_FieldRules_set_bool(validate_FieldRules * msg,validate_BoolRules * value)339 UPB_INLINE void validate_FieldRules_set_bool(validate_FieldRules *msg, validate_BoolRules* value) {
340   UPB_WRITE_ONEOF(msg, validate_BoolRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 13);
341 }
validate_FieldRules_mutable_bool(validate_FieldRules * msg,upb_arena * arena)342 UPB_INLINE struct validate_BoolRules* validate_FieldRules_mutable_bool(validate_FieldRules *msg, upb_arena *arena) {
343   struct validate_BoolRules* sub = (struct validate_BoolRules*)validate_FieldRules_bool(msg);
344   if (sub == NULL) {
345     sub = (struct validate_BoolRules*)_upb_msg_new(&validate_BoolRules_msginit, arena);
346     if (!sub) return NULL;
347     validate_FieldRules_set_bool(msg, sub);
348   }
349   return sub;
350 }
validate_FieldRules_set_string(validate_FieldRules * msg,validate_StringRules * value)351 UPB_INLINE void validate_FieldRules_set_string(validate_FieldRules *msg, validate_StringRules* value) {
352   UPB_WRITE_ONEOF(msg, validate_StringRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 14);
353 }
validate_FieldRules_mutable_string(validate_FieldRules * msg,upb_arena * arena)354 UPB_INLINE struct validate_StringRules* validate_FieldRules_mutable_string(validate_FieldRules *msg, upb_arena *arena) {
355   struct validate_StringRules* sub = (struct validate_StringRules*)validate_FieldRules_string(msg);
356   if (sub == NULL) {
357     sub = (struct validate_StringRules*)_upb_msg_new(&validate_StringRules_msginit, arena);
358     if (!sub) return NULL;
359     validate_FieldRules_set_string(msg, sub);
360   }
361   return sub;
362 }
validate_FieldRules_set_bytes(validate_FieldRules * msg,validate_BytesRules * value)363 UPB_INLINE void validate_FieldRules_set_bytes(validate_FieldRules *msg, validate_BytesRules* value) {
364   UPB_WRITE_ONEOF(msg, validate_BytesRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 15);
365 }
validate_FieldRules_mutable_bytes(validate_FieldRules * msg,upb_arena * arena)366 UPB_INLINE struct validate_BytesRules* validate_FieldRules_mutable_bytes(validate_FieldRules *msg, upb_arena *arena) {
367   struct validate_BytesRules* sub = (struct validate_BytesRules*)validate_FieldRules_bytes(msg);
368   if (sub == NULL) {
369     sub = (struct validate_BytesRules*)_upb_msg_new(&validate_BytesRules_msginit, arena);
370     if (!sub) return NULL;
371     validate_FieldRules_set_bytes(msg, sub);
372   }
373   return sub;
374 }
validate_FieldRules_set_enum(validate_FieldRules * msg,validate_EnumRules * value)375 UPB_INLINE void validate_FieldRules_set_enum(validate_FieldRules *msg, validate_EnumRules* value) {
376   UPB_WRITE_ONEOF(msg, validate_EnumRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 16);
377 }
validate_FieldRules_mutable_enum(validate_FieldRules * msg,upb_arena * arena)378 UPB_INLINE struct validate_EnumRules* validate_FieldRules_mutable_enum(validate_FieldRules *msg, upb_arena *arena) {
379   struct validate_EnumRules* sub = (struct validate_EnumRules*)validate_FieldRules_enum(msg);
380   if (sub == NULL) {
381     sub = (struct validate_EnumRules*)_upb_msg_new(&validate_EnumRules_msginit, arena);
382     if (!sub) return NULL;
383     validate_FieldRules_set_enum(msg, sub);
384   }
385   return sub;
386 }
validate_FieldRules_set_message(validate_FieldRules * msg,validate_MessageRules * value)387 UPB_INLINE void validate_FieldRules_set_message(validate_FieldRules *msg, validate_MessageRules* value) {
388   _upb_sethas(msg, 1);
389   *UPB_PTR_AT(msg, UPB_SIZE(4, 8), validate_MessageRules*) = value;
390 }
validate_FieldRules_mutable_message(validate_FieldRules * msg,upb_arena * arena)391 UPB_INLINE struct validate_MessageRules* validate_FieldRules_mutable_message(validate_FieldRules *msg, upb_arena *arena) {
392   struct validate_MessageRules* sub = (struct validate_MessageRules*)validate_FieldRules_message(msg);
393   if (sub == NULL) {
394     sub = (struct validate_MessageRules*)_upb_msg_new(&validate_MessageRules_msginit, arena);
395     if (!sub) return NULL;
396     validate_FieldRules_set_message(msg, sub);
397   }
398   return sub;
399 }
validate_FieldRules_set_repeated(validate_FieldRules * msg,validate_RepeatedRules * value)400 UPB_INLINE void validate_FieldRules_set_repeated(validate_FieldRules *msg, validate_RepeatedRules* value) {
401   UPB_WRITE_ONEOF(msg, validate_RepeatedRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 18);
402 }
validate_FieldRules_mutable_repeated(validate_FieldRules * msg,upb_arena * arena)403 UPB_INLINE struct validate_RepeatedRules* validate_FieldRules_mutable_repeated(validate_FieldRules *msg, upb_arena *arena) {
404   struct validate_RepeatedRules* sub = (struct validate_RepeatedRules*)validate_FieldRules_repeated(msg);
405   if (sub == NULL) {
406     sub = (struct validate_RepeatedRules*)_upb_msg_new(&validate_RepeatedRules_msginit, arena);
407     if (!sub) return NULL;
408     validate_FieldRules_set_repeated(msg, sub);
409   }
410   return sub;
411 }
validate_FieldRules_set_map(validate_FieldRules * msg,validate_MapRules * value)412 UPB_INLINE void validate_FieldRules_set_map(validate_FieldRules *msg, validate_MapRules* value) {
413   UPB_WRITE_ONEOF(msg, validate_MapRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 19);
414 }
validate_FieldRules_mutable_map(validate_FieldRules * msg,upb_arena * arena)415 UPB_INLINE struct validate_MapRules* validate_FieldRules_mutable_map(validate_FieldRules *msg, upb_arena *arena) {
416   struct validate_MapRules* sub = (struct validate_MapRules*)validate_FieldRules_map(msg);
417   if (sub == NULL) {
418     sub = (struct validate_MapRules*)_upb_msg_new(&validate_MapRules_msginit, arena);
419     if (!sub) return NULL;
420     validate_FieldRules_set_map(msg, sub);
421   }
422   return sub;
423 }
validate_FieldRules_set_any(validate_FieldRules * msg,validate_AnyRules * value)424 UPB_INLINE void validate_FieldRules_set_any(validate_FieldRules *msg, validate_AnyRules* value) {
425   UPB_WRITE_ONEOF(msg, validate_AnyRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 20);
426 }
validate_FieldRules_mutable_any(validate_FieldRules * msg,upb_arena * arena)427 UPB_INLINE struct validate_AnyRules* validate_FieldRules_mutable_any(validate_FieldRules *msg, upb_arena *arena) {
428   struct validate_AnyRules* sub = (struct validate_AnyRules*)validate_FieldRules_any(msg);
429   if (sub == NULL) {
430     sub = (struct validate_AnyRules*)_upb_msg_new(&validate_AnyRules_msginit, arena);
431     if (!sub) return NULL;
432     validate_FieldRules_set_any(msg, sub);
433   }
434   return sub;
435 }
validate_FieldRules_set_duration(validate_FieldRules * msg,validate_DurationRules * value)436 UPB_INLINE void validate_FieldRules_set_duration(validate_FieldRules *msg, validate_DurationRules* value) {
437   UPB_WRITE_ONEOF(msg, validate_DurationRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 21);
438 }
validate_FieldRules_mutable_duration(validate_FieldRules * msg,upb_arena * arena)439 UPB_INLINE struct validate_DurationRules* validate_FieldRules_mutable_duration(validate_FieldRules *msg, upb_arena *arena) {
440   struct validate_DurationRules* sub = (struct validate_DurationRules*)validate_FieldRules_duration(msg);
441   if (sub == NULL) {
442     sub = (struct validate_DurationRules*)_upb_msg_new(&validate_DurationRules_msginit, arena);
443     if (!sub) return NULL;
444     validate_FieldRules_set_duration(msg, sub);
445   }
446   return sub;
447 }
validate_FieldRules_set_timestamp(validate_FieldRules * msg,validate_TimestampRules * value)448 UPB_INLINE void validate_FieldRules_set_timestamp(validate_FieldRules *msg, validate_TimestampRules* value) {
449   UPB_WRITE_ONEOF(msg, validate_TimestampRules*, UPB_SIZE(8, 16), value, UPB_SIZE(12, 24), 22);
450 }
validate_FieldRules_mutable_timestamp(validate_FieldRules * msg,upb_arena * arena)451 UPB_INLINE struct validate_TimestampRules* validate_FieldRules_mutable_timestamp(validate_FieldRules *msg, upb_arena *arena) {
452   struct validate_TimestampRules* sub = (struct validate_TimestampRules*)validate_FieldRules_timestamp(msg);
453   if (sub == NULL) {
454     sub = (struct validate_TimestampRules*)_upb_msg_new(&validate_TimestampRules_msginit, arena);
455     if (!sub) return NULL;
456     validate_FieldRules_set_timestamp(msg, sub);
457   }
458   return sub;
459 }
460 
461 /* validate.FloatRules */
462 
validate_FloatRules_new(upb_arena * arena)463 UPB_INLINE validate_FloatRules *validate_FloatRules_new(upb_arena *arena) {
464   return (validate_FloatRules *)_upb_msg_new(&validate_FloatRules_msginit, arena);
465 }
validate_FloatRules_parse(const char * buf,size_t size,upb_arena * arena)466 UPB_INLINE validate_FloatRules *validate_FloatRules_parse(const char *buf, size_t size,
467                         upb_arena *arena) {
468   validate_FloatRules *ret = validate_FloatRules_new(arena);
469   return (ret && upb_decode(buf, size, ret, &validate_FloatRules_msginit, arena)) ? ret : NULL;
470 }
validate_FloatRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)471 UPB_INLINE validate_FloatRules *validate_FloatRules_parse_ex(const char *buf, size_t size,
472                            upb_arena *arena, int options) {
473   validate_FloatRules *ret = validate_FloatRules_new(arena);
474   return (ret && _upb_decode(buf, size, ret, &validate_FloatRules_msginit, arena, options))
475       ? ret : NULL;
476 }
validate_FloatRules_serialize(const validate_FloatRules * msg,upb_arena * arena,size_t * len)477 UPB_INLINE char *validate_FloatRules_serialize(const validate_FloatRules *msg, upb_arena *arena, size_t *len) {
478   return upb_encode(msg, &validate_FloatRules_msginit, arena, len);
479 }
480 
validate_FloatRules_has_const(const validate_FloatRules * msg)481 UPB_INLINE bool validate_FloatRules_has_const(const validate_FloatRules *msg) { return _upb_hasbit(msg, 1); }
validate_FloatRules_const(const validate_FloatRules * msg)482 UPB_INLINE float validate_FloatRules_const(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), float); }
validate_FloatRules_has_lt(const validate_FloatRules * msg)483 UPB_INLINE bool validate_FloatRules_has_lt(const validate_FloatRules *msg) { return _upb_hasbit(msg, 2); }
validate_FloatRules_lt(const validate_FloatRules * msg)484 UPB_INLINE float validate_FloatRules_lt(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), float); }
validate_FloatRules_has_lte(const validate_FloatRules * msg)485 UPB_INLINE bool validate_FloatRules_has_lte(const validate_FloatRules *msg) { return _upb_hasbit(msg, 3); }
validate_FloatRules_lte(const validate_FloatRules * msg)486 UPB_INLINE float validate_FloatRules_lte(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), float); }
validate_FloatRules_has_gt(const validate_FloatRules * msg)487 UPB_INLINE bool validate_FloatRules_has_gt(const validate_FloatRules *msg) { return _upb_hasbit(msg, 4); }
validate_FloatRules_gt(const validate_FloatRules * msg)488 UPB_INLINE float validate_FloatRules_gt(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), float); }
validate_FloatRules_has_gte(const validate_FloatRules * msg)489 UPB_INLINE bool validate_FloatRules_has_gte(const validate_FloatRules *msg) { return _upb_hasbit(msg, 5); }
validate_FloatRules_gte(const validate_FloatRules * msg)490 UPB_INLINE float validate_FloatRules_gte(const validate_FloatRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), float); }
validate_FloatRules_in(const validate_FloatRules * msg,size_t * len)491 UPB_INLINE float const* validate_FloatRules_in(const validate_FloatRules *msg, size_t *len) { return (float const*)_upb_array_accessor(msg, UPB_SIZE(24, 24), len); }
validate_FloatRules_not_in(const validate_FloatRules * msg,size_t * len)492 UPB_INLINE float const* validate_FloatRules_not_in(const validate_FloatRules *msg, size_t *len) { return (float const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
493 
validate_FloatRules_set_const(validate_FloatRules * msg,float value)494 UPB_INLINE void validate_FloatRules_set_const(validate_FloatRules *msg, float value) {
495   _upb_sethas(msg, 1);
496   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), float) = value;
497 }
validate_FloatRules_set_lt(validate_FloatRules * msg,float value)498 UPB_INLINE void validate_FloatRules_set_lt(validate_FloatRules *msg, float value) {
499   _upb_sethas(msg, 2);
500   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), float) = value;
501 }
validate_FloatRules_set_lte(validate_FloatRules * msg,float value)502 UPB_INLINE void validate_FloatRules_set_lte(validate_FloatRules *msg, float value) {
503   _upb_sethas(msg, 3);
504   *UPB_PTR_AT(msg, UPB_SIZE(12, 12), float) = value;
505 }
validate_FloatRules_set_gt(validate_FloatRules * msg,float value)506 UPB_INLINE void validate_FloatRules_set_gt(validate_FloatRules *msg, float value) {
507   _upb_sethas(msg, 4);
508   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), float) = value;
509 }
validate_FloatRules_set_gte(validate_FloatRules * msg,float value)510 UPB_INLINE void validate_FloatRules_set_gte(validate_FloatRules *msg, float value) {
511   _upb_sethas(msg, 5);
512   *UPB_PTR_AT(msg, UPB_SIZE(20, 20), float) = value;
513 }
validate_FloatRules_mutable_in(validate_FloatRules * msg,size_t * len)514 UPB_INLINE float* validate_FloatRules_mutable_in(validate_FloatRules *msg, size_t *len) {
515   return (float*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
516 }
validate_FloatRules_resize_in(validate_FloatRules * msg,size_t len,upb_arena * arena)517 UPB_INLINE float* validate_FloatRules_resize_in(validate_FloatRules *msg, size_t len, upb_arena *arena) {
518   return (float*)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 24), len, 2, arena);
519 }
validate_FloatRules_add_in(validate_FloatRules * msg,float val,upb_arena * arena)520 UPB_INLINE bool validate_FloatRules_add_in(validate_FloatRules *msg, float val, upb_arena *arena) {
521   return _upb_array_append_accessor2(msg, UPB_SIZE(24, 24), 2, &val,
522       arena);
523 }
validate_FloatRules_mutable_not_in(validate_FloatRules * msg,size_t * len)524 UPB_INLINE float* validate_FloatRules_mutable_not_in(validate_FloatRules *msg, size_t *len) {
525   return (float*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
526 }
validate_FloatRules_resize_not_in(validate_FloatRules * msg,size_t len,upb_arena * arena)527 UPB_INLINE float* validate_FloatRules_resize_not_in(validate_FloatRules *msg, size_t len, upb_arena *arena) {
528   return (float*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
529 }
validate_FloatRules_add_not_in(validate_FloatRules * msg,float val,upb_arena * arena)530 UPB_INLINE bool validate_FloatRules_add_not_in(validate_FloatRules *msg, float val, upb_arena *arena) {
531   return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
532       arena);
533 }
534 
535 /* validate.DoubleRules */
536 
validate_DoubleRules_new(upb_arena * arena)537 UPB_INLINE validate_DoubleRules *validate_DoubleRules_new(upb_arena *arena) {
538   return (validate_DoubleRules *)_upb_msg_new(&validate_DoubleRules_msginit, arena);
539 }
validate_DoubleRules_parse(const char * buf,size_t size,upb_arena * arena)540 UPB_INLINE validate_DoubleRules *validate_DoubleRules_parse(const char *buf, size_t size,
541                         upb_arena *arena) {
542   validate_DoubleRules *ret = validate_DoubleRules_new(arena);
543   return (ret && upb_decode(buf, size, ret, &validate_DoubleRules_msginit, arena)) ? ret : NULL;
544 }
validate_DoubleRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)545 UPB_INLINE validate_DoubleRules *validate_DoubleRules_parse_ex(const char *buf, size_t size,
546                            upb_arena *arena, int options) {
547   validate_DoubleRules *ret = validate_DoubleRules_new(arena);
548   return (ret && _upb_decode(buf, size, ret, &validate_DoubleRules_msginit, arena, options))
549       ? ret : NULL;
550 }
validate_DoubleRules_serialize(const validate_DoubleRules * msg,upb_arena * arena,size_t * len)551 UPB_INLINE char *validate_DoubleRules_serialize(const validate_DoubleRules *msg, upb_arena *arena, size_t *len) {
552   return upb_encode(msg, &validate_DoubleRules_msginit, arena, len);
553 }
554 
validate_DoubleRules_has_const(const validate_DoubleRules * msg)555 UPB_INLINE bool validate_DoubleRules_has_const(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 1); }
validate_DoubleRules_const(const validate_DoubleRules * msg)556 UPB_INLINE double validate_DoubleRules_const(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double); }
validate_DoubleRules_has_lt(const validate_DoubleRules * msg)557 UPB_INLINE bool validate_DoubleRules_has_lt(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 2); }
validate_DoubleRules_lt(const validate_DoubleRules * msg)558 UPB_INLINE double validate_DoubleRules_lt(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), double); }
validate_DoubleRules_has_lte(const validate_DoubleRules * msg)559 UPB_INLINE bool validate_DoubleRules_has_lte(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 3); }
validate_DoubleRules_lte(const validate_DoubleRules * msg)560 UPB_INLINE double validate_DoubleRules_lte(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), double); }
validate_DoubleRules_has_gt(const validate_DoubleRules * msg)561 UPB_INLINE bool validate_DoubleRules_has_gt(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 4); }
validate_DoubleRules_gt(const validate_DoubleRules * msg)562 UPB_INLINE double validate_DoubleRules_gt(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), double); }
validate_DoubleRules_has_gte(const validate_DoubleRules * msg)563 UPB_INLINE bool validate_DoubleRules_has_gte(const validate_DoubleRules *msg) { return _upb_hasbit(msg, 5); }
validate_DoubleRules_gte(const validate_DoubleRules * msg)564 UPB_INLINE double validate_DoubleRules_gte(const validate_DoubleRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), double); }
validate_DoubleRules_in(const validate_DoubleRules * msg,size_t * len)565 UPB_INLINE double const* validate_DoubleRules_in(const validate_DoubleRules *msg, size_t *len) { return (double const*)_upb_array_accessor(msg, UPB_SIZE(48, 48), len); }
validate_DoubleRules_not_in(const validate_DoubleRules * msg,size_t * len)566 UPB_INLINE double const* validate_DoubleRules_not_in(const validate_DoubleRules *msg, size_t *len) { return (double const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
567 
validate_DoubleRules_set_const(validate_DoubleRules * msg,double value)568 UPB_INLINE void validate_DoubleRules_set_const(validate_DoubleRules *msg, double value) {
569   _upb_sethas(msg, 1);
570   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), double) = value;
571 }
validate_DoubleRules_set_lt(validate_DoubleRules * msg,double value)572 UPB_INLINE void validate_DoubleRules_set_lt(validate_DoubleRules *msg, double value) {
573   _upb_sethas(msg, 2);
574   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), double) = value;
575 }
validate_DoubleRules_set_lte(validate_DoubleRules * msg,double value)576 UPB_INLINE void validate_DoubleRules_set_lte(validate_DoubleRules *msg, double value) {
577   _upb_sethas(msg, 3);
578   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), double) = value;
579 }
validate_DoubleRules_set_gt(validate_DoubleRules * msg,double value)580 UPB_INLINE void validate_DoubleRules_set_gt(validate_DoubleRules *msg, double value) {
581   _upb_sethas(msg, 4);
582   *UPB_PTR_AT(msg, UPB_SIZE(32, 32), double) = value;
583 }
validate_DoubleRules_set_gte(validate_DoubleRules * msg,double value)584 UPB_INLINE void validate_DoubleRules_set_gte(validate_DoubleRules *msg, double value) {
585   _upb_sethas(msg, 5);
586   *UPB_PTR_AT(msg, UPB_SIZE(40, 40), double) = value;
587 }
validate_DoubleRules_mutable_in(validate_DoubleRules * msg,size_t * len)588 UPB_INLINE double* validate_DoubleRules_mutable_in(validate_DoubleRules *msg, size_t *len) {
589   return (double*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
590 }
validate_DoubleRules_resize_in(validate_DoubleRules * msg,size_t len,upb_arena * arena)591 UPB_INLINE double* validate_DoubleRules_resize_in(validate_DoubleRules *msg, size_t len, upb_arena *arena) {
592   return (double*)_upb_array_resize_accessor2(msg, UPB_SIZE(48, 48), len, 3, arena);
593 }
validate_DoubleRules_add_in(validate_DoubleRules * msg,double val,upb_arena * arena)594 UPB_INLINE bool validate_DoubleRules_add_in(validate_DoubleRules *msg, double val, upb_arena *arena) {
595   return _upb_array_append_accessor2(msg, UPB_SIZE(48, 48), 3, &val,
596       arena);
597 }
validate_DoubleRules_mutable_not_in(validate_DoubleRules * msg,size_t * len)598 UPB_INLINE double* validate_DoubleRules_mutable_not_in(validate_DoubleRules *msg, size_t *len) {
599   return (double*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
600 }
validate_DoubleRules_resize_not_in(validate_DoubleRules * msg,size_t len,upb_arena * arena)601 UPB_INLINE double* validate_DoubleRules_resize_not_in(validate_DoubleRules *msg, size_t len, upb_arena *arena) {
602   return (double*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
603 }
validate_DoubleRules_add_not_in(validate_DoubleRules * msg,double val,upb_arena * arena)604 UPB_INLINE bool validate_DoubleRules_add_not_in(validate_DoubleRules *msg, double val, upb_arena *arena) {
605   return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
606       arena);
607 }
608 
609 /* validate.Int32Rules */
610 
validate_Int32Rules_new(upb_arena * arena)611 UPB_INLINE validate_Int32Rules *validate_Int32Rules_new(upb_arena *arena) {
612   return (validate_Int32Rules *)_upb_msg_new(&validate_Int32Rules_msginit, arena);
613 }
validate_Int32Rules_parse(const char * buf,size_t size,upb_arena * arena)614 UPB_INLINE validate_Int32Rules *validate_Int32Rules_parse(const char *buf, size_t size,
615                         upb_arena *arena) {
616   validate_Int32Rules *ret = validate_Int32Rules_new(arena);
617   return (ret && upb_decode(buf, size, ret, &validate_Int32Rules_msginit, arena)) ? ret : NULL;
618 }
validate_Int32Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)619 UPB_INLINE validate_Int32Rules *validate_Int32Rules_parse_ex(const char *buf, size_t size,
620                            upb_arena *arena, int options) {
621   validate_Int32Rules *ret = validate_Int32Rules_new(arena);
622   return (ret && _upb_decode(buf, size, ret, &validate_Int32Rules_msginit, arena, options))
623       ? ret : NULL;
624 }
validate_Int32Rules_serialize(const validate_Int32Rules * msg,upb_arena * arena,size_t * len)625 UPB_INLINE char *validate_Int32Rules_serialize(const validate_Int32Rules *msg, upb_arena *arena, size_t *len) {
626   return upb_encode(msg, &validate_Int32Rules_msginit, arena, len);
627 }
628 
validate_Int32Rules_has_const(const validate_Int32Rules * msg)629 UPB_INLINE bool validate_Int32Rules_has_const(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 1); }
validate_Int32Rules_const(const validate_Int32Rules * msg)630 UPB_INLINE int32_t validate_Int32Rules_const(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
validate_Int32Rules_has_lt(const validate_Int32Rules * msg)631 UPB_INLINE bool validate_Int32Rules_has_lt(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 2); }
validate_Int32Rules_lt(const validate_Int32Rules * msg)632 UPB_INLINE int32_t validate_Int32Rules_lt(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
validate_Int32Rules_has_lte(const validate_Int32Rules * msg)633 UPB_INLINE bool validate_Int32Rules_has_lte(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 3); }
validate_Int32Rules_lte(const validate_Int32Rules * msg)634 UPB_INLINE int32_t validate_Int32Rules_lte(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
validate_Int32Rules_has_gt(const validate_Int32Rules * msg)635 UPB_INLINE bool validate_Int32Rules_has_gt(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 4); }
validate_Int32Rules_gt(const validate_Int32Rules * msg)636 UPB_INLINE int32_t validate_Int32Rules_gt(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
validate_Int32Rules_has_gte(const validate_Int32Rules * msg)637 UPB_INLINE bool validate_Int32Rules_has_gte(const validate_Int32Rules *msg) { return _upb_hasbit(msg, 5); }
validate_Int32Rules_gte(const validate_Int32Rules * msg)638 UPB_INLINE int32_t validate_Int32Rules_gte(const validate_Int32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
validate_Int32Rules_in(const validate_Int32Rules * msg,size_t * len)639 UPB_INLINE int32_t const* validate_Int32Rules_in(const validate_Int32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(24, 24), len); }
validate_Int32Rules_not_in(const validate_Int32Rules * msg,size_t * len)640 UPB_INLINE int32_t const* validate_Int32Rules_not_in(const validate_Int32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
641 
validate_Int32Rules_set_const(validate_Int32Rules * msg,int32_t value)642 UPB_INLINE void validate_Int32Rules_set_const(validate_Int32Rules *msg, int32_t value) {
643   _upb_sethas(msg, 1);
644   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
645 }
validate_Int32Rules_set_lt(validate_Int32Rules * msg,int32_t value)646 UPB_INLINE void validate_Int32Rules_set_lt(validate_Int32Rules *msg, int32_t value) {
647   _upb_sethas(msg, 2);
648   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value;
649 }
validate_Int32Rules_set_lte(validate_Int32Rules * msg,int32_t value)650 UPB_INLINE void validate_Int32Rules_set_lte(validate_Int32Rules *msg, int32_t value) {
651   _upb_sethas(msg, 3);
652   *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t) = value;
653 }
validate_Int32Rules_set_gt(validate_Int32Rules * msg,int32_t value)654 UPB_INLINE void validate_Int32Rules_set_gt(validate_Int32Rules *msg, int32_t value) {
655   _upb_sethas(msg, 4);
656   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = value;
657 }
validate_Int32Rules_set_gte(validate_Int32Rules * msg,int32_t value)658 UPB_INLINE void validate_Int32Rules_set_gte(validate_Int32Rules *msg, int32_t value) {
659   _upb_sethas(msg, 5);
660   *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t) = value;
661 }
validate_Int32Rules_mutable_in(validate_Int32Rules * msg,size_t * len)662 UPB_INLINE int32_t* validate_Int32Rules_mutable_in(validate_Int32Rules *msg, size_t *len) {
663   return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
664 }
validate_Int32Rules_resize_in(validate_Int32Rules * msg,size_t len,upb_arena * arena)665 UPB_INLINE int32_t* validate_Int32Rules_resize_in(validate_Int32Rules *msg, size_t len, upb_arena *arena) {
666   return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 24), len, 2, arena);
667 }
validate_Int32Rules_add_in(validate_Int32Rules * msg,int32_t val,upb_arena * arena)668 UPB_INLINE bool validate_Int32Rules_add_in(validate_Int32Rules *msg, int32_t val, upb_arena *arena) {
669   return _upb_array_append_accessor2(msg, UPB_SIZE(24, 24), 2, &val,
670       arena);
671 }
validate_Int32Rules_mutable_not_in(validate_Int32Rules * msg,size_t * len)672 UPB_INLINE int32_t* validate_Int32Rules_mutable_not_in(validate_Int32Rules *msg, size_t *len) {
673   return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
674 }
validate_Int32Rules_resize_not_in(validate_Int32Rules * msg,size_t len,upb_arena * arena)675 UPB_INLINE int32_t* validate_Int32Rules_resize_not_in(validate_Int32Rules *msg, size_t len, upb_arena *arena) {
676   return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
677 }
validate_Int32Rules_add_not_in(validate_Int32Rules * msg,int32_t val,upb_arena * arena)678 UPB_INLINE bool validate_Int32Rules_add_not_in(validate_Int32Rules *msg, int32_t val, upb_arena *arena) {
679   return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
680       arena);
681 }
682 
683 /* validate.Int64Rules */
684 
validate_Int64Rules_new(upb_arena * arena)685 UPB_INLINE validate_Int64Rules *validate_Int64Rules_new(upb_arena *arena) {
686   return (validate_Int64Rules *)_upb_msg_new(&validate_Int64Rules_msginit, arena);
687 }
validate_Int64Rules_parse(const char * buf,size_t size,upb_arena * arena)688 UPB_INLINE validate_Int64Rules *validate_Int64Rules_parse(const char *buf, size_t size,
689                         upb_arena *arena) {
690   validate_Int64Rules *ret = validate_Int64Rules_new(arena);
691   return (ret && upb_decode(buf, size, ret, &validate_Int64Rules_msginit, arena)) ? ret : NULL;
692 }
validate_Int64Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)693 UPB_INLINE validate_Int64Rules *validate_Int64Rules_parse_ex(const char *buf, size_t size,
694                            upb_arena *arena, int options) {
695   validate_Int64Rules *ret = validate_Int64Rules_new(arena);
696   return (ret && _upb_decode(buf, size, ret, &validate_Int64Rules_msginit, arena, options))
697       ? ret : NULL;
698 }
validate_Int64Rules_serialize(const validate_Int64Rules * msg,upb_arena * arena,size_t * len)699 UPB_INLINE char *validate_Int64Rules_serialize(const validate_Int64Rules *msg, upb_arena *arena, size_t *len) {
700   return upb_encode(msg, &validate_Int64Rules_msginit, arena, len);
701 }
702 
validate_Int64Rules_has_const(const validate_Int64Rules * msg)703 UPB_INLINE bool validate_Int64Rules_has_const(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 1); }
validate_Int64Rules_const(const validate_Int64Rules * msg)704 UPB_INLINE int64_t validate_Int64Rules_const(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
validate_Int64Rules_has_lt(const validate_Int64Rules * msg)705 UPB_INLINE bool validate_Int64Rules_has_lt(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 2); }
validate_Int64Rules_lt(const validate_Int64Rules * msg)706 UPB_INLINE int64_t validate_Int64Rules_lt(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
validate_Int64Rules_has_lte(const validate_Int64Rules * msg)707 UPB_INLINE bool validate_Int64Rules_has_lte(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 3); }
validate_Int64Rules_lte(const validate_Int64Rules * msg)708 UPB_INLINE int64_t validate_Int64Rules_lte(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
validate_Int64Rules_has_gt(const validate_Int64Rules * msg)709 UPB_INLINE bool validate_Int64Rules_has_gt(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 4); }
validate_Int64Rules_gt(const validate_Int64Rules * msg)710 UPB_INLINE int64_t validate_Int64Rules_gt(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
validate_Int64Rules_has_gte(const validate_Int64Rules * msg)711 UPB_INLINE bool validate_Int64Rules_has_gte(const validate_Int64Rules *msg) { return _upb_hasbit(msg, 5); }
validate_Int64Rules_gte(const validate_Int64Rules * msg)712 UPB_INLINE int64_t validate_Int64Rules_gte(const validate_Int64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
validate_Int64Rules_in(const validate_Int64Rules * msg,size_t * len)713 UPB_INLINE int64_t const* validate_Int64Rules_in(const validate_Int64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(48, 48), len); }
validate_Int64Rules_not_in(const validate_Int64Rules * msg,size_t * len)714 UPB_INLINE int64_t const* validate_Int64Rules_not_in(const validate_Int64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
715 
validate_Int64Rules_set_const(validate_Int64Rules * msg,int64_t value)716 UPB_INLINE void validate_Int64Rules_set_const(validate_Int64Rules *msg, int64_t value) {
717   _upb_sethas(msg, 1);
718   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
719 }
validate_Int64Rules_set_lt(validate_Int64Rules * msg,int64_t value)720 UPB_INLINE void validate_Int64Rules_set_lt(validate_Int64Rules *msg, int64_t value) {
721   _upb_sethas(msg, 2);
722   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = value;
723 }
validate_Int64Rules_set_lte(validate_Int64Rules * msg,int64_t value)724 UPB_INLINE void validate_Int64Rules_set_lte(validate_Int64Rules *msg, int64_t value) {
725   _upb_sethas(msg, 3);
726   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = value;
727 }
validate_Int64Rules_set_gt(validate_Int64Rules * msg,int64_t value)728 UPB_INLINE void validate_Int64Rules_set_gt(validate_Int64Rules *msg, int64_t value) {
729   _upb_sethas(msg, 4);
730   *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t) = value;
731 }
validate_Int64Rules_set_gte(validate_Int64Rules * msg,int64_t value)732 UPB_INLINE void validate_Int64Rules_set_gte(validate_Int64Rules *msg, int64_t value) {
733   _upb_sethas(msg, 5);
734   *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t) = value;
735 }
validate_Int64Rules_mutable_in(validate_Int64Rules * msg,size_t * len)736 UPB_INLINE int64_t* validate_Int64Rules_mutable_in(validate_Int64Rules *msg, size_t *len) {
737   return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
738 }
validate_Int64Rules_resize_in(validate_Int64Rules * msg,size_t len,upb_arena * arena)739 UPB_INLINE int64_t* validate_Int64Rules_resize_in(validate_Int64Rules *msg, size_t len, upb_arena *arena) {
740   return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(48, 48), len, 3, arena);
741 }
validate_Int64Rules_add_in(validate_Int64Rules * msg,int64_t val,upb_arena * arena)742 UPB_INLINE bool validate_Int64Rules_add_in(validate_Int64Rules *msg, int64_t val, upb_arena *arena) {
743   return _upb_array_append_accessor2(msg, UPB_SIZE(48, 48), 3, &val,
744       arena);
745 }
validate_Int64Rules_mutable_not_in(validate_Int64Rules * msg,size_t * len)746 UPB_INLINE int64_t* validate_Int64Rules_mutable_not_in(validate_Int64Rules *msg, size_t *len) {
747   return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
748 }
validate_Int64Rules_resize_not_in(validate_Int64Rules * msg,size_t len,upb_arena * arena)749 UPB_INLINE int64_t* validate_Int64Rules_resize_not_in(validate_Int64Rules *msg, size_t len, upb_arena *arena) {
750   return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
751 }
validate_Int64Rules_add_not_in(validate_Int64Rules * msg,int64_t val,upb_arena * arena)752 UPB_INLINE bool validate_Int64Rules_add_not_in(validate_Int64Rules *msg, int64_t val, upb_arena *arena) {
753   return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
754       arena);
755 }
756 
757 /* validate.UInt32Rules */
758 
validate_UInt32Rules_new(upb_arena * arena)759 UPB_INLINE validate_UInt32Rules *validate_UInt32Rules_new(upb_arena *arena) {
760   return (validate_UInt32Rules *)_upb_msg_new(&validate_UInt32Rules_msginit, arena);
761 }
validate_UInt32Rules_parse(const char * buf,size_t size,upb_arena * arena)762 UPB_INLINE validate_UInt32Rules *validate_UInt32Rules_parse(const char *buf, size_t size,
763                         upb_arena *arena) {
764   validate_UInt32Rules *ret = validate_UInt32Rules_new(arena);
765   return (ret && upb_decode(buf, size, ret, &validate_UInt32Rules_msginit, arena)) ? ret : NULL;
766 }
validate_UInt32Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)767 UPB_INLINE validate_UInt32Rules *validate_UInt32Rules_parse_ex(const char *buf, size_t size,
768                            upb_arena *arena, int options) {
769   validate_UInt32Rules *ret = validate_UInt32Rules_new(arena);
770   return (ret && _upb_decode(buf, size, ret, &validate_UInt32Rules_msginit, arena, options))
771       ? ret : NULL;
772 }
validate_UInt32Rules_serialize(const validate_UInt32Rules * msg,upb_arena * arena,size_t * len)773 UPB_INLINE char *validate_UInt32Rules_serialize(const validate_UInt32Rules *msg, upb_arena *arena, size_t *len) {
774   return upb_encode(msg, &validate_UInt32Rules_msginit, arena, len);
775 }
776 
validate_UInt32Rules_has_const(const validate_UInt32Rules * msg)777 UPB_INLINE bool validate_UInt32Rules_has_const(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 1); }
validate_UInt32Rules_const(const validate_UInt32Rules * msg)778 UPB_INLINE uint32_t validate_UInt32Rules_const(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); }
validate_UInt32Rules_has_lt(const validate_UInt32Rules * msg)779 UPB_INLINE bool validate_UInt32Rules_has_lt(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 2); }
validate_UInt32Rules_lt(const validate_UInt32Rules * msg)780 UPB_INLINE uint32_t validate_UInt32Rules_lt(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t); }
validate_UInt32Rules_has_lte(const validate_UInt32Rules * msg)781 UPB_INLINE bool validate_UInt32Rules_has_lte(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 3); }
validate_UInt32Rules_lte(const validate_UInt32Rules * msg)782 UPB_INLINE uint32_t validate_UInt32Rules_lte(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t); }
validate_UInt32Rules_has_gt(const validate_UInt32Rules * msg)783 UPB_INLINE bool validate_UInt32Rules_has_gt(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 4); }
validate_UInt32Rules_gt(const validate_UInt32Rules * msg)784 UPB_INLINE uint32_t validate_UInt32Rules_gt(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t); }
validate_UInt32Rules_has_gte(const validate_UInt32Rules * msg)785 UPB_INLINE bool validate_UInt32Rules_has_gte(const validate_UInt32Rules *msg) { return _upb_hasbit(msg, 5); }
validate_UInt32Rules_gte(const validate_UInt32Rules * msg)786 UPB_INLINE uint32_t validate_UInt32Rules_gte(const validate_UInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t); }
validate_UInt32Rules_in(const validate_UInt32Rules * msg,size_t * len)787 UPB_INLINE uint32_t const* validate_UInt32Rules_in(const validate_UInt32Rules *msg, size_t *len) { return (uint32_t const*)_upb_array_accessor(msg, UPB_SIZE(24, 24), len); }
validate_UInt32Rules_not_in(const validate_UInt32Rules * msg,size_t * len)788 UPB_INLINE uint32_t const* validate_UInt32Rules_not_in(const validate_UInt32Rules *msg, size_t *len) { return (uint32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
789 
validate_UInt32Rules_set_const(validate_UInt32Rules * msg,uint32_t value)790 UPB_INLINE void validate_UInt32Rules_set_const(validate_UInt32Rules *msg, uint32_t value) {
791   _upb_sethas(msg, 1);
792   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value;
793 }
validate_UInt32Rules_set_lt(validate_UInt32Rules * msg,uint32_t value)794 UPB_INLINE void validate_UInt32Rules_set_lt(validate_UInt32Rules *msg, uint32_t value) {
795   _upb_sethas(msg, 2);
796   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t) = value;
797 }
validate_UInt32Rules_set_lte(validate_UInt32Rules * msg,uint32_t value)798 UPB_INLINE void validate_UInt32Rules_set_lte(validate_UInt32Rules *msg, uint32_t value) {
799   _upb_sethas(msg, 3);
800   *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t) = value;
801 }
validate_UInt32Rules_set_gt(validate_UInt32Rules * msg,uint32_t value)802 UPB_INLINE void validate_UInt32Rules_set_gt(validate_UInt32Rules *msg, uint32_t value) {
803   _upb_sethas(msg, 4);
804   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t) = value;
805 }
validate_UInt32Rules_set_gte(validate_UInt32Rules * msg,uint32_t value)806 UPB_INLINE void validate_UInt32Rules_set_gte(validate_UInt32Rules *msg, uint32_t value) {
807   _upb_sethas(msg, 5);
808   *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t) = value;
809 }
validate_UInt32Rules_mutable_in(validate_UInt32Rules * msg,size_t * len)810 UPB_INLINE uint32_t* validate_UInt32Rules_mutable_in(validate_UInt32Rules *msg, size_t *len) {
811   return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
812 }
validate_UInt32Rules_resize_in(validate_UInt32Rules * msg,size_t len,upb_arena * arena)813 UPB_INLINE uint32_t* validate_UInt32Rules_resize_in(validate_UInt32Rules *msg, size_t len, upb_arena *arena) {
814   return (uint32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 24), len, 2, arena);
815 }
validate_UInt32Rules_add_in(validate_UInt32Rules * msg,uint32_t val,upb_arena * arena)816 UPB_INLINE bool validate_UInt32Rules_add_in(validate_UInt32Rules *msg, uint32_t val, upb_arena *arena) {
817   return _upb_array_append_accessor2(msg, UPB_SIZE(24, 24), 2, &val,
818       arena);
819 }
validate_UInt32Rules_mutable_not_in(validate_UInt32Rules * msg,size_t * len)820 UPB_INLINE uint32_t* validate_UInt32Rules_mutable_not_in(validate_UInt32Rules *msg, size_t *len) {
821   return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
822 }
validate_UInt32Rules_resize_not_in(validate_UInt32Rules * msg,size_t len,upb_arena * arena)823 UPB_INLINE uint32_t* validate_UInt32Rules_resize_not_in(validate_UInt32Rules *msg, size_t len, upb_arena *arena) {
824   return (uint32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
825 }
validate_UInt32Rules_add_not_in(validate_UInt32Rules * msg,uint32_t val,upb_arena * arena)826 UPB_INLINE bool validate_UInt32Rules_add_not_in(validate_UInt32Rules *msg, uint32_t val, upb_arena *arena) {
827   return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
828       arena);
829 }
830 
831 /* validate.UInt64Rules */
832 
validate_UInt64Rules_new(upb_arena * arena)833 UPB_INLINE validate_UInt64Rules *validate_UInt64Rules_new(upb_arena *arena) {
834   return (validate_UInt64Rules *)_upb_msg_new(&validate_UInt64Rules_msginit, arena);
835 }
validate_UInt64Rules_parse(const char * buf,size_t size,upb_arena * arena)836 UPB_INLINE validate_UInt64Rules *validate_UInt64Rules_parse(const char *buf, size_t size,
837                         upb_arena *arena) {
838   validate_UInt64Rules *ret = validate_UInt64Rules_new(arena);
839   return (ret && upb_decode(buf, size, ret, &validate_UInt64Rules_msginit, arena)) ? ret : NULL;
840 }
validate_UInt64Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)841 UPB_INLINE validate_UInt64Rules *validate_UInt64Rules_parse_ex(const char *buf, size_t size,
842                            upb_arena *arena, int options) {
843   validate_UInt64Rules *ret = validate_UInt64Rules_new(arena);
844   return (ret && _upb_decode(buf, size, ret, &validate_UInt64Rules_msginit, arena, options))
845       ? ret : NULL;
846 }
validate_UInt64Rules_serialize(const validate_UInt64Rules * msg,upb_arena * arena,size_t * len)847 UPB_INLINE char *validate_UInt64Rules_serialize(const validate_UInt64Rules *msg, upb_arena *arena, size_t *len) {
848   return upb_encode(msg, &validate_UInt64Rules_msginit, arena, len);
849 }
850 
validate_UInt64Rules_has_const(const validate_UInt64Rules * msg)851 UPB_INLINE bool validate_UInt64Rules_has_const(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 1); }
validate_UInt64Rules_const(const validate_UInt64Rules * msg)852 UPB_INLINE uint64_t validate_UInt64Rules_const(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
validate_UInt64Rules_has_lt(const validate_UInt64Rules * msg)853 UPB_INLINE bool validate_UInt64Rules_has_lt(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 2); }
validate_UInt64Rules_lt(const validate_UInt64Rules * msg)854 UPB_INLINE uint64_t validate_UInt64Rules_lt(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
validate_UInt64Rules_has_lte(const validate_UInt64Rules * msg)855 UPB_INLINE bool validate_UInt64Rules_has_lte(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 3); }
validate_UInt64Rules_lte(const validate_UInt64Rules * msg)856 UPB_INLINE uint64_t validate_UInt64Rules_lte(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
validate_UInt64Rules_has_gt(const validate_UInt64Rules * msg)857 UPB_INLINE bool validate_UInt64Rules_has_gt(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 4); }
validate_UInt64Rules_gt(const validate_UInt64Rules * msg)858 UPB_INLINE uint64_t validate_UInt64Rules_gt(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
validate_UInt64Rules_has_gte(const validate_UInt64Rules * msg)859 UPB_INLINE bool validate_UInt64Rules_has_gte(const validate_UInt64Rules *msg) { return _upb_hasbit(msg, 5); }
validate_UInt64Rules_gte(const validate_UInt64Rules * msg)860 UPB_INLINE uint64_t validate_UInt64Rules_gte(const validate_UInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
validate_UInt64Rules_in(const validate_UInt64Rules * msg,size_t * len)861 UPB_INLINE uint64_t const* validate_UInt64Rules_in(const validate_UInt64Rules *msg, size_t *len) { return (uint64_t const*)_upb_array_accessor(msg, UPB_SIZE(48, 48), len); }
validate_UInt64Rules_not_in(const validate_UInt64Rules * msg,size_t * len)862 UPB_INLINE uint64_t const* validate_UInt64Rules_not_in(const validate_UInt64Rules *msg, size_t *len) { return (uint64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
863 
validate_UInt64Rules_set_const(validate_UInt64Rules * msg,uint64_t value)864 UPB_INLINE void validate_UInt64Rules_set_const(validate_UInt64Rules *msg, uint64_t value) {
865   _upb_sethas(msg, 1);
866   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
867 }
validate_UInt64Rules_set_lt(validate_UInt64Rules * msg,uint64_t value)868 UPB_INLINE void validate_UInt64Rules_set_lt(validate_UInt64Rules *msg, uint64_t value) {
869   _upb_sethas(msg, 2);
870   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
871 }
validate_UInt64Rules_set_lte(validate_UInt64Rules * msg,uint64_t value)872 UPB_INLINE void validate_UInt64Rules_set_lte(validate_UInt64Rules *msg, uint64_t value) {
873   _upb_sethas(msg, 3);
874   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
875 }
validate_UInt64Rules_set_gt(validate_UInt64Rules * msg,uint64_t value)876 UPB_INLINE void validate_UInt64Rules_set_gt(validate_UInt64Rules *msg, uint64_t value) {
877   _upb_sethas(msg, 4);
878   *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value;
879 }
validate_UInt64Rules_set_gte(validate_UInt64Rules * msg,uint64_t value)880 UPB_INLINE void validate_UInt64Rules_set_gte(validate_UInt64Rules *msg, uint64_t value) {
881   _upb_sethas(msg, 5);
882   *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t) = value;
883 }
validate_UInt64Rules_mutable_in(validate_UInt64Rules * msg,size_t * len)884 UPB_INLINE uint64_t* validate_UInt64Rules_mutable_in(validate_UInt64Rules *msg, size_t *len) {
885   return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
886 }
validate_UInt64Rules_resize_in(validate_UInt64Rules * msg,size_t len,upb_arena * arena)887 UPB_INLINE uint64_t* validate_UInt64Rules_resize_in(validate_UInt64Rules *msg, size_t len, upb_arena *arena) {
888   return (uint64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(48, 48), len, 3, arena);
889 }
validate_UInt64Rules_add_in(validate_UInt64Rules * msg,uint64_t val,upb_arena * arena)890 UPB_INLINE bool validate_UInt64Rules_add_in(validate_UInt64Rules *msg, uint64_t val, upb_arena *arena) {
891   return _upb_array_append_accessor2(msg, UPB_SIZE(48, 48), 3, &val,
892       arena);
893 }
validate_UInt64Rules_mutable_not_in(validate_UInt64Rules * msg,size_t * len)894 UPB_INLINE uint64_t* validate_UInt64Rules_mutable_not_in(validate_UInt64Rules *msg, size_t *len) {
895   return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
896 }
validate_UInt64Rules_resize_not_in(validate_UInt64Rules * msg,size_t len,upb_arena * arena)897 UPB_INLINE uint64_t* validate_UInt64Rules_resize_not_in(validate_UInt64Rules *msg, size_t len, upb_arena *arena) {
898   return (uint64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
899 }
validate_UInt64Rules_add_not_in(validate_UInt64Rules * msg,uint64_t val,upb_arena * arena)900 UPB_INLINE bool validate_UInt64Rules_add_not_in(validate_UInt64Rules *msg, uint64_t val, upb_arena *arena) {
901   return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
902       arena);
903 }
904 
905 /* validate.SInt32Rules */
906 
validate_SInt32Rules_new(upb_arena * arena)907 UPB_INLINE validate_SInt32Rules *validate_SInt32Rules_new(upb_arena *arena) {
908   return (validate_SInt32Rules *)_upb_msg_new(&validate_SInt32Rules_msginit, arena);
909 }
validate_SInt32Rules_parse(const char * buf,size_t size,upb_arena * arena)910 UPB_INLINE validate_SInt32Rules *validate_SInt32Rules_parse(const char *buf, size_t size,
911                         upb_arena *arena) {
912   validate_SInt32Rules *ret = validate_SInt32Rules_new(arena);
913   return (ret && upb_decode(buf, size, ret, &validate_SInt32Rules_msginit, arena)) ? ret : NULL;
914 }
validate_SInt32Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)915 UPB_INLINE validate_SInt32Rules *validate_SInt32Rules_parse_ex(const char *buf, size_t size,
916                            upb_arena *arena, int options) {
917   validate_SInt32Rules *ret = validate_SInt32Rules_new(arena);
918   return (ret && _upb_decode(buf, size, ret, &validate_SInt32Rules_msginit, arena, options))
919       ? ret : NULL;
920 }
validate_SInt32Rules_serialize(const validate_SInt32Rules * msg,upb_arena * arena,size_t * len)921 UPB_INLINE char *validate_SInt32Rules_serialize(const validate_SInt32Rules *msg, upb_arena *arena, size_t *len) {
922   return upb_encode(msg, &validate_SInt32Rules_msginit, arena, len);
923 }
924 
validate_SInt32Rules_has_const(const validate_SInt32Rules * msg)925 UPB_INLINE bool validate_SInt32Rules_has_const(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 1); }
validate_SInt32Rules_const(const validate_SInt32Rules * msg)926 UPB_INLINE int32_t validate_SInt32Rules_const(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
validate_SInt32Rules_has_lt(const validate_SInt32Rules * msg)927 UPB_INLINE bool validate_SInt32Rules_has_lt(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 2); }
validate_SInt32Rules_lt(const validate_SInt32Rules * msg)928 UPB_INLINE int32_t validate_SInt32Rules_lt(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
validate_SInt32Rules_has_lte(const validate_SInt32Rules * msg)929 UPB_INLINE bool validate_SInt32Rules_has_lte(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 3); }
validate_SInt32Rules_lte(const validate_SInt32Rules * msg)930 UPB_INLINE int32_t validate_SInt32Rules_lte(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
validate_SInt32Rules_has_gt(const validate_SInt32Rules * msg)931 UPB_INLINE bool validate_SInt32Rules_has_gt(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 4); }
validate_SInt32Rules_gt(const validate_SInt32Rules * msg)932 UPB_INLINE int32_t validate_SInt32Rules_gt(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
validate_SInt32Rules_has_gte(const validate_SInt32Rules * msg)933 UPB_INLINE bool validate_SInt32Rules_has_gte(const validate_SInt32Rules *msg) { return _upb_hasbit(msg, 5); }
validate_SInt32Rules_gte(const validate_SInt32Rules * msg)934 UPB_INLINE int32_t validate_SInt32Rules_gte(const validate_SInt32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
validate_SInt32Rules_in(const validate_SInt32Rules * msg,size_t * len)935 UPB_INLINE int32_t const* validate_SInt32Rules_in(const validate_SInt32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(24, 24), len); }
validate_SInt32Rules_not_in(const validate_SInt32Rules * msg,size_t * len)936 UPB_INLINE int32_t const* validate_SInt32Rules_not_in(const validate_SInt32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
937 
validate_SInt32Rules_set_const(validate_SInt32Rules * msg,int32_t value)938 UPB_INLINE void validate_SInt32Rules_set_const(validate_SInt32Rules *msg, int32_t value) {
939   _upb_sethas(msg, 1);
940   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
941 }
validate_SInt32Rules_set_lt(validate_SInt32Rules * msg,int32_t value)942 UPB_INLINE void validate_SInt32Rules_set_lt(validate_SInt32Rules *msg, int32_t value) {
943   _upb_sethas(msg, 2);
944   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value;
945 }
validate_SInt32Rules_set_lte(validate_SInt32Rules * msg,int32_t value)946 UPB_INLINE void validate_SInt32Rules_set_lte(validate_SInt32Rules *msg, int32_t value) {
947   _upb_sethas(msg, 3);
948   *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t) = value;
949 }
validate_SInt32Rules_set_gt(validate_SInt32Rules * msg,int32_t value)950 UPB_INLINE void validate_SInt32Rules_set_gt(validate_SInt32Rules *msg, int32_t value) {
951   _upb_sethas(msg, 4);
952   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = value;
953 }
validate_SInt32Rules_set_gte(validate_SInt32Rules * msg,int32_t value)954 UPB_INLINE void validate_SInt32Rules_set_gte(validate_SInt32Rules *msg, int32_t value) {
955   _upb_sethas(msg, 5);
956   *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t) = value;
957 }
validate_SInt32Rules_mutable_in(validate_SInt32Rules * msg,size_t * len)958 UPB_INLINE int32_t* validate_SInt32Rules_mutable_in(validate_SInt32Rules *msg, size_t *len) {
959   return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
960 }
validate_SInt32Rules_resize_in(validate_SInt32Rules * msg,size_t len,upb_arena * arena)961 UPB_INLINE int32_t* validate_SInt32Rules_resize_in(validate_SInt32Rules *msg, size_t len, upb_arena *arena) {
962   return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 24), len, 2, arena);
963 }
validate_SInt32Rules_add_in(validate_SInt32Rules * msg,int32_t val,upb_arena * arena)964 UPB_INLINE bool validate_SInt32Rules_add_in(validate_SInt32Rules *msg, int32_t val, upb_arena *arena) {
965   return _upb_array_append_accessor2(msg, UPB_SIZE(24, 24), 2, &val,
966       arena);
967 }
validate_SInt32Rules_mutable_not_in(validate_SInt32Rules * msg,size_t * len)968 UPB_INLINE int32_t* validate_SInt32Rules_mutable_not_in(validate_SInt32Rules *msg, size_t *len) {
969   return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
970 }
validate_SInt32Rules_resize_not_in(validate_SInt32Rules * msg,size_t len,upb_arena * arena)971 UPB_INLINE int32_t* validate_SInt32Rules_resize_not_in(validate_SInt32Rules *msg, size_t len, upb_arena *arena) {
972   return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
973 }
validate_SInt32Rules_add_not_in(validate_SInt32Rules * msg,int32_t val,upb_arena * arena)974 UPB_INLINE bool validate_SInt32Rules_add_not_in(validate_SInt32Rules *msg, int32_t val, upb_arena *arena) {
975   return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
976       arena);
977 }
978 
979 /* validate.SInt64Rules */
980 
validate_SInt64Rules_new(upb_arena * arena)981 UPB_INLINE validate_SInt64Rules *validate_SInt64Rules_new(upb_arena *arena) {
982   return (validate_SInt64Rules *)_upb_msg_new(&validate_SInt64Rules_msginit, arena);
983 }
validate_SInt64Rules_parse(const char * buf,size_t size,upb_arena * arena)984 UPB_INLINE validate_SInt64Rules *validate_SInt64Rules_parse(const char *buf, size_t size,
985                         upb_arena *arena) {
986   validate_SInt64Rules *ret = validate_SInt64Rules_new(arena);
987   return (ret && upb_decode(buf, size, ret, &validate_SInt64Rules_msginit, arena)) ? ret : NULL;
988 }
validate_SInt64Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)989 UPB_INLINE validate_SInt64Rules *validate_SInt64Rules_parse_ex(const char *buf, size_t size,
990                            upb_arena *arena, int options) {
991   validate_SInt64Rules *ret = validate_SInt64Rules_new(arena);
992   return (ret && _upb_decode(buf, size, ret, &validate_SInt64Rules_msginit, arena, options))
993       ? ret : NULL;
994 }
validate_SInt64Rules_serialize(const validate_SInt64Rules * msg,upb_arena * arena,size_t * len)995 UPB_INLINE char *validate_SInt64Rules_serialize(const validate_SInt64Rules *msg, upb_arena *arena, size_t *len) {
996   return upb_encode(msg, &validate_SInt64Rules_msginit, arena, len);
997 }
998 
validate_SInt64Rules_has_const(const validate_SInt64Rules * msg)999 UPB_INLINE bool validate_SInt64Rules_has_const(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 1); }
validate_SInt64Rules_const(const validate_SInt64Rules * msg)1000 UPB_INLINE int64_t validate_SInt64Rules_const(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
validate_SInt64Rules_has_lt(const validate_SInt64Rules * msg)1001 UPB_INLINE bool validate_SInt64Rules_has_lt(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 2); }
validate_SInt64Rules_lt(const validate_SInt64Rules * msg)1002 UPB_INLINE int64_t validate_SInt64Rules_lt(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
validate_SInt64Rules_has_lte(const validate_SInt64Rules * msg)1003 UPB_INLINE bool validate_SInt64Rules_has_lte(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 3); }
validate_SInt64Rules_lte(const validate_SInt64Rules * msg)1004 UPB_INLINE int64_t validate_SInt64Rules_lte(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
validate_SInt64Rules_has_gt(const validate_SInt64Rules * msg)1005 UPB_INLINE bool validate_SInt64Rules_has_gt(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 4); }
validate_SInt64Rules_gt(const validate_SInt64Rules * msg)1006 UPB_INLINE int64_t validate_SInt64Rules_gt(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
validate_SInt64Rules_has_gte(const validate_SInt64Rules * msg)1007 UPB_INLINE bool validate_SInt64Rules_has_gte(const validate_SInt64Rules *msg) { return _upb_hasbit(msg, 5); }
validate_SInt64Rules_gte(const validate_SInt64Rules * msg)1008 UPB_INLINE int64_t validate_SInt64Rules_gte(const validate_SInt64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
validate_SInt64Rules_in(const validate_SInt64Rules * msg,size_t * len)1009 UPB_INLINE int64_t const* validate_SInt64Rules_in(const validate_SInt64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(48, 48), len); }
validate_SInt64Rules_not_in(const validate_SInt64Rules * msg,size_t * len)1010 UPB_INLINE int64_t const* validate_SInt64Rules_not_in(const validate_SInt64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
1011 
validate_SInt64Rules_set_const(validate_SInt64Rules * msg,int64_t value)1012 UPB_INLINE void validate_SInt64Rules_set_const(validate_SInt64Rules *msg, int64_t value) {
1013   _upb_sethas(msg, 1);
1014   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
1015 }
validate_SInt64Rules_set_lt(validate_SInt64Rules * msg,int64_t value)1016 UPB_INLINE void validate_SInt64Rules_set_lt(validate_SInt64Rules *msg, int64_t value) {
1017   _upb_sethas(msg, 2);
1018   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = value;
1019 }
validate_SInt64Rules_set_lte(validate_SInt64Rules * msg,int64_t value)1020 UPB_INLINE void validate_SInt64Rules_set_lte(validate_SInt64Rules *msg, int64_t value) {
1021   _upb_sethas(msg, 3);
1022   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = value;
1023 }
validate_SInt64Rules_set_gt(validate_SInt64Rules * msg,int64_t value)1024 UPB_INLINE void validate_SInt64Rules_set_gt(validate_SInt64Rules *msg, int64_t value) {
1025   _upb_sethas(msg, 4);
1026   *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t) = value;
1027 }
validate_SInt64Rules_set_gte(validate_SInt64Rules * msg,int64_t value)1028 UPB_INLINE void validate_SInt64Rules_set_gte(validate_SInt64Rules *msg, int64_t value) {
1029   _upb_sethas(msg, 5);
1030   *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t) = value;
1031 }
validate_SInt64Rules_mutable_in(validate_SInt64Rules * msg,size_t * len)1032 UPB_INLINE int64_t* validate_SInt64Rules_mutable_in(validate_SInt64Rules *msg, size_t *len) {
1033   return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
1034 }
validate_SInt64Rules_resize_in(validate_SInt64Rules * msg,size_t len,upb_arena * arena)1035 UPB_INLINE int64_t* validate_SInt64Rules_resize_in(validate_SInt64Rules *msg, size_t len, upb_arena *arena) {
1036   return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(48, 48), len, 3, arena);
1037 }
validate_SInt64Rules_add_in(validate_SInt64Rules * msg,int64_t val,upb_arena * arena)1038 UPB_INLINE bool validate_SInt64Rules_add_in(validate_SInt64Rules *msg, int64_t val, upb_arena *arena) {
1039   return _upb_array_append_accessor2(msg, UPB_SIZE(48, 48), 3, &val,
1040       arena);
1041 }
validate_SInt64Rules_mutable_not_in(validate_SInt64Rules * msg,size_t * len)1042 UPB_INLINE int64_t* validate_SInt64Rules_mutable_not_in(validate_SInt64Rules *msg, size_t *len) {
1043   return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
1044 }
validate_SInt64Rules_resize_not_in(validate_SInt64Rules * msg,size_t len,upb_arena * arena)1045 UPB_INLINE int64_t* validate_SInt64Rules_resize_not_in(validate_SInt64Rules *msg, size_t len, upb_arena *arena) {
1046   return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1047 }
validate_SInt64Rules_add_not_in(validate_SInt64Rules * msg,int64_t val,upb_arena * arena)1048 UPB_INLINE bool validate_SInt64Rules_add_not_in(validate_SInt64Rules *msg, int64_t val, upb_arena *arena) {
1049   return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1050       arena);
1051 }
1052 
1053 /* validate.Fixed32Rules */
1054 
validate_Fixed32Rules_new(upb_arena * arena)1055 UPB_INLINE validate_Fixed32Rules *validate_Fixed32Rules_new(upb_arena *arena) {
1056   return (validate_Fixed32Rules *)_upb_msg_new(&validate_Fixed32Rules_msginit, arena);
1057 }
validate_Fixed32Rules_parse(const char * buf,size_t size,upb_arena * arena)1058 UPB_INLINE validate_Fixed32Rules *validate_Fixed32Rules_parse(const char *buf, size_t size,
1059                         upb_arena *arena) {
1060   validate_Fixed32Rules *ret = validate_Fixed32Rules_new(arena);
1061   return (ret && upb_decode(buf, size, ret, &validate_Fixed32Rules_msginit, arena)) ? ret : NULL;
1062 }
validate_Fixed32Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1063 UPB_INLINE validate_Fixed32Rules *validate_Fixed32Rules_parse_ex(const char *buf, size_t size,
1064                            upb_arena *arena, int options) {
1065   validate_Fixed32Rules *ret = validate_Fixed32Rules_new(arena);
1066   return (ret && _upb_decode(buf, size, ret, &validate_Fixed32Rules_msginit, arena, options))
1067       ? ret : NULL;
1068 }
validate_Fixed32Rules_serialize(const validate_Fixed32Rules * msg,upb_arena * arena,size_t * len)1069 UPB_INLINE char *validate_Fixed32Rules_serialize(const validate_Fixed32Rules *msg, upb_arena *arena, size_t *len) {
1070   return upb_encode(msg, &validate_Fixed32Rules_msginit, arena, len);
1071 }
1072 
validate_Fixed32Rules_has_const(const validate_Fixed32Rules * msg)1073 UPB_INLINE bool validate_Fixed32Rules_has_const(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 1); }
validate_Fixed32Rules_const(const validate_Fixed32Rules * msg)1074 UPB_INLINE uint32_t validate_Fixed32Rules_const(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); }
validate_Fixed32Rules_has_lt(const validate_Fixed32Rules * msg)1075 UPB_INLINE bool validate_Fixed32Rules_has_lt(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 2); }
validate_Fixed32Rules_lt(const validate_Fixed32Rules * msg)1076 UPB_INLINE uint32_t validate_Fixed32Rules_lt(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t); }
validate_Fixed32Rules_has_lte(const validate_Fixed32Rules * msg)1077 UPB_INLINE bool validate_Fixed32Rules_has_lte(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 3); }
validate_Fixed32Rules_lte(const validate_Fixed32Rules * msg)1078 UPB_INLINE uint32_t validate_Fixed32Rules_lte(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t); }
validate_Fixed32Rules_has_gt(const validate_Fixed32Rules * msg)1079 UPB_INLINE bool validate_Fixed32Rules_has_gt(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 4); }
validate_Fixed32Rules_gt(const validate_Fixed32Rules * msg)1080 UPB_INLINE uint32_t validate_Fixed32Rules_gt(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t); }
validate_Fixed32Rules_has_gte(const validate_Fixed32Rules * msg)1081 UPB_INLINE bool validate_Fixed32Rules_has_gte(const validate_Fixed32Rules *msg) { return _upb_hasbit(msg, 5); }
validate_Fixed32Rules_gte(const validate_Fixed32Rules * msg)1082 UPB_INLINE uint32_t validate_Fixed32Rules_gte(const validate_Fixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t); }
validate_Fixed32Rules_in(const validate_Fixed32Rules * msg,size_t * len)1083 UPB_INLINE uint32_t const* validate_Fixed32Rules_in(const validate_Fixed32Rules *msg, size_t *len) { return (uint32_t const*)_upb_array_accessor(msg, UPB_SIZE(24, 24), len); }
validate_Fixed32Rules_not_in(const validate_Fixed32Rules * msg,size_t * len)1084 UPB_INLINE uint32_t const* validate_Fixed32Rules_not_in(const validate_Fixed32Rules *msg, size_t *len) { return (uint32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
1085 
validate_Fixed32Rules_set_const(validate_Fixed32Rules * msg,uint32_t value)1086 UPB_INLINE void validate_Fixed32Rules_set_const(validate_Fixed32Rules *msg, uint32_t value) {
1087   _upb_sethas(msg, 1);
1088   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value;
1089 }
validate_Fixed32Rules_set_lt(validate_Fixed32Rules * msg,uint32_t value)1090 UPB_INLINE void validate_Fixed32Rules_set_lt(validate_Fixed32Rules *msg, uint32_t value) {
1091   _upb_sethas(msg, 2);
1092   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint32_t) = value;
1093 }
validate_Fixed32Rules_set_lte(validate_Fixed32Rules * msg,uint32_t value)1094 UPB_INLINE void validate_Fixed32Rules_set_lte(validate_Fixed32Rules *msg, uint32_t value) {
1095   _upb_sethas(msg, 3);
1096   *UPB_PTR_AT(msg, UPB_SIZE(12, 12), uint32_t) = value;
1097 }
validate_Fixed32Rules_set_gt(validate_Fixed32Rules * msg,uint32_t value)1098 UPB_INLINE void validate_Fixed32Rules_set_gt(validate_Fixed32Rules *msg, uint32_t value) {
1099   _upb_sethas(msg, 4);
1100   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint32_t) = value;
1101 }
validate_Fixed32Rules_set_gte(validate_Fixed32Rules * msg,uint32_t value)1102 UPB_INLINE void validate_Fixed32Rules_set_gte(validate_Fixed32Rules *msg, uint32_t value) {
1103   _upb_sethas(msg, 5);
1104   *UPB_PTR_AT(msg, UPB_SIZE(20, 20), uint32_t) = value;
1105 }
validate_Fixed32Rules_mutable_in(validate_Fixed32Rules * msg,size_t * len)1106 UPB_INLINE uint32_t* validate_Fixed32Rules_mutable_in(validate_Fixed32Rules *msg, size_t *len) {
1107   return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
1108 }
validate_Fixed32Rules_resize_in(validate_Fixed32Rules * msg,size_t len,upb_arena * arena)1109 UPB_INLINE uint32_t* validate_Fixed32Rules_resize_in(validate_Fixed32Rules *msg, size_t len, upb_arena *arena) {
1110   return (uint32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 24), len, 2, arena);
1111 }
validate_Fixed32Rules_add_in(validate_Fixed32Rules * msg,uint32_t val,upb_arena * arena)1112 UPB_INLINE bool validate_Fixed32Rules_add_in(validate_Fixed32Rules *msg, uint32_t val, upb_arena *arena) {
1113   return _upb_array_append_accessor2(msg, UPB_SIZE(24, 24), 2, &val,
1114       arena);
1115 }
validate_Fixed32Rules_mutable_not_in(validate_Fixed32Rules * msg,size_t * len)1116 UPB_INLINE uint32_t* validate_Fixed32Rules_mutable_not_in(validate_Fixed32Rules *msg, size_t *len) {
1117   return (uint32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
1118 }
validate_Fixed32Rules_resize_not_in(validate_Fixed32Rules * msg,size_t len,upb_arena * arena)1119 UPB_INLINE uint32_t* validate_Fixed32Rules_resize_not_in(validate_Fixed32Rules *msg, size_t len, upb_arena *arena) {
1120   return (uint32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
1121 }
validate_Fixed32Rules_add_not_in(validate_Fixed32Rules * msg,uint32_t val,upb_arena * arena)1122 UPB_INLINE bool validate_Fixed32Rules_add_not_in(validate_Fixed32Rules *msg, uint32_t val, upb_arena *arena) {
1123   return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
1124       arena);
1125 }
1126 
1127 /* validate.Fixed64Rules */
1128 
validate_Fixed64Rules_new(upb_arena * arena)1129 UPB_INLINE validate_Fixed64Rules *validate_Fixed64Rules_new(upb_arena *arena) {
1130   return (validate_Fixed64Rules *)_upb_msg_new(&validate_Fixed64Rules_msginit, arena);
1131 }
validate_Fixed64Rules_parse(const char * buf,size_t size,upb_arena * arena)1132 UPB_INLINE validate_Fixed64Rules *validate_Fixed64Rules_parse(const char *buf, size_t size,
1133                         upb_arena *arena) {
1134   validate_Fixed64Rules *ret = validate_Fixed64Rules_new(arena);
1135   return (ret && upb_decode(buf, size, ret, &validate_Fixed64Rules_msginit, arena)) ? ret : NULL;
1136 }
validate_Fixed64Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1137 UPB_INLINE validate_Fixed64Rules *validate_Fixed64Rules_parse_ex(const char *buf, size_t size,
1138                            upb_arena *arena, int options) {
1139   validate_Fixed64Rules *ret = validate_Fixed64Rules_new(arena);
1140   return (ret && _upb_decode(buf, size, ret, &validate_Fixed64Rules_msginit, arena, options))
1141       ? ret : NULL;
1142 }
validate_Fixed64Rules_serialize(const validate_Fixed64Rules * msg,upb_arena * arena,size_t * len)1143 UPB_INLINE char *validate_Fixed64Rules_serialize(const validate_Fixed64Rules *msg, upb_arena *arena, size_t *len) {
1144   return upb_encode(msg, &validate_Fixed64Rules_msginit, arena, len);
1145 }
1146 
validate_Fixed64Rules_has_const(const validate_Fixed64Rules * msg)1147 UPB_INLINE bool validate_Fixed64Rules_has_const(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 1); }
validate_Fixed64Rules_const(const validate_Fixed64Rules * msg)1148 UPB_INLINE uint64_t validate_Fixed64Rules_const(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
validate_Fixed64Rules_has_lt(const validate_Fixed64Rules * msg)1149 UPB_INLINE bool validate_Fixed64Rules_has_lt(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 2); }
validate_Fixed64Rules_lt(const validate_Fixed64Rules * msg)1150 UPB_INLINE uint64_t validate_Fixed64Rules_lt(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
validate_Fixed64Rules_has_lte(const validate_Fixed64Rules * msg)1151 UPB_INLINE bool validate_Fixed64Rules_has_lte(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 3); }
validate_Fixed64Rules_lte(const validate_Fixed64Rules * msg)1152 UPB_INLINE uint64_t validate_Fixed64Rules_lte(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
validate_Fixed64Rules_has_gt(const validate_Fixed64Rules * msg)1153 UPB_INLINE bool validate_Fixed64Rules_has_gt(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 4); }
validate_Fixed64Rules_gt(const validate_Fixed64Rules * msg)1154 UPB_INLINE uint64_t validate_Fixed64Rules_gt(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
validate_Fixed64Rules_has_gte(const validate_Fixed64Rules * msg)1155 UPB_INLINE bool validate_Fixed64Rules_has_gte(const validate_Fixed64Rules *msg) { return _upb_hasbit(msg, 5); }
validate_Fixed64Rules_gte(const validate_Fixed64Rules * msg)1156 UPB_INLINE uint64_t validate_Fixed64Rules_gte(const validate_Fixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
validate_Fixed64Rules_in(const validate_Fixed64Rules * msg,size_t * len)1157 UPB_INLINE uint64_t const* validate_Fixed64Rules_in(const validate_Fixed64Rules *msg, size_t *len) { return (uint64_t const*)_upb_array_accessor(msg, UPB_SIZE(48, 48), len); }
validate_Fixed64Rules_not_in(const validate_Fixed64Rules * msg,size_t * len)1158 UPB_INLINE uint64_t const* validate_Fixed64Rules_not_in(const validate_Fixed64Rules *msg, size_t *len) { return (uint64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
1159 
validate_Fixed64Rules_set_const(validate_Fixed64Rules * msg,uint64_t value)1160 UPB_INLINE void validate_Fixed64Rules_set_const(validate_Fixed64Rules *msg, uint64_t value) {
1161   _upb_sethas(msg, 1);
1162   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
1163 }
validate_Fixed64Rules_set_lt(validate_Fixed64Rules * msg,uint64_t value)1164 UPB_INLINE void validate_Fixed64Rules_set_lt(validate_Fixed64Rules *msg, uint64_t value) {
1165   _upb_sethas(msg, 2);
1166   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
1167 }
validate_Fixed64Rules_set_lte(validate_Fixed64Rules * msg,uint64_t value)1168 UPB_INLINE void validate_Fixed64Rules_set_lte(validate_Fixed64Rules *msg, uint64_t value) {
1169   _upb_sethas(msg, 3);
1170   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
1171 }
validate_Fixed64Rules_set_gt(validate_Fixed64Rules * msg,uint64_t value)1172 UPB_INLINE void validate_Fixed64Rules_set_gt(validate_Fixed64Rules *msg, uint64_t value) {
1173   _upb_sethas(msg, 4);
1174   *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value;
1175 }
validate_Fixed64Rules_set_gte(validate_Fixed64Rules * msg,uint64_t value)1176 UPB_INLINE void validate_Fixed64Rules_set_gte(validate_Fixed64Rules *msg, uint64_t value) {
1177   _upb_sethas(msg, 5);
1178   *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t) = value;
1179 }
validate_Fixed64Rules_mutable_in(validate_Fixed64Rules * msg,size_t * len)1180 UPB_INLINE uint64_t* validate_Fixed64Rules_mutable_in(validate_Fixed64Rules *msg, size_t *len) {
1181   return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
1182 }
validate_Fixed64Rules_resize_in(validate_Fixed64Rules * msg,size_t len,upb_arena * arena)1183 UPB_INLINE uint64_t* validate_Fixed64Rules_resize_in(validate_Fixed64Rules *msg, size_t len, upb_arena *arena) {
1184   return (uint64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(48, 48), len, 3, arena);
1185 }
validate_Fixed64Rules_add_in(validate_Fixed64Rules * msg,uint64_t val,upb_arena * arena)1186 UPB_INLINE bool validate_Fixed64Rules_add_in(validate_Fixed64Rules *msg, uint64_t val, upb_arena *arena) {
1187   return _upb_array_append_accessor2(msg, UPB_SIZE(48, 48), 3, &val,
1188       arena);
1189 }
validate_Fixed64Rules_mutable_not_in(validate_Fixed64Rules * msg,size_t * len)1190 UPB_INLINE uint64_t* validate_Fixed64Rules_mutable_not_in(validate_Fixed64Rules *msg, size_t *len) {
1191   return (uint64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
1192 }
validate_Fixed64Rules_resize_not_in(validate_Fixed64Rules * msg,size_t len,upb_arena * arena)1193 UPB_INLINE uint64_t* validate_Fixed64Rules_resize_not_in(validate_Fixed64Rules *msg, size_t len, upb_arena *arena) {
1194   return (uint64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1195 }
validate_Fixed64Rules_add_not_in(validate_Fixed64Rules * msg,uint64_t val,upb_arena * arena)1196 UPB_INLINE bool validate_Fixed64Rules_add_not_in(validate_Fixed64Rules *msg, uint64_t val, upb_arena *arena) {
1197   return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1198       arena);
1199 }
1200 
1201 /* validate.SFixed32Rules */
1202 
validate_SFixed32Rules_new(upb_arena * arena)1203 UPB_INLINE validate_SFixed32Rules *validate_SFixed32Rules_new(upb_arena *arena) {
1204   return (validate_SFixed32Rules *)_upb_msg_new(&validate_SFixed32Rules_msginit, arena);
1205 }
validate_SFixed32Rules_parse(const char * buf,size_t size,upb_arena * arena)1206 UPB_INLINE validate_SFixed32Rules *validate_SFixed32Rules_parse(const char *buf, size_t size,
1207                         upb_arena *arena) {
1208   validate_SFixed32Rules *ret = validate_SFixed32Rules_new(arena);
1209   return (ret && upb_decode(buf, size, ret, &validate_SFixed32Rules_msginit, arena)) ? ret : NULL;
1210 }
validate_SFixed32Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1211 UPB_INLINE validate_SFixed32Rules *validate_SFixed32Rules_parse_ex(const char *buf, size_t size,
1212                            upb_arena *arena, int options) {
1213   validate_SFixed32Rules *ret = validate_SFixed32Rules_new(arena);
1214   return (ret && _upb_decode(buf, size, ret, &validate_SFixed32Rules_msginit, arena, options))
1215       ? ret : NULL;
1216 }
validate_SFixed32Rules_serialize(const validate_SFixed32Rules * msg,upb_arena * arena,size_t * len)1217 UPB_INLINE char *validate_SFixed32Rules_serialize(const validate_SFixed32Rules *msg, upb_arena *arena, size_t *len) {
1218   return upb_encode(msg, &validate_SFixed32Rules_msginit, arena, len);
1219 }
1220 
validate_SFixed32Rules_has_const(const validate_SFixed32Rules * msg)1221 UPB_INLINE bool validate_SFixed32Rules_has_const(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 1); }
validate_SFixed32Rules_const(const validate_SFixed32Rules * msg)1222 UPB_INLINE int32_t validate_SFixed32Rules_const(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
validate_SFixed32Rules_has_lt(const validate_SFixed32Rules * msg)1223 UPB_INLINE bool validate_SFixed32Rules_has_lt(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 2); }
validate_SFixed32Rules_lt(const validate_SFixed32Rules * msg)1224 UPB_INLINE int32_t validate_SFixed32Rules_lt(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); }
validate_SFixed32Rules_has_lte(const validate_SFixed32Rules * msg)1225 UPB_INLINE bool validate_SFixed32Rules_has_lte(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 3); }
validate_SFixed32Rules_lte(const validate_SFixed32Rules * msg)1226 UPB_INLINE int32_t validate_SFixed32Rules_lte(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); }
validate_SFixed32Rules_has_gt(const validate_SFixed32Rules * msg)1227 UPB_INLINE bool validate_SFixed32Rules_has_gt(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 4); }
validate_SFixed32Rules_gt(const validate_SFixed32Rules * msg)1228 UPB_INLINE int32_t validate_SFixed32Rules_gt(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); }
validate_SFixed32Rules_has_gte(const validate_SFixed32Rules * msg)1229 UPB_INLINE bool validate_SFixed32Rules_has_gte(const validate_SFixed32Rules *msg) { return _upb_hasbit(msg, 5); }
validate_SFixed32Rules_gte(const validate_SFixed32Rules * msg)1230 UPB_INLINE int32_t validate_SFixed32Rules_gte(const validate_SFixed32Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t); }
validate_SFixed32Rules_in(const validate_SFixed32Rules * msg,size_t * len)1231 UPB_INLINE int32_t const* validate_SFixed32Rules_in(const validate_SFixed32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(24, 24), len); }
validate_SFixed32Rules_not_in(const validate_SFixed32Rules * msg,size_t * len)1232 UPB_INLINE int32_t const* validate_SFixed32Rules_not_in(const validate_SFixed32Rules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); }
1233 
validate_SFixed32Rules_set_const(validate_SFixed32Rules * msg,int32_t value)1234 UPB_INLINE void validate_SFixed32Rules_set_const(validate_SFixed32Rules *msg, int32_t value) {
1235   _upb_sethas(msg, 1);
1236   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
1237 }
validate_SFixed32Rules_set_lt(validate_SFixed32Rules * msg,int32_t value)1238 UPB_INLINE void validate_SFixed32Rules_set_lt(validate_SFixed32Rules *msg, int32_t value) {
1239   _upb_sethas(msg, 2);
1240   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value;
1241 }
validate_SFixed32Rules_set_lte(validate_SFixed32Rules * msg,int32_t value)1242 UPB_INLINE void validate_SFixed32Rules_set_lte(validate_SFixed32Rules *msg, int32_t value) {
1243   _upb_sethas(msg, 3);
1244   *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t) = value;
1245 }
validate_SFixed32Rules_set_gt(validate_SFixed32Rules * msg,int32_t value)1246 UPB_INLINE void validate_SFixed32Rules_set_gt(validate_SFixed32Rules *msg, int32_t value) {
1247   _upb_sethas(msg, 4);
1248   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = value;
1249 }
validate_SFixed32Rules_set_gte(validate_SFixed32Rules * msg,int32_t value)1250 UPB_INLINE void validate_SFixed32Rules_set_gte(validate_SFixed32Rules *msg, int32_t value) {
1251   _upb_sethas(msg, 5);
1252   *UPB_PTR_AT(msg, UPB_SIZE(20, 20), int32_t) = value;
1253 }
validate_SFixed32Rules_mutable_in(validate_SFixed32Rules * msg,size_t * len)1254 UPB_INLINE int32_t* validate_SFixed32Rules_mutable_in(validate_SFixed32Rules *msg, size_t *len) {
1255   return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 24), len);
1256 }
validate_SFixed32Rules_resize_in(validate_SFixed32Rules * msg,size_t len,upb_arena * arena)1257 UPB_INLINE int32_t* validate_SFixed32Rules_resize_in(validate_SFixed32Rules *msg, size_t len, upb_arena *arena) {
1258   return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 24), len, 2, arena);
1259 }
validate_SFixed32Rules_add_in(validate_SFixed32Rules * msg,int32_t val,upb_arena * arena)1260 UPB_INLINE bool validate_SFixed32Rules_add_in(validate_SFixed32Rules *msg, int32_t val, upb_arena *arena) {
1261   return _upb_array_append_accessor2(msg, UPB_SIZE(24, 24), 2, &val,
1262       arena);
1263 }
validate_SFixed32Rules_mutable_not_in(validate_SFixed32Rules * msg,size_t * len)1264 UPB_INLINE int32_t* validate_SFixed32Rules_mutable_not_in(validate_SFixed32Rules *msg, size_t *len) {
1265   return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 32), len);
1266 }
validate_SFixed32Rules_resize_not_in(validate_SFixed32Rules * msg,size_t len,upb_arena * arena)1267 UPB_INLINE int32_t* validate_SFixed32Rules_resize_not_in(validate_SFixed32Rules *msg, size_t len, upb_arena *arena) {
1268   return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 32), len, 2, arena);
1269 }
validate_SFixed32Rules_add_not_in(validate_SFixed32Rules * msg,int32_t val,upb_arena * arena)1270 UPB_INLINE bool validate_SFixed32Rules_add_not_in(validate_SFixed32Rules *msg, int32_t val, upb_arena *arena) {
1271   return _upb_array_append_accessor2(msg, UPB_SIZE(28, 32), 2, &val,
1272       arena);
1273 }
1274 
1275 /* validate.SFixed64Rules */
1276 
validate_SFixed64Rules_new(upb_arena * arena)1277 UPB_INLINE validate_SFixed64Rules *validate_SFixed64Rules_new(upb_arena *arena) {
1278   return (validate_SFixed64Rules *)_upb_msg_new(&validate_SFixed64Rules_msginit, arena);
1279 }
validate_SFixed64Rules_parse(const char * buf,size_t size,upb_arena * arena)1280 UPB_INLINE validate_SFixed64Rules *validate_SFixed64Rules_parse(const char *buf, size_t size,
1281                         upb_arena *arena) {
1282   validate_SFixed64Rules *ret = validate_SFixed64Rules_new(arena);
1283   return (ret && upb_decode(buf, size, ret, &validate_SFixed64Rules_msginit, arena)) ? ret : NULL;
1284 }
validate_SFixed64Rules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1285 UPB_INLINE validate_SFixed64Rules *validate_SFixed64Rules_parse_ex(const char *buf, size_t size,
1286                            upb_arena *arena, int options) {
1287   validate_SFixed64Rules *ret = validate_SFixed64Rules_new(arena);
1288   return (ret && _upb_decode(buf, size, ret, &validate_SFixed64Rules_msginit, arena, options))
1289       ? ret : NULL;
1290 }
validate_SFixed64Rules_serialize(const validate_SFixed64Rules * msg,upb_arena * arena,size_t * len)1291 UPB_INLINE char *validate_SFixed64Rules_serialize(const validate_SFixed64Rules *msg, upb_arena *arena, size_t *len) {
1292   return upb_encode(msg, &validate_SFixed64Rules_msginit, arena, len);
1293 }
1294 
validate_SFixed64Rules_has_const(const validate_SFixed64Rules * msg)1295 UPB_INLINE bool validate_SFixed64Rules_has_const(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 1); }
validate_SFixed64Rules_const(const validate_SFixed64Rules * msg)1296 UPB_INLINE int64_t validate_SFixed64Rules_const(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t); }
validate_SFixed64Rules_has_lt(const validate_SFixed64Rules * msg)1297 UPB_INLINE bool validate_SFixed64Rules_has_lt(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 2); }
validate_SFixed64Rules_lt(const validate_SFixed64Rules * msg)1298 UPB_INLINE int64_t validate_SFixed64Rules_lt(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t); }
validate_SFixed64Rules_has_lte(const validate_SFixed64Rules * msg)1299 UPB_INLINE bool validate_SFixed64Rules_has_lte(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 3); }
validate_SFixed64Rules_lte(const validate_SFixed64Rules * msg)1300 UPB_INLINE int64_t validate_SFixed64Rules_lte(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t); }
validate_SFixed64Rules_has_gt(const validate_SFixed64Rules * msg)1301 UPB_INLINE bool validate_SFixed64Rules_has_gt(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 4); }
validate_SFixed64Rules_gt(const validate_SFixed64Rules * msg)1302 UPB_INLINE int64_t validate_SFixed64Rules_gt(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t); }
validate_SFixed64Rules_has_gte(const validate_SFixed64Rules * msg)1303 UPB_INLINE bool validate_SFixed64Rules_has_gte(const validate_SFixed64Rules *msg) { return _upb_hasbit(msg, 5); }
validate_SFixed64Rules_gte(const validate_SFixed64Rules * msg)1304 UPB_INLINE int64_t validate_SFixed64Rules_gte(const validate_SFixed64Rules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t); }
validate_SFixed64Rules_in(const validate_SFixed64Rules * msg,size_t * len)1305 UPB_INLINE int64_t const* validate_SFixed64Rules_in(const validate_SFixed64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(48, 48), len); }
validate_SFixed64Rules_not_in(const validate_SFixed64Rules * msg,size_t * len)1306 UPB_INLINE int64_t const* validate_SFixed64Rules_not_in(const validate_SFixed64Rules *msg, size_t *len) { return (int64_t const*)_upb_array_accessor(msg, UPB_SIZE(52, 56), len); }
1307 
validate_SFixed64Rules_set_const(validate_SFixed64Rules * msg,int64_t value)1308 UPB_INLINE void validate_SFixed64Rules_set_const(validate_SFixed64Rules *msg, int64_t value) {
1309   _upb_sethas(msg, 1);
1310   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int64_t) = value;
1311 }
validate_SFixed64Rules_set_lt(validate_SFixed64Rules * msg,int64_t value)1312 UPB_INLINE void validate_SFixed64Rules_set_lt(validate_SFixed64Rules *msg, int64_t value) {
1313   _upb_sethas(msg, 2);
1314   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int64_t) = value;
1315 }
validate_SFixed64Rules_set_lte(validate_SFixed64Rules * msg,int64_t value)1316 UPB_INLINE void validate_SFixed64Rules_set_lte(validate_SFixed64Rules *msg, int64_t value) {
1317   _upb_sethas(msg, 3);
1318   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), int64_t) = value;
1319 }
validate_SFixed64Rules_set_gt(validate_SFixed64Rules * msg,int64_t value)1320 UPB_INLINE void validate_SFixed64Rules_set_gt(validate_SFixed64Rules *msg, int64_t value) {
1321   _upb_sethas(msg, 4);
1322   *UPB_PTR_AT(msg, UPB_SIZE(32, 32), int64_t) = value;
1323 }
validate_SFixed64Rules_set_gte(validate_SFixed64Rules * msg,int64_t value)1324 UPB_INLINE void validate_SFixed64Rules_set_gte(validate_SFixed64Rules *msg, int64_t value) {
1325   _upb_sethas(msg, 5);
1326   *UPB_PTR_AT(msg, UPB_SIZE(40, 40), int64_t) = value;
1327 }
validate_SFixed64Rules_mutable_in(validate_SFixed64Rules * msg,size_t * len)1328 UPB_INLINE int64_t* validate_SFixed64Rules_mutable_in(validate_SFixed64Rules *msg, size_t *len) {
1329   return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(48, 48), len);
1330 }
validate_SFixed64Rules_resize_in(validate_SFixed64Rules * msg,size_t len,upb_arena * arena)1331 UPB_INLINE int64_t* validate_SFixed64Rules_resize_in(validate_SFixed64Rules *msg, size_t len, upb_arena *arena) {
1332   return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(48, 48), len, 3, arena);
1333 }
validate_SFixed64Rules_add_in(validate_SFixed64Rules * msg,int64_t val,upb_arena * arena)1334 UPB_INLINE bool validate_SFixed64Rules_add_in(validate_SFixed64Rules *msg, int64_t val, upb_arena *arena) {
1335   return _upb_array_append_accessor2(msg, UPB_SIZE(48, 48), 3, &val,
1336       arena);
1337 }
validate_SFixed64Rules_mutable_not_in(validate_SFixed64Rules * msg,size_t * len)1338 UPB_INLINE int64_t* validate_SFixed64Rules_mutable_not_in(validate_SFixed64Rules *msg, size_t *len) {
1339   return (int64_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(52, 56), len);
1340 }
validate_SFixed64Rules_resize_not_in(validate_SFixed64Rules * msg,size_t len,upb_arena * arena)1341 UPB_INLINE int64_t* validate_SFixed64Rules_resize_not_in(validate_SFixed64Rules *msg, size_t len, upb_arena *arena) {
1342   return (int64_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(52, 56), len, 3, arena);
1343 }
validate_SFixed64Rules_add_not_in(validate_SFixed64Rules * msg,int64_t val,upb_arena * arena)1344 UPB_INLINE bool validate_SFixed64Rules_add_not_in(validate_SFixed64Rules *msg, int64_t val, upb_arena *arena) {
1345   return _upb_array_append_accessor2(msg, UPB_SIZE(52, 56), 3, &val,
1346       arena);
1347 }
1348 
1349 /* validate.BoolRules */
1350 
validate_BoolRules_new(upb_arena * arena)1351 UPB_INLINE validate_BoolRules *validate_BoolRules_new(upb_arena *arena) {
1352   return (validate_BoolRules *)_upb_msg_new(&validate_BoolRules_msginit, arena);
1353 }
validate_BoolRules_parse(const char * buf,size_t size,upb_arena * arena)1354 UPB_INLINE validate_BoolRules *validate_BoolRules_parse(const char *buf, size_t size,
1355                         upb_arena *arena) {
1356   validate_BoolRules *ret = validate_BoolRules_new(arena);
1357   return (ret && upb_decode(buf, size, ret, &validate_BoolRules_msginit, arena)) ? ret : NULL;
1358 }
validate_BoolRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1359 UPB_INLINE validate_BoolRules *validate_BoolRules_parse_ex(const char *buf, size_t size,
1360                            upb_arena *arena, int options) {
1361   validate_BoolRules *ret = validate_BoolRules_new(arena);
1362   return (ret && _upb_decode(buf, size, ret, &validate_BoolRules_msginit, arena, options))
1363       ? ret : NULL;
1364 }
validate_BoolRules_serialize(const validate_BoolRules * msg,upb_arena * arena,size_t * len)1365 UPB_INLINE char *validate_BoolRules_serialize(const validate_BoolRules *msg, upb_arena *arena, size_t *len) {
1366   return upb_encode(msg, &validate_BoolRules_msginit, arena, len);
1367 }
1368 
validate_BoolRules_has_const(const validate_BoolRules * msg)1369 UPB_INLINE bool validate_BoolRules_has_const(const validate_BoolRules *msg) { return _upb_hasbit(msg, 1); }
validate_BoolRules_const(const validate_BoolRules * msg)1370 UPB_INLINE bool validate_BoolRules_const(const validate_BoolRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
1371 
validate_BoolRules_set_const(validate_BoolRules * msg,bool value)1372 UPB_INLINE void validate_BoolRules_set_const(validate_BoolRules *msg, bool value) {
1373   _upb_sethas(msg, 1);
1374   *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
1375 }
1376 
1377 /* validate.StringRules */
1378 
validate_StringRules_new(upb_arena * arena)1379 UPB_INLINE validate_StringRules *validate_StringRules_new(upb_arena *arena) {
1380   return (validate_StringRules *)_upb_msg_new(&validate_StringRules_msginit, arena);
1381 }
validate_StringRules_parse(const char * buf,size_t size,upb_arena * arena)1382 UPB_INLINE validate_StringRules *validate_StringRules_parse(const char *buf, size_t size,
1383                         upb_arena *arena) {
1384   validate_StringRules *ret = validate_StringRules_new(arena);
1385   return (ret && upb_decode(buf, size, ret, &validate_StringRules_msginit, arena)) ? ret : NULL;
1386 }
validate_StringRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1387 UPB_INLINE validate_StringRules *validate_StringRules_parse_ex(const char *buf, size_t size,
1388                            upb_arena *arena, int options) {
1389   validate_StringRules *ret = validate_StringRules_new(arena);
1390   return (ret && _upb_decode(buf, size, ret, &validate_StringRules_msginit, arena, options))
1391       ? ret : NULL;
1392 }
validate_StringRules_serialize(const validate_StringRules * msg,upb_arena * arena,size_t * len)1393 UPB_INLINE char *validate_StringRules_serialize(const validate_StringRules *msg, upb_arena *arena, size_t *len) {
1394   return upb_encode(msg, &validate_StringRules_msginit, arena, len);
1395 }
1396 
1397 typedef enum {
1398   validate_StringRules_well_known_email = 12,
1399   validate_StringRules_well_known_hostname = 13,
1400   validate_StringRules_well_known_ip = 14,
1401   validate_StringRules_well_known_ipv4 = 15,
1402   validate_StringRules_well_known_ipv6 = 16,
1403   validate_StringRules_well_known_uri = 17,
1404   validate_StringRules_well_known_uri_ref = 18,
1405   validate_StringRules_well_known_address = 21,
1406   validate_StringRules_well_known_uuid = 22,
1407   validate_StringRules_well_known_well_known_regex = 24,
1408   validate_StringRules_well_known_NOT_SET = 0
1409 } validate_StringRules_well_known_oneofcases;
validate_StringRules_well_known_case(const validate_StringRules * msg)1410 UPB_INLINE validate_StringRules_well_known_oneofcases validate_StringRules_well_known_case(const validate_StringRules* msg) { return (validate_StringRules_well_known_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(120, 180), int32_t); }
1411 
validate_StringRules_has_const(const validate_StringRules * msg)1412 UPB_INLINE bool validate_StringRules_has_const(const validate_StringRules *msg) { return _upb_hasbit(msg, 1); }
validate_StringRules_const(const validate_StringRules * msg)1413 UPB_INLINE upb_strview validate_StringRules_const(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(60, 64), upb_strview); }
validate_StringRules_has_min_len(const validate_StringRules * msg)1414 UPB_INLINE bool validate_StringRules_has_min_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 2); }
validate_StringRules_min_len(const validate_StringRules * msg)1415 UPB_INLINE uint64_t validate_StringRules_min_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
validate_StringRules_has_max_len(const validate_StringRules * msg)1416 UPB_INLINE bool validate_StringRules_has_max_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 3); }
validate_StringRules_max_len(const validate_StringRules * msg)1417 UPB_INLINE uint64_t validate_StringRules_max_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
validate_StringRules_has_min_bytes(const validate_StringRules * msg)1418 UPB_INLINE bool validate_StringRules_has_min_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 4); }
validate_StringRules_min_bytes(const validate_StringRules * msg)1419 UPB_INLINE uint64_t validate_StringRules_min_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
validate_StringRules_has_max_bytes(const validate_StringRules * msg)1420 UPB_INLINE bool validate_StringRules_has_max_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 5); }
validate_StringRules_max_bytes(const validate_StringRules * msg)1421 UPB_INLINE uint64_t validate_StringRules_max_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t); }
validate_StringRules_has_pattern(const validate_StringRules * msg)1422 UPB_INLINE bool validate_StringRules_has_pattern(const validate_StringRules *msg) { return _upb_hasbit(msg, 6); }
validate_StringRules_pattern(const validate_StringRules * msg)1423 UPB_INLINE upb_strview validate_StringRules_pattern(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(68, 80), upb_strview); }
validate_StringRules_has_prefix(const validate_StringRules * msg)1424 UPB_INLINE bool validate_StringRules_has_prefix(const validate_StringRules *msg) { return _upb_hasbit(msg, 7); }
validate_StringRules_prefix(const validate_StringRules * msg)1425 UPB_INLINE upb_strview validate_StringRules_prefix(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(76, 96), upb_strview); }
validate_StringRules_has_suffix(const validate_StringRules * msg)1426 UPB_INLINE bool validate_StringRules_has_suffix(const validate_StringRules *msg) { return _upb_hasbit(msg, 8); }
validate_StringRules_suffix(const validate_StringRules * msg)1427 UPB_INLINE upb_strview validate_StringRules_suffix(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(84, 112), upb_strview); }
validate_StringRules_has_contains(const validate_StringRules * msg)1428 UPB_INLINE bool validate_StringRules_has_contains(const validate_StringRules *msg) { return _upb_hasbit(msg, 9); }
validate_StringRules_contains(const validate_StringRules * msg)1429 UPB_INLINE upb_strview validate_StringRules_contains(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(92, 128), upb_strview); }
validate_StringRules_in(const validate_StringRules * msg,size_t * len)1430 UPB_INLINE upb_strview const* validate_StringRules_in(const validate_StringRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(108, 160), len); }
validate_StringRules_not_in(const validate_StringRules * msg,size_t * len)1431 UPB_INLINE upb_strview const* validate_StringRules_not_in(const validate_StringRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(112, 168), len); }
validate_StringRules_has_email(const validate_StringRules * msg)1432 UPB_INLINE bool validate_StringRules_has_email(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 12; }
validate_StringRules_email(const validate_StringRules * msg)1433 UPB_INLINE bool validate_StringRules_email(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 12, false); }
validate_StringRules_has_hostname(const validate_StringRules * msg)1434 UPB_INLINE bool validate_StringRules_has_hostname(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 13; }
validate_StringRules_hostname(const validate_StringRules * msg)1435 UPB_INLINE bool validate_StringRules_hostname(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 13, false); }
validate_StringRules_has_ip(const validate_StringRules * msg)1436 UPB_INLINE bool validate_StringRules_has_ip(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 14; }
validate_StringRules_ip(const validate_StringRules * msg)1437 UPB_INLINE bool validate_StringRules_ip(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 14, false); }
validate_StringRules_has_ipv4(const validate_StringRules * msg)1438 UPB_INLINE bool validate_StringRules_has_ipv4(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 15; }
validate_StringRules_ipv4(const validate_StringRules * msg)1439 UPB_INLINE bool validate_StringRules_ipv4(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 15, false); }
validate_StringRules_has_ipv6(const validate_StringRules * msg)1440 UPB_INLINE bool validate_StringRules_has_ipv6(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 16; }
validate_StringRules_ipv6(const validate_StringRules * msg)1441 UPB_INLINE bool validate_StringRules_ipv6(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 16, false); }
validate_StringRules_has_uri(const validate_StringRules * msg)1442 UPB_INLINE bool validate_StringRules_has_uri(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 17; }
validate_StringRules_uri(const validate_StringRules * msg)1443 UPB_INLINE bool validate_StringRules_uri(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 17, false); }
validate_StringRules_has_uri_ref(const validate_StringRules * msg)1444 UPB_INLINE bool validate_StringRules_has_uri_ref(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 18; }
validate_StringRules_uri_ref(const validate_StringRules * msg)1445 UPB_INLINE bool validate_StringRules_uri_ref(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 18, false); }
validate_StringRules_has_len(const validate_StringRules * msg)1446 UPB_INLINE bool validate_StringRules_has_len(const validate_StringRules *msg) { return _upb_hasbit(msg, 10); }
validate_StringRules_len(const validate_StringRules * msg)1447 UPB_INLINE uint64_t validate_StringRules_len(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t); }
validate_StringRules_has_len_bytes(const validate_StringRules * msg)1448 UPB_INLINE bool validate_StringRules_has_len_bytes(const validate_StringRules *msg) { return _upb_hasbit(msg, 11); }
validate_StringRules_len_bytes(const validate_StringRules * msg)1449 UPB_INLINE uint64_t validate_StringRules_len_bytes(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), uint64_t); }
validate_StringRules_has_address(const validate_StringRules * msg)1450 UPB_INLINE bool validate_StringRules_has_address(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 21; }
validate_StringRules_address(const validate_StringRules * msg)1451 UPB_INLINE bool validate_StringRules_address(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 21, false); }
validate_StringRules_has_uuid(const validate_StringRules * msg)1452 UPB_INLINE bool validate_StringRules_has_uuid(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 22; }
validate_StringRules_uuid(const validate_StringRules * msg)1453 UPB_INLINE bool validate_StringRules_uuid(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 22, false); }
validate_StringRules_has_not_contains(const validate_StringRules * msg)1454 UPB_INLINE bool validate_StringRules_has_not_contains(const validate_StringRules *msg) { return _upb_hasbit(msg, 12); }
validate_StringRules_not_contains(const validate_StringRules * msg)1455 UPB_INLINE upb_strview validate_StringRules_not_contains(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(100, 144), upb_strview); }
validate_StringRules_has_well_known_regex(const validate_StringRules * msg)1456 UPB_INLINE bool validate_StringRules_has_well_known_regex(const validate_StringRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(120, 180)) == 24; }
validate_StringRules_well_known_regex(const validate_StringRules * msg)1457 UPB_INLINE int32_t validate_StringRules_well_known_regex(const validate_StringRules *msg) { return UPB_READ_ONEOF(msg, int32_t, UPB_SIZE(116, 176), UPB_SIZE(120, 180), 24, 0); }
validate_StringRules_has_strict(const validate_StringRules * msg)1458 UPB_INLINE bool validate_StringRules_has_strict(const validate_StringRules *msg) { return _upb_hasbit(msg, 13); }
validate_StringRules_strict(const validate_StringRules * msg)1459 UPB_INLINE bool validate_StringRules_strict(const validate_StringRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(56, 56), bool); }
1460 
validate_StringRules_set_const(validate_StringRules * msg,upb_strview value)1461 UPB_INLINE void validate_StringRules_set_const(validate_StringRules *msg, upb_strview value) {
1462   _upb_sethas(msg, 1);
1463   *UPB_PTR_AT(msg, UPB_SIZE(60, 64), upb_strview) = value;
1464 }
validate_StringRules_set_min_len(validate_StringRules * msg,uint64_t value)1465 UPB_INLINE void validate_StringRules_set_min_len(validate_StringRules *msg, uint64_t value) {
1466   _upb_sethas(msg, 2);
1467   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
1468 }
validate_StringRules_set_max_len(validate_StringRules * msg,uint64_t value)1469 UPB_INLINE void validate_StringRules_set_max_len(validate_StringRules *msg, uint64_t value) {
1470   _upb_sethas(msg, 3);
1471   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
1472 }
validate_StringRules_set_min_bytes(validate_StringRules * msg,uint64_t value)1473 UPB_INLINE void validate_StringRules_set_min_bytes(validate_StringRules *msg, uint64_t value) {
1474   _upb_sethas(msg, 4);
1475   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
1476 }
validate_StringRules_set_max_bytes(validate_StringRules * msg,uint64_t value)1477 UPB_INLINE void validate_StringRules_set_max_bytes(validate_StringRules *msg, uint64_t value) {
1478   _upb_sethas(msg, 5);
1479   *UPB_PTR_AT(msg, UPB_SIZE(32, 32), uint64_t) = value;
1480 }
validate_StringRules_set_pattern(validate_StringRules * msg,upb_strview value)1481 UPB_INLINE void validate_StringRules_set_pattern(validate_StringRules *msg, upb_strview value) {
1482   _upb_sethas(msg, 6);
1483   *UPB_PTR_AT(msg, UPB_SIZE(68, 80), upb_strview) = value;
1484 }
validate_StringRules_set_prefix(validate_StringRules * msg,upb_strview value)1485 UPB_INLINE void validate_StringRules_set_prefix(validate_StringRules *msg, upb_strview value) {
1486   _upb_sethas(msg, 7);
1487   *UPB_PTR_AT(msg, UPB_SIZE(76, 96), upb_strview) = value;
1488 }
validate_StringRules_set_suffix(validate_StringRules * msg,upb_strview value)1489 UPB_INLINE void validate_StringRules_set_suffix(validate_StringRules *msg, upb_strview value) {
1490   _upb_sethas(msg, 8);
1491   *UPB_PTR_AT(msg, UPB_SIZE(84, 112), upb_strview) = value;
1492 }
validate_StringRules_set_contains(validate_StringRules * msg,upb_strview value)1493 UPB_INLINE void validate_StringRules_set_contains(validate_StringRules *msg, upb_strview value) {
1494   _upb_sethas(msg, 9);
1495   *UPB_PTR_AT(msg, UPB_SIZE(92, 128), upb_strview) = value;
1496 }
validate_StringRules_mutable_in(validate_StringRules * msg,size_t * len)1497 UPB_INLINE upb_strview* validate_StringRules_mutable_in(validate_StringRules *msg, size_t *len) {
1498   return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(108, 160), len);
1499 }
validate_StringRules_resize_in(validate_StringRules * msg,size_t len,upb_arena * arena)1500 UPB_INLINE upb_strview* validate_StringRules_resize_in(validate_StringRules *msg, size_t len, upb_arena *arena) {
1501   return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(108, 160), len, UPB_SIZE(3, 4), arena);
1502 }
validate_StringRules_add_in(validate_StringRules * msg,upb_strview val,upb_arena * arena)1503 UPB_INLINE bool validate_StringRules_add_in(validate_StringRules *msg, upb_strview val, upb_arena *arena) {
1504   return _upb_array_append_accessor2(msg, UPB_SIZE(108, 160), UPB_SIZE(3, 4), &val,
1505       arena);
1506 }
validate_StringRules_mutable_not_in(validate_StringRules * msg,size_t * len)1507 UPB_INLINE upb_strview* validate_StringRules_mutable_not_in(validate_StringRules *msg, size_t *len) {
1508   return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(112, 168), len);
1509 }
validate_StringRules_resize_not_in(validate_StringRules * msg,size_t len,upb_arena * arena)1510 UPB_INLINE upb_strview* validate_StringRules_resize_not_in(validate_StringRules *msg, size_t len, upb_arena *arena) {
1511   return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(112, 168), len, UPB_SIZE(3, 4), arena);
1512 }
validate_StringRules_add_not_in(validate_StringRules * msg,upb_strview val,upb_arena * arena)1513 UPB_INLINE bool validate_StringRules_add_not_in(validate_StringRules *msg, upb_strview val, upb_arena *arena) {
1514   return _upb_array_append_accessor2(msg, UPB_SIZE(112, 168), UPB_SIZE(3, 4), &val,
1515       arena);
1516 }
validate_StringRules_set_email(validate_StringRules * msg,bool value)1517 UPB_INLINE void validate_StringRules_set_email(validate_StringRules *msg, bool value) {
1518   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 12);
1519 }
validate_StringRules_set_hostname(validate_StringRules * msg,bool value)1520 UPB_INLINE void validate_StringRules_set_hostname(validate_StringRules *msg, bool value) {
1521   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 13);
1522 }
validate_StringRules_set_ip(validate_StringRules * msg,bool value)1523 UPB_INLINE void validate_StringRules_set_ip(validate_StringRules *msg, bool value) {
1524   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 14);
1525 }
validate_StringRules_set_ipv4(validate_StringRules * msg,bool value)1526 UPB_INLINE void validate_StringRules_set_ipv4(validate_StringRules *msg, bool value) {
1527   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 15);
1528 }
validate_StringRules_set_ipv6(validate_StringRules * msg,bool value)1529 UPB_INLINE void validate_StringRules_set_ipv6(validate_StringRules *msg, bool value) {
1530   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 16);
1531 }
validate_StringRules_set_uri(validate_StringRules * msg,bool value)1532 UPB_INLINE void validate_StringRules_set_uri(validate_StringRules *msg, bool value) {
1533   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 17);
1534 }
validate_StringRules_set_uri_ref(validate_StringRules * msg,bool value)1535 UPB_INLINE void validate_StringRules_set_uri_ref(validate_StringRules *msg, bool value) {
1536   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 18);
1537 }
validate_StringRules_set_len(validate_StringRules * msg,uint64_t value)1538 UPB_INLINE void validate_StringRules_set_len(validate_StringRules *msg, uint64_t value) {
1539   _upb_sethas(msg, 10);
1540   *UPB_PTR_AT(msg, UPB_SIZE(40, 40), uint64_t) = value;
1541 }
validate_StringRules_set_len_bytes(validate_StringRules * msg,uint64_t value)1542 UPB_INLINE void validate_StringRules_set_len_bytes(validate_StringRules *msg, uint64_t value) {
1543   _upb_sethas(msg, 11);
1544   *UPB_PTR_AT(msg, UPB_SIZE(48, 48), uint64_t) = value;
1545 }
validate_StringRules_set_address(validate_StringRules * msg,bool value)1546 UPB_INLINE void validate_StringRules_set_address(validate_StringRules *msg, bool value) {
1547   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 21);
1548 }
validate_StringRules_set_uuid(validate_StringRules * msg,bool value)1549 UPB_INLINE void validate_StringRules_set_uuid(validate_StringRules *msg, bool value) {
1550   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 22);
1551 }
validate_StringRules_set_not_contains(validate_StringRules * msg,upb_strview value)1552 UPB_INLINE void validate_StringRules_set_not_contains(validate_StringRules *msg, upb_strview value) {
1553   _upb_sethas(msg, 12);
1554   *UPB_PTR_AT(msg, UPB_SIZE(100, 144), upb_strview) = value;
1555 }
validate_StringRules_set_well_known_regex(validate_StringRules * msg,int32_t value)1556 UPB_INLINE void validate_StringRules_set_well_known_regex(validate_StringRules *msg, int32_t value) {
1557   UPB_WRITE_ONEOF(msg, int32_t, UPB_SIZE(116, 176), value, UPB_SIZE(120, 180), 24);
1558 }
validate_StringRules_set_strict(validate_StringRules * msg,bool value)1559 UPB_INLINE void validate_StringRules_set_strict(validate_StringRules *msg, bool value) {
1560   _upb_sethas(msg, 13);
1561   *UPB_PTR_AT(msg, UPB_SIZE(56, 56), bool) = value;
1562 }
1563 
1564 /* validate.BytesRules */
1565 
validate_BytesRules_new(upb_arena * arena)1566 UPB_INLINE validate_BytesRules *validate_BytesRules_new(upb_arena *arena) {
1567   return (validate_BytesRules *)_upb_msg_new(&validate_BytesRules_msginit, arena);
1568 }
validate_BytesRules_parse(const char * buf,size_t size,upb_arena * arena)1569 UPB_INLINE validate_BytesRules *validate_BytesRules_parse(const char *buf, size_t size,
1570                         upb_arena *arena) {
1571   validate_BytesRules *ret = validate_BytesRules_new(arena);
1572   return (ret && upb_decode(buf, size, ret, &validate_BytesRules_msginit, arena)) ? ret : NULL;
1573 }
validate_BytesRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1574 UPB_INLINE validate_BytesRules *validate_BytesRules_parse_ex(const char *buf, size_t size,
1575                            upb_arena *arena, int options) {
1576   validate_BytesRules *ret = validate_BytesRules_new(arena);
1577   return (ret && _upb_decode(buf, size, ret, &validate_BytesRules_msginit, arena, options))
1578       ? ret : NULL;
1579 }
validate_BytesRules_serialize(const validate_BytesRules * msg,upb_arena * arena,size_t * len)1580 UPB_INLINE char *validate_BytesRules_serialize(const validate_BytesRules *msg, upb_arena *arena, size_t *len) {
1581   return upb_encode(msg, &validate_BytesRules_msginit, arena, len);
1582 }
1583 
1584 typedef enum {
1585   validate_BytesRules_well_known_ip = 10,
1586   validate_BytesRules_well_known_ipv4 = 11,
1587   validate_BytesRules_well_known_ipv6 = 12,
1588   validate_BytesRules_well_known_NOT_SET = 0
1589 } validate_BytesRules_well_known_oneofcases;
validate_BytesRules_well_known_case(const validate_BytesRules * msg)1590 UPB_INLINE validate_BytesRules_well_known_oneofcases validate_BytesRules_well_known_case(const validate_BytesRules* msg) { return (validate_BytesRules_well_known_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(84, 132), int32_t); }
1591 
validate_BytesRules_has_const(const validate_BytesRules * msg)1592 UPB_INLINE bool validate_BytesRules_has_const(const validate_BytesRules *msg) { return _upb_hasbit(msg, 1); }
validate_BytesRules_const(const validate_BytesRules * msg)1593 UPB_INLINE upb_strview validate_BytesRules_const(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), upb_strview); }
validate_BytesRules_has_min_len(const validate_BytesRules * msg)1594 UPB_INLINE bool validate_BytesRules_has_min_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 2); }
validate_BytesRules_min_len(const validate_BytesRules * msg)1595 UPB_INLINE uint64_t validate_BytesRules_min_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
validate_BytesRules_has_max_len(const validate_BytesRules * msg)1596 UPB_INLINE bool validate_BytesRules_has_max_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 3); }
validate_BytesRules_max_len(const validate_BytesRules * msg)1597 UPB_INLINE uint64_t validate_BytesRules_max_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
validate_BytesRules_has_pattern(const validate_BytesRules * msg)1598 UPB_INLINE bool validate_BytesRules_has_pattern(const validate_BytesRules *msg) { return _upb_hasbit(msg, 4); }
validate_BytesRules_pattern(const validate_BytesRules * msg)1599 UPB_INLINE upb_strview validate_BytesRules_pattern(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(40, 48), upb_strview); }
validate_BytesRules_has_prefix(const validate_BytesRules * msg)1600 UPB_INLINE bool validate_BytesRules_has_prefix(const validate_BytesRules *msg) { return _upb_hasbit(msg, 5); }
validate_BytesRules_prefix(const validate_BytesRules * msg)1601 UPB_INLINE upb_strview validate_BytesRules_prefix(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(48, 64), upb_strview); }
validate_BytesRules_has_suffix(const validate_BytesRules * msg)1602 UPB_INLINE bool validate_BytesRules_has_suffix(const validate_BytesRules *msg) { return _upb_hasbit(msg, 6); }
validate_BytesRules_suffix(const validate_BytesRules * msg)1603 UPB_INLINE upb_strview validate_BytesRules_suffix(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(56, 80), upb_strview); }
validate_BytesRules_has_contains(const validate_BytesRules * msg)1604 UPB_INLINE bool validate_BytesRules_has_contains(const validate_BytesRules *msg) { return _upb_hasbit(msg, 7); }
validate_BytesRules_contains(const validate_BytesRules * msg)1605 UPB_INLINE upb_strview validate_BytesRules_contains(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(64, 96), upb_strview); }
validate_BytesRules_in(const validate_BytesRules * msg,size_t * len)1606 UPB_INLINE upb_strview const* validate_BytesRules_in(const validate_BytesRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(72, 112), len); }
validate_BytesRules_not_in(const validate_BytesRules * msg,size_t * len)1607 UPB_INLINE upb_strview const* validate_BytesRules_not_in(const validate_BytesRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(76, 120), len); }
validate_BytesRules_has_ip(const validate_BytesRules * msg)1608 UPB_INLINE bool validate_BytesRules_has_ip(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(84, 132)) == 10; }
validate_BytesRules_ip(const validate_BytesRules * msg)1609 UPB_INLINE bool validate_BytesRules_ip(const validate_BytesRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(80, 128), UPB_SIZE(84, 132), 10, false); }
validate_BytesRules_has_ipv4(const validate_BytesRules * msg)1610 UPB_INLINE bool validate_BytesRules_has_ipv4(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(84, 132)) == 11; }
validate_BytesRules_ipv4(const validate_BytesRules * msg)1611 UPB_INLINE bool validate_BytesRules_ipv4(const validate_BytesRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(80, 128), UPB_SIZE(84, 132), 11, false); }
validate_BytesRules_has_ipv6(const validate_BytesRules * msg)1612 UPB_INLINE bool validate_BytesRules_has_ipv6(const validate_BytesRules *msg) { return _upb_getoneofcase(msg, UPB_SIZE(84, 132)) == 12; }
validate_BytesRules_ipv6(const validate_BytesRules * msg)1613 UPB_INLINE bool validate_BytesRules_ipv6(const validate_BytesRules *msg) { return UPB_READ_ONEOF(msg, bool, UPB_SIZE(80, 128), UPB_SIZE(84, 132), 12, false); }
validate_BytesRules_has_len(const validate_BytesRules * msg)1614 UPB_INLINE bool validate_BytesRules_has_len(const validate_BytesRules *msg) { return _upb_hasbit(msg, 8); }
validate_BytesRules_len(const validate_BytesRules * msg)1615 UPB_INLINE uint64_t validate_BytesRules_len(const validate_BytesRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t); }
1616 
validate_BytesRules_set_const(validate_BytesRules * msg,upb_strview value)1617 UPB_INLINE void validate_BytesRules_set_const(validate_BytesRules *msg, upb_strview value) {
1618   _upb_sethas(msg, 1);
1619   *UPB_PTR_AT(msg, UPB_SIZE(32, 32), upb_strview) = value;
1620 }
validate_BytesRules_set_min_len(validate_BytesRules * msg,uint64_t value)1621 UPB_INLINE void validate_BytesRules_set_min_len(validate_BytesRules *msg, uint64_t value) {
1622   _upb_sethas(msg, 2);
1623   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
1624 }
validate_BytesRules_set_max_len(validate_BytesRules * msg,uint64_t value)1625 UPB_INLINE void validate_BytesRules_set_max_len(validate_BytesRules *msg, uint64_t value) {
1626   _upb_sethas(msg, 3);
1627   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
1628 }
validate_BytesRules_set_pattern(validate_BytesRules * msg,upb_strview value)1629 UPB_INLINE void validate_BytesRules_set_pattern(validate_BytesRules *msg, upb_strview value) {
1630   _upb_sethas(msg, 4);
1631   *UPB_PTR_AT(msg, UPB_SIZE(40, 48), upb_strview) = value;
1632 }
validate_BytesRules_set_prefix(validate_BytesRules * msg,upb_strview value)1633 UPB_INLINE void validate_BytesRules_set_prefix(validate_BytesRules *msg, upb_strview value) {
1634   _upb_sethas(msg, 5);
1635   *UPB_PTR_AT(msg, UPB_SIZE(48, 64), upb_strview) = value;
1636 }
validate_BytesRules_set_suffix(validate_BytesRules * msg,upb_strview value)1637 UPB_INLINE void validate_BytesRules_set_suffix(validate_BytesRules *msg, upb_strview value) {
1638   _upb_sethas(msg, 6);
1639   *UPB_PTR_AT(msg, UPB_SIZE(56, 80), upb_strview) = value;
1640 }
validate_BytesRules_set_contains(validate_BytesRules * msg,upb_strview value)1641 UPB_INLINE void validate_BytesRules_set_contains(validate_BytesRules *msg, upb_strview value) {
1642   _upb_sethas(msg, 7);
1643   *UPB_PTR_AT(msg, UPB_SIZE(64, 96), upb_strview) = value;
1644 }
validate_BytesRules_mutable_in(validate_BytesRules * msg,size_t * len)1645 UPB_INLINE upb_strview* validate_BytesRules_mutable_in(validate_BytesRules *msg, size_t *len) {
1646   return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(72, 112), len);
1647 }
validate_BytesRules_resize_in(validate_BytesRules * msg,size_t len,upb_arena * arena)1648 UPB_INLINE upb_strview* validate_BytesRules_resize_in(validate_BytesRules *msg, size_t len, upb_arena *arena) {
1649   return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(72, 112), len, UPB_SIZE(3, 4), arena);
1650 }
validate_BytesRules_add_in(validate_BytesRules * msg,upb_strview val,upb_arena * arena)1651 UPB_INLINE bool validate_BytesRules_add_in(validate_BytesRules *msg, upb_strview val, upb_arena *arena) {
1652   return _upb_array_append_accessor2(msg, UPB_SIZE(72, 112), UPB_SIZE(3, 4), &val,
1653       arena);
1654 }
validate_BytesRules_mutable_not_in(validate_BytesRules * msg,size_t * len)1655 UPB_INLINE upb_strview* validate_BytesRules_mutable_not_in(validate_BytesRules *msg, size_t *len) {
1656   return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(76, 120), len);
1657 }
validate_BytesRules_resize_not_in(validate_BytesRules * msg,size_t len,upb_arena * arena)1658 UPB_INLINE upb_strview* validate_BytesRules_resize_not_in(validate_BytesRules *msg, size_t len, upb_arena *arena) {
1659   return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(76, 120), len, UPB_SIZE(3, 4), arena);
1660 }
validate_BytesRules_add_not_in(validate_BytesRules * msg,upb_strview val,upb_arena * arena)1661 UPB_INLINE bool validate_BytesRules_add_not_in(validate_BytesRules *msg, upb_strview val, upb_arena *arena) {
1662   return _upb_array_append_accessor2(msg, UPB_SIZE(76, 120), UPB_SIZE(3, 4), &val,
1663       arena);
1664 }
validate_BytesRules_set_ip(validate_BytesRules * msg,bool value)1665 UPB_INLINE void validate_BytesRules_set_ip(validate_BytesRules *msg, bool value) {
1666   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(80, 128), value, UPB_SIZE(84, 132), 10);
1667 }
validate_BytesRules_set_ipv4(validate_BytesRules * msg,bool value)1668 UPB_INLINE void validate_BytesRules_set_ipv4(validate_BytesRules *msg, bool value) {
1669   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(80, 128), value, UPB_SIZE(84, 132), 11);
1670 }
validate_BytesRules_set_ipv6(validate_BytesRules * msg,bool value)1671 UPB_INLINE void validate_BytesRules_set_ipv6(validate_BytesRules *msg, bool value) {
1672   UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(80, 128), value, UPB_SIZE(84, 132), 12);
1673 }
validate_BytesRules_set_len(validate_BytesRules * msg,uint64_t value)1674 UPB_INLINE void validate_BytesRules_set_len(validate_BytesRules *msg, uint64_t value) {
1675   _upb_sethas(msg, 8);
1676   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint64_t) = value;
1677 }
1678 
1679 /* validate.EnumRules */
1680 
validate_EnumRules_new(upb_arena * arena)1681 UPB_INLINE validate_EnumRules *validate_EnumRules_new(upb_arena *arena) {
1682   return (validate_EnumRules *)_upb_msg_new(&validate_EnumRules_msginit, arena);
1683 }
validate_EnumRules_parse(const char * buf,size_t size,upb_arena * arena)1684 UPB_INLINE validate_EnumRules *validate_EnumRules_parse(const char *buf, size_t size,
1685                         upb_arena *arena) {
1686   validate_EnumRules *ret = validate_EnumRules_new(arena);
1687   return (ret && upb_decode(buf, size, ret, &validate_EnumRules_msginit, arena)) ? ret : NULL;
1688 }
validate_EnumRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1689 UPB_INLINE validate_EnumRules *validate_EnumRules_parse_ex(const char *buf, size_t size,
1690                            upb_arena *arena, int options) {
1691   validate_EnumRules *ret = validate_EnumRules_new(arena);
1692   return (ret && _upb_decode(buf, size, ret, &validate_EnumRules_msginit, arena, options))
1693       ? ret : NULL;
1694 }
validate_EnumRules_serialize(const validate_EnumRules * msg,upb_arena * arena,size_t * len)1695 UPB_INLINE char *validate_EnumRules_serialize(const validate_EnumRules *msg, upb_arena *arena, size_t *len) {
1696   return upb_encode(msg, &validate_EnumRules_msginit, arena, len);
1697 }
1698 
validate_EnumRules_has_const(const validate_EnumRules * msg)1699 UPB_INLINE bool validate_EnumRules_has_const(const validate_EnumRules *msg) { return _upb_hasbit(msg, 1); }
validate_EnumRules_const(const validate_EnumRules * msg)1700 UPB_INLINE int32_t validate_EnumRules_const(const validate_EnumRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); }
validate_EnumRules_has_defined_only(const validate_EnumRules * msg)1701 UPB_INLINE bool validate_EnumRules_has_defined_only(const validate_EnumRules *msg) { return _upb_hasbit(msg, 2); }
validate_EnumRules_defined_only(const validate_EnumRules * msg)1702 UPB_INLINE bool validate_EnumRules_defined_only(const validate_EnumRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); }
validate_EnumRules_in(const validate_EnumRules * msg,size_t * len)1703 UPB_INLINE int32_t const* validate_EnumRules_in(const validate_EnumRules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(12, 16), len); }
validate_EnumRules_not_in(const validate_EnumRules * msg,size_t * len)1704 UPB_INLINE int32_t const* validate_EnumRules_not_in(const validate_EnumRules *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(16, 24), len); }
1705 
validate_EnumRules_set_const(validate_EnumRules * msg,int32_t value)1706 UPB_INLINE void validate_EnumRules_set_const(validate_EnumRules *msg, int32_t value) {
1707   _upb_sethas(msg, 1);
1708   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
1709 }
validate_EnumRules_set_defined_only(validate_EnumRules * msg,bool value)1710 UPB_INLINE void validate_EnumRules_set_defined_only(validate_EnumRules *msg, bool value) {
1711   _upb_sethas(msg, 2);
1712   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value;
1713 }
validate_EnumRules_mutable_in(validate_EnumRules * msg,size_t * len)1714 UPB_INLINE int32_t* validate_EnumRules_mutable_in(validate_EnumRules *msg, size_t *len) {
1715   return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 16), len);
1716 }
validate_EnumRules_resize_in(validate_EnumRules * msg,size_t len,upb_arena * arena)1717 UPB_INLINE int32_t* validate_EnumRules_resize_in(validate_EnumRules *msg, size_t len, upb_arena *arena) {
1718   return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(12, 16), len, 2, arena);
1719 }
validate_EnumRules_add_in(validate_EnumRules * msg,int32_t val,upb_arena * arena)1720 UPB_INLINE bool validate_EnumRules_add_in(validate_EnumRules *msg, int32_t val, upb_arena *arena) {
1721   return _upb_array_append_accessor2(msg, UPB_SIZE(12, 16), 2, &val,
1722       arena);
1723 }
validate_EnumRules_mutable_not_in(validate_EnumRules * msg,size_t * len)1724 UPB_INLINE int32_t* validate_EnumRules_mutable_not_in(validate_EnumRules *msg, size_t *len) {
1725   return (int32_t*)_upb_array_mutable_accessor(msg, UPB_SIZE(16, 24), len);
1726 }
validate_EnumRules_resize_not_in(validate_EnumRules * msg,size_t len,upb_arena * arena)1727 UPB_INLINE int32_t* validate_EnumRules_resize_not_in(validate_EnumRules *msg, size_t len, upb_arena *arena) {
1728   return (int32_t*)_upb_array_resize_accessor2(msg, UPB_SIZE(16, 24), len, 2, arena);
1729 }
validate_EnumRules_add_not_in(validate_EnumRules * msg,int32_t val,upb_arena * arena)1730 UPB_INLINE bool validate_EnumRules_add_not_in(validate_EnumRules *msg, int32_t val, upb_arena *arena) {
1731   return _upb_array_append_accessor2(msg, UPB_SIZE(16, 24), 2, &val,
1732       arena);
1733 }
1734 
1735 /* validate.MessageRules */
1736 
validate_MessageRules_new(upb_arena * arena)1737 UPB_INLINE validate_MessageRules *validate_MessageRules_new(upb_arena *arena) {
1738   return (validate_MessageRules *)_upb_msg_new(&validate_MessageRules_msginit, arena);
1739 }
validate_MessageRules_parse(const char * buf,size_t size,upb_arena * arena)1740 UPB_INLINE validate_MessageRules *validate_MessageRules_parse(const char *buf, size_t size,
1741                         upb_arena *arena) {
1742   validate_MessageRules *ret = validate_MessageRules_new(arena);
1743   return (ret && upb_decode(buf, size, ret, &validate_MessageRules_msginit, arena)) ? ret : NULL;
1744 }
validate_MessageRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1745 UPB_INLINE validate_MessageRules *validate_MessageRules_parse_ex(const char *buf, size_t size,
1746                            upb_arena *arena, int options) {
1747   validate_MessageRules *ret = validate_MessageRules_new(arena);
1748   return (ret && _upb_decode(buf, size, ret, &validate_MessageRules_msginit, arena, options))
1749       ? ret : NULL;
1750 }
validate_MessageRules_serialize(const validate_MessageRules * msg,upb_arena * arena,size_t * len)1751 UPB_INLINE char *validate_MessageRules_serialize(const validate_MessageRules *msg, upb_arena *arena, size_t *len) {
1752   return upb_encode(msg, &validate_MessageRules_msginit, arena, len);
1753 }
1754 
validate_MessageRules_has_skip(const validate_MessageRules * msg)1755 UPB_INLINE bool validate_MessageRules_has_skip(const validate_MessageRules *msg) { return _upb_hasbit(msg, 1); }
validate_MessageRules_skip(const validate_MessageRules * msg)1756 UPB_INLINE bool validate_MessageRules_skip(const validate_MessageRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
validate_MessageRules_has_required(const validate_MessageRules * msg)1757 UPB_INLINE bool validate_MessageRules_has_required(const validate_MessageRules *msg) { return _upb_hasbit(msg, 2); }
validate_MessageRules_required(const validate_MessageRules * msg)1758 UPB_INLINE bool validate_MessageRules_required(const validate_MessageRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool); }
1759 
validate_MessageRules_set_skip(validate_MessageRules * msg,bool value)1760 UPB_INLINE void validate_MessageRules_set_skip(validate_MessageRules *msg, bool value) {
1761   _upb_sethas(msg, 1);
1762   *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
1763 }
validate_MessageRules_set_required(validate_MessageRules * msg,bool value)1764 UPB_INLINE void validate_MessageRules_set_required(validate_MessageRules *msg, bool value) {
1765   _upb_sethas(msg, 2);
1766   *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = value;
1767 }
1768 
1769 /* validate.RepeatedRules */
1770 
validate_RepeatedRules_new(upb_arena * arena)1771 UPB_INLINE validate_RepeatedRules *validate_RepeatedRules_new(upb_arena *arena) {
1772   return (validate_RepeatedRules *)_upb_msg_new(&validate_RepeatedRules_msginit, arena);
1773 }
validate_RepeatedRules_parse(const char * buf,size_t size,upb_arena * arena)1774 UPB_INLINE validate_RepeatedRules *validate_RepeatedRules_parse(const char *buf, size_t size,
1775                         upb_arena *arena) {
1776   validate_RepeatedRules *ret = validate_RepeatedRules_new(arena);
1777   return (ret && upb_decode(buf, size, ret, &validate_RepeatedRules_msginit, arena)) ? ret : NULL;
1778 }
validate_RepeatedRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1779 UPB_INLINE validate_RepeatedRules *validate_RepeatedRules_parse_ex(const char *buf, size_t size,
1780                            upb_arena *arena, int options) {
1781   validate_RepeatedRules *ret = validate_RepeatedRules_new(arena);
1782   return (ret && _upb_decode(buf, size, ret, &validate_RepeatedRules_msginit, arena, options))
1783       ? ret : NULL;
1784 }
validate_RepeatedRules_serialize(const validate_RepeatedRules * msg,upb_arena * arena,size_t * len)1785 UPB_INLINE char *validate_RepeatedRules_serialize(const validate_RepeatedRules *msg, upb_arena *arena, size_t *len) {
1786   return upb_encode(msg, &validate_RepeatedRules_msginit, arena, len);
1787 }
1788 
validate_RepeatedRules_has_min_items(const validate_RepeatedRules * msg)1789 UPB_INLINE bool validate_RepeatedRules_has_min_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 1); }
validate_RepeatedRules_min_items(const validate_RepeatedRules * msg)1790 UPB_INLINE uint64_t validate_RepeatedRules_min_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
validate_RepeatedRules_has_max_items(const validate_RepeatedRules * msg)1791 UPB_INLINE bool validate_RepeatedRules_has_max_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 2); }
validate_RepeatedRules_max_items(const validate_RepeatedRules * msg)1792 UPB_INLINE uint64_t validate_RepeatedRules_max_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
validate_RepeatedRules_has_unique(const validate_RepeatedRules * msg)1793 UPB_INLINE bool validate_RepeatedRules_has_unique(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 3); }
validate_RepeatedRules_unique(const validate_RepeatedRules * msg)1794 UPB_INLINE bool validate_RepeatedRules_unique(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
validate_RepeatedRules_has_items(const validate_RepeatedRules * msg)1795 UPB_INLINE bool validate_RepeatedRules_has_items(const validate_RepeatedRules *msg) { return _upb_hasbit(msg, 4); }
validate_RepeatedRules_items(const validate_RepeatedRules * msg)1796 UPB_INLINE const validate_FieldRules* validate_RepeatedRules_items(const validate_RepeatedRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 32), const validate_FieldRules*); }
1797 
validate_RepeatedRules_set_min_items(validate_RepeatedRules * msg,uint64_t value)1798 UPB_INLINE void validate_RepeatedRules_set_min_items(validate_RepeatedRules *msg, uint64_t value) {
1799   _upb_sethas(msg, 1);
1800   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
1801 }
validate_RepeatedRules_set_max_items(validate_RepeatedRules * msg,uint64_t value)1802 UPB_INLINE void validate_RepeatedRules_set_max_items(validate_RepeatedRules *msg, uint64_t value) {
1803   _upb_sethas(msg, 2);
1804   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
1805 }
validate_RepeatedRules_set_unique(validate_RepeatedRules * msg,bool value)1806 UPB_INLINE void validate_RepeatedRules_set_unique(validate_RepeatedRules *msg, bool value) {
1807   _upb_sethas(msg, 3);
1808   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool) = value;
1809 }
validate_RepeatedRules_set_items(validate_RepeatedRules * msg,validate_FieldRules * value)1810 UPB_INLINE void validate_RepeatedRules_set_items(validate_RepeatedRules *msg, validate_FieldRules* value) {
1811   _upb_sethas(msg, 4);
1812   *UPB_PTR_AT(msg, UPB_SIZE(28, 32), validate_FieldRules*) = value;
1813 }
validate_RepeatedRules_mutable_items(validate_RepeatedRules * msg,upb_arena * arena)1814 UPB_INLINE struct validate_FieldRules* validate_RepeatedRules_mutable_items(validate_RepeatedRules *msg, upb_arena *arena) {
1815   struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_RepeatedRules_items(msg);
1816   if (sub == NULL) {
1817     sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
1818     if (!sub) return NULL;
1819     validate_RepeatedRules_set_items(msg, sub);
1820   }
1821   return sub;
1822 }
1823 
1824 /* validate.MapRules */
1825 
validate_MapRules_new(upb_arena * arena)1826 UPB_INLINE validate_MapRules *validate_MapRules_new(upb_arena *arena) {
1827   return (validate_MapRules *)_upb_msg_new(&validate_MapRules_msginit, arena);
1828 }
validate_MapRules_parse(const char * buf,size_t size,upb_arena * arena)1829 UPB_INLINE validate_MapRules *validate_MapRules_parse(const char *buf, size_t size,
1830                         upb_arena *arena) {
1831   validate_MapRules *ret = validate_MapRules_new(arena);
1832   return (ret && upb_decode(buf, size, ret, &validate_MapRules_msginit, arena)) ? ret : NULL;
1833 }
validate_MapRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1834 UPB_INLINE validate_MapRules *validate_MapRules_parse_ex(const char *buf, size_t size,
1835                            upb_arena *arena, int options) {
1836   validate_MapRules *ret = validate_MapRules_new(arena);
1837   return (ret && _upb_decode(buf, size, ret, &validate_MapRules_msginit, arena, options))
1838       ? ret : NULL;
1839 }
validate_MapRules_serialize(const validate_MapRules * msg,upb_arena * arena,size_t * len)1840 UPB_INLINE char *validate_MapRules_serialize(const validate_MapRules *msg, upb_arena *arena, size_t *len) {
1841   return upb_encode(msg, &validate_MapRules_msginit, arena, len);
1842 }
1843 
validate_MapRules_has_min_pairs(const validate_MapRules * msg)1844 UPB_INLINE bool validate_MapRules_has_min_pairs(const validate_MapRules *msg) { return _upb_hasbit(msg, 1); }
validate_MapRules_min_pairs(const validate_MapRules * msg)1845 UPB_INLINE uint64_t validate_MapRules_min_pairs(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t); }
validate_MapRules_has_max_pairs(const validate_MapRules * msg)1846 UPB_INLINE bool validate_MapRules_has_max_pairs(const validate_MapRules *msg) { return _upb_hasbit(msg, 2); }
validate_MapRules_max_pairs(const validate_MapRules * msg)1847 UPB_INLINE uint64_t validate_MapRules_max_pairs(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t); }
validate_MapRules_has_no_sparse(const validate_MapRules * msg)1848 UPB_INLINE bool validate_MapRules_has_no_sparse(const validate_MapRules *msg) { return _upb_hasbit(msg, 3); }
validate_MapRules_no_sparse(const validate_MapRules * msg)1849 UPB_INLINE bool validate_MapRules_no_sparse(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool); }
validate_MapRules_has_keys(const validate_MapRules * msg)1850 UPB_INLINE bool validate_MapRules_has_keys(const validate_MapRules *msg) { return _upb_hasbit(msg, 4); }
validate_MapRules_keys(const validate_MapRules * msg)1851 UPB_INLINE const validate_FieldRules* validate_MapRules_keys(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 32), const validate_FieldRules*); }
validate_MapRules_has_values(const validate_MapRules * msg)1852 UPB_INLINE bool validate_MapRules_has_values(const validate_MapRules *msg) { return _upb_hasbit(msg, 5); }
validate_MapRules_values(const validate_MapRules * msg)1853 UPB_INLINE const validate_FieldRules* validate_MapRules_values(const validate_MapRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(32, 40), const validate_FieldRules*); }
1854 
validate_MapRules_set_min_pairs(validate_MapRules * msg,uint64_t value)1855 UPB_INLINE void validate_MapRules_set_min_pairs(validate_MapRules *msg, uint64_t value) {
1856   _upb_sethas(msg, 1);
1857   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), uint64_t) = value;
1858 }
validate_MapRules_set_max_pairs(validate_MapRules * msg,uint64_t value)1859 UPB_INLINE void validate_MapRules_set_max_pairs(validate_MapRules *msg, uint64_t value) {
1860   _upb_sethas(msg, 2);
1861   *UPB_PTR_AT(msg, UPB_SIZE(16, 16), uint64_t) = value;
1862 }
validate_MapRules_set_no_sparse(validate_MapRules * msg,bool value)1863 UPB_INLINE void validate_MapRules_set_no_sparse(validate_MapRules *msg, bool value) {
1864   _upb_sethas(msg, 3);
1865   *UPB_PTR_AT(msg, UPB_SIZE(24, 24), bool) = value;
1866 }
validate_MapRules_set_keys(validate_MapRules * msg,validate_FieldRules * value)1867 UPB_INLINE void validate_MapRules_set_keys(validate_MapRules *msg, validate_FieldRules* value) {
1868   _upb_sethas(msg, 4);
1869   *UPB_PTR_AT(msg, UPB_SIZE(28, 32), validate_FieldRules*) = value;
1870 }
validate_MapRules_mutable_keys(validate_MapRules * msg,upb_arena * arena)1871 UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_keys(validate_MapRules *msg, upb_arena *arena) {
1872   struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_MapRules_keys(msg);
1873   if (sub == NULL) {
1874     sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
1875     if (!sub) return NULL;
1876     validate_MapRules_set_keys(msg, sub);
1877   }
1878   return sub;
1879 }
validate_MapRules_set_values(validate_MapRules * msg,validate_FieldRules * value)1880 UPB_INLINE void validate_MapRules_set_values(validate_MapRules *msg, validate_FieldRules* value) {
1881   _upb_sethas(msg, 5);
1882   *UPB_PTR_AT(msg, UPB_SIZE(32, 40), validate_FieldRules*) = value;
1883 }
validate_MapRules_mutable_values(validate_MapRules * msg,upb_arena * arena)1884 UPB_INLINE struct validate_FieldRules* validate_MapRules_mutable_values(validate_MapRules *msg, upb_arena *arena) {
1885   struct validate_FieldRules* sub = (struct validate_FieldRules*)validate_MapRules_values(msg);
1886   if (sub == NULL) {
1887     sub = (struct validate_FieldRules*)_upb_msg_new(&validate_FieldRules_msginit, arena);
1888     if (!sub) return NULL;
1889     validate_MapRules_set_values(msg, sub);
1890   }
1891   return sub;
1892 }
1893 
1894 /* validate.AnyRules */
1895 
validate_AnyRules_new(upb_arena * arena)1896 UPB_INLINE validate_AnyRules *validate_AnyRules_new(upb_arena *arena) {
1897   return (validate_AnyRules *)_upb_msg_new(&validate_AnyRules_msginit, arena);
1898 }
validate_AnyRules_parse(const char * buf,size_t size,upb_arena * arena)1899 UPB_INLINE validate_AnyRules *validate_AnyRules_parse(const char *buf, size_t size,
1900                         upb_arena *arena) {
1901   validate_AnyRules *ret = validate_AnyRules_new(arena);
1902   return (ret && upb_decode(buf, size, ret, &validate_AnyRules_msginit, arena)) ? ret : NULL;
1903 }
validate_AnyRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1904 UPB_INLINE validate_AnyRules *validate_AnyRules_parse_ex(const char *buf, size_t size,
1905                            upb_arena *arena, int options) {
1906   validate_AnyRules *ret = validate_AnyRules_new(arena);
1907   return (ret && _upb_decode(buf, size, ret, &validate_AnyRules_msginit, arena, options))
1908       ? ret : NULL;
1909 }
validate_AnyRules_serialize(const validate_AnyRules * msg,upb_arena * arena,size_t * len)1910 UPB_INLINE char *validate_AnyRules_serialize(const validate_AnyRules *msg, upb_arena *arena, size_t *len) {
1911   return upb_encode(msg, &validate_AnyRules_msginit, arena, len);
1912 }
1913 
validate_AnyRules_has_required(const validate_AnyRules * msg)1914 UPB_INLINE bool validate_AnyRules_has_required(const validate_AnyRules *msg) { return _upb_hasbit(msg, 1); }
validate_AnyRules_required(const validate_AnyRules * msg)1915 UPB_INLINE bool validate_AnyRules_required(const validate_AnyRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
validate_AnyRules_in(const validate_AnyRules * msg,size_t * len)1916 UPB_INLINE upb_strview const* validate_AnyRules_in(const validate_AnyRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); }
validate_AnyRules_not_in(const validate_AnyRules * msg,size_t * len)1917 UPB_INLINE upb_strview const* validate_AnyRules_not_in(const validate_AnyRules *msg, size_t *len) { return (upb_strview const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); }
1918 
validate_AnyRules_set_required(validate_AnyRules * msg,bool value)1919 UPB_INLINE void validate_AnyRules_set_required(validate_AnyRules *msg, bool value) {
1920   _upb_sethas(msg, 1);
1921   *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
1922 }
validate_AnyRules_mutable_in(validate_AnyRules * msg,size_t * len)1923 UPB_INLINE upb_strview* validate_AnyRules_mutable_in(validate_AnyRules *msg, size_t *len) {
1924   return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len);
1925 }
validate_AnyRules_resize_in(validate_AnyRules * msg,size_t len,upb_arena * arena)1926 UPB_INLINE upb_strview* validate_AnyRules_resize_in(validate_AnyRules *msg, size_t len, upb_arena *arena) {
1927   return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(3, 4), arena);
1928 }
validate_AnyRules_add_in(validate_AnyRules * msg,upb_strview val,upb_arena * arena)1929 UPB_INLINE bool validate_AnyRules_add_in(validate_AnyRules *msg, upb_strview val, upb_arena *arena) {
1930   return _upb_array_append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(3, 4), &val,
1931       arena);
1932 }
validate_AnyRules_mutable_not_in(validate_AnyRules * msg,size_t * len)1933 UPB_INLINE upb_strview* validate_AnyRules_mutable_not_in(validate_AnyRules *msg, size_t *len) {
1934   return (upb_strview*)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len);
1935 }
validate_AnyRules_resize_not_in(validate_AnyRules * msg,size_t len,upb_arena * arena)1936 UPB_INLINE upb_strview* validate_AnyRules_resize_not_in(validate_AnyRules *msg, size_t len, upb_arena *arena) {
1937   return (upb_strview*)_upb_array_resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(3, 4), arena);
1938 }
validate_AnyRules_add_not_in(validate_AnyRules * msg,upb_strview val,upb_arena * arena)1939 UPB_INLINE bool validate_AnyRules_add_not_in(validate_AnyRules *msg, upb_strview val, upb_arena *arena) {
1940   return _upb_array_append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(3, 4), &val,
1941       arena);
1942 }
1943 
1944 /* validate.DurationRules */
1945 
validate_DurationRules_new(upb_arena * arena)1946 UPB_INLINE validate_DurationRules *validate_DurationRules_new(upb_arena *arena) {
1947   return (validate_DurationRules *)_upb_msg_new(&validate_DurationRules_msginit, arena);
1948 }
validate_DurationRules_parse(const char * buf,size_t size,upb_arena * arena)1949 UPB_INLINE validate_DurationRules *validate_DurationRules_parse(const char *buf, size_t size,
1950                         upb_arena *arena) {
1951   validate_DurationRules *ret = validate_DurationRules_new(arena);
1952   return (ret && upb_decode(buf, size, ret, &validate_DurationRules_msginit, arena)) ? ret : NULL;
1953 }
validate_DurationRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)1954 UPB_INLINE validate_DurationRules *validate_DurationRules_parse_ex(const char *buf, size_t size,
1955                            upb_arena *arena, int options) {
1956   validate_DurationRules *ret = validate_DurationRules_new(arena);
1957   return (ret && _upb_decode(buf, size, ret, &validate_DurationRules_msginit, arena, options))
1958       ? ret : NULL;
1959 }
validate_DurationRules_serialize(const validate_DurationRules * msg,upb_arena * arena,size_t * len)1960 UPB_INLINE char *validate_DurationRules_serialize(const validate_DurationRules *msg, upb_arena *arena, size_t *len) {
1961   return upb_encode(msg, &validate_DurationRules_msginit, arena, len);
1962 }
1963 
validate_DurationRules_has_required(const validate_DurationRules * msg)1964 UPB_INLINE bool validate_DurationRules_has_required(const validate_DurationRules *msg) { return _upb_hasbit(msg, 1); }
validate_DurationRules_required(const validate_DurationRules * msg)1965 UPB_INLINE bool validate_DurationRules_required(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); }
validate_DurationRules_has_const(const validate_DurationRules * msg)1966 UPB_INLINE bool validate_DurationRules_has_const(const validate_DurationRules *msg) { return _upb_hasbit(msg, 2); }
validate_DurationRules_const(const validate_DurationRules * msg)1967 UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_const(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Duration*); }
validate_DurationRules_has_lt(const validate_DurationRules * msg)1968 UPB_INLINE bool validate_DurationRules_has_lt(const validate_DurationRules *msg) { return _upb_hasbit(msg, 3); }
validate_DurationRules_lt(const validate_DurationRules * msg)1969 UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lt(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Duration*); }
validate_DurationRules_has_lte(const validate_DurationRules * msg)1970 UPB_INLINE bool validate_DurationRules_has_lte(const validate_DurationRules *msg) { return _upb_hasbit(msg, 4); }
validate_DurationRules_lte(const validate_DurationRules * msg)1971 UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_lte(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Duration*); }
validate_DurationRules_has_gt(const validate_DurationRules * msg)1972 UPB_INLINE bool validate_DurationRules_has_gt(const validate_DurationRules *msg) { return _upb_hasbit(msg, 5); }
validate_DurationRules_gt(const validate_DurationRules * msg)1973 UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gt(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct google_protobuf_Duration*); }
validate_DurationRules_has_gte(const validate_DurationRules * msg)1974 UPB_INLINE bool validate_DurationRules_has_gte(const validate_DurationRules *msg) { return _upb_hasbit(msg, 6); }
validate_DurationRules_gte(const validate_DurationRules * msg)1975 UPB_INLINE const struct google_protobuf_Duration* validate_DurationRules_gte(const validate_DurationRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct google_protobuf_Duration*); }
validate_DurationRules_has_in(const validate_DurationRules * msg)1976 UPB_INLINE bool validate_DurationRules_has_in(const validate_DurationRules *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 48)); }
validate_DurationRules_in(const validate_DurationRules * msg,size_t * len)1977 UPB_INLINE const struct google_protobuf_Duration* const* validate_DurationRules_in(const validate_DurationRules *msg, size_t *len) { return (const struct google_protobuf_Duration* const*)_upb_array_accessor(msg, UPB_SIZE(24, 48), len); }
validate_DurationRules_has_not_in(const validate_DurationRules * msg)1978 UPB_INLINE bool validate_DurationRules_has_not_in(const validate_DurationRules *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 56)); }
validate_DurationRules_not_in(const validate_DurationRules * msg,size_t * len)1979 UPB_INLINE const struct google_protobuf_Duration* const* validate_DurationRules_not_in(const validate_DurationRules *msg, size_t *len) { return (const struct google_protobuf_Duration* const*)_upb_array_accessor(msg, UPB_SIZE(28, 56), len); }
1980 
validate_DurationRules_set_required(validate_DurationRules * msg,bool value)1981 UPB_INLINE void validate_DurationRules_set_required(validate_DurationRules *msg, bool value) {
1982   _upb_sethas(msg, 1);
1983   *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value;
1984 }
validate_DurationRules_set_const(validate_DurationRules * msg,struct google_protobuf_Duration * value)1985 UPB_INLINE void validate_DurationRules_set_const(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
1986   _upb_sethas(msg, 2);
1987   *UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Duration*) = value;
1988 }
validate_DurationRules_mutable_const(validate_DurationRules * msg,upb_arena * arena)1989 UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_const(validate_DurationRules *msg, upb_arena *arena) {
1990   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_const(msg);
1991   if (sub == NULL) {
1992     sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
1993     if (!sub) return NULL;
1994     validate_DurationRules_set_const(msg, sub);
1995   }
1996   return sub;
1997 }
validate_DurationRules_set_lt(validate_DurationRules * msg,struct google_protobuf_Duration * value)1998 UPB_INLINE void validate_DurationRules_set_lt(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
1999   _upb_sethas(msg, 3);
2000   *UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_Duration*) = value;
2001 }
validate_DurationRules_mutable_lt(validate_DurationRules * msg,upb_arena * arena)2002 UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lt(validate_DurationRules *msg, upb_arena *arena) {
2003   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_lt(msg);
2004   if (sub == NULL) {
2005     sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2006     if (!sub) return NULL;
2007     validate_DurationRules_set_lt(msg, sub);
2008   }
2009   return sub;
2010 }
validate_DurationRules_set_lte(validate_DurationRules * msg,struct google_protobuf_Duration * value)2011 UPB_INLINE void validate_DurationRules_set_lte(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
2012   _upb_sethas(msg, 4);
2013   *UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_Duration*) = value;
2014 }
validate_DurationRules_mutable_lte(validate_DurationRules * msg,upb_arena * arena)2015 UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_lte(validate_DurationRules *msg, upb_arena *arena) {
2016   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_lte(msg);
2017   if (sub == NULL) {
2018     sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2019     if (!sub) return NULL;
2020     validate_DurationRules_set_lte(msg, sub);
2021   }
2022   return sub;
2023 }
validate_DurationRules_set_gt(validate_DurationRules * msg,struct google_protobuf_Duration * value)2024 UPB_INLINE void validate_DurationRules_set_gt(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
2025   _upb_sethas(msg, 5);
2026   *UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct google_protobuf_Duration*) = value;
2027 }
validate_DurationRules_mutable_gt(validate_DurationRules * msg,upb_arena * arena)2028 UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gt(validate_DurationRules *msg, upb_arena *arena) {
2029   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_gt(msg);
2030   if (sub == NULL) {
2031     sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2032     if (!sub) return NULL;
2033     validate_DurationRules_set_gt(msg, sub);
2034   }
2035   return sub;
2036 }
validate_DurationRules_set_gte(validate_DurationRules * msg,struct google_protobuf_Duration * value)2037 UPB_INLINE void validate_DurationRules_set_gte(validate_DurationRules *msg, struct google_protobuf_Duration* value) {
2038   _upb_sethas(msg, 6);
2039   *UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct google_protobuf_Duration*) = value;
2040 }
validate_DurationRules_mutable_gte(validate_DurationRules * msg,upb_arena * arena)2041 UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_mutable_gte(validate_DurationRules *msg, upb_arena *arena) {
2042   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_DurationRules_gte(msg);
2043   if (sub == NULL) {
2044     sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2045     if (!sub) return NULL;
2046     validate_DurationRules_set_gte(msg, sub);
2047   }
2048   return sub;
2049 }
validate_DurationRules_mutable_in(validate_DurationRules * msg,size_t * len)2050 UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_mutable_in(validate_DurationRules *msg, size_t *len) {
2051   return (struct google_protobuf_Duration**)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 48), len);
2052 }
validate_DurationRules_resize_in(validate_DurationRules * msg,size_t len,upb_arena * arena)2053 UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_resize_in(validate_DurationRules *msg, size_t len, upb_arena *arena) {
2054   return (struct google_protobuf_Duration**)_upb_array_resize_accessor2(msg, UPB_SIZE(24, 48), len, UPB_SIZE(2, 3), arena);
2055 }
validate_DurationRules_add_in(validate_DurationRules * msg,upb_arena * arena)2056 UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_in(validate_DurationRules *msg, upb_arena *arena) {
2057   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2058   bool ok = _upb_array_append_accessor2(
2059       msg, UPB_SIZE(24, 48), UPB_SIZE(2, 3), &sub, arena);
2060   if (!ok) return NULL;
2061   return sub;
2062 }
validate_DurationRules_mutable_not_in(validate_DurationRules * msg,size_t * len)2063 UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_mutable_not_in(validate_DurationRules *msg, size_t *len) {
2064   return (struct google_protobuf_Duration**)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 56), len);
2065 }
validate_DurationRules_resize_not_in(validate_DurationRules * msg,size_t len,upb_arena * arena)2066 UPB_INLINE struct google_protobuf_Duration** validate_DurationRules_resize_not_in(validate_DurationRules *msg, size_t len, upb_arena *arena) {
2067   return (struct google_protobuf_Duration**)_upb_array_resize_accessor2(msg, UPB_SIZE(28, 56), len, UPB_SIZE(2, 3), arena);
2068 }
validate_DurationRules_add_not_in(validate_DurationRules * msg,upb_arena * arena)2069 UPB_INLINE struct google_protobuf_Duration* validate_DurationRules_add_not_in(validate_DurationRules *msg, upb_arena *arena) {
2070   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2071   bool ok = _upb_array_append_accessor2(
2072       msg, UPB_SIZE(28, 56), UPB_SIZE(2, 3), &sub, arena);
2073   if (!ok) return NULL;
2074   return sub;
2075 }
2076 
2077 /* validate.TimestampRules */
2078 
validate_TimestampRules_new(upb_arena * arena)2079 UPB_INLINE validate_TimestampRules *validate_TimestampRules_new(upb_arena *arena) {
2080   return (validate_TimestampRules *)_upb_msg_new(&validate_TimestampRules_msginit, arena);
2081 }
validate_TimestampRules_parse(const char * buf,size_t size,upb_arena * arena)2082 UPB_INLINE validate_TimestampRules *validate_TimestampRules_parse(const char *buf, size_t size,
2083                         upb_arena *arena) {
2084   validate_TimestampRules *ret = validate_TimestampRules_new(arena);
2085   return (ret && upb_decode(buf, size, ret, &validate_TimestampRules_msginit, arena)) ? ret : NULL;
2086 }
validate_TimestampRules_parse_ex(const char * buf,size_t size,upb_arena * arena,int options)2087 UPB_INLINE validate_TimestampRules *validate_TimestampRules_parse_ex(const char *buf, size_t size,
2088                            upb_arena *arena, int options) {
2089   validate_TimestampRules *ret = validate_TimestampRules_new(arena);
2090   return (ret && _upb_decode(buf, size, ret, &validate_TimestampRules_msginit, arena, options))
2091       ? ret : NULL;
2092 }
validate_TimestampRules_serialize(const validate_TimestampRules * msg,upb_arena * arena,size_t * len)2093 UPB_INLINE char *validate_TimestampRules_serialize(const validate_TimestampRules *msg, upb_arena *arena, size_t *len) {
2094   return upb_encode(msg, &validate_TimestampRules_msginit, arena, len);
2095 }
2096 
validate_TimestampRules_has_required(const validate_TimestampRules * msg)2097 UPB_INLINE bool validate_TimestampRules_has_required(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 1); }
validate_TimestampRules_required(const validate_TimestampRules * msg)2098 UPB_INLINE bool validate_TimestampRules_required(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool); }
validate_TimestampRules_has_const(const validate_TimestampRules * msg)2099 UPB_INLINE bool validate_TimestampRules_has_const(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 2); }
validate_TimestampRules_const(const validate_TimestampRules * msg)2100 UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_const(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const struct google_protobuf_Timestamp*); }
validate_TimestampRules_has_lt(const validate_TimestampRules * msg)2101 UPB_INLINE bool validate_TimestampRules_has_lt(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 3); }
validate_TimestampRules_lt(const validate_TimestampRules * msg)2102 UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lt(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct google_protobuf_Timestamp*); }
validate_TimestampRules_has_lte(const validate_TimestampRules * msg)2103 UPB_INLINE bool validate_TimestampRules_has_lte(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 4); }
validate_TimestampRules_lte(const validate_TimestampRules * msg)2104 UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_lte(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const struct google_protobuf_Timestamp*); }
validate_TimestampRules_has_gt(const validate_TimestampRules * msg)2105 UPB_INLINE bool validate_TimestampRules_has_gt(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 5); }
validate_TimestampRules_gt(const validate_TimestampRules * msg)2106 UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gt(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const struct google_protobuf_Timestamp*); }
validate_TimestampRules_has_gte(const validate_TimestampRules * msg)2107 UPB_INLINE bool validate_TimestampRules_has_gte(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 6); }
validate_TimestampRules_gte(const validate_TimestampRules * msg)2108 UPB_INLINE const struct google_protobuf_Timestamp* validate_TimestampRules_gte(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const struct google_protobuf_Timestamp*); }
validate_TimestampRules_has_lt_now(const validate_TimestampRules * msg)2109 UPB_INLINE bool validate_TimestampRules_has_lt_now(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 7); }
validate_TimestampRules_lt_now(const validate_TimestampRules * msg)2110 UPB_INLINE bool validate_TimestampRules_lt_now(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool); }
validate_TimestampRules_has_gt_now(const validate_TimestampRules * msg)2111 UPB_INLINE bool validate_TimestampRules_has_gt_now(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 8); }
validate_TimestampRules_gt_now(const validate_TimestampRules * msg)2112 UPB_INLINE bool validate_TimestampRules_gt_now(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool); }
validate_TimestampRules_has_within(const validate_TimestampRules * msg)2113 UPB_INLINE bool validate_TimestampRules_has_within(const validate_TimestampRules *msg) { return _upb_hasbit(msg, 9); }
validate_TimestampRules_within(const validate_TimestampRules * msg)2114 UPB_INLINE const struct google_protobuf_Duration* validate_TimestampRules_within(const validate_TimestampRules *msg) { return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), const struct google_protobuf_Duration*); }
2115 
validate_TimestampRules_set_required(validate_TimestampRules * msg,bool value)2116 UPB_INLINE void validate_TimestampRules_set_required(validate_TimestampRules *msg, bool value) {
2117   _upb_sethas(msg, 1);
2118   *UPB_PTR_AT(msg, UPB_SIZE(2, 2), bool) = value;
2119 }
validate_TimestampRules_set_const(validate_TimestampRules * msg,struct google_protobuf_Timestamp * value)2120 UPB_INLINE void validate_TimestampRules_set_const(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
2121   _upb_sethas(msg, 2);
2122   *UPB_PTR_AT(msg, UPB_SIZE(8, 8), struct google_protobuf_Timestamp*) = value;
2123 }
validate_TimestampRules_mutable_const(validate_TimestampRules * msg,upb_arena * arena)2124 UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_const(validate_TimestampRules *msg, upb_arena *arena) {
2125   struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_const(msg);
2126   if (sub == NULL) {
2127     sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2128     if (!sub) return NULL;
2129     validate_TimestampRules_set_const(msg, sub);
2130   }
2131   return sub;
2132 }
validate_TimestampRules_set_lt(validate_TimestampRules * msg,struct google_protobuf_Timestamp * value)2133 UPB_INLINE void validate_TimestampRules_set_lt(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
2134   _upb_sethas(msg, 3);
2135   *UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct google_protobuf_Timestamp*) = value;
2136 }
validate_TimestampRules_mutable_lt(validate_TimestampRules * msg,upb_arena * arena)2137 UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lt(validate_TimestampRules *msg, upb_arena *arena) {
2138   struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_lt(msg);
2139   if (sub == NULL) {
2140     sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2141     if (!sub) return NULL;
2142     validate_TimestampRules_set_lt(msg, sub);
2143   }
2144   return sub;
2145 }
validate_TimestampRules_set_lte(validate_TimestampRules * msg,struct google_protobuf_Timestamp * value)2146 UPB_INLINE void validate_TimestampRules_set_lte(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
2147   _upb_sethas(msg, 4);
2148   *UPB_PTR_AT(msg, UPB_SIZE(16, 24), struct google_protobuf_Timestamp*) = value;
2149 }
validate_TimestampRules_mutable_lte(validate_TimestampRules * msg,upb_arena * arena)2150 UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_lte(validate_TimestampRules *msg, upb_arena *arena) {
2151   struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_lte(msg);
2152   if (sub == NULL) {
2153     sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2154     if (!sub) return NULL;
2155     validate_TimestampRules_set_lte(msg, sub);
2156   }
2157   return sub;
2158 }
validate_TimestampRules_set_gt(validate_TimestampRules * msg,struct google_protobuf_Timestamp * value)2159 UPB_INLINE void validate_TimestampRules_set_gt(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
2160   _upb_sethas(msg, 5);
2161   *UPB_PTR_AT(msg, UPB_SIZE(20, 32), struct google_protobuf_Timestamp*) = value;
2162 }
validate_TimestampRules_mutable_gt(validate_TimestampRules * msg,upb_arena * arena)2163 UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gt(validate_TimestampRules *msg, upb_arena *arena) {
2164   struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_gt(msg);
2165   if (sub == NULL) {
2166     sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2167     if (!sub) return NULL;
2168     validate_TimestampRules_set_gt(msg, sub);
2169   }
2170   return sub;
2171 }
validate_TimestampRules_set_gte(validate_TimestampRules * msg,struct google_protobuf_Timestamp * value)2172 UPB_INLINE void validate_TimestampRules_set_gte(validate_TimestampRules *msg, struct google_protobuf_Timestamp* value) {
2173   _upb_sethas(msg, 6);
2174   *UPB_PTR_AT(msg, UPB_SIZE(24, 40), struct google_protobuf_Timestamp*) = value;
2175 }
validate_TimestampRules_mutable_gte(validate_TimestampRules * msg,upb_arena * arena)2176 UPB_INLINE struct google_protobuf_Timestamp* validate_TimestampRules_mutable_gte(validate_TimestampRules *msg, upb_arena *arena) {
2177   struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)validate_TimestampRules_gte(msg);
2178   if (sub == NULL) {
2179     sub = (struct google_protobuf_Timestamp*)_upb_msg_new(&google_protobuf_Timestamp_msginit, arena);
2180     if (!sub) return NULL;
2181     validate_TimestampRules_set_gte(msg, sub);
2182   }
2183   return sub;
2184 }
validate_TimestampRules_set_lt_now(validate_TimestampRules * msg,bool value)2185 UPB_INLINE void validate_TimestampRules_set_lt_now(validate_TimestampRules *msg, bool value) {
2186   _upb_sethas(msg, 7);
2187   *UPB_PTR_AT(msg, UPB_SIZE(3, 3), bool) = value;
2188 }
validate_TimestampRules_set_gt_now(validate_TimestampRules * msg,bool value)2189 UPB_INLINE void validate_TimestampRules_set_gt_now(validate_TimestampRules *msg, bool value) {
2190   _upb_sethas(msg, 8);
2191   *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool) = value;
2192 }
validate_TimestampRules_set_within(validate_TimestampRules * msg,struct google_protobuf_Duration * value)2193 UPB_INLINE void validate_TimestampRules_set_within(validate_TimestampRules *msg, struct google_protobuf_Duration* value) {
2194   _upb_sethas(msg, 9);
2195   *UPB_PTR_AT(msg, UPB_SIZE(28, 48), struct google_protobuf_Duration*) = value;
2196 }
validate_TimestampRules_mutable_within(validate_TimestampRules * msg,upb_arena * arena)2197 UPB_INLINE struct google_protobuf_Duration* validate_TimestampRules_mutable_within(validate_TimestampRules *msg, upb_arena *arena) {
2198   struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)validate_TimestampRules_within(msg);
2199   if (sub == NULL) {
2200     sub = (struct google_protobuf_Duration*)_upb_msg_new(&google_protobuf_Duration_msginit, arena);
2201     if (!sub) return NULL;
2202     validate_TimestampRules_set_within(msg, sub);
2203   }
2204   return sub;
2205 }
2206 
2207 #ifdef __cplusplus
2208 }  /* extern "C" */
2209 #endif
2210 
2211 #include "upb/port_undef.inc"
2212 
2213 #endif  /* VALIDATE_VALIDATE_PROTO_UPB_H_ */
2214