|
@@ -1,11 +1,5 @@
|
|
// Amalgamated source file
|
|
// Amalgamated source file
|
|
|
|
|
|
-// php.h intentionally defined NDEBUG. We have to define this macro in order to
|
|
|
|
-// be used together with php.h
|
|
|
|
-#ifndef NDEBUG
|
|
|
|
-#define NDEBUG
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#if UINTPTR_MAX == 0xffffffff
|
|
#if UINTPTR_MAX == 0xffffffff
|
|
#define UPB_SIZE(size32, size64) size32
|
|
#define UPB_SIZE(size32, size64) size32
|
|
#else
|
|
#else
|
|
@@ -2013,6 +2007,8 @@ typedef enum {
|
|
*/
|
|
*/
|
|
typedef enum {
|
|
typedef enum {
|
|
UPB_WELLKNOWN_UNSPECIFIED,
|
|
UPB_WELLKNOWN_UNSPECIFIED,
|
|
|
|
+ UPB_WELLKNOWN_ANY,
|
|
|
|
+ UPB_WELLKNOWN_FIELDMASK,
|
|
UPB_WELLKNOWN_DURATION,
|
|
UPB_WELLKNOWN_DURATION,
|
|
UPB_WELLKNOWN_TIMESTAMP,
|
|
UPB_WELLKNOWN_TIMESTAMP,
|
|
/* number wrappers */
|
|
/* number wrappers */
|
|
@@ -2416,6 +2412,10 @@ typedef upb_strtable_iter upb_msg_oneof_iter;
|
|
#define UPB_MAPENTRY_KEY 1
|
|
#define UPB_MAPENTRY_KEY 1
|
|
#define UPB_MAPENTRY_VALUE 2
|
|
#define UPB_MAPENTRY_VALUE 2
|
|
|
|
|
|
|
|
+/* Well-known field tag numbers for Any messages. */
|
|
|
|
+#define UPB_ANY_TYPE 1
|
|
|
|
+#define UPB_ANY_VALUE 2
|
|
|
|
+
|
|
/* Well-known field tag numbers for timestamp messages. */
|
|
/* Well-known field tag numbers for timestamp messages. */
|
|
#define UPB_DURATION_SECONDS 1
|
|
#define UPB_DURATION_SECONDS 1
|
|
#define UPB_DURATION_NANOS 2
|
|
#define UPB_DURATION_NANOS 2
|
|
@@ -3271,6 +3271,8 @@ const upb_def *upb_symtab_resolve(const upb_symtab *s, const char *base,
|
|
const char *sym);
|
|
const char *sym);
|
|
const upb_def *upb_symtab_lookup(const upb_symtab *s, const char *sym);
|
|
const upb_def *upb_symtab_lookup(const upb_symtab *s, const char *sym);
|
|
const upb_msgdef *upb_symtab_lookupmsg(const upb_symtab *s, const char *sym);
|
|
const upb_msgdef *upb_symtab_lookupmsg(const upb_symtab *s, const char *sym);
|
|
|
|
+const upb_msgdef *upb_symtab_lookupmsg2(
|
|
|
|
+ const upb_symtab *s, const char *sym, size_t len);
|
|
const upb_enumdef *upb_symtab_lookupenum(const upb_symtab *s, const char *sym);
|
|
const upb_enumdef *upb_symtab_lookupenum(const upb_symtab *s, const char *sym);
|
|
bool upb_symtab_add(upb_symtab *s, upb_def *const*defs, size_t n,
|
|
bool upb_symtab_add(upb_symtab *s, upb_def *const*defs, size_t n,
|
|
void *ref_donor, upb_status *status);
|
|
void *ref_donor, upb_status *status);
|
|
@@ -6877,7 +6879,7 @@ typedef enum {
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_FileDescriptorSet_msginit;
|
|
extern const upb_msglayout google_protobuf_FileDescriptorSet_msginit;
|
|
UPB_INLINE google_protobuf_FileDescriptorSet *google_protobuf_FileDescriptorSet_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FileDescriptorSet *google_protobuf_FileDescriptorSet_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_FileDescriptorSet_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_FileDescriptorSet *)upb_msg_new(&google_protobuf_FileDescriptorSet_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_FileDescriptorSet *google_protobuf_FileDescriptorSet_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FileDescriptorSet *google_protobuf_FileDescriptorSet_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_FileDescriptorSet *ret = google_protobuf_FileDescriptorSet_new(arena);
|
|
google_protobuf_FileDescriptorSet *ret = google_protobuf_FileDescriptorSet_new(arena);
|
|
@@ -6896,7 +6898,7 @@ UPB_INLINE void google_protobuf_FileDescriptorSet_set_file(google_protobuf_FileD
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_FileDescriptorProto_msginit;
|
|
extern const upb_msglayout google_protobuf_FileDescriptorProto_msginit;
|
|
UPB_INLINE google_protobuf_FileDescriptorProto *google_protobuf_FileDescriptorProto_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FileDescriptorProto *google_protobuf_FileDescriptorProto_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_FileDescriptorProto_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_FileDescriptorProto *)upb_msg_new(&google_protobuf_FileDescriptorProto_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_FileDescriptorProto *google_protobuf_FileDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FileDescriptorProto *google_protobuf_FileDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_FileDescriptorProto *ret = google_protobuf_FileDescriptorProto_new(arena);
|
|
google_protobuf_FileDescriptorProto *ret = google_protobuf_FileDescriptorProto_new(arena);
|
|
@@ -6937,7 +6939,7 @@ UPB_INLINE void google_protobuf_FileDescriptorProto_set_syntax(google_protobuf_F
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_DescriptorProto_msginit;
|
|
extern const upb_msglayout google_protobuf_DescriptorProto_msginit;
|
|
UPB_INLINE google_protobuf_DescriptorProto *google_protobuf_DescriptorProto_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_DescriptorProto *google_protobuf_DescriptorProto_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_DescriptorProto_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_DescriptorProto *)upb_msg_new(&google_protobuf_DescriptorProto_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_DescriptorProto *google_protobuf_DescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_DescriptorProto *google_protobuf_DescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_DescriptorProto *ret = google_protobuf_DescriptorProto_new(arena);
|
|
google_protobuf_DescriptorProto *ret = google_protobuf_DescriptorProto_new(arena);
|
|
@@ -6974,7 +6976,7 @@ UPB_INLINE void google_protobuf_DescriptorProto_set_reserved_name(google_protobu
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_DescriptorProto_ExtensionRange_msginit;
|
|
extern const upb_msglayout google_protobuf_DescriptorProto_ExtensionRange_msginit;
|
|
UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange *google_protobuf_DescriptorProto_ExtensionRange_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange *google_protobuf_DescriptorProto_ExtensionRange_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_DescriptorProto_ExtensionRange_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_DescriptorProto_ExtensionRange *)upb_msg_new(&google_protobuf_DescriptorProto_ExtensionRange_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange *google_protobuf_DescriptorProto_ExtensionRange_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange *google_protobuf_DescriptorProto_ExtensionRange_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_DescriptorProto_ExtensionRange *ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena);
|
|
google_protobuf_DescriptorProto_ExtensionRange *ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena);
|
|
@@ -6997,7 +6999,7 @@ UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_options(googl
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_DescriptorProto_ReservedRange_msginit;
|
|
extern const upb_msglayout google_protobuf_DescriptorProto_ReservedRange_msginit;
|
|
UPB_INLINE google_protobuf_DescriptorProto_ReservedRange *google_protobuf_DescriptorProto_ReservedRange_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_DescriptorProto_ReservedRange *google_protobuf_DescriptorProto_ReservedRange_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_DescriptorProto_ReservedRange_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_DescriptorProto_ReservedRange *)upb_msg_new(&google_protobuf_DescriptorProto_ReservedRange_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_DescriptorProto_ReservedRange *google_protobuf_DescriptorProto_ReservedRange_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_DescriptorProto_ReservedRange *google_protobuf_DescriptorProto_ReservedRange_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_DescriptorProto_ReservedRange *ret = google_protobuf_DescriptorProto_ReservedRange_new(arena);
|
|
google_protobuf_DescriptorProto_ReservedRange *ret = google_protobuf_DescriptorProto_ReservedRange_new(arena);
|
|
@@ -7018,7 +7020,7 @@ UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_end(google_pro
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_ExtensionRangeOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_ExtensionRangeOptions_msginit;
|
|
UPB_INLINE google_protobuf_ExtensionRangeOptions *google_protobuf_ExtensionRangeOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_ExtensionRangeOptions *google_protobuf_ExtensionRangeOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_ExtensionRangeOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_ExtensionRangeOptions *)upb_msg_new(&google_protobuf_ExtensionRangeOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_ExtensionRangeOptions *google_protobuf_ExtensionRangeOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_ExtensionRangeOptions *google_protobuf_ExtensionRangeOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_ExtensionRangeOptions *ret = google_protobuf_ExtensionRangeOptions_new(arena);
|
|
google_protobuf_ExtensionRangeOptions *ret = google_protobuf_ExtensionRangeOptions_new(arena);
|
|
@@ -7037,7 +7039,7 @@ UPB_INLINE void google_protobuf_ExtensionRangeOptions_set_uninterpreted_option(g
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_FieldDescriptorProto_msginit;
|
|
extern const upb_msglayout google_protobuf_FieldDescriptorProto_msginit;
|
|
UPB_INLINE google_protobuf_FieldDescriptorProto *google_protobuf_FieldDescriptorProto_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FieldDescriptorProto *google_protobuf_FieldDescriptorProto_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_FieldDescriptorProto_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_FieldDescriptorProto *)upb_msg_new(&google_protobuf_FieldDescriptorProto_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_FieldDescriptorProto *google_protobuf_FieldDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FieldDescriptorProto *google_protobuf_FieldDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_FieldDescriptorProto *ret = google_protobuf_FieldDescriptorProto_new(arena);
|
|
google_protobuf_FieldDescriptorProto *ret = google_protobuf_FieldDescriptorProto_new(arena);
|
|
@@ -7074,7 +7076,7 @@ UPB_INLINE void google_protobuf_FieldDescriptorProto_set_json_name(google_protob
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_OneofDescriptorProto_msginit;
|
|
extern const upb_msglayout google_protobuf_OneofDescriptorProto_msginit;
|
|
UPB_INLINE google_protobuf_OneofDescriptorProto *google_protobuf_OneofDescriptorProto_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_OneofDescriptorProto *google_protobuf_OneofDescriptorProto_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_OneofDescriptorProto_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_OneofDescriptorProto *)upb_msg_new(&google_protobuf_OneofDescriptorProto_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_OneofDescriptorProto *google_protobuf_OneofDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_OneofDescriptorProto *google_protobuf_OneofDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_OneofDescriptorProto *ret = google_protobuf_OneofDescriptorProto_new(arena);
|
|
google_protobuf_OneofDescriptorProto *ret = google_protobuf_OneofDescriptorProto_new(arena);
|
|
@@ -7095,7 +7097,7 @@ UPB_INLINE void google_protobuf_OneofDescriptorProto_set_options(google_protobuf
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_EnumDescriptorProto_msginit;
|
|
extern const upb_msglayout google_protobuf_EnumDescriptorProto_msginit;
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto *google_protobuf_EnumDescriptorProto_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto *google_protobuf_EnumDescriptorProto_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_EnumDescriptorProto_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_EnumDescriptorProto *)upb_msg_new(&google_protobuf_EnumDescriptorProto_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto *google_protobuf_EnumDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto *google_protobuf_EnumDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_EnumDescriptorProto *ret = google_protobuf_EnumDescriptorProto_new(arena);
|
|
google_protobuf_EnumDescriptorProto *ret = google_protobuf_EnumDescriptorProto_new(arena);
|
|
@@ -7122,7 +7124,7 @@ UPB_INLINE void google_protobuf_EnumDescriptorProto_set_reserved_name(google_pro
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit;
|
|
extern const upb_msglayout google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit;
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange *google_protobuf_EnumDescriptorProto_EnumReservedRange_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange *google_protobuf_EnumDescriptorProto_EnumReservedRange_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_EnumDescriptorProto_EnumReservedRange *)upb_msg_new(&google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange *google_protobuf_EnumDescriptorProto_EnumReservedRange_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange *google_protobuf_EnumDescriptorProto_EnumReservedRange_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_EnumDescriptorProto_EnumReservedRange *ret = google_protobuf_EnumDescriptorProto_EnumReservedRange_new(arena);
|
|
google_protobuf_EnumDescriptorProto_EnumReservedRange *ret = google_protobuf_EnumDescriptorProto_EnumReservedRange_new(arena);
|
|
@@ -7143,7 +7145,7 @@ UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_set_end(go
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_EnumValueDescriptorProto_msginit;
|
|
extern const upb_msglayout google_protobuf_EnumValueDescriptorProto_msginit;
|
|
UPB_INLINE google_protobuf_EnumValueDescriptorProto *google_protobuf_EnumValueDescriptorProto_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumValueDescriptorProto *google_protobuf_EnumValueDescriptorProto_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_EnumValueDescriptorProto_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_EnumValueDescriptorProto *)upb_msg_new(&google_protobuf_EnumValueDescriptorProto_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_EnumValueDescriptorProto *google_protobuf_EnumValueDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumValueDescriptorProto *google_protobuf_EnumValueDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_EnumValueDescriptorProto *ret = google_protobuf_EnumValueDescriptorProto_new(arena);
|
|
google_protobuf_EnumValueDescriptorProto *ret = google_protobuf_EnumValueDescriptorProto_new(arena);
|
|
@@ -7166,7 +7168,7 @@ UPB_INLINE void google_protobuf_EnumValueDescriptorProto_set_options(google_prot
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_ServiceDescriptorProto_msginit;
|
|
extern const upb_msglayout google_protobuf_ServiceDescriptorProto_msginit;
|
|
UPB_INLINE google_protobuf_ServiceDescriptorProto *google_protobuf_ServiceDescriptorProto_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_ServiceDescriptorProto *google_protobuf_ServiceDescriptorProto_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_ServiceDescriptorProto_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_ServiceDescriptorProto *)upb_msg_new(&google_protobuf_ServiceDescriptorProto_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_ServiceDescriptorProto *google_protobuf_ServiceDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_ServiceDescriptorProto *google_protobuf_ServiceDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_ServiceDescriptorProto *ret = google_protobuf_ServiceDescriptorProto_new(arena);
|
|
google_protobuf_ServiceDescriptorProto *ret = google_protobuf_ServiceDescriptorProto_new(arena);
|
|
@@ -7189,7 +7191,7 @@ UPB_INLINE void google_protobuf_ServiceDescriptorProto_set_options(google_protob
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_MethodDescriptorProto_msginit;
|
|
extern const upb_msglayout google_protobuf_MethodDescriptorProto_msginit;
|
|
UPB_INLINE google_protobuf_MethodDescriptorProto *google_protobuf_MethodDescriptorProto_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_MethodDescriptorProto *google_protobuf_MethodDescriptorProto_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_MethodDescriptorProto_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_MethodDescriptorProto *)upb_msg_new(&google_protobuf_MethodDescriptorProto_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_MethodDescriptorProto *google_protobuf_MethodDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_MethodDescriptorProto *google_protobuf_MethodDescriptorProto_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_MethodDescriptorProto *ret = google_protobuf_MethodDescriptorProto_new(arena);
|
|
google_protobuf_MethodDescriptorProto *ret = google_protobuf_MethodDescriptorProto_new(arena);
|
|
@@ -7218,7 +7220,7 @@ UPB_INLINE void google_protobuf_MethodDescriptorProto_set_server_streaming(googl
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_FileOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_FileOptions_msginit;
|
|
UPB_INLINE google_protobuf_FileOptions *google_protobuf_FileOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FileOptions *google_protobuf_FileOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_FileOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_FileOptions *)upb_msg_new(&google_protobuf_FileOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_FileOptions *google_protobuf_FileOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FileOptions *google_protobuf_FileOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_FileOptions *ret = google_protobuf_FileOptions_new(arena);
|
|
google_protobuf_FileOptions *ret = google_protobuf_FileOptions_new(arena);
|
|
@@ -7273,7 +7275,7 @@ UPB_INLINE void google_protobuf_FileOptions_set_uninterpreted_option(google_prot
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_MessageOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_MessageOptions_msginit;
|
|
UPB_INLINE google_protobuf_MessageOptions *google_protobuf_MessageOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_MessageOptions *google_protobuf_MessageOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_MessageOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_MessageOptions *)upb_msg_new(&google_protobuf_MessageOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_MessageOptions *google_protobuf_MessageOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_MessageOptions *google_protobuf_MessageOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_MessageOptions *ret = google_protobuf_MessageOptions_new(arena);
|
|
google_protobuf_MessageOptions *ret = google_protobuf_MessageOptions_new(arena);
|
|
@@ -7300,7 +7302,7 @@ UPB_INLINE void google_protobuf_MessageOptions_set_uninterpreted_option(google_p
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_FieldOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_FieldOptions_msginit;
|
|
UPB_INLINE google_protobuf_FieldOptions *google_protobuf_FieldOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FieldOptions *google_protobuf_FieldOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_FieldOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_FieldOptions *)upb_msg_new(&google_protobuf_FieldOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_FieldOptions *google_protobuf_FieldOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_FieldOptions *google_protobuf_FieldOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_FieldOptions *ret = google_protobuf_FieldOptions_new(arena);
|
|
google_protobuf_FieldOptions *ret = google_protobuf_FieldOptions_new(arena);
|
|
@@ -7331,7 +7333,7 @@ UPB_INLINE void google_protobuf_FieldOptions_set_uninterpreted_option(google_pro
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_OneofOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_OneofOptions_msginit;
|
|
UPB_INLINE google_protobuf_OneofOptions *google_protobuf_OneofOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_OneofOptions *google_protobuf_OneofOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_OneofOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_OneofOptions *)upb_msg_new(&google_protobuf_OneofOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_OneofOptions *google_protobuf_OneofOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_OneofOptions *google_protobuf_OneofOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_OneofOptions *ret = google_protobuf_OneofOptions_new(arena);
|
|
google_protobuf_OneofOptions *ret = google_protobuf_OneofOptions_new(arena);
|
|
@@ -7350,7 +7352,7 @@ UPB_INLINE void google_protobuf_OneofOptions_set_uninterpreted_option(google_pro
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_EnumOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_EnumOptions_msginit;
|
|
UPB_INLINE google_protobuf_EnumOptions *google_protobuf_EnumOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumOptions *google_protobuf_EnumOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_EnumOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_EnumOptions *)upb_msg_new(&google_protobuf_EnumOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_EnumOptions *google_protobuf_EnumOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumOptions *google_protobuf_EnumOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_EnumOptions *ret = google_protobuf_EnumOptions_new(arena);
|
|
google_protobuf_EnumOptions *ret = google_protobuf_EnumOptions_new(arena);
|
|
@@ -7373,7 +7375,7 @@ UPB_INLINE void google_protobuf_EnumOptions_set_uninterpreted_option(google_prot
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_EnumValueOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_EnumValueOptions_msginit;
|
|
UPB_INLINE google_protobuf_EnumValueOptions *google_protobuf_EnumValueOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumValueOptions *google_protobuf_EnumValueOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_EnumValueOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_EnumValueOptions *)upb_msg_new(&google_protobuf_EnumValueOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_EnumValueOptions *google_protobuf_EnumValueOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_EnumValueOptions *google_protobuf_EnumValueOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_EnumValueOptions *ret = google_protobuf_EnumValueOptions_new(arena);
|
|
google_protobuf_EnumValueOptions *ret = google_protobuf_EnumValueOptions_new(arena);
|
|
@@ -7394,7 +7396,7 @@ UPB_INLINE void google_protobuf_EnumValueOptions_set_uninterpreted_option(google
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_ServiceOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_ServiceOptions_msginit;
|
|
UPB_INLINE google_protobuf_ServiceOptions *google_protobuf_ServiceOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_ServiceOptions *google_protobuf_ServiceOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_ServiceOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_ServiceOptions *)upb_msg_new(&google_protobuf_ServiceOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_ServiceOptions *google_protobuf_ServiceOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_ServiceOptions *google_protobuf_ServiceOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_ServiceOptions *ret = google_protobuf_ServiceOptions_new(arena);
|
|
google_protobuf_ServiceOptions *ret = google_protobuf_ServiceOptions_new(arena);
|
|
@@ -7415,7 +7417,7 @@ UPB_INLINE void google_protobuf_ServiceOptions_set_uninterpreted_option(google_p
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_MethodOptions_msginit;
|
|
extern const upb_msglayout google_protobuf_MethodOptions_msginit;
|
|
UPB_INLINE google_protobuf_MethodOptions *google_protobuf_MethodOptions_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_MethodOptions *google_protobuf_MethodOptions_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_MethodOptions_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_MethodOptions *)upb_msg_new(&google_protobuf_MethodOptions_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_MethodOptions *google_protobuf_MethodOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_MethodOptions *google_protobuf_MethodOptions_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_MethodOptions *ret = google_protobuf_MethodOptions_new(arena);
|
|
google_protobuf_MethodOptions *ret = google_protobuf_MethodOptions_new(arena);
|
|
@@ -7438,7 +7440,7 @@ UPB_INLINE void google_protobuf_MethodOptions_set_uninterpreted_option(google_pr
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_UninterpretedOption_msginit;
|
|
extern const upb_msglayout google_protobuf_UninterpretedOption_msginit;
|
|
UPB_INLINE google_protobuf_UninterpretedOption *google_protobuf_UninterpretedOption_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_UninterpretedOption *google_protobuf_UninterpretedOption_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_UninterpretedOption_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_UninterpretedOption *)upb_msg_new(&google_protobuf_UninterpretedOption_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_UninterpretedOption *google_protobuf_UninterpretedOption_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_UninterpretedOption *google_protobuf_UninterpretedOption_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_UninterpretedOption *ret = google_protobuf_UninterpretedOption_new(arena);
|
|
google_protobuf_UninterpretedOption *ret = google_protobuf_UninterpretedOption_new(arena);
|
|
@@ -7469,7 +7471,7 @@ UPB_INLINE void google_protobuf_UninterpretedOption_set_aggregate_value(google_p
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_UninterpretedOption_NamePart_msginit;
|
|
extern const upb_msglayout google_protobuf_UninterpretedOption_NamePart_msginit;
|
|
UPB_INLINE google_protobuf_UninterpretedOption_NamePart *google_protobuf_UninterpretedOption_NamePart_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_UninterpretedOption_NamePart *google_protobuf_UninterpretedOption_NamePart_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_UninterpretedOption_NamePart_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_UninterpretedOption_NamePart *)upb_msg_new(&google_protobuf_UninterpretedOption_NamePart_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_UninterpretedOption_NamePart *google_protobuf_UninterpretedOption_NamePart_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_UninterpretedOption_NamePart *google_protobuf_UninterpretedOption_NamePart_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_UninterpretedOption_NamePart *ret = google_protobuf_UninterpretedOption_NamePart_new(arena);
|
|
google_protobuf_UninterpretedOption_NamePart *ret = google_protobuf_UninterpretedOption_NamePart_new(arena);
|
|
@@ -7490,7 +7492,7 @@ UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_set_is_extension(go
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_SourceCodeInfo_msginit;
|
|
extern const upb_msglayout google_protobuf_SourceCodeInfo_msginit;
|
|
UPB_INLINE google_protobuf_SourceCodeInfo *google_protobuf_SourceCodeInfo_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_SourceCodeInfo *google_protobuf_SourceCodeInfo_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_SourceCodeInfo_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_SourceCodeInfo *)upb_msg_new(&google_protobuf_SourceCodeInfo_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_SourceCodeInfo *google_protobuf_SourceCodeInfo_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_SourceCodeInfo *google_protobuf_SourceCodeInfo_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_SourceCodeInfo *ret = google_protobuf_SourceCodeInfo_new(arena);
|
|
google_protobuf_SourceCodeInfo *ret = google_protobuf_SourceCodeInfo_new(arena);
|
|
@@ -7509,7 +7511,7 @@ UPB_INLINE void google_protobuf_SourceCodeInfo_set_location(google_protobuf_Sour
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_SourceCodeInfo_Location_msginit;
|
|
extern const upb_msglayout google_protobuf_SourceCodeInfo_Location_msginit;
|
|
UPB_INLINE google_protobuf_SourceCodeInfo_Location *google_protobuf_SourceCodeInfo_Location_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_SourceCodeInfo_Location *google_protobuf_SourceCodeInfo_Location_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_SourceCodeInfo_Location_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_SourceCodeInfo_Location *)upb_msg_new(&google_protobuf_SourceCodeInfo_Location_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_SourceCodeInfo_Location *google_protobuf_SourceCodeInfo_Location_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_SourceCodeInfo_Location *google_protobuf_SourceCodeInfo_Location_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_SourceCodeInfo_Location *ret = google_protobuf_SourceCodeInfo_Location_new(arena);
|
|
google_protobuf_SourceCodeInfo_Location *ret = google_protobuf_SourceCodeInfo_Location_new(arena);
|
|
@@ -7536,7 +7538,7 @@ UPB_INLINE void google_protobuf_SourceCodeInfo_Location_set_leading_detached_com
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_GeneratedCodeInfo_msginit;
|
|
extern const upb_msglayout google_protobuf_GeneratedCodeInfo_msginit;
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo *google_protobuf_GeneratedCodeInfo_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo *google_protobuf_GeneratedCodeInfo_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_GeneratedCodeInfo_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_GeneratedCodeInfo *)upb_msg_new(&google_protobuf_GeneratedCodeInfo_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo *google_protobuf_GeneratedCodeInfo_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo *google_protobuf_GeneratedCodeInfo_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_GeneratedCodeInfo *ret = google_protobuf_GeneratedCodeInfo_new(arena);
|
|
google_protobuf_GeneratedCodeInfo *ret = google_protobuf_GeneratedCodeInfo_new(arena);
|
|
@@ -7555,7 +7557,7 @@ UPB_INLINE void google_protobuf_GeneratedCodeInfo_set_annotation(google_protobuf
|
|
|
|
|
|
extern const upb_msglayout google_protobuf_GeneratedCodeInfo_Annotation_msginit;
|
|
extern const upb_msglayout google_protobuf_GeneratedCodeInfo_Annotation_msginit;
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation *google_protobuf_GeneratedCodeInfo_Annotation_new(upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation *google_protobuf_GeneratedCodeInfo_Annotation_new(upb_arena *arena) {
|
|
- return upb_msg_new(&google_protobuf_GeneratedCodeInfo_Annotation_msginit, arena);
|
|
|
|
|
|
+ return (google_protobuf_GeneratedCodeInfo_Annotation *)upb_msg_new(&google_protobuf_GeneratedCodeInfo_Annotation_msginit, arena);
|
|
}
|
|
}
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation *google_protobuf_GeneratedCodeInfo_Annotation_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation *google_protobuf_GeneratedCodeInfo_Annotation_parsenew(upb_stringview buf, upb_arena *arena) {
|
|
google_protobuf_GeneratedCodeInfo_Annotation *ret = google_protobuf_GeneratedCodeInfo_Annotation_new(arena);
|
|
google_protobuf_GeneratedCodeInfo_Annotation *ret = google_protobuf_GeneratedCodeInfo_Annotation_new(arena);
|
|
@@ -9567,7 +9569,7 @@ UPB_DECLARE_DERIVED_TYPE(upb::json::ParserMethod, upb::RefCounted,
|
|
* constructed. This hint may be an overestimate for some build configurations.
|
|
* constructed. This hint may be an overestimate for some build configurations.
|
|
* But if the parser library is upgraded without recompiling the application,
|
|
* But if the parser library is upgraded without recompiling the application,
|
|
* it may be an underestimate. */
|
|
* it may be an underestimate. */
|
|
-#define UPB_JSON_PARSER_SIZE 4160
|
|
|
|
|
|
+#define UPB_JSON_PARSER_SIZE 5712
|
|
|
|
|
|
#ifdef __cplusplus
|
|
#ifdef __cplusplus
|
|
|
|
|
|
@@ -9576,6 +9578,7 @@ UPB_DECLARE_DERIVED_TYPE(upb::json::ParserMethod, upb::RefCounted,
|
|
class upb::json::Parser {
|
|
class upb::json::Parser {
|
|
public:
|
|
public:
|
|
static Parser* Create(Environment* env, const ParserMethod* method,
|
|
static Parser* Create(Environment* env, const ParserMethod* method,
|
|
|
|
+ const SymbolTable* symtab,
|
|
Sink* output, bool ignore_json_unknown);
|
|
Sink* output, bool ignore_json_unknown);
|
|
|
|
|
|
BytesSink* input();
|
|
BytesSink* input();
|
|
@@ -9610,6 +9613,7 @@ UPB_BEGIN_EXTERN_C
|
|
|
|
|
|
upb_json_parser* upb_json_parser_create(upb_env* e,
|
|
upb_json_parser* upb_json_parser_create(upb_env* e,
|
|
const upb_json_parsermethod* m,
|
|
const upb_json_parsermethod* m,
|
|
|
|
+ const upb_symtab* symtab,
|
|
upb_sink* output,
|
|
upb_sink* output,
|
|
bool ignore_json_unknown);
|
|
bool ignore_json_unknown);
|
|
upb_bytessink *upb_json_parser_input(upb_json_parser *p);
|
|
upb_bytessink *upb_json_parser_input(upb_json_parser *p);
|
|
@@ -9631,8 +9635,10 @@ UPB_END_EXTERN_C
|
|
namespace upb {
|
|
namespace upb {
|
|
namespace json {
|
|
namespace json {
|
|
inline Parser* Parser::Create(Environment* env, const ParserMethod* method,
|
|
inline Parser* Parser::Create(Environment* env, const ParserMethod* method,
|
|
|
|
+ const SymbolTable* symtab,
|
|
Sink* output, bool ignore_json_unknown) {
|
|
Sink* output, bool ignore_json_unknown) {
|
|
- return upb_json_parser_create(env, method, output, ignore_json_unknown);
|
|
|
|
|
|
+ return upb_json_parser_create(
|
|
|
|
+ env, method, symtab, output, ignore_json_unknown);
|
|
}
|
|
}
|
|
inline BytesSink* Parser::input() {
|
|
inline BytesSink* Parser::input() {
|
|
return upb_json_parser_input(this);
|
|
return upb_json_parser_input(this);
|