@ -9,7 +9,6 @@
# ifndef GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
# define GOOGLE_PROTOBUF_DESCRIPTOR_PROTO_UPB_H_
# include "upb/generated_util.h"
# include "upb/msg.h"
# include "upb/decode.h"
# include "upb/encode.h"
@ -157,7 +156,7 @@ typedef enum {
/* google.protobuf.FileDescriptorSet */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -174,10 +173,10 @@ UPB_INLINE google_protobuf_FileDescriptorProto** google_protobuf_FileDescriptorS
return ( google_protobuf_FileDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len ) ;
}
UPB_INLINE google_protobuf_FileDescriptorProto * * google_protobuf_FileDescriptorSet_resize_file ( google_protobuf_FileDescriptorSet * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_FileDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_FileDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_FileDescriptorProto * google_protobuf_FileDescriptorSet_add_file ( google_protobuf_FileDescriptorSet * msg , upb_arena * arena ) {
struct google_protobuf_FileDescriptorProto * sub = ( struct google_protobuf_FileDescriptorProto * ) upb_msg_new ( & google_protobuf_FileDescriptorProto_msginit , arena ) ;
struct google_protobuf_FileDescriptorProto * sub = ( struct google_protobuf_FileDescriptorProto * ) _ upb_msg_new( & google_protobuf_FileDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 0 , 0 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -187,7 +186,7 @@ UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_FileDescr
/* google.protobuf.FileDescriptorProto */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -228,20 +227,20 @@ UPB_INLINE upb_strview* google_protobuf_FileDescriptorProto_mutable_dependency(g
return ( upb_strview * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 36 , 72 ) , len ) ;
}
UPB_INLINE upb_strview * google_protobuf_FileDescriptorProto_resize_dependency ( google_protobuf_FileDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( upb_strview * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 36 , 72 ) , len , UPB_SIZE ( 8 , 16 ) , UPB_ TYPE_STRING , arena ) ;
return ( upb_strview * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 36 , 72 ) , len , UPB_TYPE_STRING , arena ) ;
}
UPB_INLINE bool google_protobuf_FileDescriptorProto_add_dependency ( google_protobuf_FileDescriptorProto * msg , upb_strview val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 36 , 72 ) , UPB_SIZE ( 8 , 16 ) , UPB_TYPE_STRING , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 36 , 72 ) , UPB_SIZE ( 8 , 16 ) , UPB_TYPE_STRING , & val ,
arena ) ;
}
UPB_INLINE google_protobuf_DescriptorProto * * google_protobuf_FileDescriptorProto_mutable_message_type ( google_protobuf_FileDescriptorProto * msg , size_t * len ) {
return ( google_protobuf_DescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 40 , 80 ) , len ) ;
}
UPB_INLINE google_protobuf_DescriptorProto * * google_protobuf_FileDescriptorProto_resize_message_type ( google_protobuf_FileDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_DescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 40 , 80 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_DescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 40 , 80 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_DescriptorProto * google_protobuf_FileDescriptorProto_add_message_type ( google_protobuf_FileDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_DescriptorProto * sub = ( struct google_protobuf_DescriptorProto * ) upb_msg_new ( & google_protobuf_DescriptorProto_msginit , arena ) ;
struct google_protobuf_DescriptorProto * sub = ( struct google_protobuf_DescriptorProto * ) _ upb_msg_new( & google_protobuf_DescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 40 , 80 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -251,10 +250,10 @@ UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_FileDescriptorP
return ( google_protobuf_EnumDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 44 , 88 ) , len ) ;
}
UPB_INLINE google_protobuf_EnumDescriptorProto * * google_protobuf_FileDescriptorProto_resize_enum_type ( google_protobuf_FileDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_EnumDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 44 , 88 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_EnumDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 44 , 88 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_EnumDescriptorProto * google_protobuf_FileDescriptorProto_add_enum_type ( google_protobuf_FileDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_EnumDescriptorProto * sub = ( struct google_protobuf_EnumDescriptorProto * ) upb_msg_new ( & google_protobuf_EnumDescriptorProto_msginit , arena ) ;
struct google_protobuf_EnumDescriptorProto * sub = ( struct google_protobuf_EnumDescriptorProto * ) _ upb_msg_new( & google_protobuf_EnumDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 44 , 88 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -264,10 +263,10 @@ UPB_INLINE google_protobuf_ServiceDescriptorProto** google_protobuf_FileDescript
return ( google_protobuf_ServiceDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 48 , 96 ) , len ) ;
}
UPB_INLINE google_protobuf_ServiceDescriptorProto * * google_protobuf_FileDescriptorProto_resize_service ( google_protobuf_FileDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_ServiceDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 48 , 96 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_ServiceDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 48 , 96 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_ServiceDescriptorProto * google_protobuf_FileDescriptorProto_add_service ( google_protobuf_FileDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_ServiceDescriptorProto * sub = ( struct google_protobuf_ServiceDescriptorProto * ) upb_msg_new ( & google_protobuf_ServiceDescriptorProto_msginit , arena ) ;
struct google_protobuf_ServiceDescriptorProto * sub = ( struct google_protobuf_ServiceDescriptorProto * ) _ upb_msg_new( & google_protobuf_ServiceDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 48 , 96 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -277,10 +276,10 @@ UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_FileDescriptor
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 52 , 104 ) , len ) ;
}
UPB_INLINE google_protobuf_FieldDescriptorProto * * google_protobuf_FileDescriptorProto_resize_extension ( google_protobuf_FileDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 52 , 104 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 52 , 104 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_FieldDescriptorProto * google_protobuf_FileDescriptorProto_add_extension ( google_protobuf_FileDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_FieldDescriptorProto * sub = ( struct google_protobuf_FieldDescriptorProto * ) upb_msg_new ( & google_protobuf_FieldDescriptorProto_msginit , arena ) ;
struct google_protobuf_FieldDescriptorProto * sub = ( struct google_protobuf_FieldDescriptorProto * ) _ upb_msg_new( & google_protobuf_FieldDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 52 , 104 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -293,7 +292,7 @@ UPB_INLINE void google_protobuf_FileDescriptorProto_set_options(google_protobuf_
UPB_INLINE struct google_protobuf_FileOptions * google_protobuf_FileDescriptorProto_mutable_options ( google_protobuf_FileDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_FileOptions * sub = ( struct google_protobuf_FileOptions * ) google_protobuf_FileDescriptorProto_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_FileOptions * ) upb_msg_new ( & google_protobuf_FileOptions_msginit , arena ) ;
sub = ( struct google_protobuf_FileOptions * ) _ upb_msg_new( & google_protobuf_FileOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_FileDescriptorProto_set_options ( msg , sub ) ;
}
@ -306,7 +305,7 @@ UPB_INLINE void google_protobuf_FileDescriptorProto_set_source_code_info(google_
UPB_INLINE struct google_protobuf_SourceCodeInfo * google_protobuf_FileDescriptorProto_mutable_source_code_info ( google_protobuf_FileDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_SourceCodeInfo * sub = ( struct google_protobuf_SourceCodeInfo * ) google_protobuf_FileDescriptorProto_source_code_info ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_SourceCodeInfo * ) upb_msg_new ( & google_protobuf_SourceCodeInfo_msginit , arena ) ;
sub = ( struct google_protobuf_SourceCodeInfo * ) _ upb_msg_new( & google_protobuf_SourceCodeInfo_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_FileDescriptorProto_set_source_code_info ( msg , sub ) ;
}
@ -316,21 +315,21 @@ UPB_INLINE int32_t* google_protobuf_FileDescriptorProto_mutable_public_dependenc
return ( int32_t * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 56 , 112 ) , len ) ;
}
UPB_INLINE int32_t * google_protobuf_FileDescriptorProto_resize_public_dependency ( google_protobuf_FileDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 56 , 112 ) , len , UPB_SIZE ( 4 , 4 ) , UPB_ TYPE_INT32 , arena ) ;
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 56 , 112 ) , len , UPB_TYPE_INT32 , arena ) ;
}
UPB_INLINE bool google_protobuf_FileDescriptorProto_add_public_dependency ( google_protobuf_FileDescriptorProto * msg , int32_t val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 56 , 112 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 56 , 112 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val ,
arena ) ;
}
UPB_INLINE int32_t * google_protobuf_FileDescriptorProto_mutable_weak_dependency ( google_protobuf_FileDescriptorProto * msg , size_t * len ) {
return ( int32_t * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 60 , 120 ) , len ) ;
}
UPB_INLINE int32_t * google_protobuf_FileDescriptorProto_resize_weak_dependency ( google_protobuf_FileDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 60 , 120 ) , len , UPB_SIZE ( 4 , 4 ) , UPB_ TYPE_INT32 , arena ) ;
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 60 , 120 ) , len , UPB_TYPE_INT32 , arena ) ;
}
UPB_INLINE bool google_protobuf_FileDescriptorProto_add_weak_dependency ( google_protobuf_FileDescriptorProto * msg , int32_t val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 60 , 120 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 60 , 120 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val ,
arena ) ;
}
UPB_INLINE void google_protobuf_FileDescriptorProto_set_syntax ( google_protobuf_FileDescriptorProto * msg , upb_strview value ) {
_upb_sethas ( msg , 3 ) ;
@ -340,7 +339,7 @@ UPB_INLINE void google_protobuf_FileDescriptorProto_set_syntax(google_protobuf_F
/* google.protobuf.DescriptorProto */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -372,10 +371,10 @@ UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProt
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len ) ;
}
UPB_INLINE google_protobuf_FieldDescriptorProto * * google_protobuf_DescriptorProto_resize_field ( google_protobuf_DescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_FieldDescriptorProto * google_protobuf_DescriptorProto_add_field ( google_protobuf_DescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_FieldDescriptorProto * sub = ( struct google_protobuf_FieldDescriptorProto * ) upb_msg_new ( & google_protobuf_FieldDescriptorProto_msginit , arena ) ;
struct google_protobuf_FieldDescriptorProto * sub = ( struct google_protobuf_FieldDescriptorProto * ) _ upb_msg_new( & google_protobuf_FieldDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 16 , 32 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -385,10 +384,10 @@ UPB_INLINE google_protobuf_DescriptorProto** google_protobuf_DescriptorProto_mut
return ( google_protobuf_DescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len ) ;
}
UPB_INLINE google_protobuf_DescriptorProto * * google_protobuf_DescriptorProto_resize_nested_type ( google_protobuf_DescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_DescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_DescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_DescriptorProto * google_protobuf_DescriptorProto_add_nested_type ( google_protobuf_DescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_DescriptorProto * sub = ( struct google_protobuf_DescriptorProto * ) upb_msg_new ( & google_protobuf_DescriptorProto_msginit , arena ) ;
struct google_protobuf_DescriptorProto * sub = ( struct google_protobuf_DescriptorProto * ) _ upb_msg_new( & google_protobuf_DescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 20 , 40 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -398,10 +397,10 @@ UPB_INLINE google_protobuf_EnumDescriptorProto** google_protobuf_DescriptorProto
return ( google_protobuf_EnumDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len ) ;
}
UPB_INLINE google_protobuf_EnumDescriptorProto * * google_protobuf_DescriptorProto_resize_enum_type ( google_protobuf_DescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_EnumDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_EnumDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_EnumDescriptorProto * google_protobuf_DescriptorProto_add_enum_type ( google_protobuf_DescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_EnumDescriptorProto * sub = ( struct google_protobuf_EnumDescriptorProto * ) upb_msg_new ( & google_protobuf_EnumDescriptorProto_msginit , arena ) ;
struct google_protobuf_EnumDescriptorProto * sub = ( struct google_protobuf_EnumDescriptorProto * ) _ upb_msg_new( & google_protobuf_EnumDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 24 , 48 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -411,10 +410,10 @@ UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange** google_protobuf_Desc
return ( google_protobuf_DescriptorProto_ExtensionRange * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 28 , 56 ) , len ) ;
}
UPB_INLINE google_protobuf_DescriptorProto_ExtensionRange * * google_protobuf_DescriptorProto_resize_extension_range ( google_protobuf_DescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_DescriptorProto_ExtensionRange * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 28 , 56 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_DescriptorProto_ExtensionRange * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 28 , 56 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_DescriptorProto_ExtensionRange * google_protobuf_DescriptorProto_add_extension_range ( google_protobuf_DescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_DescriptorProto_ExtensionRange * sub = ( struct google_protobuf_DescriptorProto_ExtensionRange * ) upb_msg_new ( & google_protobuf_DescriptorProto_ExtensionRange_msginit , arena ) ;
struct google_protobuf_DescriptorProto_ExtensionRange * sub = ( struct google_protobuf_DescriptorProto_ExtensionRange * ) _ upb_msg_new( & google_protobuf_DescriptorProto_ExtensionRange_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 28 , 56 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -424,10 +423,10 @@ UPB_INLINE google_protobuf_FieldDescriptorProto** google_protobuf_DescriptorProt
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 32 , 64 ) , len ) ;
}
UPB_INLINE google_protobuf_FieldDescriptorProto * * google_protobuf_DescriptorProto_resize_extension ( google_protobuf_DescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 32 , 64 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_FieldDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 32 , 64 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_FieldDescriptorProto * google_protobuf_DescriptorProto_add_extension ( google_protobuf_DescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_FieldDescriptorProto * sub = ( struct google_protobuf_FieldDescriptorProto * ) upb_msg_new ( & google_protobuf_FieldDescriptorProto_msginit , arena ) ;
struct google_protobuf_FieldDescriptorProto * sub = ( struct google_protobuf_FieldDescriptorProto * ) _ upb_msg_new( & google_protobuf_FieldDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 32 , 64 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -440,7 +439,7 @@ UPB_INLINE void google_protobuf_DescriptorProto_set_options(google_protobuf_Desc
UPB_INLINE struct google_protobuf_MessageOptions * google_protobuf_DescriptorProto_mutable_options ( google_protobuf_DescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_MessageOptions * sub = ( struct google_protobuf_MessageOptions * ) google_protobuf_DescriptorProto_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_MessageOptions * ) upb_msg_new ( & google_protobuf_MessageOptions_msginit , arena ) ;
sub = ( struct google_protobuf_MessageOptions * ) _ upb_msg_new( & google_protobuf_MessageOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_DescriptorProto_set_options ( msg , sub ) ;
}
@ -450,10 +449,10 @@ UPB_INLINE google_protobuf_OneofDescriptorProto** google_protobuf_DescriptorProt
return ( google_protobuf_OneofDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 36 , 72 ) , len ) ;
}
UPB_INLINE google_protobuf_OneofDescriptorProto * * google_protobuf_DescriptorProto_resize_oneof_decl ( google_protobuf_DescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_OneofDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 36 , 72 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_OneofDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 36 , 72 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_OneofDescriptorProto * google_protobuf_DescriptorProto_add_oneof_decl ( google_protobuf_DescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_OneofDescriptorProto * sub = ( struct google_protobuf_OneofDescriptorProto * ) upb_msg_new ( & google_protobuf_OneofDescriptorProto_msginit , arena ) ;
struct google_protobuf_OneofDescriptorProto * sub = ( struct google_protobuf_OneofDescriptorProto * ) _ upb_msg_new( & google_protobuf_OneofDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 36 , 72 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -463,10 +462,10 @@ UPB_INLINE google_protobuf_DescriptorProto_ReservedRange** google_protobuf_Descr
return ( google_protobuf_DescriptorProto_ReservedRange * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 40 , 80 ) , len ) ;
}
UPB_INLINE google_protobuf_DescriptorProto_ReservedRange * * google_protobuf_DescriptorProto_resize_reserved_range ( google_protobuf_DescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_DescriptorProto_ReservedRange * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 40 , 80 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_DescriptorProto_ReservedRange * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 40 , 80 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_DescriptorProto_ReservedRange * google_protobuf_DescriptorProto_add_reserved_range ( google_protobuf_DescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_DescriptorProto_ReservedRange * sub = ( struct google_protobuf_DescriptorProto_ReservedRange * ) upb_msg_new ( & google_protobuf_DescriptorProto_ReservedRange_msginit , arena ) ;
struct google_protobuf_DescriptorProto_ReservedRange * sub = ( struct google_protobuf_DescriptorProto_ReservedRange * ) _ upb_msg_new( & google_protobuf_DescriptorProto_ReservedRange_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 40 , 80 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -476,17 +475,17 @@ UPB_INLINE upb_strview* google_protobuf_DescriptorProto_mutable_reserved_name(go
return ( upb_strview * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 44 , 88 ) , len ) ;
}
UPB_INLINE upb_strview * google_protobuf_DescriptorProto_resize_reserved_name ( google_protobuf_DescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( upb_strview * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 44 , 88 ) , len , UPB_SIZE ( 8 , 16 ) , UPB_ TYPE_STRING , arena ) ;
return ( upb_strview * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 44 , 88 ) , len , UPB_TYPE_STRING , arena ) ;
}
UPB_INLINE bool google_protobuf_DescriptorProto_add_reserved_name ( google_protobuf_DescriptorProto * msg , upb_strview val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 44 , 88 ) , UPB_SIZE ( 8 , 16 ) , UPB_TYPE_STRING , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 44 , 88 ) , UPB_SIZE ( 8 , 16 ) , UPB_TYPE_STRING , & val ,
arena ) ;
}
/* google.protobuf.DescriptorProto.ExtensionRange */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -519,7 +518,7 @@ UPB_INLINE void google_protobuf_DescriptorProto_ExtensionRange_set_options(googl
UPB_INLINE struct google_protobuf_ExtensionRangeOptions * google_protobuf_DescriptorProto_ExtensionRange_mutable_options ( google_protobuf_DescriptorProto_ExtensionRange * msg , upb_arena * arena ) {
struct google_protobuf_ExtensionRangeOptions * sub = ( struct google_protobuf_ExtensionRangeOptions * ) google_protobuf_DescriptorProto_ExtensionRange_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_ExtensionRangeOptions * ) upb_msg_new ( & google_protobuf_ExtensionRangeOptions_msginit , arena ) ;
sub = ( struct google_protobuf_ExtensionRangeOptions * ) _ upb_msg_new( & google_protobuf_ExtensionRangeOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_DescriptorProto_ExtensionRange_set_options ( msg , sub ) ;
}
@ -529,7 +528,7 @@ UPB_INLINE struct google_protobuf_ExtensionRangeOptions* google_protobuf_Descrip
/* google.protobuf.DescriptorProto.ReservedRange */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -557,7 +556,7 @@ UPB_INLINE void google_protobuf_DescriptorProto_ReservedRange_set_end(google_pro
/* google.protobuf.ExtensionRangeOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -574,10 +573,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ExtensionRangeO
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_ExtensionRangeOptions_resize_uninterpreted_option ( google_protobuf_ExtensionRangeOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_ExtensionRangeOptions_add_uninterpreted_option ( google_protobuf_ExtensionRangeOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 0 , 0 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -587,7 +586,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_Extension
/* google.protobuf.FieldDescriptorProto */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -654,7 +653,7 @@ UPB_INLINE void google_protobuf_FieldDescriptorProto_set_options(google_protobuf
UPB_INLINE struct google_protobuf_FieldOptions * google_protobuf_FieldDescriptorProto_mutable_options ( google_protobuf_FieldDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_FieldOptions * sub = ( struct google_protobuf_FieldOptions * ) google_protobuf_FieldDescriptorProto_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_FieldOptions * ) upb_msg_new ( & google_protobuf_FieldOptions_msginit , arena ) ;
sub = ( struct google_protobuf_FieldOptions * ) _ upb_msg_new( & google_protobuf_FieldOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_FieldDescriptorProto_set_options ( msg , sub ) ;
}
@ -672,7 +671,7 @@ UPB_INLINE void google_protobuf_FieldDescriptorProto_set_json_name(google_protob
/* google.protobuf.OneofDescriptorProto */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -699,7 +698,7 @@ UPB_INLINE void google_protobuf_OneofDescriptorProto_set_options(google_protobuf
UPB_INLINE struct google_protobuf_OneofOptions * google_protobuf_OneofDescriptorProto_mutable_options ( google_protobuf_OneofDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_OneofOptions * sub = ( struct google_protobuf_OneofOptions * ) google_protobuf_OneofDescriptorProto_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_OneofOptions * ) upb_msg_new ( & google_protobuf_OneofOptions_msginit , arena ) ;
sub = ( struct google_protobuf_OneofOptions * ) _ upb_msg_new( & google_protobuf_OneofOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_OneofDescriptorProto_set_options ( msg , sub ) ;
}
@ -709,7 +708,7 @@ UPB_INLINE struct google_protobuf_OneofOptions* google_protobuf_OneofDescriptorP
/* google.protobuf.EnumDescriptorProto */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -736,10 +735,10 @@ UPB_INLINE google_protobuf_EnumValueDescriptorProto** google_protobuf_EnumDescri
return ( google_protobuf_EnumValueDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len ) ;
}
UPB_INLINE google_protobuf_EnumValueDescriptorProto * * google_protobuf_EnumDescriptorProto_resize_value ( google_protobuf_EnumDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_EnumValueDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_EnumValueDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_EnumValueDescriptorProto * google_protobuf_EnumDescriptorProto_add_value ( google_protobuf_EnumDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_EnumValueDescriptorProto * sub = ( struct google_protobuf_EnumValueDescriptorProto * ) upb_msg_new ( & google_protobuf_EnumValueDescriptorProto_msginit , arena ) ;
struct google_protobuf_EnumValueDescriptorProto * sub = ( struct google_protobuf_EnumValueDescriptorProto * ) _ upb_msg_new( & google_protobuf_EnumValueDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 16 , 32 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -752,7 +751,7 @@ UPB_INLINE void google_protobuf_EnumDescriptorProto_set_options(google_protobuf_
UPB_INLINE struct google_protobuf_EnumOptions * google_protobuf_EnumDescriptorProto_mutable_options ( google_protobuf_EnumDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_EnumOptions * sub = ( struct google_protobuf_EnumOptions * ) google_protobuf_EnumDescriptorProto_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_EnumOptions * ) upb_msg_new ( & google_protobuf_EnumOptions_msginit , arena ) ;
sub = ( struct google_protobuf_EnumOptions * ) _ upb_msg_new( & google_protobuf_EnumOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_EnumDescriptorProto_set_options ( msg , sub ) ;
}
@ -762,10 +761,10 @@ UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange** google_protob
return ( google_protobuf_EnumDescriptorProto_EnumReservedRange * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len ) ;
}
UPB_INLINE google_protobuf_EnumDescriptorProto_EnumReservedRange * * google_protobuf_EnumDescriptorProto_resize_reserved_range ( google_protobuf_EnumDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_EnumDescriptorProto_EnumReservedRange * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_EnumDescriptorProto_EnumReservedRange * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_EnumDescriptorProto_EnumReservedRange * google_protobuf_EnumDescriptorProto_add_reserved_range ( google_protobuf_EnumDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_EnumDescriptorProto_EnumReservedRange * sub = ( struct google_protobuf_EnumDescriptorProto_EnumReservedRange * ) upb_msg_new ( & google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit , arena ) ;
struct google_protobuf_EnumDescriptorProto_EnumReservedRange * sub = ( struct google_protobuf_EnumDescriptorProto_EnumReservedRange * ) _ upb_msg_new( & google_protobuf_EnumDescriptorProto_EnumReservedRange_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 20 , 40 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -775,17 +774,17 @@ UPB_INLINE upb_strview* google_protobuf_EnumDescriptorProto_mutable_reserved_nam
return ( upb_strview * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len ) ;
}
UPB_INLINE upb_strview * google_protobuf_EnumDescriptorProto_resize_reserved_name ( google_protobuf_EnumDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( upb_strview * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len , UPB_SIZE ( 8 , 16 ) , UPB_ TYPE_STRING , arena ) ;
return ( upb_strview * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len , UPB_TYPE_STRING , arena ) ;
}
UPB_INLINE bool google_protobuf_EnumDescriptorProto_add_reserved_name ( google_protobuf_EnumDescriptorProto * msg , upb_strview val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 24 , 48 ) , UPB_SIZE ( 8 , 16 ) , UPB_TYPE_STRING , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 24 , 48 ) , UPB_SIZE ( 8 , 16 ) , UPB_TYPE_STRING , & val ,
arena ) ;
}
/* google.protobuf.EnumDescriptorProto.EnumReservedRange */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -813,7 +812,7 @@ UPB_INLINE void google_protobuf_EnumDescriptorProto_EnumReservedRange_set_end(go
/* google.protobuf.EnumValueDescriptorProto */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -846,7 +845,7 @@ UPB_INLINE void google_protobuf_EnumValueDescriptorProto_set_options(google_prot
UPB_INLINE struct google_protobuf_EnumValueOptions * google_protobuf_EnumValueDescriptorProto_mutable_options ( google_protobuf_EnumValueDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_EnumValueOptions * sub = ( struct google_protobuf_EnumValueOptions * ) google_protobuf_EnumValueDescriptorProto_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_EnumValueOptions * ) upb_msg_new ( & google_protobuf_EnumValueOptions_msginit , arena ) ;
sub = ( struct google_protobuf_EnumValueOptions * ) _ upb_msg_new( & google_protobuf_EnumValueOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_EnumValueDescriptorProto_set_options ( msg , sub ) ;
}
@ -856,7 +855,7 @@ UPB_INLINE struct google_protobuf_EnumValueOptions* google_protobuf_EnumValueDes
/* google.protobuf.ServiceDescriptorProto */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -881,10 +880,10 @@ UPB_INLINE google_protobuf_MethodDescriptorProto** google_protobuf_ServiceDescri
return ( google_protobuf_MethodDescriptorProto * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len ) ;
}
UPB_INLINE google_protobuf_MethodDescriptorProto * * google_protobuf_ServiceDescriptorProto_resize_method ( google_protobuf_ServiceDescriptorProto * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_MethodDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_MethodDescriptorProto * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 16 , 32 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_MethodDescriptorProto * google_protobuf_ServiceDescriptorProto_add_method ( google_protobuf_ServiceDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_MethodDescriptorProto * sub = ( struct google_protobuf_MethodDescriptorProto * ) upb_msg_new ( & google_protobuf_MethodDescriptorProto_msginit , arena ) ;
struct google_protobuf_MethodDescriptorProto * sub = ( struct google_protobuf_MethodDescriptorProto * ) _ upb_msg_new( & google_protobuf_MethodDescriptorProto_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 16 , 32 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -897,7 +896,7 @@ UPB_INLINE void google_protobuf_ServiceDescriptorProto_set_options(google_protob
UPB_INLINE struct google_protobuf_ServiceOptions * google_protobuf_ServiceDescriptorProto_mutable_options ( google_protobuf_ServiceDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_ServiceOptions * sub = ( struct google_protobuf_ServiceOptions * ) google_protobuf_ServiceDescriptorProto_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_ServiceOptions * ) upb_msg_new ( & google_protobuf_ServiceOptions_msginit , arena ) ;
sub = ( struct google_protobuf_ServiceOptions * ) _ upb_msg_new( & google_protobuf_ServiceOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_ServiceDescriptorProto_set_options ( msg , sub ) ;
}
@ -907,7 +906,7 @@ UPB_INLINE struct google_protobuf_ServiceOptions* google_protobuf_ServiceDescrip
/* google.protobuf.MethodDescriptorProto */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -950,7 +949,7 @@ UPB_INLINE void google_protobuf_MethodDescriptorProto_set_options(google_protobu
UPB_INLINE struct google_protobuf_MethodOptions * google_protobuf_MethodDescriptorProto_mutable_options ( google_protobuf_MethodDescriptorProto * msg , upb_arena * arena ) {
struct google_protobuf_MethodOptions * sub = ( struct google_protobuf_MethodOptions * ) google_protobuf_MethodDescriptorProto_options ( msg ) ;
if ( sub = = NULL ) {
sub = ( struct google_protobuf_MethodOptions * ) upb_msg_new ( & google_protobuf_MethodOptions_msginit , arena ) ;
sub = ( struct google_protobuf_MethodOptions * ) _ upb_msg_new( & google_protobuf_MethodOptions_msginit , arena ) ;
if ( ! sub ) return NULL ;
google_protobuf_MethodDescriptorProto_set_options ( msg , sub ) ;
}
@ -968,7 +967,7 @@ UPB_INLINE void google_protobuf_MethodDescriptorProto_set_server_streaming(googl
/* google.protobuf.FileOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1105,10 +1104,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FileOptions_mut
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 108 , 192 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_FileOptions_resize_uninterpreted_option ( google_protobuf_FileOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 108 , 192 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 108 , 192 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_FileOptions_add_uninterpreted_option ( google_protobuf_FileOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 108 , 192 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1118,7 +1117,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FileOptio
/* google.protobuf.MessageOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1159,10 +1158,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MessageOptions_
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 8 , 8 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_MessageOptions_resize_uninterpreted_option ( google_protobuf_MessageOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 8 , 8 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 8 , 8 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_MessageOptions_add_uninterpreted_option ( google_protobuf_MessageOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 8 , 8 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1172,7 +1171,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MessageOp
/* google.protobuf.FieldOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1225,10 +1224,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FieldOptions_mu
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 28 , 32 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_FieldOptions_resize_uninterpreted_option ( google_protobuf_FieldOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 28 , 32 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 28 , 32 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_FieldOptions_add_uninterpreted_option ( google_protobuf_FieldOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 28 , 32 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1238,7 +1237,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_FieldOpti
/* google.protobuf.OneofOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1255,10 +1254,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_OneofOptions_mu
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_OneofOptions_resize_uninterpreted_option ( google_protobuf_OneofOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_OneofOptions_add_uninterpreted_option ( google_protobuf_OneofOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 0 , 0 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1268,7 +1267,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_OneofOpti
/* google.protobuf.EnumOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1297,10 +1296,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumOptions_mut
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_EnumOptions_resize_uninterpreted_option ( google_protobuf_EnumOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_EnumOptions_add_uninterpreted_option ( google_protobuf_EnumOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 4 , 8 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1310,7 +1309,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumOptio
/* google.protobuf.EnumValueOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1333,10 +1332,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_EnumValueOption
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_EnumValueOptions_resize_uninterpreted_option ( google_protobuf_EnumValueOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_EnumValueOptions_add_uninterpreted_option ( google_protobuf_EnumValueOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 4 , 8 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1346,7 +1345,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_EnumValue
/* google.protobuf.ServiceOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1369,10 +1368,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_ServiceOptions_
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_ServiceOptions_resize_uninterpreted_option ( google_protobuf_ServiceOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 4 , 8 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_ServiceOptions_add_uninterpreted_option ( google_protobuf_ServiceOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 4 , 8 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1382,7 +1381,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_ServiceOp
/* google.protobuf.MethodOptions */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1411,10 +1410,10 @@ UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_MethodOptions_m
return ( google_protobuf_UninterpretedOption * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 20 , 24 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption * * google_protobuf_MethodOptions_resize_uninterpreted_option ( google_protobuf_MethodOptions * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 24 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 24 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption * google_protobuf_MethodOptions_add_uninterpreted_option ( google_protobuf_MethodOptions * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) upb_msg_new ( & google_protobuf_UninterpretedOption_msginit , arena ) ;
struct google_protobuf_UninterpretedOption * sub = ( struct google_protobuf_UninterpretedOption * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 20 , 24 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1424,7 +1423,7 @@ UPB_INLINE struct google_protobuf_UninterpretedOption* google_protobuf_MethodOpt
/* google.protobuf.UninterpretedOption */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1453,10 +1452,10 @@ UPB_INLINE google_protobuf_UninterpretedOption_NamePart** google_protobuf_Uninte
return ( google_protobuf_UninterpretedOption_NamePart * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 56 , 80 ) , len ) ;
}
UPB_INLINE google_protobuf_UninterpretedOption_NamePart * * google_protobuf_UninterpretedOption_resize_name ( google_protobuf_UninterpretedOption * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_UninterpretedOption_NamePart * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 56 , 80 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_UninterpretedOption_NamePart * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 56 , 80 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_UninterpretedOption_NamePart * google_protobuf_UninterpretedOption_add_name ( google_protobuf_UninterpretedOption * msg , upb_arena * arena ) {
struct google_protobuf_UninterpretedOption_NamePart * sub = ( struct google_protobuf_UninterpretedOption_NamePart * ) upb_msg_new ( & google_protobuf_UninterpretedOption_NamePart_msginit , arena ) ;
struct google_protobuf_UninterpretedOption_NamePart * sub = ( struct google_protobuf_UninterpretedOption_NamePart * ) _ upb_msg_new( & google_protobuf_UninterpretedOption_NamePart_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 56 , 80 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1490,7 +1489,7 @@ UPB_INLINE void google_protobuf_UninterpretedOption_set_aggregate_value(google_p
/* google.protobuf.UninterpretedOption.NamePart */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1518,7 +1517,7 @@ UPB_INLINE void google_protobuf_UninterpretedOption_NamePart_set_is_extension(go
/* google.protobuf.SourceCodeInfo */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1535,10 +1534,10 @@ UPB_INLINE google_protobuf_SourceCodeInfo_Location** google_protobuf_SourceCodeI
return ( google_protobuf_SourceCodeInfo_Location * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len ) ;
}
UPB_INLINE google_protobuf_SourceCodeInfo_Location * * google_protobuf_SourceCodeInfo_resize_location ( google_protobuf_SourceCodeInfo * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_SourceCodeInfo_Location * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_SourceCodeInfo_Location * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_SourceCodeInfo_Location * google_protobuf_SourceCodeInfo_add_location ( google_protobuf_SourceCodeInfo * msg , upb_arena * arena ) {
struct google_protobuf_SourceCodeInfo_Location * sub = ( struct google_protobuf_SourceCodeInfo_Location * ) upb_msg_new ( & google_protobuf_SourceCodeInfo_Location_msginit , arena ) ;
struct google_protobuf_SourceCodeInfo_Location * sub = ( struct google_protobuf_SourceCodeInfo_Location * ) _ upb_msg_new( & google_protobuf_SourceCodeInfo_Location_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 0 , 0 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1548,7 +1547,7 @@ UPB_INLINE struct google_protobuf_SourceCodeInfo_Location* google_protobuf_Sourc
/* google.protobuf.SourceCodeInfo.Location */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1571,21 +1570,21 @@ UPB_INLINE int32_t* google_protobuf_SourceCodeInfo_Location_mutable_path(google_
return ( int32_t * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len ) ;
}
UPB_INLINE int32_t * google_protobuf_SourceCodeInfo_Location_resize_path ( google_protobuf_SourceCodeInfo_Location * msg , size_t len , upb_arena * arena ) {
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len , UPB_SIZE ( 4 , 4 ) , UPB_ TYPE_INT32 , arena ) ;
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 40 ) , len , UPB_TYPE_INT32 , arena ) ;
}
UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_path ( google_protobuf_SourceCodeInfo_Location * msg , int32_t val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 20 , 40 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 20 , 40 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val ,
arena ) ;
}
UPB_INLINE int32_t * google_protobuf_SourceCodeInfo_Location_mutable_span ( google_protobuf_SourceCodeInfo_Location * msg , size_t * len ) {
return ( int32_t * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len ) ;
}
UPB_INLINE int32_t * google_protobuf_SourceCodeInfo_Location_resize_span ( google_protobuf_SourceCodeInfo_Location * msg , size_t len , upb_arena * arena ) {
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len , UPB_SIZE ( 4 , 4 ) , UPB_ TYPE_INT32 , arena ) ;
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 24 , 48 ) , len , UPB_TYPE_INT32 , arena ) ;
}
UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_span ( google_protobuf_SourceCodeInfo_Location * msg , int32_t val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 24 , 48 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 24 , 48 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val ,
arena ) ;
}
UPB_INLINE void google_protobuf_SourceCodeInfo_Location_set_leading_comments ( google_protobuf_SourceCodeInfo_Location * msg , upb_strview value ) {
_upb_sethas ( msg , 1 ) ;
@ -1599,17 +1598,17 @@ UPB_INLINE upb_strview* google_protobuf_SourceCodeInfo_Location_mutable_leading_
return ( upb_strview * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 28 , 56 ) , len ) ;
}
UPB_INLINE upb_strview * google_protobuf_SourceCodeInfo_Location_resize_leading_detached_comments ( google_protobuf_SourceCodeInfo_Location * msg , size_t len , upb_arena * arena ) {
return ( upb_strview * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 28 , 56 ) , len , UPB_SIZE ( 8 , 16 ) , UPB_ TYPE_STRING , arena ) ;
return ( upb_strview * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 28 , 56 ) , len , UPB_TYPE_STRING , arena ) ;
}
UPB_INLINE bool google_protobuf_SourceCodeInfo_Location_add_leading_detached_comments ( google_protobuf_SourceCodeInfo_Location * msg , upb_strview val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 28 , 56 ) , UPB_SIZE ( 8 , 16 ) , UPB_TYPE_STRING , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 28 , 56 ) , UPB_SIZE ( 8 , 16 ) , UPB_TYPE_STRING , & val ,
arena ) ;
}
/* google.protobuf.GeneratedCodeInfo */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1626,10 +1625,10 @@ UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation** google_protobuf_Genera
return ( google_protobuf_GeneratedCodeInfo_Annotation * * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len ) ;
}
UPB_INLINE google_protobuf_GeneratedCodeInfo_Annotation * * google_protobuf_GeneratedCodeInfo_resize_annotation ( google_protobuf_GeneratedCodeInfo * msg , size_t len , upb_arena * arena ) {
return ( google_protobuf_GeneratedCodeInfo_Annotation * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_SIZE ( 4 , 8 ) , UPB_ TYPE_MESSAGE , arena ) ;
return ( google_protobuf_GeneratedCodeInfo_Annotation * * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 0 , 0 ) , len , UPB_TYPE_MESSAGE , arena ) ;
}
UPB_INLINE struct google_protobuf_GeneratedCodeInfo_Annotation * google_protobuf_GeneratedCodeInfo_add_annotation ( google_protobuf_GeneratedCodeInfo * msg , upb_arena * arena ) {
struct google_protobuf_GeneratedCodeInfo_Annotation * sub = ( struct google_protobuf_GeneratedCodeInfo_Annotation * ) upb_msg_new ( & google_protobuf_GeneratedCodeInfo_Annotation_msginit , arena ) ;
struct google_protobuf_GeneratedCodeInfo_Annotation * sub = ( struct google_protobuf_GeneratedCodeInfo_Annotation * ) _ upb_msg_new( & google_protobuf_GeneratedCodeInfo_Annotation_msginit , arena ) ;
bool ok = _upb_array_append_accessor (
msg , UPB_SIZE ( 0 , 0 ) , UPB_SIZE ( 4 , 8 ) , UPB_TYPE_MESSAGE , & sub , arena ) ;
if ( ! ok ) return NULL ;
@ -1639,7 +1638,7 @@ UPB_INLINE struct google_protobuf_GeneratedCodeInfo_Annotation* google_protobuf_
/* google.protobuf.GeneratedCodeInfo.Annotation */
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_parse ( const char * buf , size_t size ,
upb_arena * arena ) {
@ -1662,11 +1661,11 @@ UPB_INLINE int32_t* google_protobuf_GeneratedCodeInfo_Annotation_mutable_path(go
return ( int32_t * ) _upb_array_mutable_accessor ( msg , UPB_SIZE ( 20 , 32 ) , len ) ;
}
UPB_INLINE int32_t * google_protobuf_GeneratedCodeInfo_Annotation_resize_path ( google_protobuf_GeneratedCodeInfo_Annotation * msg , size_t len , upb_arena * arena ) {
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 32 ) , len , UPB_SIZE ( 4 , 4 ) , UPB_ TYPE_INT32 , arena ) ;
return ( int32_t * ) _upb_array_resize_accessor ( msg , UPB_SIZE ( 20 , 32 ) , len , UPB_TYPE_INT32 , arena ) ;
}
UPB_INLINE bool google_protobuf_GeneratedCodeInfo_Annotation_add_path ( google_protobuf_GeneratedCodeInfo_Annotation * msg , int32_t val , upb_arena * arena ) {
return _upb_array_append_accessor (
msg , UPB_SIZE ( 20 , 32 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val , arena ) ;
return _upb_array_append_accessor ( msg , UPB_SIZE ( 20 , 32 ) , UPB_SIZE ( 4 , 4 ) , UPB_TYPE_INT32 , & val ,
arena ) ;
}
UPB_INLINE void google_protobuf_GeneratedCodeInfo_Annotation_set_source_file ( google_protobuf_GeneratedCodeInfo_Annotation * msg , upb_strview value ) {
_upb_sethas ( msg , 3 ) ;