|
|
|
@ -35,6 +35,7 @@ extern const upb_MiniTable* google__protobuf__FileOptions_msg_init(); |
|
|
|
|
extern const upb_MiniTable* google__protobuf__MessageOptions_msg_init(); |
|
|
|
|
extern const upb_MiniTable* google__protobuf__FieldOptions_msg_init(); |
|
|
|
|
extern const upb_MiniTable* google__protobuf__FieldOptions__EditionDefault_msg_init(); |
|
|
|
|
extern const upb_MiniTable* google__protobuf__FieldOptions__FeatureSupport_msg_init(); |
|
|
|
|
extern const upb_MiniTable* google__protobuf__OneofOptions_msg_init(); |
|
|
|
|
extern const upb_MiniTable* google__protobuf__EnumOptions_msg_init(); |
|
|
|
|
extern const upb_MiniTable* google__protobuf__EnumValueOptions_msg_init(); |
|
|
|
@ -85,6 +86,7 @@ typedef struct google_protobuf_FileOptions { upb_Message UPB_PRIVATE(base); } go |
|
|
|
|
typedef struct google_protobuf_MessageOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_MessageOptions; |
|
|
|
|
typedef struct google_protobuf_FieldOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions; |
|
|
|
|
typedef struct google_protobuf_FieldOptions_EditionDefault { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions_EditionDefault; |
|
|
|
|
typedef struct google_protobuf_FieldOptions_FeatureSupport { upb_Message UPB_PRIVATE(base); } google_protobuf_FieldOptions_FeatureSupport; |
|
|
|
|
typedef struct google_protobuf_OneofOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_OneofOptions; |
|
|
|
|
typedef struct google_protobuf_EnumOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumOptions; |
|
|
|
|
typedef struct google_protobuf_EnumValueOptions { upb_Message UPB_PRIVATE(base); } google_protobuf_EnumValueOptions; |
|
|
|
@ -4164,6 +4166,22 @@ UPB_INLINE bool google_protobuf_FieldOptions_has_features(const google_protobuf_ |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 21); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_clear_feature_support(google_protobuf_FieldOptions* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 22); |
|
|
|
|
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_feature_support(const google_protobuf_FieldOptions* msg) { |
|
|
|
|
const google_protobuf_FieldOptions_FeatureSupport* default_val = NULL; |
|
|
|
|
const google_protobuf_FieldOptions_FeatureSupport* ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 22); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_has_feature_support(const google_protobuf_FieldOptions* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 22); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_clear_uninterpreted_option(google_protobuf_FieldOptions* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 999); |
|
|
|
|
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field); |
|
|
|
@ -4303,6 +4321,18 @@ UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FieldOptions_mutab |
|
|
|
|
} |
|
|
|
|
return sub; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_set_feature_support(google_protobuf_FieldOptions *msg, google_protobuf_FieldOptions_FeatureSupport* value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 22); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_mutable_feature_support(google_protobuf_FieldOptions* msg, upb_Arena* arena) { |
|
|
|
|
struct google_protobuf_FieldOptions_FeatureSupport* sub = (struct google_protobuf_FieldOptions_FeatureSupport*)google_protobuf_FieldOptions_feature_support(msg); |
|
|
|
|
if (sub == NULL) { |
|
|
|
|
sub = (struct google_protobuf_FieldOptions_FeatureSupport*)_upb_Message_New(google__protobuf__FieldOptions__FeatureSupport_msg_init(), arena); |
|
|
|
|
if (sub) google_protobuf_FieldOptions_set_feature_support(msg, sub); |
|
|
|
|
} |
|
|
|
|
return sub; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_UninterpretedOption** google_protobuf_FieldOptions_mutable_uninterpreted_option(google_protobuf_FieldOptions* msg, size_t* size) { |
|
|
|
|
upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions_msg_init(), 999); |
|
|
|
|
upb_Array* arr = upb_Message_GetMutableArray(UPB_UPCAST(msg), &field); |
|
|
|
@ -4412,6 +4442,124 @@ UPB_INLINE void google_protobuf_FieldOptions_EditionDefault_set_edition(google_p |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* google.protobuf.FieldOptions.FeatureSupport */ |
|
|
|
|
|
|
|
|
|
UPB_INLINE google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_FeatureSupport_new(upb_Arena* arena) { |
|
|
|
|
return (google_protobuf_FieldOptions_FeatureSupport*)_upb_Message_New(google__protobuf__FieldOptions__FeatureSupport_msg_init(), arena); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_FeatureSupport_parse(const char* buf, size_t size, upb_Arena* arena) { |
|
|
|
|
google_protobuf_FieldOptions_FeatureSupport* ret = google_protobuf_FieldOptions_FeatureSupport_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__FieldOptions__FeatureSupport_msg_init(), NULL, 0, arena) != |
|
|
|
|
kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE google_protobuf_FieldOptions_FeatureSupport* google_protobuf_FieldOptions_FeatureSupport_parse_ex(const char* buf, size_t size, |
|
|
|
|
const upb_ExtensionRegistry* extreg, |
|
|
|
|
int options, upb_Arena* arena) { |
|
|
|
|
google_protobuf_FieldOptions_FeatureSupport* ret = google_protobuf_FieldOptions_FeatureSupport_new(arena); |
|
|
|
|
if (!ret) return NULL; |
|
|
|
|
if (upb_Decode(buf, size, UPB_UPCAST(ret), google__protobuf__FieldOptions__FeatureSupport_msg_init(), extreg, options, |
|
|
|
|
arena) != kUpb_DecodeStatus_Ok) { |
|
|
|
|
return NULL; |
|
|
|
|
} |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_FieldOptions_FeatureSupport_serialize(const google_protobuf_FieldOptions_FeatureSupport* msg, upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__FieldOptions__FeatureSupport_msg_init(), 0, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE char* google_protobuf_FieldOptions_FeatureSupport_serialize_ex(const google_protobuf_FieldOptions_FeatureSupport* msg, int options, |
|
|
|
|
upb_Arena* arena, size_t* len) { |
|
|
|
|
char* ptr; |
|
|
|
|
(void)upb_Encode(UPB_UPCAST(msg), google__protobuf__FieldOptions__FeatureSupport_msg_init(), options, arena, &ptr, len); |
|
|
|
|
return ptr; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_clear_edition_introduced(google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 1); |
|
|
|
|
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t google_protobuf_FieldOptions_FeatureSupport_edition_introduced(const google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
int32_t default_val = 0; |
|
|
|
|
int32_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 1); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_FeatureSupport_has_edition_introduced(const google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 1); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_clear_edition_deprecated(google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 2); |
|
|
|
|
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t google_protobuf_FieldOptions_FeatureSupport_edition_deprecated(const google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
int32_t default_val = 0; |
|
|
|
|
int32_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 2); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_FeatureSupport_has_edition_deprecated(const google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 2); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_clear_deprecation_warning(google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 3); |
|
|
|
|
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE upb_StringView google_protobuf_FieldOptions_FeatureSupport_deprecation_warning(const google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
upb_StringView default_val = upb_StringView_FromString(""); |
|
|
|
|
upb_StringView ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 3); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_FeatureSupport_has_deprecation_warning(const google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 3); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_clear_edition_removed(google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 4); |
|
|
|
|
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE int32_t google_protobuf_FieldOptions_FeatureSupport_edition_removed(const google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
int32_t default_val = 0; |
|
|
|
|
int32_t ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 4); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FieldOptions_FeatureSupport_has_edition_removed(const google_protobuf_FieldOptions_FeatureSupport* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 4); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_set_edition_introduced(google_protobuf_FieldOptions_FeatureSupport *msg, int32_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 1); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_set_edition_deprecated(google_protobuf_FieldOptions_FeatureSupport *msg, int32_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 2); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_set_deprecation_warning(google_protobuf_FieldOptions_FeatureSupport *msg, upb_StringView value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 3); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FieldOptions_FeatureSupport_set_edition_removed(google_protobuf_FieldOptions_FeatureSupport *msg, int32_t value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FieldOptions__FeatureSupport_msg_init(), 4); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* google.protobuf.OneofOptions */ |
|
|
|
|
|
|
|
|
|
UPB_INLINE google_protobuf_OneofOptions* google_protobuf_OneofOptions_new(upb_Arena* arena) { |
|
|
|
@ -5876,6 +6024,38 @@ UPB_INLINE bool google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_ |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 3); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_overridable_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 4); |
|
|
|
|
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_overridable_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) { |
|
|
|
|
const google_protobuf_FeatureSet* default_val = NULL; |
|
|
|
|
const google_protobuf_FeatureSet* ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 4); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_overridable_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 4); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_clear_fixed_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 5); |
|
|
|
|
upb_Message_ClearBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE const google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_fixed_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) { |
|
|
|
|
const google_protobuf_FeatureSet* default_val = NULL; |
|
|
|
|
const google_protobuf_FeatureSet* ret; |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 5); |
|
|
|
|
_upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field, |
|
|
|
|
&default_val, &ret); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE bool google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_has_fixed_features(const google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 5); |
|
|
|
|
return upb_Message_HasBaseField(UPB_UPCAST(msg), &field); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault *msg, google_protobuf_FeatureSet* value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 2); |
|
|
|
@ -5893,6 +6073,30 @@ UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_ |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 3); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_overridable_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault *msg, google_protobuf_FeatureSet* value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 4); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_mutable_overridable_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, upb_Arena* arena) { |
|
|
|
|
struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_overridable_features(msg); |
|
|
|
|
if (sub == NULL) { |
|
|
|
|
sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(google__protobuf__FeatureSet_msg_init(), arena); |
|
|
|
|
if (sub) google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_overridable_features(msg, sub); |
|
|
|
|
} |
|
|
|
|
return sub; |
|
|
|
|
} |
|
|
|
|
UPB_INLINE void google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_fixed_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault *msg, google_protobuf_FeatureSet* value) { |
|
|
|
|
const upb_MiniTableField field = *upb_MiniTable_FindFieldByNumber(google__protobuf__FeatureSetDefaults__FeatureSetEditionDefault_msg_init(), 5); |
|
|
|
|
_upb_Message_SetNonExtensionField((upb_Message *)msg, &field, &value); |
|
|
|
|
} |
|
|
|
|
UPB_INLINE struct google_protobuf_FeatureSet* google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_mutable_fixed_features(google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault* msg, upb_Arena* arena) { |
|
|
|
|
struct google_protobuf_FeatureSet* sub = (struct google_protobuf_FeatureSet*)google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_fixed_features(msg); |
|
|
|
|
if (sub == NULL) { |
|
|
|
|
sub = (struct google_protobuf_FeatureSet*)_upb_Message_New(google__protobuf__FeatureSet_msg_init(), arena); |
|
|
|
|
if (sub) google_protobuf_FeatureSetDefaults_FeatureSetEditionDefault_set_fixed_features(msg, sub); |
|
|
|
|
} |
|
|
|
|
return sub; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* google.protobuf.SourceCodeInfo */ |
|
|
|
|
|
|
|
|
|