|
|
@ -1,11 +1,4 @@ |
|
|
|
/* 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdint.h> |
|
|
|
#include <stdint.h> |
|
|
|
#ifndef UINTPTR_MAX |
|
|
|
#ifndef UINTPTR_MAX |
|
|
|
#error must include stdint.h first |
|
|
|
#error must include stdint.h first |
|
|
@ -869,7 +862,8 @@ UPB_INLINE bool _upb_has_oneof_field(const void *msg, size_t case_ofs, int32_t n |
|
|
|
extern "C" { |
|
|
|
extern "C" { |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
bool upb_decode(upb_strview buf, upb_msg *msg, const upb_msglayout *l); |
|
|
|
bool upb_decode(const char *buf, size_t size, upb_msg *msg, |
|
|
|
|
|
|
|
const upb_msglayout *l); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
#ifdef __cplusplus |
|
|
|
} /* extern "C" */ |
|
|
|
} /* extern "C" */ |
|
|
@ -1035,14 +1029,16 @@ typedef enum { |
|
|
|
google_protobuf_MethodOptions_IDEMPOTENT = 2 |
|
|
|
google_protobuf_MethodOptions_IDEMPOTENT = 2 |
|
|
|
} google_protobuf_MethodOptions_IdempotencyLevel; |
|
|
|
} google_protobuf_MethodOptions_IdempotencyLevel; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* google.protobuf.FileDescriptorSet */ |
|
|
|
/* google.protobuf.FileDescriptorSet */ |
|
|
|
|
|
|
|
|
|
|
|
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 (google_protobuf_FileDescriptorSet *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_FileDescriptorSet *google_protobuf_FileDescriptorSet_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_FileDescriptorSet *ret = google_protobuf_FileDescriptorSet_new(arena); |
|
|
|
google_protobuf_FileDescriptorSet *ret = google_protobuf_FileDescriptorSet_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_FileDescriptorSet_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_FileDescriptorSet_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_FileDescriptorSet_serialize(const google_protobuf_FileDescriptorSet *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_FileDescriptorSet_serialize(const google_protobuf_FileDescriptorSet *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_FileDescriptorSet_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_FileDescriptorSet_msginit, arena, len); |
|
|
@ -1070,9 +1066,10 @@ UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_FileDescr |
|
|
|
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 (google_protobuf_FileDescriptorProto *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_FileDescriptorProto *google_protobuf_FileDescriptorProto_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_FileDescriptorProto *ret = google_protobuf_FileDescriptorProto_new(arena); |
|
|
|
google_protobuf_FileDescriptorProto *ret = google_protobuf_FileDescriptorProto_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_FileDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_FileDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_FileDescriptorProto_serialize(const google_protobuf_FileDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_FileDescriptorProto_serialize(const google_protobuf_FileDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_FileDescriptorProto_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_FileDescriptorProto_msginit, arena, len); |
|
|
@ -1223,9 +1220,10 @@ UPB_INLINE void google_protobuf_FileDescriptorProto_set_syntax(google_protobuf_F |
|
|
|
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 (google_protobuf_DescriptorProto *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_DescriptorProto *google_protobuf_DescriptorProto_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_DescriptorProto *ret = google_protobuf_DescriptorProto_new(arena); |
|
|
|
google_protobuf_DescriptorProto *ret = google_protobuf_DescriptorProto_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_DescriptorProto_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_DescriptorProto_serialize(const google_protobuf_DescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_DescriptorProto_serialize(const google_protobuf_DescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_DescriptorProto_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_DescriptorProto_msginit, arena, len); |
|
|
@ -1369,9 +1367,10 @@ UPB_INLINE bool google_protobuf_DescriptorProto_add_reserved_name(google_protobu |
|
|
|
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 (google_protobuf_DescriptorProto_ExtensionRange *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange *google_protobuf_DescriptorProto_ExtensionRange_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
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); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_DescriptorProto_ExtensionRange_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_ExtensionRange_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_DescriptorProto_ExtensionRange_serialize(const google_protobuf_DescriptorProto_ExtensionRange *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_DescriptorProto_ExtensionRange_serialize(const google_protobuf_DescriptorProto_ExtensionRange *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_DescriptorProto_ExtensionRange_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_DescriptorProto_ExtensionRange_msginit, arena, len); |
|
|
@ -1412,9 +1411,10 @@ UPB_INLINE struct google_protobuf_ExtensionRangeOptions* google_protobuf_Descrip |
|
|
|
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 (google_protobuf_DescriptorProto_ReservedRange *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_DescriptorProto_ReservedRange *google_protobuf_DescriptorProto_ReservedRange_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
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); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_DescriptorProto_ReservedRange_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_ReservedRange_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_DescriptorProto_ReservedRange_serialize(const google_protobuf_DescriptorProto_ReservedRange *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_DescriptorProto_ReservedRange_serialize(const google_protobuf_DescriptorProto_ReservedRange *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_DescriptorProto_ReservedRange_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_DescriptorProto_ReservedRange_msginit, arena, len); |
|
|
@ -1440,9 +1440,10 @@ UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_end(google_pro |
|
|
|
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 (google_protobuf_ExtensionRangeOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_ExtensionRangeOptions *google_protobuf_ExtensionRangeOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_ExtensionRangeOptions *ret = google_protobuf_ExtensionRangeOptions_new(arena); |
|
|
|
google_protobuf_ExtensionRangeOptions *ret = google_protobuf_ExtensionRangeOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_ExtensionRangeOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_ExtensionRangeOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_ExtensionRangeOptions_serialize(const google_protobuf_ExtensionRangeOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_ExtensionRangeOptions_serialize(const google_protobuf_ExtensionRangeOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_ExtensionRangeOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_ExtensionRangeOptions_msginit, arena, len); |
|
|
@ -1470,9 +1471,10 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_Extension |
|
|
|
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 (google_protobuf_FieldDescriptorProto *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_FieldDescriptorProto *google_protobuf_FieldDescriptorProto_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_FieldDescriptorProto *ret = google_protobuf_FieldDescriptorProto_new(arena); |
|
|
|
google_protobuf_FieldDescriptorProto *ret = google_protobuf_FieldDescriptorProto_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_FieldDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_FieldDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_FieldDescriptorProto_serialize(const google_protobuf_FieldDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_FieldDescriptorProto_serialize(const google_protobuf_FieldDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_FieldDescriptorProto_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_FieldDescriptorProto_msginit, arena, len); |
|
|
@ -1485,9 +1487,9 @@ UPB_INLINE upb_strview google_protobuf_FieldDescriptorProto_extendee(const googl |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_number(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 3); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_number(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 3); } |
|
|
|
UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_number(const google_protobuf_FieldDescriptorProto *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(24, 24)); } |
|
|
|
UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_number(const google_protobuf_FieldDescriptorProto *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(24, 24)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_label(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 1); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_label(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 1); } |
|
|
|
UPB_INLINE google_protobuf_FieldDescriptorProto_Label google_protobuf_FieldDescriptorProto_label(const google_protobuf_FieldDescriptorProto *msg) { return UPB_FIELD_AT(msg, google_protobuf_FieldDescriptorProto_Label, UPB_SIZE(8, 8)); } |
|
|
|
UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_label(const google_protobuf_FieldDescriptorProto *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(8, 8)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_type(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 2); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_type(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 2); } |
|
|
|
UPB_INLINE google_protobuf_FieldDescriptorProto_Type google_protobuf_FieldDescriptorProto_type(const google_protobuf_FieldDescriptorProto *msg) { return UPB_FIELD_AT(msg, google_protobuf_FieldDescriptorProto_Type, UPB_SIZE(16, 16)); } |
|
|
|
UPB_INLINE int32_t google_protobuf_FieldDescriptorProto_type(const google_protobuf_FieldDescriptorProto *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(16, 16)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_type_name(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 7); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_type_name(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 7); } |
|
|
|
UPB_INLINE upb_strview google_protobuf_FieldDescriptorProto_type_name(const google_protobuf_FieldDescriptorProto *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(48, 64)); } |
|
|
|
UPB_INLINE upb_strview google_protobuf_FieldDescriptorProto_type_name(const google_protobuf_FieldDescriptorProto *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(48, 64)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_default_value(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 8); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_default_value(const google_protobuf_FieldDescriptorProto *msg) { return _upb_has_field(msg, 8); } |
|
|
@ -1511,13 +1513,13 @@ UPB_INLINE void google_protobuf_FieldDescriptorProto_set_number(google_protobuf_ |
|
|
|
_upb_sethas(msg, 3); |
|
|
|
_upb_sethas(msg, 3); |
|
|
|
UPB_FIELD_AT(msg, int32_t, UPB_SIZE(24, 24)) = value; |
|
|
|
UPB_FIELD_AT(msg, int32_t, UPB_SIZE(24, 24)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_FieldDescriptorProto_set_label(google_protobuf_FieldDescriptorProto *msg, google_protobuf_FieldDescriptorProto_Label value) { |
|
|
|
UPB_INLINE void google_protobuf_FieldDescriptorProto_set_label(google_protobuf_FieldDescriptorProto *msg, int32_t value) { |
|
|
|
_upb_sethas(msg, 1); |
|
|
|
_upb_sethas(msg, 1); |
|
|
|
UPB_FIELD_AT(msg, google_protobuf_FieldDescriptorProto_Label, UPB_SIZE(8, 8)) = value; |
|
|
|
UPB_FIELD_AT(msg, int32_t, UPB_SIZE(8, 8)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_FieldDescriptorProto_set_type(google_protobuf_FieldDescriptorProto *msg, google_protobuf_FieldDescriptorProto_Type value) { |
|
|
|
UPB_INLINE void google_protobuf_FieldDescriptorProto_set_type(google_protobuf_FieldDescriptorProto *msg, int32_t value) { |
|
|
|
_upb_sethas(msg, 2); |
|
|
|
_upb_sethas(msg, 2); |
|
|
|
UPB_FIELD_AT(msg, google_protobuf_FieldDescriptorProto_Type, UPB_SIZE(16, 16)) = value; |
|
|
|
UPB_FIELD_AT(msg, int32_t, UPB_SIZE(16, 16)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_FieldDescriptorProto_set_type_name(google_protobuf_FieldDescriptorProto *msg, upb_strview value) { |
|
|
|
UPB_INLINE void google_protobuf_FieldDescriptorProto_set_type_name(google_protobuf_FieldDescriptorProto *msg, upb_strview value) { |
|
|
|
_upb_sethas(msg, 7); |
|
|
|
_upb_sethas(msg, 7); |
|
|
@ -1555,9 +1557,10 @@ UPB_INLINE void google_protobuf_FieldDescriptorProto_set_json_name(google_protob |
|
|
|
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 (google_protobuf_OneofDescriptorProto *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_OneofDescriptorProto *google_protobuf_OneofDescriptorProto_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_OneofDescriptorProto *ret = google_protobuf_OneofDescriptorProto_new(arena); |
|
|
|
google_protobuf_OneofDescriptorProto *ret = google_protobuf_OneofDescriptorProto_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_OneofDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_OneofDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_OneofDescriptorProto_serialize(const google_protobuf_OneofDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_OneofDescriptorProto_serialize(const google_protobuf_OneofDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_OneofDescriptorProto_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_OneofDescriptorProto_msginit, arena, len); |
|
|
@ -1592,9 +1595,10 @@ UPB_INLINE struct google_protobuf_OneofOptions* google_protobuf_OneofDescriptorP |
|
|
|
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 (google_protobuf_EnumDescriptorProto *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto *google_protobuf_EnumDescriptorProto_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_EnumDescriptorProto *ret = google_protobuf_EnumDescriptorProto_new(arena); |
|
|
|
google_protobuf_EnumDescriptorProto *ret = google_protobuf_EnumDescriptorProto_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_EnumDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_EnumDescriptorProto_serialize(const google_protobuf_EnumDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_EnumDescriptorProto_serialize(const google_protobuf_EnumDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_EnumDescriptorProto_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_EnumDescriptorProto_msginit, arena, len); |
|
|
@ -1668,9 +1672,10 @@ UPB_INLINE bool google_protobuf_EnumDescriptorProto_add_reserved_name(google_pro |
|
|
|
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 (google_protobuf_EnumDescriptorProto_EnumReservedRange *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange *google_protobuf_EnumDescriptorProto_EnumReservedRange_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
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); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize(const google_protobuf_EnumDescriptorProto_EnumReservedRange *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize(const google_protobuf_EnumDescriptorProto_EnumReservedRange *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, arena, len); |
|
|
@ -1696,9 +1701,10 @@ UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_set_end(go |
|
|
|
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 (google_protobuf_EnumValueDescriptorProto *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_EnumValueDescriptorProto *google_protobuf_EnumValueDescriptorProto_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_EnumValueDescriptorProto *ret = google_protobuf_EnumValueDescriptorProto_new(arena); |
|
|
|
google_protobuf_EnumValueDescriptorProto *ret = google_protobuf_EnumValueDescriptorProto_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_EnumValueDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_EnumValueDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_EnumValueDescriptorProto_serialize(const google_protobuf_EnumValueDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_EnumValueDescriptorProto_serialize(const google_protobuf_EnumValueDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_EnumValueDescriptorProto_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_EnumValueDescriptorProto_msginit, arena, len); |
|
|
@ -1739,9 +1745,10 @@ UPB_INLINE struct google_protobuf_EnumValueOptions* google_protobuf_EnumValueDes |
|
|
|
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 (google_protobuf_ServiceDescriptorProto *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_ServiceDescriptorProto *google_protobuf_ServiceDescriptorProto_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_ServiceDescriptorProto *ret = google_protobuf_ServiceDescriptorProto_new(arena); |
|
|
|
google_protobuf_ServiceDescriptorProto *ret = google_protobuf_ServiceDescriptorProto_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_ServiceDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_ServiceDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_ServiceDescriptorProto_serialize(const google_protobuf_ServiceDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_ServiceDescriptorProto_serialize(const google_protobuf_ServiceDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_ServiceDescriptorProto_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_ServiceDescriptorProto_msginit, arena, len); |
|
|
@ -1790,9 +1797,10 @@ UPB_INLINE struct google_protobuf_ServiceOptions* google_protobuf_ServiceDescrip |
|
|
|
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 (google_protobuf_MethodDescriptorProto *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_MethodDescriptorProto *google_protobuf_MethodDescriptorProto_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_MethodDescriptorProto *ret = google_protobuf_MethodDescriptorProto_new(arena); |
|
|
|
google_protobuf_MethodDescriptorProto *ret = google_protobuf_MethodDescriptorProto_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_MethodDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_MethodDescriptorProto_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_MethodDescriptorProto_serialize(const google_protobuf_MethodDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_MethodDescriptorProto_serialize(const google_protobuf_MethodDescriptorProto *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_MethodDescriptorProto_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_MethodDescriptorProto_msginit, arena, len); |
|
|
@ -1851,9 +1859,10 @@ UPB_INLINE void google_protobuf_MethodDescriptorProto_set_server_streaming(googl |
|
|
|
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 (google_protobuf_FileOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_FileOptions *google_protobuf_FileOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_FileOptions *ret = google_protobuf_FileOptions_new(arena); |
|
|
|
google_protobuf_FileOptions *ret = google_protobuf_FileOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_FileOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_FileOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_FileOptions_serialize(const google_protobuf_FileOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_FileOptions_serialize(const google_protobuf_FileOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_FileOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_FileOptions_msginit, arena, len); |
|
|
@ -1864,7 +1873,7 @@ UPB_INLINE upb_strview google_protobuf_FileOptions_java_package(const google_pro |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_java_outer_classname(const google_protobuf_FileOptions *msg) { return _upb_has_field(msg, 12); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_java_outer_classname(const google_protobuf_FileOptions *msg) { return _upb_has_field(msg, 12); } |
|
|
|
UPB_INLINE upb_strview google_protobuf_FileOptions_java_outer_classname(const google_protobuf_FileOptions *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(36, 48)); } |
|
|
|
UPB_INLINE upb_strview google_protobuf_FileOptions_java_outer_classname(const google_protobuf_FileOptions *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(36, 48)); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_optimize_for(const google_protobuf_FileOptions *msg) { return _upb_has_field(msg, 1); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_optimize_for(const google_protobuf_FileOptions *msg) { return _upb_has_field(msg, 1); } |
|
|
|
UPB_INLINE google_protobuf_FileOptions_OptimizeMode google_protobuf_FileOptions_optimize_for(const google_protobuf_FileOptions *msg) { return UPB_FIELD_AT(msg, google_protobuf_FileOptions_OptimizeMode, UPB_SIZE(8, 8)); } |
|
|
|
UPB_INLINE int32_t google_protobuf_FileOptions_optimize_for(const google_protobuf_FileOptions *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(8, 8)); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_java_multiple_files(const google_protobuf_FileOptions *msg) { return _upb_has_field(msg, 2); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_java_multiple_files(const google_protobuf_FileOptions *msg) { return _upb_has_field(msg, 2); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_java_multiple_files(const google_protobuf_FileOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(16, 16)); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_java_multiple_files(const google_protobuf_FileOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(16, 16)); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_go_package(const google_protobuf_FileOptions *msg) { return _upb_has_field(msg, 13); } |
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_go_package(const google_protobuf_FileOptions *msg) { return _upb_has_field(msg, 13); } |
|
|
@ -1905,9 +1914,9 @@ UPB_INLINE void google_protobuf_FileOptions_set_java_outer_classname(google_prot |
|
|
|
_upb_sethas(msg, 12); |
|
|
|
_upb_sethas(msg, 12); |
|
|
|
UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(36, 48)) = value; |
|
|
|
UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(36, 48)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_FileOptions_set_optimize_for(google_protobuf_FileOptions *msg, google_protobuf_FileOptions_OptimizeMode value) { |
|
|
|
UPB_INLINE void google_protobuf_FileOptions_set_optimize_for(google_protobuf_FileOptions *msg, int32_t value) { |
|
|
|
_upb_sethas(msg, 1); |
|
|
|
_upb_sethas(msg, 1); |
|
|
|
UPB_FIELD_AT(msg, google_protobuf_FileOptions_OptimizeMode, UPB_SIZE(8, 8)) = value; |
|
|
|
UPB_FIELD_AT(msg, int32_t, UPB_SIZE(8, 8)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_FileOptions_set_java_multiple_files(google_protobuf_FileOptions *msg, bool value) { |
|
|
|
UPB_INLINE void google_protobuf_FileOptions_set_java_multiple_files(google_protobuf_FileOptions *msg, bool value) { |
|
|
|
_upb_sethas(msg, 2); |
|
|
|
_upb_sethas(msg, 2); |
|
|
@ -1989,9 +1998,10 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FileOptio |
|
|
|
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 (google_protobuf_MessageOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_MessageOptions *google_protobuf_MessageOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_MessageOptions *ret = google_protobuf_MessageOptions_new(arena); |
|
|
|
google_protobuf_MessageOptions *ret = google_protobuf_MessageOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_MessageOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_MessageOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_MessageOptions_serialize(const google_protobuf_MessageOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_MessageOptions_serialize(const google_protobuf_MessageOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_MessageOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_MessageOptions_msginit, arena, len); |
|
|
@ -2043,16 +2053,17 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MessageOp |
|
|
|
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 (google_protobuf_FieldOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_FieldOptions *google_protobuf_FieldOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_FieldOptions *ret = google_protobuf_FieldOptions_new(arena); |
|
|
|
google_protobuf_FieldOptions *ret = google_protobuf_FieldOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_FieldOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_FieldOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_FieldOptions_serialize(const google_protobuf_FieldOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_FieldOptions_serialize(const google_protobuf_FieldOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_FieldOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_FieldOptions_msginit, arena, len); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_ctype(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 1); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_ctype(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 1); } |
|
|
|
UPB_INLINE google_protobuf_FieldOptions_CType google_protobuf_FieldOptions_ctype(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, google_protobuf_FieldOptions_CType, UPB_SIZE(8, 8)); } |
|
|
|
UPB_INLINE int32_t google_protobuf_FieldOptions_ctype(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(8, 8)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_packed(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 3); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_packed(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 3); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_packed(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(24, 24)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_packed(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(24, 24)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_deprecated(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 4); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_deprecated(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 4); } |
|
|
@ -2060,14 +2071,14 @@ UPB_INLINE bool google_protobuf_FieldOptions_deprecated(const google_protobuf_Fi |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_lazy(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 5); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_lazy(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 5); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_lazy(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(26, 26)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_lazy(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(26, 26)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_jstype(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 2); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_jstype(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 2); } |
|
|
|
UPB_INLINE google_protobuf_FieldOptions_JSType google_protobuf_FieldOptions_jstype(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, google_protobuf_FieldOptions_JSType, UPB_SIZE(16, 16)); } |
|
|
|
UPB_INLINE int32_t google_protobuf_FieldOptions_jstype(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(16, 16)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_weak(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 6); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_weak(const google_protobuf_FieldOptions *msg) { return _upb_has_field(msg, 6); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_weak(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(27, 27)); } |
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_weak(const google_protobuf_FieldOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(27, 27)); } |
|
|
|
UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_FieldOptions_uninterpreted_option(const google_protobuf_FieldOptions *msg, size_t *len) { return (const google_protobuf_UninterpretedOption* const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); } |
|
|
|
UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_FieldOptions_uninterpreted_option(const google_protobuf_FieldOptions *msg, size_t *len) { return (const google_protobuf_UninterpretedOption* const*)_upb_array_accessor(msg, UPB_SIZE(28, 32), len); } |
|
|
|
|
|
|
|
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_ctype(google_protobuf_FieldOptions *msg, google_protobuf_FieldOptions_CType value) { |
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_ctype(google_protobuf_FieldOptions *msg, int32_t value) { |
|
|
|
_upb_sethas(msg, 1); |
|
|
|
_upb_sethas(msg, 1); |
|
|
|
UPB_FIELD_AT(msg, google_protobuf_FieldOptions_CType, UPB_SIZE(8, 8)) = value; |
|
|
|
UPB_FIELD_AT(msg, int32_t, UPB_SIZE(8, 8)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_packed(google_protobuf_FieldOptions *msg, bool value) { |
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_packed(google_protobuf_FieldOptions *msg, bool value) { |
|
|
|
_upb_sethas(msg, 3); |
|
|
|
_upb_sethas(msg, 3); |
|
|
@ -2081,9 +2092,9 @@ UPB_INLINE void google_protobuf_FieldOptions_set_lazy(google_protobuf_FieldOptio |
|
|
|
_upb_sethas(msg, 5); |
|
|
|
_upb_sethas(msg, 5); |
|
|
|
UPB_FIELD_AT(msg, bool, UPB_SIZE(26, 26)) = value; |
|
|
|
UPB_FIELD_AT(msg, bool, UPB_SIZE(26, 26)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_jstype(google_protobuf_FieldOptions *msg, google_protobuf_FieldOptions_JSType value) { |
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_jstype(google_protobuf_FieldOptions *msg, int32_t value) { |
|
|
|
_upb_sethas(msg, 2); |
|
|
|
_upb_sethas(msg, 2); |
|
|
|
UPB_FIELD_AT(msg, google_protobuf_FieldOptions_JSType, UPB_SIZE(16, 16)) = value; |
|
|
|
UPB_FIELD_AT(msg, int32_t, UPB_SIZE(16, 16)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_weak(google_protobuf_FieldOptions *msg, bool value) { |
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_weak(google_protobuf_FieldOptions *msg, bool value) { |
|
|
|
_upb_sethas(msg, 6); |
|
|
|
_upb_sethas(msg, 6); |
|
|
@ -2109,9 +2120,10 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FieldOpti |
|
|
|
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 (google_protobuf_OneofOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_OneofOptions *google_protobuf_OneofOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_OneofOptions *ret = google_protobuf_OneofOptions_new(arena); |
|
|
|
google_protobuf_OneofOptions *ret = google_protobuf_OneofOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_OneofOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_OneofOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_OneofOptions_serialize(const google_protobuf_OneofOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_OneofOptions_serialize(const google_protobuf_OneofOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_OneofOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_OneofOptions_msginit, arena, len); |
|
|
@ -2139,9 +2151,10 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_OneofOpti |
|
|
|
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 (google_protobuf_EnumOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_EnumOptions *google_protobuf_EnumOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_EnumOptions *ret = google_protobuf_EnumOptions_new(arena); |
|
|
|
google_protobuf_EnumOptions *ret = google_protobuf_EnumOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_EnumOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_EnumOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_EnumOptions_serialize(const google_protobuf_EnumOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_EnumOptions_serialize(const google_protobuf_EnumOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_EnumOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_EnumOptions_msginit, arena, len); |
|
|
@ -2181,9 +2194,10 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumOptio |
|
|
|
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 (google_protobuf_EnumValueOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_EnumValueOptions *google_protobuf_EnumValueOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_EnumValueOptions *ret = google_protobuf_EnumValueOptions_new(arena); |
|
|
|
google_protobuf_EnumValueOptions *ret = google_protobuf_EnumValueOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_EnumValueOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_EnumValueOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_EnumValueOptions_serialize(const google_protobuf_EnumValueOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_EnumValueOptions_serialize(const google_protobuf_EnumValueOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_EnumValueOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_EnumValueOptions_msginit, arena, len); |
|
|
@ -2217,9 +2231,10 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumValue |
|
|
|
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 (google_protobuf_ServiceOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_ServiceOptions *google_protobuf_ServiceOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_ServiceOptions *ret = google_protobuf_ServiceOptions_new(arena); |
|
|
|
google_protobuf_ServiceOptions *ret = google_protobuf_ServiceOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_ServiceOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_ServiceOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_ServiceOptions_serialize(const google_protobuf_ServiceOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_ServiceOptions_serialize(const google_protobuf_ServiceOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_ServiceOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_ServiceOptions_msginit, arena, len); |
|
|
@ -2253,9 +2268,10 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ServiceOp |
|
|
|
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 (google_protobuf_MethodOptions *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_MethodOptions *google_protobuf_MethodOptions_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_MethodOptions *ret = google_protobuf_MethodOptions_new(arena); |
|
|
|
google_protobuf_MethodOptions *ret = google_protobuf_MethodOptions_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_MethodOptions_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_MethodOptions_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_MethodOptions_serialize(const google_protobuf_MethodOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_MethodOptions_serialize(const google_protobuf_MethodOptions *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_MethodOptions_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_MethodOptions_msginit, arena, len); |
|
|
@ -2264,16 +2280,16 @@ UPB_INLINE char *google_protobuf_MethodOptions_serialize(const google_protobuf_M |
|
|
|
UPB_INLINE bool google_protobuf_MethodOptions_has_deprecated(const google_protobuf_MethodOptions *msg) { return _upb_has_field(msg, 2); } |
|
|
|
UPB_INLINE bool google_protobuf_MethodOptions_has_deprecated(const google_protobuf_MethodOptions *msg) { return _upb_has_field(msg, 2); } |
|
|
|
UPB_INLINE bool google_protobuf_MethodOptions_deprecated(const google_protobuf_MethodOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(16, 16)); } |
|
|
|
UPB_INLINE bool google_protobuf_MethodOptions_deprecated(const google_protobuf_MethodOptions *msg) { return UPB_FIELD_AT(msg, bool, UPB_SIZE(16, 16)); } |
|
|
|
UPB_INLINE bool google_protobuf_MethodOptions_has_idempotency_level(const google_protobuf_MethodOptions *msg) { return _upb_has_field(msg, 1); } |
|
|
|
UPB_INLINE bool google_protobuf_MethodOptions_has_idempotency_level(const google_protobuf_MethodOptions *msg) { return _upb_has_field(msg, 1); } |
|
|
|
UPB_INLINE google_protobuf_MethodOptions_IdempotencyLevel google_protobuf_MethodOptions_idempotency_level(const google_protobuf_MethodOptions *msg) { return UPB_FIELD_AT(msg, google_protobuf_MethodOptions_IdempotencyLevel, UPB_SIZE(8, 8)); } |
|
|
|
UPB_INLINE int32_t google_protobuf_MethodOptions_idempotency_level(const google_protobuf_MethodOptions *msg) { return UPB_FIELD_AT(msg, int32_t, UPB_SIZE(8, 8)); } |
|
|
|
UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_MethodOptions_uninterpreted_option(const google_protobuf_MethodOptions *msg, size_t *len) { return (const google_protobuf_UninterpretedOption* const*)_upb_array_accessor(msg, UPB_SIZE(20, 24), len); } |
|
|
|
UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_MethodOptions_uninterpreted_option(const google_protobuf_MethodOptions *msg, size_t *len) { return (const google_protobuf_UninterpretedOption* const*)_upb_array_accessor(msg, UPB_SIZE(20, 24), len); } |
|
|
|
|
|
|
|
|
|
|
|
UPB_INLINE void google_protobuf_MethodOptions_set_deprecated(google_protobuf_MethodOptions *msg, bool value) { |
|
|
|
UPB_INLINE void google_protobuf_MethodOptions_set_deprecated(google_protobuf_MethodOptions *msg, bool value) { |
|
|
|
_upb_sethas(msg, 2); |
|
|
|
_upb_sethas(msg, 2); |
|
|
|
UPB_FIELD_AT(msg, bool, UPB_SIZE(16, 16)) = value; |
|
|
|
UPB_FIELD_AT(msg, bool, UPB_SIZE(16, 16)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE void google_protobuf_MethodOptions_set_idempotency_level(google_protobuf_MethodOptions *msg, google_protobuf_MethodOptions_IdempotencyLevel value) { |
|
|
|
UPB_INLINE void google_protobuf_MethodOptions_set_idempotency_level(google_protobuf_MethodOptions *msg, int32_t value) { |
|
|
|
_upb_sethas(msg, 1); |
|
|
|
_upb_sethas(msg, 1); |
|
|
|
UPB_FIELD_AT(msg, google_protobuf_MethodOptions_IdempotencyLevel, UPB_SIZE(8, 8)) = value; |
|
|
|
UPB_FIELD_AT(msg, int32_t, UPB_SIZE(8, 8)) = value; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MethodOptions_mutable_uninterpreted_option(google_protobuf_MethodOptions *msg, size_t *len) { |
|
|
|
UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MethodOptions_mutable_uninterpreted_option(google_protobuf_MethodOptions *msg, size_t *len) { |
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(20, 24), len); |
|
|
|
return (google_protobuf_UninterpretedOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(20, 24), len); |
|
|
@ -2295,9 +2311,10 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MethodOpt |
|
|
|
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 (google_protobuf_UninterpretedOption *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_UninterpretedOption *google_protobuf_UninterpretedOption_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_UninterpretedOption *ret = google_protobuf_UninterpretedOption_new(arena); |
|
|
|
google_protobuf_UninterpretedOption *ret = google_protobuf_UninterpretedOption_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_UninterpretedOption_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_UninterpretedOption_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_UninterpretedOption_serialize(const google_protobuf_UninterpretedOption *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_UninterpretedOption_serialize(const google_protobuf_UninterpretedOption *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_UninterpretedOption_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_UninterpretedOption_msginit, arena, len); |
|
|
@ -2361,9 +2378,10 @@ UPB_INLINE void google_protobuf_UninterpretedOption_set_aggregate_value(google_p |
|
|
|
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 (google_protobuf_UninterpretedOption_NamePart *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_UninterpretedOption_NamePart *google_protobuf_UninterpretedOption_NamePart_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
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); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_UninterpretedOption_NamePart_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_UninterpretedOption_NamePart_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_UninterpretedOption_NamePart_serialize(const google_protobuf_UninterpretedOption_NamePart *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_UninterpretedOption_NamePart_serialize(const google_protobuf_UninterpretedOption_NamePart *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_UninterpretedOption_NamePart_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_UninterpretedOption_NamePart_msginit, arena, len); |
|
|
@ -2389,9 +2407,10 @@ UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_set_is_extension(go |
|
|
|
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 (google_protobuf_SourceCodeInfo *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_SourceCodeInfo *google_protobuf_SourceCodeInfo_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_SourceCodeInfo *ret = google_protobuf_SourceCodeInfo_new(arena); |
|
|
|
google_protobuf_SourceCodeInfo *ret = google_protobuf_SourceCodeInfo_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_SourceCodeInfo_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_SourceCodeInfo_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_SourceCodeInfo_serialize(const google_protobuf_SourceCodeInfo *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_SourceCodeInfo_serialize(const google_protobuf_SourceCodeInfo *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_SourceCodeInfo_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_SourceCodeInfo_msginit, arena, len); |
|
|
@ -2419,9 +2438,10 @@ UPB_INLINE struct google_protobuf_SourceCodeInfo_Location* google_protobuf_Sourc |
|
|
|
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 (google_protobuf_SourceCodeInfo_Location *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_SourceCodeInfo_Location *google_protobuf_SourceCodeInfo_Location_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
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); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_SourceCodeInfo_Location_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_SourceCodeInfo_Location_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_SourceCodeInfo_Location_serialize(const google_protobuf_SourceCodeInfo_Location *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_SourceCodeInfo_Location_serialize(const google_protobuf_SourceCodeInfo_Location *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_SourceCodeInfo_Location_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_SourceCodeInfo_Location_msginit, arena, len); |
|
|
@ -2480,9 +2500,10 @@ UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_leading_detached_com |
|
|
|
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 (google_protobuf_GeneratedCodeInfo *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo *google_protobuf_GeneratedCodeInfo_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
upb_arena *arena) { |
|
|
|
google_protobuf_GeneratedCodeInfo *ret = google_protobuf_GeneratedCodeInfo_new(arena); |
|
|
|
google_protobuf_GeneratedCodeInfo *ret = google_protobuf_GeneratedCodeInfo_new(arena); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_GeneratedCodeInfo_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_GeneratedCodeInfo_serialize(const google_protobuf_GeneratedCodeInfo *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_GeneratedCodeInfo_serialize(const google_protobuf_GeneratedCodeInfo *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_GeneratedCodeInfo_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_GeneratedCodeInfo_msginit, arena, len); |
|
|
@ -2510,9 +2531,10 @@ UPB_INLINE struct google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_ |
|
|
|
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 (google_protobuf_GeneratedCodeInfo_Annotation *)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_strview buf, upb_arena *arena) { |
|
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation *google_protobuf_GeneratedCodeInfo_Annotation_parse(const char *buf, size_t size, |
|
|
|
|
|
|
|
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); |
|
|
|
return (ret && upb_decode(buf, ret, &google_protobuf_GeneratedCodeInfo_Annotation_msginit)) ? ret : NULL; |
|
|
|
return (ret && upb_decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_Annotation_msginit)) ? ret : NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
UPB_INLINE char *google_protobuf_GeneratedCodeInfo_Annotation_serialize(const google_protobuf_GeneratedCodeInfo_Annotation *msg, upb_arena *arena, size_t *len) { |
|
|
|
UPB_INLINE char *google_protobuf_GeneratedCodeInfo_Annotation_serialize(const google_protobuf_GeneratedCodeInfo_Annotation *msg, upb_arena *arena, size_t *len) { |
|
|
|
return upb_encode(msg, &google_protobuf_GeneratedCodeInfo_Annotation_msginit, arena, len); |
|
|
|
return upb_encode(msg, &google_protobuf_GeneratedCodeInfo_Annotation_msginit, arena, len); |
|
|
@ -6729,6 +6751,18 @@ extern "C" { |
|
|
|
* descriptor type (upb_descriptortype_t). */ |
|
|
|
* descriptor type (upb_descriptortype_t). */ |
|
|
|
extern const uint8_t upb_pb_native_wire_types[]; |
|
|
|
extern const uint8_t upb_pb_native_wire_types[]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UPB_INLINE uint64_t byteswap64(uint64_t val) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return ((((val) & 0xff00000000000000ull) >> 56) |
|
|
|
|
|
|
|
| (((val) & 0x00ff000000000000ull) >> 40) |
|
|
|
|
|
|
|
| (((val) & 0x0000ff0000000000ull) >> 24) |
|
|
|
|
|
|
|
| (((val) & 0x000000ff00000000ull) >> 8) |
|
|
|
|
|
|
|
| (((val) & 0x00000000ff000000ull) << 8) |
|
|
|
|
|
|
|
| (((val) & 0x0000000000ff0000ull) << 24) |
|
|
|
|
|
|
|
| (((val) & 0x000000000000ff00ull) << 40) |
|
|
|
|
|
|
|
| (((val) & 0x00000000000000ffull) << 56)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* Zig-zag encoding/decoding **************************************************/ |
|
|
|
/* Zig-zag encoding/decoding **************************************************/ |
|
|
|
|
|
|
|
|
|
|
|
UPB_INLINE int32_t upb_zzdec_32(uint32_t n) { |
|
|
|
UPB_INLINE int32_t upb_zzdec_32(uint32_t n) { |
|
|
@ -6835,6 +6869,9 @@ UPB_INLINE uint64_t upb_vencode32(uint32_t val) { |
|
|
|
uint64_t ret = 0; |
|
|
|
uint64_t ret = 0; |
|
|
|
UPB_ASSERT(bytes <= 5); |
|
|
|
UPB_ASSERT(bytes <= 5); |
|
|
|
memcpy(&ret, buf, bytes); |
|
|
|
memcpy(&ret, buf, bytes); |
|
|
|
|
|
|
|
#ifdef UPB_BIG_ENDIAN |
|
|
|
|
|
|
|
ret = byteswap64(ret); |
|
|
|
|
|
|
|
#endif |
|
|
|
UPB_ASSERT(ret <= 0xffffffffffU); |
|
|
|
UPB_ASSERT(ret <= 0xffffffffffU); |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|