|
|
|
@ -25,10 +25,10 @@ extern const upb_MiniTable* google__protobuf__FileDescriptorProto_msg_init(); |
|
|
|
|
extern const upb_MiniTable* google__protobuf__GeneratedCodeInfo_msg_init(); |
|
|
|
|
extern const upb_MiniTableEnum* google_protobuf_compiler_CodeGeneratorResponse_Feature_enum_init(); |
|
|
|
|
|
|
|
|
|
typedef struct google_protobuf_compiler_Version google_protobuf_compiler_Version; |
|
|
|
|
typedef struct google_protobuf_compiler_CodeGeneratorRequest google_protobuf_compiler_CodeGeneratorRequest; |
|
|
|
|
typedef struct google_protobuf_compiler_CodeGeneratorResponse google_protobuf_compiler_CodeGeneratorResponse; |
|
|
|
|
typedef struct google_protobuf_compiler_CodeGeneratorResponse_File google_protobuf_compiler_CodeGeneratorResponse_File; |
|
|
|
|
typedef struct google_protobuf_compiler_Version { upb_Message UPB_PRIVATE(base); } google_protobuf_compiler_Version; |
|
|
|
|
typedef struct google_protobuf_compiler_CodeGeneratorRequest { upb_Message UPB_PRIVATE(base); } google_protobuf_compiler_CodeGeneratorRequest; |
|
|
|
|
typedef struct google_protobuf_compiler_CodeGeneratorResponse { upb_Message UPB_PRIVATE(base); } google_protobuf_compiler_CodeGeneratorResponse; |
|
|
|
|
typedef struct google_protobuf_compiler_CodeGeneratorResponse_File { upb_Message UPB_PRIVATE(base); } google_protobuf_compiler_CodeGeneratorResponse_File; |
|
|
|
|
struct google_protobuf_FileDescriptorProto; |
|
|
|
|
struct google_protobuf_GeneratedCodeInfo; |
|
|
|
|
|
|
|
|
@ -48,7 +48,8 @@ UPB_INLINE google_protobuf_compiler_Version* google_protobuf_compiler_Version_ne |
|
|
|
|
UPB_INLINE google_protobuf_compiler_Version* google_protobuf_compiler_Version_parse(const char* buf, size_t size, upb_Arena* arena) { |
|
|
|
|
google_protobuf_compiler_Version* ret = google_protobuf_compiler_Version_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, ret, google__protobuf__compiler__Version_msg_init(), NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__Version_msg_init(), NULL, 0, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
@ -58,99 +59,103 @@ UPB_INLINE google_protobuf_compiler_Version* google_protobuf_compiler_Version_pa |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_compiler_Version* ret = google_protobuf_compiler_Version_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, ret, google__protobuf__compiler__Version_msg_init(), extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__Version_msg_init(), extreg, options, |
|
|
|
|
arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_compiler_Version_serialize(const google_protobuf_compiler_Version* msg, upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(msg, google__protobuf__compiler__Version_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__Version_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_compiler_Version_serialize_ex(const google_protobuf_compiler_Version* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(msg, google__protobuf__compiler__Version_msg_init(), options, arena, &ptr, len); |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__Version_msg_init(), options, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_Version_clear_major(google_protobuf_compiler_Version* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 1); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t google_protobuf_compiler_Version_major(const google_protobuf_compiler_Version* msg) { |
|
|
|
|
int32_t default_val = (int32_t)0; |
|
|
|
|
int32_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 1); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_Version_has_major(const google_protobuf_compiler_Version* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 1); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_Version_clear_minor(google_protobuf_compiler_Version* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 2); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t google_protobuf_compiler_Version_minor(const google_protobuf_compiler_Version* msg) { |
|
|
|
|
int32_t default_val = (int32_t)0; |
|
|
|
|
int32_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 2); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_Version_has_minor(const google_protobuf_compiler_Version* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 2); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_Version_clear_patch(google_protobuf_compiler_Version* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 3); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t google_protobuf_compiler_Version_patch(const google_protobuf_compiler_Version* msg) { |
|
|
|
|
int32_t default_val = (int32_t)0; |
|
|
|
|
int32_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 3); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_Version_has_patch(const google_protobuf_compiler_Version* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 3); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_Version_clear_suffix(google_protobuf_compiler_Version* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 4); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_compiler_Version_suffix(const google_protobuf_compiler_Version* msg) { |
|
|
|
|
upb_StringView default_val = upb_StringView_FromString(""); |
|
|
|
|
upb_StringView ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 4); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_Version_has_suffix(const google_protobuf_compiler_Version* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 4); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
UPB_INLINE void google_protobuf_compiler_Version_set_major(google_protobuf_compiler_Version *msg, int32_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 1); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_Version_set_minor(google_protobuf_compiler_Version *msg, int32_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 2); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_Version_set_patch(google_protobuf_compiler_Version *msg, int32_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 3); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_Version_set_suffix(google_protobuf_compiler_Version *msg, upb_StringView value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__Version_msg_init(), 4); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* google.protobuf.compiler.CodeGeneratorRequest */ |
|
|
|
@ -161,7 +166,8 @@ UPB_INLINE google_protobuf_compiler_CodeGeneratorRequest* google_protobuf_compil |
|
|
|
|
UPB_INLINE google_protobuf_compiler_CodeGeneratorRequest* google_protobuf_compiler_CodeGeneratorRequest_parse(const char* buf, size_t size, upb_Arena* arena) { |
|
|
|
|
google_protobuf_compiler_CodeGeneratorRequest* ret = google_protobuf_compiler_CodeGeneratorRequest_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, ret, google__protobuf__compiler__CodeGeneratorRequest_msg_init(), NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__CodeGeneratorRequest_msg_init(), NULL, 0, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
@ -171,30 +177,30 @@ UPB_INLINE google_protobuf_compiler_CodeGeneratorRequest* google_protobuf_compil |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_compiler_CodeGeneratorRequest* ret = google_protobuf_compiler_CodeGeneratorRequest_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, ret, google__protobuf__compiler__CodeGeneratorRequest_msg_init(), extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__CodeGeneratorRequest_msg_init(), extreg, options, |
|
|
|
|
arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_compiler_CodeGeneratorRequest_serialize(const google_protobuf_compiler_CodeGeneratorRequest* msg, upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(msg, google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_compiler_CodeGeneratorRequest_serialize_ex(const google_protobuf_compiler_CodeGeneratorRequest* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(msg, google__protobuf__compiler__CodeGeneratorRequest_msg_init(), options, arena, &ptr, len); |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__CodeGeneratorRequest_msg_init(), options, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 1); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView const* google_protobuf_compiler_CodeGeneratorRequest_file_to_generate(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 1); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(msg, &field); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView const*)_upb_array_constptr(arr); |
|
|
|
@ -205,16 +211,16 @@ UPB_INLINE upb_StringView const* google_protobuf_compiler_CodeGeneratorRequest_f |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_file_to_generate_upb_array(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 1); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(msg, &field); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (size) { |
|
|
|
|
*size = arr ? arr->UPB_PRIVATE(size) : 0; |
|
|
|
|
} |
|
|
|
|
return arr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_file_to_generate_mutable_upb_array(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size, upb_Arena* arena) { |
|
|
|
|
UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_file_to_generate_mutable_upb_array(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size, upb_Arena* arena) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 1); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
(upb_Message*)msg, &field, arena); |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (size) { |
|
|
|
|
*size = arr ? arr->UPB_PRIVATE(size) : 0; |
|
|
|
|
} |
|
|
|
@ -222,41 +228,43 @@ UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_file_to_gen |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_parameter(google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 2); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorRequest_parameter(const google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
upb_StringView default_val = upb_StringView_FromString(""); |
|
|
|
|
upb_StringView ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 2); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_has_parameter(const google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 2); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_compiler_version(google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 3); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const google_protobuf_compiler_Version* google_protobuf_compiler_CodeGeneratorRequest_compiler_version(const google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
const google_protobuf_compiler_Version* default_val = NULL; |
|
|
|
|
const google_protobuf_compiler_Version* ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 3); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_has_compiler_version(const google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 3); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_proto_file(google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 15); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const struct google_protobuf_FileDescriptorProto* const* google_protobuf_compiler_CodeGeneratorRequest_proto_file(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 15); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(msg, &field); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const struct google_protobuf_FileDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
@ -267,16 +275,16 @@ UPB_INLINE const struct google_protobuf_FileDescriptorProto* const* google_proto |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_proto_file_upb_array(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 15); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(msg, &field); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (size) { |
|
|
|
|
*size = arr ? arr->UPB_PRIVATE(size) : 0; |
|
|
|
|
} |
|
|
|
|
return arr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_proto_file_mutable_upb_array(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size, upb_Arena* arena) { |
|
|
|
|
UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_proto_file_mutable_upb_array(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size, upb_Arena* arena) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 15); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
(upb_Message*)msg, &field, arena); |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (size) { |
|
|
|
|
*size = arr ? arr->UPB_PRIVATE(size) : 0; |
|
|
|
|
} |
|
|
|
@ -284,11 +292,11 @@ UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_proto_file_ |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_clear_source_file_descriptors(google_protobuf_compiler_CodeGeneratorRequest* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 17); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const struct google_protobuf_FileDescriptorProto* const* google_protobuf_compiler_CodeGeneratorRequest_source_file_descriptors(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 17); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(msg, &field); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const struct google_protobuf_FileDescriptorProto* const*)_upb_array_constptr(arr); |
|
|
|
@ -299,16 +307,16 @@ UPB_INLINE const struct google_protobuf_FileDescriptorProto* const* google_proto |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_source_file_descriptors_upb_array(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 17); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(msg, &field); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (size) { |
|
|
|
|
*size = arr ? arr->UPB_PRIVATE(size) : 0; |
|
|
|
|
} |
|
|
|
|
return arr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_source_file_descriptors_mutable_upb_array(const google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size, upb_Arena* arena) { |
|
|
|
|
UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_source_file_descriptors_mutable_upb_array(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size, upb_Arena* arena) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 17); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
(upb_Message*)msg, &field, arena); |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (size) { |
|
|
|
|
*size = arr ? arr->UPB_PRIVATE(size) : 0; |
|
|
|
|
} |
|
|
|
@ -317,7 +325,7 @@ UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorRequest_source_file |
|
|
|
|
|
|
|
|
|
UPB_INLINE upb_StringView* google_protobuf_compiler_CodeGeneratorRequest_mutable_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 1); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(msg, &field); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (upb_StringView*)_upb_array_ptr(arr); |
|
|
|
@ -328,11 +336,13 @@ UPB_INLINE upb_StringView* google_protobuf_compiler_CodeGeneratorRequest_mutable |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView* google_protobuf_compiler_CodeGeneratorRequest_resize_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t size, upb_Arena* arena) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 1); |
|
|
|
|
return (upb_StringView*)upb_Message_ResizeArrayUninitialized(msg, &field, size, arena); |
|
|
|
|
return (upb_StringView*)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg), |
|
|
|
|
&field, size, arena); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_add_file_to_generate(google_protobuf_compiler_CodeGeneratorRequest* msg, upb_StringView val, upb_Arena* arena) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 1); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray(msg, &field, arena); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return false; |
|
|
|
@ -343,11 +353,11 @@ UPB_INLINE bool google_protobuf_compiler_CodeGeneratorRequest_add_file_to_genera |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_set_parameter(google_protobuf_compiler_CodeGeneratorRequest *msg, upb_StringView value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 2); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorRequest_set_compiler_version(google_protobuf_compiler_CodeGeneratorRequest *msg, google_protobuf_compiler_Version* value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 3); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_compiler_Version* google_protobuf_compiler_CodeGeneratorRequest_mutable_compiler_version(google_protobuf_compiler_CodeGeneratorRequest* msg, upb_Arena* arena) { |
|
|
|
|
struct google_protobuf_compiler_Version* sub = (struct google_protobuf_compiler_Version*)google_protobuf_compiler_CodeGeneratorRequest_compiler_version(msg); |
|
|
|
@ -359,7 +369,7 @@ UPB_INLINE struct google_protobuf_compiler_Version* google_protobuf_compiler_Cod |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FileDescriptorProto** google_protobuf_compiler_CodeGeneratorRequest_mutable_proto_file(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 15); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(msg, &field); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (struct google_protobuf_FileDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
@ -370,11 +380,13 @@ UPB_INLINE struct google_protobuf_FileDescriptorProto** google_protobuf_compiler |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FileDescriptorProto** google_protobuf_compiler_CodeGeneratorRequest_resize_proto_file(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t size, upb_Arena* arena) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 15); |
|
|
|
|
return (struct google_protobuf_FileDescriptorProto**)upb_Message_ResizeArrayUninitialized(msg, &field, size, arena); |
|
|
|
|
return (struct google_protobuf_FileDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg), |
|
|
|
|
&field, size, arena); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_compiler_CodeGeneratorRequest_add_proto_file(google_protobuf_compiler_CodeGeneratorRequest* msg, upb_Arena* arena) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 15); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray(msg, &field, arena); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
@ -387,7 +399,7 @@ UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_compiler_ |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FileDescriptorProto** google_protobuf_compiler_CodeGeneratorRequest_mutable_source_file_descriptors(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t* size) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 17); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(msg, &field); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (struct google_protobuf_FileDescriptorProto**)_upb_array_ptr(arr); |
|
|
|
@ -398,11 +410,13 @@ UPB_INLINE struct google_protobuf_FileDescriptorProto** google_protobuf_compiler |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FileDescriptorProto** google_protobuf_compiler_CodeGeneratorRequest_resize_source_file_descriptors(google_protobuf_compiler_CodeGeneratorRequest* msg, size_t size, upb_Arena* arena) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 17); |
|
|
|
|
return (struct google_protobuf_FileDescriptorProto**)upb_Message_ResizeArrayUninitialized(msg, &field, size, arena); |
|
|
|
|
return (struct google_protobuf_FileDescriptorProto**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg), |
|
|
|
|
&field, size, arena); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FileDescriptorProto* google_protobuf_compiler_CodeGeneratorRequest_add_source_file_descriptors(google_protobuf_compiler_CodeGeneratorRequest* msg, upb_Arena* arena) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorRequest_msg_init(), 17); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray(msg, &field, arena); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
@ -422,7 +436,8 @@ UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse* google_protobuf_compi |
|
|
|
|
UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse* google_protobuf_compiler_CodeGeneratorResponse_parse(const char* buf, size_t size, upb_Arena* arena) { |
|
|
|
|
google_protobuf_compiler_CodeGeneratorResponse* ret = google_protobuf_compiler_CodeGeneratorResponse_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, ret, google__protobuf__compiler__CodeGeneratorResponse_msg_init(), NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__CodeGeneratorResponse_msg_init(), NULL, 0, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
@ -432,90 +447,94 @@ UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse* google_protobuf_compi |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_compiler_CodeGeneratorResponse* ret = google_protobuf_compiler_CodeGeneratorResponse_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, ret, google__protobuf__compiler__CodeGeneratorResponse_msg_init(), extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__CodeGeneratorResponse_msg_init(), extreg, options, |
|
|
|
|
arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_compiler_CodeGeneratorResponse_serialize(const google_protobuf_compiler_CodeGeneratorResponse* msg, upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(msg, google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_compiler_CodeGeneratorResponse_serialize_ex(const google_protobuf_compiler_CodeGeneratorResponse* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(msg, google__protobuf__compiler__CodeGeneratorResponse_msg_init(), options, arena, &ptr, len); |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__CodeGeneratorResponse_msg_init(), options, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_clear_error(google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 1); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorResponse_error(const google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
upb_StringView default_val = upb_StringView_FromString(""); |
|
|
|
|
upb_StringView ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 1); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_has_error(const google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 1); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_clear_supported_features(google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 2); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE uint64_t google_protobuf_compiler_CodeGeneratorResponse_supported_features(const google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
uint64_t default_val = (uint64_t)0ull; |
|
|
|
|
uint64_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 2); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_has_supported_features(const google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 2); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_clear_minimum_edition(google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 3); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t google_protobuf_compiler_CodeGeneratorResponse_minimum_edition(const google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
int32_t default_val = (int32_t)0; |
|
|
|
|
int32_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 3); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_has_minimum_edition(const google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 3); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_clear_maximum_edition(google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 4); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t google_protobuf_compiler_CodeGeneratorResponse_maximum_edition(const google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
int32_t default_val = (int32_t)0; |
|
|
|
|
int32_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 4); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_has_maximum_edition(const google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 4); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_clear_file(google_protobuf_compiler_CodeGeneratorResponse* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 15); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const google_protobuf_compiler_CodeGeneratorResponse_File* const* google_protobuf_compiler_CodeGeneratorResponse_file(const google_protobuf_compiler_CodeGeneratorResponse* msg, size_t* size) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 15); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(msg, &field); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (const google_protobuf_compiler_CodeGeneratorResponse_File* const*)_upb_array_constptr(arr); |
|
|
|
@ -526,16 +545,16 @@ UPB_INLINE const google_protobuf_compiler_CodeGeneratorResponse_File* const* goo |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const upb_Array* _google_protobuf_compiler_CodeGeneratorResponse_file_upb_array(const google_protobuf_compiler_CodeGeneratorResponse* msg, size_t* size) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 15); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(msg, &field); |
|
|
|
|
const upb_Array* arr = upb_Message_GetArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (size) { |
|
|
|
|
*size = arr ? arr->UPB_PRIVATE(size) : 0; |
|
|
|
|
} |
|
|
|
|
return arr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorResponse_file_mutable_upb_array(const google_protobuf_compiler_CodeGeneratorResponse* msg, size_t* size, upb_Arena* arena) { |
|
|
|
|
UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorResponse_file_mutable_upb_array(google_protobuf_compiler_CodeGeneratorResponse* msg, size_t* size, upb_Arena* arena) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 15); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
(upb_Message*)msg, &field, arena); |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (size) { |
|
|
|
|
*size = arr ? arr->UPB_PRIVATE(size) : 0; |
|
|
|
|
} |
|
|
|
@ -544,23 +563,23 @@ UPB_INLINE upb_Array* _google_protobuf_compiler_CodeGeneratorResponse_file_mutab |
|
|
|
|
|
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_set_error(google_protobuf_compiler_CodeGeneratorResponse *msg, upb_StringView value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 1); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_set_supported_features(google_protobuf_compiler_CodeGeneratorResponse *msg, uint64_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 2); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_set_minimum_edition(google_protobuf_compiler_CodeGeneratorResponse *msg, int32_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 3); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_set_maximum_edition(google_protobuf_compiler_CodeGeneratorResponse *msg, int32_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 4); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File** google_protobuf_compiler_CodeGeneratorResponse_mutable_file(google_protobuf_compiler_CodeGeneratorResponse* msg, size_t* size) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 15); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(msg, &field); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
|
if (arr) { |
|
|
|
|
if (size) *size = arr->UPB_PRIVATE(size); |
|
|
|
|
return (google_protobuf_compiler_CodeGeneratorResponse_File**)_upb_array_ptr(arr); |
|
|
|
@ -571,11 +590,13 @@ UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File** google_protobuf |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File** google_protobuf_compiler_CodeGeneratorResponse_resize_file(google_protobuf_compiler_CodeGeneratorResponse* msg, size_t size, upb_Arena* arena) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 15); |
|
|
|
|
return (google_protobuf_compiler_CodeGeneratorResponse_File**)upb_Message_ResizeArrayUninitialized(msg, &field, size, arena); |
|
|
|
|
return (google_protobuf_compiler_CodeGeneratorResponse_File**)upb_Message_ResizeArrayUninitialized(UPB_UPCAST(msg), |
|
|
|
|
&field, size, arena); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_compiler_CodeGeneratorResponse_File* google_protobuf_compiler_CodeGeneratorResponse_add_file(google_protobuf_compiler_CodeGeneratorResponse* msg, upb_Arena* arena) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse_msg_init(), 15); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray(msg, &field, arena); |
|
|
|
|
upb_Array* arr = upb_Message_GetOrCreateMutableArray( |
|
|
|
|
UPB_UPCAST(msg), &field, arena); |
|
|
|
|
if (!arr || !_upb_Array_ResizeUninitialized( |
|
|
|
|
arr, arr->UPB_PRIVATE(size) + 1, arena)) { |
|
|
|
|
return NULL; |
|
|
|
@ -595,7 +616,8 @@ UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File* google_protobuf_ |
|
|
|
|
UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File* google_protobuf_compiler_CodeGeneratorResponse_File_parse(const char* buf, size_t size, upb_Arena* arena) { |
|
|
|
|
google_protobuf_compiler_CodeGeneratorResponse_File* ret = google_protobuf_compiler_CodeGeneratorResponse_File_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, ret, google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), NULL, 0, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
@ -605,99 +627,103 @@ UPB_INLINE google_protobuf_compiler_CodeGeneratorResponse_File* google_protobuf_ |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_compiler_CodeGeneratorResponse_File* ret = google_protobuf_compiler_CodeGeneratorResponse_File_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, ret, google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), extreg, options, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), extreg, options, |
|
|
|
|
arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_compiler_CodeGeneratorResponse_File_serialize(const google_protobuf_compiler_CodeGeneratorResponse_File* msg, upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(msg, google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_compiler_CodeGeneratorResponse_File_serialize_ex(const google_protobuf_compiler_CodeGeneratorResponse_File* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(msg, google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), options, arena, &ptr, len); |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), options, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_clear_name(google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 1); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorResponse_File_name(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
upb_StringView default_val = upb_StringView_FromString(""); |
|
|
|
|
upb_StringView ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 1); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_File_has_name(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 1); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_clear_insertion_point(google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 2); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorResponse_File_insertion_point(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
upb_StringView default_val = upb_StringView_FromString(""); |
|
|
|
|
upb_StringView ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 2); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_File_has_insertion_point(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 2); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_clear_content(google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 15); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_compiler_CodeGeneratorResponse_File_content(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
upb_StringView default_val = upb_StringView_FromString(""); |
|
|
|
|
upb_StringView ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 15); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_File_has_content(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 15); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_clear_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 16); |
|
|
|
|
_upb_Message_ClearNonExtensionField(msg, &field); |
|
|
|
|
_upb_Message_ClearNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const struct google_protobuf_GeneratedCodeInfo* google_protobuf_compiler_CodeGeneratorResponse_File_generated_code_info(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const struct google_protobuf_GeneratedCodeInfo* default_val = NULL; |
|
|
|
|
const struct google_protobuf_GeneratedCodeInfo* ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 16); |
|
|
|
|
_upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_compiler_CodeGeneratorResponse_File_has_generated_code_info(const google_protobuf_compiler_CodeGeneratorResponse_File* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 16); |
|
|
|
|
return _upb_Message_HasNonExtensionField(msg, &field); |
|
|
|
|
return _upb_Message_HasNonExtensionField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_set_name(google_protobuf_compiler_CodeGeneratorResponse_File *msg, upb_StringView value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 1); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_set_insertion_point(google_protobuf_compiler_CodeGeneratorResponse_File *msg, upb_StringView value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 2); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_set_content(google_protobuf_compiler_CodeGeneratorResponse_File *msg, upb_StringView value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 15); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_compiler_CodeGeneratorResponse_File_set_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File *msg, struct google_protobuf_GeneratedCodeInfo* value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__compiler__CodeGeneratorResponse__File_msg_init(), 16); |
|
|
|
|
_upb_Message_SetNonExtensionField(msg, &field, &value); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_GeneratedCodeInfo* google_protobuf_compiler_CodeGeneratorResponse_File_mutable_generated_code_info(google_protobuf_compiler_CodeGeneratorResponse_File* msg, upb_Arena* arena) { |
|
|
|
|
struct google_protobuf_GeneratedCodeInfo* sub = (struct google_protobuf_GeneratedCodeInfo*)google_protobuf_compiler_CodeGeneratorResponse_File_generated_code_info(msg); |
|
|
|
|