|
|
|
@ -169,28 +169,28 @@ UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_ |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_FileDescriptorSet_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FileDescriptorSet_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_FileDescriptorSet* google_protobuf_FileDescriptorSet_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_FileDescriptorSet* ret = google_protobuf_FileDescriptorSet_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_FileDescriptorSet_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FileDescriptorSet_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_FileDescriptorSet_serialize_ex(const google_protobuf_FileDescriptorSet* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_FileDescriptorSet_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_FileDescriptorSet_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FileDescriptorSet_has_file(const google_protobuf_FileDescriptorSet *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
|
|
|
|
UPB_INLINE const google_protobuf_FileDescriptorProto* const* google_protobuf_FileDescriptorSet_file(const google_protobuf_FileDescriptorSet *msg, size_t *len) { return (const google_protobuf_FileDescriptorProto* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
|
|
|
@ -217,28 +217,28 @@ UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorPr |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_FileDescriptorProto_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FileDescriptorProto_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_FileDescriptorProto* google_protobuf_FileDescriptorProto_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_FileDescriptorProto* ret = google_protobuf_FileDescriptorProto_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_FileDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FileDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_FileDescriptorProto_serialize_ex(const google_protobuf_FileDescriptorProto* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_FileDescriptorProto_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_FileDescriptorProto_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FileDescriptorProto_has_name(const google_protobuf_FileDescriptorProto *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_FileDescriptorProto_name(const google_protobuf_FileDescriptorProto* msg) { |
|
|
|
@ -401,28 +401,28 @@ UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_new( |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_DescriptorProto_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_DescriptorProto* google_protobuf_DescriptorProto_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_DescriptorProto* ret = google_protobuf_DescriptorProto_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_DescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_DescriptorProto_serialize_ex(const google_protobuf_DescriptorProto* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_DescriptorProto_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_DescriptorProto_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_DescriptorProto_has_name(const google_protobuf_DescriptorProto *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_DescriptorProto_name(const google_protobuf_DescriptorProto* msg) { |
|
|
|
@ -575,28 +575,28 @@ UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_Descr |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_ExtensionRange_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_DescriptorProto_ExtensionRange_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange* google_protobuf_DescriptorProto_ExtensionRange_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_DescriptorProto_ExtensionRange* ret = google_protobuf_DescriptorProto_ExtensionRange_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_ExtensionRange_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_DescriptorProto_ExtensionRange_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_DescriptorProto_ExtensionRange_serialize_ex(const google_protobuf_DescriptorProto_ExtensionRange* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_DescriptorProto_ExtensionRange_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_DescriptorProto_ExtensionRange_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_DescriptorProto_ExtensionRange_has_start(const google_protobuf_DescriptorProto_ExtensionRange *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE int32_t google_protobuf_DescriptorProto_ExtensionRange_start(const google_protobuf_DescriptorProto_ExtensionRange* msg) { |
|
|
|
@ -641,28 +641,28 @@ UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_Descri |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_ReservedRange_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_DescriptorProto_ReservedRange_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_DescriptorProto_ReservedRange* google_protobuf_DescriptorProto_ReservedRange_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_DescriptorProto_ReservedRange* ret = google_protobuf_DescriptorProto_ReservedRange_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_DescriptorProto_ReservedRange_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_DescriptorProto_ReservedRange_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_DescriptorProto_ReservedRange_serialize_ex(const google_protobuf_DescriptorProto_ReservedRange* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_DescriptorProto_ReservedRange_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_DescriptorProto_ReservedRange_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_DescriptorProto_ReservedRange_has_start(const google_protobuf_DescriptorProto_ReservedRange *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE int32_t google_protobuf_DescriptorProto_ReservedRange_start(const google_protobuf_DescriptorProto_ReservedRange* msg) { |
|
|
|
@ -690,28 +690,28 @@ UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRange |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_ExtensionRangeOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_ExtensionRangeOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_ExtensionRangeOptions* google_protobuf_ExtensionRangeOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_ExtensionRangeOptions* ret = google_protobuf_ExtensionRangeOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_ExtensionRangeOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_ExtensionRangeOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_ExtensionRangeOptions_serialize_ex(const google_protobuf_ExtensionRangeOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_ExtensionRangeOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_ExtensionRangeOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_ExtensionRangeOptions_has_uninterpreted_option(const google_protobuf_ExtensionRangeOptions *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
|
|
|
|
UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_ExtensionRangeOptions_uninterpreted_option(const google_protobuf_ExtensionRangeOptions *msg, size_t *len) { return (const google_protobuf_UninterpretedOption* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
|
|
|
@ -738,28 +738,28 @@ UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptor |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_FieldDescriptorProto_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FieldDescriptorProto_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_FieldDescriptorProto* google_protobuf_FieldDescriptorProto_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_FieldDescriptorProto* ret = google_protobuf_FieldDescriptorProto_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_FieldDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FieldDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_FieldDescriptorProto_serialize_ex(const google_protobuf_FieldDescriptorProto* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_FieldDescriptorProto_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_FieldDescriptorProto_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FieldDescriptorProto_has_name(const google_protobuf_FieldDescriptorProto *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_FieldDescriptorProto_name(const google_protobuf_FieldDescriptorProto* msg) { |
|
|
|
@ -868,28 +868,28 @@ UPB_INLINE google_protobuf_OneofDescriptorProto* google_protobuf_OneofDescriptor |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_OneofDescriptorProto_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_OneofDescriptorProto_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_OneofDescriptorProto* google_protobuf_OneofDescriptorProto_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_OneofDescriptorProto* ret = google_protobuf_OneofDescriptorProto_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_OneofDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_OneofDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_OneofDescriptorProto_serialize_ex(const google_protobuf_OneofDescriptorProto* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_OneofDescriptorProto_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_OneofDescriptorProto_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_OneofDescriptorProto_has_name(const google_protobuf_OneofDescriptorProto *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_OneofDescriptorProto_name(const google_protobuf_OneofDescriptorProto* msg) { |
|
|
|
@ -926,28 +926,28 @@ UPB_INLINE google_protobuf_EnumDescriptorProto* google_protobuf_EnumDescriptorPr |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto* google_protobuf_EnumDescriptorProto_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_EnumDescriptorProto* ret = google_protobuf_EnumDescriptorProto_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_EnumDescriptorProto_serialize_ex(const google_protobuf_EnumDescriptorProto* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_EnumDescriptorProto_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_EnumDescriptorProto_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_EnumDescriptorProto_has_name(const google_protobuf_EnumDescriptorProto *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_EnumDescriptorProto_name(const google_protobuf_EnumDescriptorProto* msg) { |
|
|
|
@ -1025,28 +1025,28 @@ UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobu |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange* google_protobuf_EnumDescriptorProto_EnumReservedRange_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_EnumDescriptorProto_EnumReservedRange* ret = google_protobuf_EnumDescriptorProto_EnumReservedRange_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_EnumDescriptorProto_EnumReservedRange_serialize_ex(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_EnumDescriptorProto_EnumReservedRange_has_start(const google_protobuf_EnumDescriptorProto_EnumReservedRange *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE int32_t google_protobuf_EnumDescriptorProto_EnumReservedRange_start(const google_protobuf_EnumDescriptorProto_EnumReservedRange* msg) { |
|
|
|
@ -1074,28 +1074,28 @@ UPB_INLINE google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumValueDe |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_EnumValueDescriptorProto_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumValueDescriptorProto_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_EnumValueDescriptorProto* google_protobuf_EnumValueDescriptorProto_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_EnumValueDescriptorProto* ret = google_protobuf_EnumValueDescriptorProto_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_EnumValueDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumValueDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_EnumValueDescriptorProto_serialize_ex(const google_protobuf_EnumValueDescriptorProto* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_EnumValueDescriptorProto_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_EnumValueDescriptorProto_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_EnumValueDescriptorProto_has_name(const google_protobuf_EnumValueDescriptorProto *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_EnumValueDescriptorProto_name(const google_protobuf_EnumValueDescriptorProto* msg) { |
|
|
|
@ -1140,28 +1140,28 @@ UPB_INLINE google_protobuf_ServiceDescriptorProto* google_protobuf_ServiceDescri |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_ServiceDescriptorProto_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_ServiceDescriptorProto_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_ServiceDescriptorProto* google_protobuf_ServiceDescriptorProto_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_ServiceDescriptorProto* ret = google_protobuf_ServiceDescriptorProto_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_ServiceDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_ServiceDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_ServiceDescriptorProto_serialize_ex(const google_protobuf_ServiceDescriptorProto* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_ServiceDescriptorProto_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_ServiceDescriptorProto_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_ServiceDescriptorProto_has_name(const google_protobuf_ServiceDescriptorProto *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_ServiceDescriptorProto_name(const google_protobuf_ServiceDescriptorProto* msg) { |
|
|
|
@ -1213,28 +1213,28 @@ UPB_INLINE google_protobuf_MethodDescriptorProto* google_protobuf_MethodDescript |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_MethodDescriptorProto_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_MethodDescriptorProto_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_MethodDescriptorProto* google_protobuf_MethodDescriptorProto_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_MethodDescriptorProto* ret = google_protobuf_MethodDescriptorProto_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_MethodDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_MethodDescriptorProto_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_MethodDescriptorProto_serialize_ex(const google_protobuf_MethodDescriptorProto* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_MethodDescriptorProto_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_MethodDescriptorProto_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_MethodDescriptorProto_has_name(const google_protobuf_MethodDescriptorProto *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_MethodDescriptorProto_name(const google_protobuf_MethodDescriptorProto* msg) { |
|
|
|
@ -1303,28 +1303,28 @@ UPB_INLINE google_protobuf_FileOptions* google_protobuf_FileOptions_new(upb_Aren |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_FileOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FileOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_FileOptions* google_protobuf_FileOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_FileOptions* ret = google_protobuf_FileOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_FileOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FileOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_FileOptions_serialize_ex(const google_protobuf_FileOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_FileOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_FileOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FileOptions_has_java_package(const google_protobuf_FileOptions *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_FileOptions_java_package(const google_protobuf_FileOptions* msg) { |
|
|
|
@ -1511,28 +1511,28 @@ UPB_INLINE google_protobuf_MessageOptions* google_protobuf_MessageOptions_new(up |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_MessageOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_MessageOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_MessageOptions* google_protobuf_MessageOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_MessageOptions* ret = google_protobuf_MessageOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_MessageOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_MessageOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_MessageOptions_serialize_ex(const google_protobuf_MessageOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_MessageOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_MessageOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_MessageOptions_has_message_set_wire_format(const google_protobuf_MessageOptions *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE bool google_protobuf_MessageOptions_message_set_wire_format(const google_protobuf_MessageOptions* msg) { |
|
|
|
@ -1591,28 +1591,28 @@ UPB_INLINE google_protobuf_FieldOptions* google_protobuf_FieldOptions_new(upb_Ar |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_FieldOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FieldOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_FieldOptions* google_protobuf_FieldOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_FieldOptions* ret = google_protobuf_FieldOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_FieldOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_FieldOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_FieldOptions_serialize_ex(const google_protobuf_FieldOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_FieldOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_FieldOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_ctype(const google_protobuf_FieldOptions *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE int32_t google_protobuf_FieldOptions_ctype(const google_protobuf_FieldOptions* msg) { |
|
|
|
@ -1687,28 +1687,28 @@ UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_new(upb_Ar |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_OneofOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_OneofOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_OneofOptions* ret = google_protobuf_OneofOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_OneofOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_OneofOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_OneofOptions_serialize_ex(const google_protobuf_OneofOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_OneofOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_OneofOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_OneofOptions_has_uninterpreted_option(const google_protobuf_OneofOptions *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
|
|
|
|
UPB_INLINE const google_protobuf_UninterpretedOption* const* google_protobuf_OneofOptions_uninterpreted_option(const google_protobuf_OneofOptions *msg, size_t *len) { return (const google_protobuf_UninterpretedOption* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
|
|
|
@ -1735,28 +1735,28 @@ UPB_INLINE google_protobuf_EnumOptions* google_protobuf_EnumOptions_new(upb_Aren |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_EnumOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_EnumOptions* google_protobuf_EnumOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_EnumOptions* ret = google_protobuf_EnumOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_EnumOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_EnumOptions_serialize_ex(const google_protobuf_EnumOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_EnumOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_EnumOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_EnumOptions_has_allow_alias(const google_protobuf_EnumOptions *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE bool google_protobuf_EnumOptions_allow_alias(const google_protobuf_EnumOptions* msg) { |
|
|
|
@ -1799,28 +1799,28 @@ UPB_INLINE google_protobuf_EnumValueOptions* google_protobuf_EnumValueOptions_ne |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_EnumValueOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumValueOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_EnumValueOptions* google_protobuf_EnumValueOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_EnumValueOptions* ret = google_protobuf_EnumValueOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_EnumValueOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_EnumValueOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_EnumValueOptions_serialize_ex(const google_protobuf_EnumValueOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_EnumValueOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_EnumValueOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_EnumValueOptions_has_deprecated(const google_protobuf_EnumValueOptions *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE bool google_protobuf_EnumValueOptions_deprecated(const google_protobuf_EnumValueOptions* msg) { |
|
|
|
@ -1855,28 +1855,28 @@ UPB_INLINE google_protobuf_ServiceOptions* google_protobuf_ServiceOptions_new(up |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_ServiceOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_ServiceOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_ServiceOptions* google_protobuf_ServiceOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_ServiceOptions* ret = google_protobuf_ServiceOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_ServiceOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_ServiceOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_ServiceOptions_serialize_ex(const google_protobuf_ServiceOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_ServiceOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_ServiceOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_ServiceOptions_has_deprecated(const google_protobuf_ServiceOptions *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE bool google_protobuf_ServiceOptions_deprecated(const google_protobuf_ServiceOptions* msg) { |
|
|
|
@ -1911,28 +1911,28 @@ UPB_INLINE google_protobuf_MethodOptions* google_protobuf_MethodOptions_new(upb_ |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_MethodOptions_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_MethodOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_MethodOptions* google_protobuf_MethodOptions_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_MethodOptions* ret = google_protobuf_MethodOptions_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_MethodOptions_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_MethodOptions_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_MethodOptions_serialize_ex(const google_protobuf_MethodOptions* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_MethodOptions_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_MethodOptions_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_MethodOptions_has_deprecated(const google_protobuf_MethodOptions *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE bool google_protobuf_MethodOptions_deprecated(const google_protobuf_MethodOptions* msg) { |
|
|
|
@ -1975,28 +1975,28 @@ UPB_INLINE google_protobuf_UninterpretedOption* google_protobuf_UninterpretedOpt |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_UninterpretedOption_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_UninterpretedOption_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_UninterpretedOption* google_protobuf_UninterpretedOption_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_UninterpretedOption* ret = google_protobuf_UninterpretedOption_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_UninterpretedOption_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_UninterpretedOption_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_UninterpretedOption_serialize_ex(const google_protobuf_UninterpretedOption* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_UninterpretedOption_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_UninterpretedOption_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_UninterpretedOption_has_name(const google_protobuf_UninterpretedOption *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(56, 80)); } |
|
|
|
|
UPB_INLINE const google_protobuf_UninterpretedOption_NamePart* const* google_protobuf_UninterpretedOption_name(const google_protobuf_UninterpretedOption *msg, size_t *len) { return (const google_protobuf_UninterpretedOption_NamePart* const*)_upb_array_accessor(msg, UPB_SIZE(56, 80), len); } |
|
|
|
@ -2071,28 +2071,28 @@ UPB_INLINE google_protobuf_UninterpretedOption_NamePart* google_protobuf_Uninter |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_UninterpretedOption_NamePart_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_UninterpretedOption_NamePart_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_UninterpretedOption_NamePart* google_protobuf_UninterpretedOption_NamePart_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_UninterpretedOption_NamePart* ret = google_protobuf_UninterpretedOption_NamePart_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_UninterpretedOption_NamePart_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_UninterpretedOption_NamePart_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_UninterpretedOption_NamePart_serialize_ex(const google_protobuf_UninterpretedOption_NamePart* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_UninterpretedOption_NamePart_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_UninterpretedOption_NamePart_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_UninterpretedOption_NamePart_has_name_part(const google_protobuf_UninterpretedOption_NamePart *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_UninterpretedOption_NamePart_name_part(const google_protobuf_UninterpretedOption_NamePart* msg) { |
|
|
|
@ -2120,28 +2120,28 @@ UPB_INLINE google_protobuf_SourceCodeInfo* google_protobuf_SourceCodeInfo_new(up |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_SourceCodeInfo_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_SourceCodeInfo_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_SourceCodeInfo* google_protobuf_SourceCodeInfo_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_SourceCodeInfo* ret = google_protobuf_SourceCodeInfo_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_SourceCodeInfo_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_SourceCodeInfo_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_SourceCodeInfo_serialize_ex(const google_protobuf_SourceCodeInfo* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_SourceCodeInfo_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_SourceCodeInfo_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_SourceCodeInfo_has_location(const google_protobuf_SourceCodeInfo *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
|
|
|
|
UPB_INLINE const google_protobuf_SourceCodeInfo_Location* const* google_protobuf_SourceCodeInfo_location(const google_protobuf_SourceCodeInfo *msg, size_t *len) { return (const google_protobuf_SourceCodeInfo_Location* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
|
|
|
@ -2168,28 +2168,28 @@ UPB_INLINE google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeIn |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_SourceCodeInfo_Location_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_SourceCodeInfo_Location_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_SourceCodeInfo_Location* google_protobuf_SourceCodeInfo_Location_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_SourceCodeInfo_Location* ret = google_protobuf_SourceCodeInfo_Location_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_SourceCodeInfo_Location_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_SourceCodeInfo_Location_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_SourceCodeInfo_Location_serialize_ex(const google_protobuf_SourceCodeInfo_Location* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_SourceCodeInfo_Location_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_SourceCodeInfo_Location_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t const* google_protobuf_SourceCodeInfo_Location_path(const google_protobuf_SourceCodeInfo_Location *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(20, 40), len); } |
|
|
|
|
UPB_INLINE int32_t const* google_protobuf_SourceCodeInfo_Location_span(const google_protobuf_SourceCodeInfo_Location *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(24, 48), len); } |
|
|
|
@ -2250,28 +2250,28 @@ UPB_INLINE google_protobuf_GeneratedCodeInfo* google_protobuf_GeneratedCodeInfo_ |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo* google_protobuf_GeneratedCodeInfo_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_GeneratedCodeInfo* ret = google_protobuf_GeneratedCodeInfo_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_GeneratedCodeInfo_serialize_ex(const google_protobuf_GeneratedCodeInfo* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_GeneratedCodeInfo_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_GeneratedCodeInfo_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_GeneratedCodeInfo_has_annotation(const google_protobuf_GeneratedCodeInfo *msg) { return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); } |
|
|
|
|
UPB_INLINE const google_protobuf_GeneratedCodeInfo_Annotation* const* google_protobuf_GeneratedCodeInfo_annotation(const google_protobuf_GeneratedCodeInfo *msg, size_t *len) { return (const google_protobuf_GeneratedCodeInfo_Annotation* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); } |
|
|
|
@ -2298,28 +2298,28 @@ UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_Generat |
|
|
|
|
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); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_Annotation_msginit, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_Annotation_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_GeneratedCodeInfo_Annotation_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_extreg* extreg, int options, |
|
|
|
|
upb_Arena* arena) { |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_GeneratedCodeInfo_Annotation* ret = google_protobuf_GeneratedCodeInfo_Annotation_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (_upb_decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_Annotation_msginit, extreg, options, arena) != |
|
|
|
|
if (upb_Decode(buf, size, ret, &google_protobuf_GeneratedCodeInfo_Annotation_msginit, extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
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, 0, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_GeneratedCodeInfo_Annotation_serialize_ex(const google_protobuf_GeneratedCodeInfo_Annotation* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
return upb_EncodeEx(msg, &google_protobuf_GeneratedCodeInfo_Annotation_msginit, options, arena, len); |
|
|
|
|
return upb_Encode(msg, &google_protobuf_GeneratedCodeInfo_Annotation_msginit, options, arena, len); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t const* google_protobuf_GeneratedCodeInfo_Annotation_path(const google_protobuf_GeneratedCodeInfo_Annotation *msg, size_t *len) { return (int32_t const*)_upb_array_accessor(msg, UPB_SIZE(20, 32), len); } |
|
|
|
|
UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_has_source_file(const google_protobuf_GeneratedCodeInfo_Annotation *msg) { return _upb_hasbit(msg, 1); } |
|
|
|
|