diff options
Diffstat (limited to 'src/core/ext/upb-gen/xds/annotations/v3')
15 files changed, 1498 insertions, 0 deletions
diff --git a/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h b/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h new file mode 100644 index 0000000000..64de9c08f9 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb.h @@ -0,0 +1,322 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/migrate.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_MIGRATE_PROTO_UPB_H_ +#define XDS_ANNOTATIONS_V3_MIGRATE_PROTO_UPB_H_ + +#include "upb/generated_code_support.h" + +#include "xds/annotations/v3/migrate.upb_minitable.h" + +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct xds_annotations_v3_MigrateAnnotation xds_annotations_v3_MigrateAnnotation; +typedef struct xds_annotations_v3_FieldMigrateAnnotation xds_annotations_v3_FieldMigrateAnnotation; +typedef struct xds_annotations_v3_FileMigrateAnnotation xds_annotations_v3_FileMigrateAnnotation; +struct google_protobuf_EnumOptions; +struct google_protobuf_EnumValueOptions; +struct google_protobuf_FieldOptions; +struct google_protobuf_FileOptions; +struct google_protobuf_MessageOptions; + + + +/* xds.annotations.v3.MigrateAnnotation */ + +UPB_INLINE xds_annotations_v3_MigrateAnnotation* xds_annotations_v3_MigrateAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_MigrateAnnotation*)_upb_Message_New(&xds__annotations__v3__MigrateAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_MigrateAnnotation* xds_annotations_v3_MigrateAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_MigrateAnnotation* ret = xds_annotations_v3_MigrateAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__MigrateAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_MigrateAnnotation* xds_annotations_v3_MigrateAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_MigrateAnnotation* ret = xds_annotations_v3_MigrateAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__MigrateAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_MigrateAnnotation_serialize(const xds_annotations_v3_MigrateAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__MigrateAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_MigrateAnnotation_serialize_ex(const xds_annotations_v3_MigrateAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__MigrateAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_MigrateAnnotation_clear_rename(xds_annotations_v3_MigrateAnnotation* msg) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE upb_StringView xds_annotations_v3_MigrateAnnotation_rename(const xds_annotations_v3_MigrateAnnotation* msg) { + upb_StringView default_val = upb_StringView_FromString(""); + upb_StringView ret; + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_MigrateAnnotation_set_rename(xds_annotations_v3_MigrateAnnotation *msg, upb_StringView value) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +/* xds.annotations.v3.FieldMigrateAnnotation */ + +UPB_INLINE xds_annotations_v3_FieldMigrateAnnotation* xds_annotations_v3_FieldMigrateAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_FieldMigrateAnnotation*)_upb_Message_New(&xds__annotations__v3__FieldMigrateAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_FieldMigrateAnnotation* xds_annotations_v3_FieldMigrateAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_FieldMigrateAnnotation* ret = xds_annotations_v3_FieldMigrateAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FieldMigrateAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_FieldMigrateAnnotation* xds_annotations_v3_FieldMigrateAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_FieldMigrateAnnotation* ret = xds_annotations_v3_FieldMigrateAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FieldMigrateAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_FieldMigrateAnnotation_serialize(const xds_annotations_v3_FieldMigrateAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FieldMigrateAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_FieldMigrateAnnotation_serialize_ex(const xds_annotations_v3_FieldMigrateAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FieldMigrateAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_FieldMigrateAnnotation_clear_rename(xds_annotations_v3_FieldMigrateAnnotation* msg) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE upb_StringView xds_annotations_v3_FieldMigrateAnnotation_rename(const xds_annotations_v3_FieldMigrateAnnotation* msg) { + upb_StringView default_val = upb_StringView_FromString(""); + upb_StringView ret; + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_FieldMigrateAnnotation_clear_oneof_promotion(xds_annotations_v3_FieldMigrateAnnotation* msg) { + const upb_MiniTableField field = {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE upb_StringView xds_annotations_v3_FieldMigrateAnnotation_oneof_promotion(const xds_annotations_v3_FieldMigrateAnnotation* msg) { + upb_StringView default_val = upb_StringView_FromString(""); + upb_StringView ret; + const upb_MiniTableField field = {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_FieldMigrateAnnotation_set_rename(xds_annotations_v3_FieldMigrateAnnotation *msg, upb_StringView value) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} +UPB_INLINE void xds_annotations_v3_FieldMigrateAnnotation_set_oneof_promotion(xds_annotations_v3_FieldMigrateAnnotation *msg, upb_StringView value) { + const upb_MiniTableField field = {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +/* xds.annotations.v3.FileMigrateAnnotation */ + +UPB_INLINE xds_annotations_v3_FileMigrateAnnotation* xds_annotations_v3_FileMigrateAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_FileMigrateAnnotation*)_upb_Message_New(&xds__annotations__v3__FileMigrateAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_FileMigrateAnnotation* xds_annotations_v3_FileMigrateAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_FileMigrateAnnotation* ret = xds_annotations_v3_FileMigrateAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FileMigrateAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_FileMigrateAnnotation* xds_annotations_v3_FileMigrateAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_FileMigrateAnnotation* ret = xds_annotations_v3_FileMigrateAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FileMigrateAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_FileMigrateAnnotation_serialize(const xds_annotations_v3_FileMigrateAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FileMigrateAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_FileMigrateAnnotation_serialize_ex(const xds_annotations_v3_FileMigrateAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FileMigrateAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_FileMigrateAnnotation_clear_move_to_package(xds_annotations_v3_FileMigrateAnnotation* msg) { + const upb_MiniTableField field = {2, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE upb_StringView xds_annotations_v3_FileMigrateAnnotation_move_to_package(const xds_annotations_v3_FileMigrateAnnotation* msg) { + upb_StringView default_val = upb_StringView_FromString(""); + upb_StringView ret; + const upb_MiniTableField field = {2, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_FileMigrateAnnotation_set_move_to_package(xds_annotations_v3_FileMigrateAnnotation *msg, upb_StringView value) { + const upb_MiniTableField field = {2, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +UPB_INLINE bool xds_annotations_v3_has_message_migrate(const struct google_protobuf_MessageOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_message_migrate_ext); +} +UPB_INLINE void xds_annotations_v3_clear_message_migrate(struct google_protobuf_MessageOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_message_migrate_ext); +} +UPB_INLINE const xds_annotations_v3_MigrateAnnotation* xds_annotations_v3_message_migrate(const struct google_protobuf_MessageOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_message_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_MigrateAnnotation* default_val = NULL; + const xds_annotations_v3_MigrateAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_message_migrate(struct google_protobuf_MessageOptions* msg, const xds_annotations_v3_MigrateAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_message_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +UPB_INLINE bool xds_annotations_v3_has_field_migrate(const struct google_protobuf_FieldOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_field_migrate_ext); +} +UPB_INLINE void xds_annotations_v3_clear_field_migrate(struct google_protobuf_FieldOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_field_migrate_ext); +} +UPB_INLINE const xds_annotations_v3_FieldMigrateAnnotation* xds_annotations_v3_field_migrate(const struct google_protobuf_FieldOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_field_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_FieldMigrateAnnotation* default_val = NULL; + const xds_annotations_v3_FieldMigrateAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_field_migrate(struct google_protobuf_FieldOptions* msg, const xds_annotations_v3_FieldMigrateAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_field_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +UPB_INLINE bool xds_annotations_v3_has_enum_migrate(const struct google_protobuf_EnumOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_enum_migrate_ext); +} +UPB_INLINE void xds_annotations_v3_clear_enum_migrate(struct google_protobuf_EnumOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_enum_migrate_ext); +} +UPB_INLINE const xds_annotations_v3_MigrateAnnotation* xds_annotations_v3_enum_migrate(const struct google_protobuf_EnumOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_enum_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_MigrateAnnotation* default_val = NULL; + const xds_annotations_v3_MigrateAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_enum_migrate(struct google_protobuf_EnumOptions* msg, const xds_annotations_v3_MigrateAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_enum_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +UPB_INLINE bool xds_annotations_v3_has_enum_value_migrate(const struct google_protobuf_EnumValueOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_enum_value_migrate_ext); +} +UPB_INLINE void xds_annotations_v3_clear_enum_value_migrate(struct google_protobuf_EnumValueOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_enum_value_migrate_ext); +} +UPB_INLINE const xds_annotations_v3_MigrateAnnotation* xds_annotations_v3_enum_value_migrate(const struct google_protobuf_EnumValueOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_enum_value_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_MigrateAnnotation* default_val = NULL; + const xds_annotations_v3_MigrateAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_enum_value_migrate(struct google_protobuf_EnumValueOptions* msg, const xds_annotations_v3_MigrateAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_enum_value_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +UPB_INLINE bool xds_annotations_v3_has_file_migrate(const struct google_protobuf_FileOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_file_migrate_ext); +} +UPB_INLINE void xds_annotations_v3_clear_file_migrate(struct google_protobuf_FileOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_file_migrate_ext); +} +UPB_INLINE const xds_annotations_v3_FileMigrateAnnotation* xds_annotations_v3_file_migrate(const struct google_protobuf_FileOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_file_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_FileMigrateAnnotation* default_val = NULL; + const xds_annotations_v3_FileMigrateAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_file_migrate(struct google_protobuf_FileOptions* msg, const xds_annotations_v3_FileMigrateAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_file_migrate_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_MIGRATE_PROTO_UPB_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c b/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c new file mode 100644 index 0000000000..969728f5ff --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.c @@ -0,0 +1,118 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/migrate.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#include <stddef.h> +#include "upb/generated_code_support.h" +#include "xds/annotations/v3/migrate.upb_minitable.h" +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +static const upb_MiniTableField xds_annotations_v3_MigrateAnnotation__fields[1] = { + {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__MigrateAnnotation_msg_init = { + NULL, + &xds_annotations_v3_MigrateAnnotation__fields[0], + UPB_SIZE(8, 16), 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f00000a, &upb_pss_1bt}, + }) +}; + +static const upb_MiniTableField xds_annotations_v3_FieldMigrateAnnotation__fields[2] = { + {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, + {2, UPB_SIZE(8, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__FieldMigrateAnnotation_msg_init = { + NULL, + &xds_annotations_v3_FieldMigrateAnnotation__fields[0], + UPB_SIZE(16, 32), 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f00000a, &upb_pss_1bt}, + {0x001000003f000012, &upb_pss_1bt}, + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + }) +}; + +static const upb_MiniTableField xds_annotations_v3_FileMigrateAnnotation__fields[1] = { + {2, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__FileMigrateAnnotation_msg_init = { + NULL, + &xds_annotations_v3_FileMigrateAnnotation__fields[0], + UPB_SIZE(8, 16), 1, kUpb_ExtMode_NonExtendable, 0, UPB_FASTTABLE_MASK(24), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f000012, &upb_pss_1bt}, + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + }) +}; + +static const upb_MiniTable *messages_layout[3] = { + &xds__annotations__v3__MigrateAnnotation_msg_init, + &xds__annotations__v3__FieldMigrateAnnotation_msg_init, + &xds__annotations__v3__FileMigrateAnnotation_msg_init, +}; + +const upb_MiniTableExtension xds_annotations_v3_message_migrate_ext = { + {112948430, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__MessageOptions_msg_init, + {.submsg = &xds__annotations__v3__MigrateAnnotation_msg_init}, + +}; +const upb_MiniTableExtension xds_annotations_v3_field_migrate_ext = { + {112948430, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__FieldOptions_msg_init, + {.submsg = &xds__annotations__v3__FieldMigrateAnnotation_msg_init}, + +}; +const upb_MiniTableExtension xds_annotations_v3_enum_migrate_ext = { + {112948430, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__EnumOptions_msg_init, + {.submsg = &xds__annotations__v3__MigrateAnnotation_msg_init}, + +}; +const upb_MiniTableExtension xds_annotations_v3_enum_value_migrate_ext = { + {112948430, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__EnumValueOptions_msg_init, + {.submsg = &xds__annotations__v3__MigrateAnnotation_msg_init}, + +}; +const upb_MiniTableExtension xds_annotations_v3_file_migrate_ext = { + {112948430, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__FileOptions_msg_init, + {.submsg = &xds__annotations__v3__FileMigrateAnnotation_msg_init}, + +}; + +static const upb_MiniTableExtension *extensions_layout[5] = { + &xds_annotations_v3_message_migrate_ext, + &xds_annotations_v3_field_migrate_ext, + &xds_annotations_v3_enum_migrate_ext, + &xds_annotations_v3_enum_value_migrate_ext, + &xds_annotations_v3_file_migrate_ext, +}; + +const upb_MiniTableFile xds_annotations_v3_migrate_proto_upb_file_layout = { + messages_layout, + NULL, + extensions_layout, + 3, + 0, + 5, +}; + +#include "upb/port/undef.inc" + diff --git a/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h b/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h new file mode 100644 index 0000000000..58a07e5925 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/migrate.upb_minitable.h @@ -0,0 +1,37 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/migrate.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_MIGRATE_PROTO_UPB_MINITABLE_H_ +#define XDS_ANNOTATIONS_V3_MIGRATE_PROTO_UPB_MINITABLE_H_ + +#include "upb/generated_code_support.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +extern const upb_MiniTable xds__annotations__v3__MigrateAnnotation_msg_init; +extern const upb_MiniTable xds__annotations__v3__FieldMigrateAnnotation_msg_init; +extern const upb_MiniTable xds__annotations__v3__FileMigrateAnnotation_msg_init; +extern const upb_MiniTableExtension xds_annotations_v3_message_migrate_ext; +extern const upb_MiniTableExtension xds_annotations_v3_field_migrate_ext; +extern const upb_MiniTableExtension xds_annotations_v3_enum_migrate_ext; +extern const upb_MiniTableExtension xds_annotations_v3_enum_value_migrate_ext; +extern const upb_MiniTableExtension xds_annotations_v3_file_migrate_ext; + +extern const upb_MiniTableFile xds_annotations_v3_migrate_proto_upb_file_layout; + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_MIGRATE_PROTO_UPB_MINITABLE_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h b/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h new file mode 100644 index 0000000000..3c7ab0b567 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/security.upb.h @@ -0,0 +1,125 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/security.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_SECURITY_PROTO_UPB_H_ +#define XDS_ANNOTATIONS_V3_SECURITY_PROTO_UPB_H_ + +#include "upb/generated_code_support.h" + +#include "xds/annotations/v3/security.upb_minitable.h" + +#include "xds/annotations/v3/status.upb_minitable.h" +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct xds_annotations_v3_FieldSecurityAnnotation xds_annotations_v3_FieldSecurityAnnotation; +struct google_protobuf_FieldOptions; + + + +/* xds.annotations.v3.FieldSecurityAnnotation */ + +UPB_INLINE xds_annotations_v3_FieldSecurityAnnotation* xds_annotations_v3_FieldSecurityAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_FieldSecurityAnnotation*)_upb_Message_New(&xds__annotations__v3__FieldSecurityAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_FieldSecurityAnnotation* xds_annotations_v3_FieldSecurityAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_FieldSecurityAnnotation* ret = xds_annotations_v3_FieldSecurityAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FieldSecurityAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_FieldSecurityAnnotation* xds_annotations_v3_FieldSecurityAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_FieldSecurityAnnotation* ret = xds_annotations_v3_FieldSecurityAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FieldSecurityAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_FieldSecurityAnnotation_serialize(const xds_annotations_v3_FieldSecurityAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FieldSecurityAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_FieldSecurityAnnotation_serialize_ex(const xds_annotations_v3_FieldSecurityAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FieldSecurityAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_FieldSecurityAnnotation_clear_configure_for_untrusted_downstream(xds_annotations_v3_FieldSecurityAnnotation* msg) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE bool xds_annotations_v3_FieldSecurityAnnotation_configure_for_untrusted_downstream(const xds_annotations_v3_FieldSecurityAnnotation* msg) { + bool default_val = false; + bool ret; + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_FieldSecurityAnnotation_clear_configure_for_untrusted_upstream(xds_annotations_v3_FieldSecurityAnnotation* msg) { + const upb_MiniTableField field = {2, 1, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE bool xds_annotations_v3_FieldSecurityAnnotation_configure_for_untrusted_upstream(const xds_annotations_v3_FieldSecurityAnnotation* msg) { + bool default_val = false; + bool ret; + const upb_MiniTableField field = {2, 1, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_FieldSecurityAnnotation_set_configure_for_untrusted_downstream(xds_annotations_v3_FieldSecurityAnnotation *msg, bool value) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} +UPB_INLINE void xds_annotations_v3_FieldSecurityAnnotation_set_configure_for_untrusted_upstream(xds_annotations_v3_FieldSecurityAnnotation *msg, bool value) { + const upb_MiniTableField field = {2, 1, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +UPB_INLINE bool xds_annotations_v3_has_security(const struct google_protobuf_FieldOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_security_ext); +} +UPB_INLINE void xds_annotations_v3_clear_security(struct google_protobuf_FieldOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_security_ext); +} +UPB_INLINE const xds_annotations_v3_FieldSecurityAnnotation* xds_annotations_v3_security(const struct google_protobuf_FieldOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_security_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_FieldSecurityAnnotation* default_val = NULL; + const xds_annotations_v3_FieldSecurityAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_security(struct google_protobuf_FieldOptions* msg, const xds_annotations_v3_FieldSecurityAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_security_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_SECURITY_PROTO_UPB_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c b/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c new file mode 100644 index 0000000000..1f72822b38 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.c @@ -0,0 +1,59 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/security.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#include <stddef.h> +#include "upb/generated_code_support.h" +#include "xds/annotations/v3/security.upb_minitable.h" +#include "xds/annotations/v3/status.upb_minitable.h" +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +static const upb_MiniTableField xds_annotations_v3_FieldSecurityAnnotation__fields[2] = { + {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, + {2, 1, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__FieldSecurityAnnotation_msg_init = { + NULL, + &xds_annotations_v3_FieldSecurityAnnotation__fields[0], + 8, 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f000008, &upb_psb1_1bt}, + {0x000100003f000010, &upb_psb1_1bt}, + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + }) +}; + +static const upb_MiniTable *messages_layout[1] = { + &xds__annotations__v3__FieldSecurityAnnotation_msg_init, +}; + +const upb_MiniTableExtension xds_annotations_v3_security_ext = { + {99044135, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__FieldOptions_msg_init, + {.submsg = &xds__annotations__v3__FieldSecurityAnnotation_msg_init}, + +}; + +static const upb_MiniTableExtension *extensions_layout[1] = { + &xds_annotations_v3_security_ext, +}; + +const upb_MiniTableFile xds_annotations_v3_security_proto_upb_file_layout = { + messages_layout, + NULL, + extensions_layout, + 1, + 0, + 1, +}; + +#include "upb/port/undef.inc" + diff --git a/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h b/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h new file mode 100644 index 0000000000..29051672ad --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/security.upb_minitable.h @@ -0,0 +1,31 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/security.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_SECURITY_PROTO_UPB_MINITABLE_H_ +#define XDS_ANNOTATIONS_V3_SECURITY_PROTO_UPB_MINITABLE_H_ + +#include "upb/generated_code_support.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +extern const upb_MiniTable xds__annotations__v3__FieldSecurityAnnotation_msg_init; +extern const upb_MiniTableExtension xds_annotations_v3_security_ext; + +extern const upb_MiniTableFile xds_annotations_v3_security_proto_upb_file_layout; + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_SECURITY_PROTO_UPB_MINITABLE_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h b/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h new file mode 100644 index 0000000000..b5359f6f35 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb.h @@ -0,0 +1,55 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/sensitive.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H_ +#define XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H_ + +#include "upb/generated_code_support.h" + +#include "xds/annotations/v3/sensitive.upb_minitable.h" + +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +struct google_protobuf_FieldOptions; + + +UPB_INLINE bool xds_annotations_v3_has_sensitive(const struct google_protobuf_FieldOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_sensitive_ext); +} +UPB_INLINE void xds_annotations_v3_clear_sensitive(struct google_protobuf_FieldOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_sensitive_ext); +} +UPB_INLINE bool xds_annotations_v3_sensitive(const struct google_protobuf_FieldOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_sensitive_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_1Byte); + bool default_val = false; + bool ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_sensitive(struct google_protobuf_FieldOptions* msg, bool val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_sensitive_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_1Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c b/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c new file mode 100644 index 0000000000..1b692ae665 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.c @@ -0,0 +1,37 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/sensitive.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#include <stddef.h> +#include "upb/generated_code_support.h" +#include "xds/annotations/v3/sensitive.upb_minitable.h" +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +const upb_MiniTableExtension xds_annotations_v3_sensitive_ext = { + {61008053, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__FieldOptions_msg_init, + {.submsg = NULL}, + +}; + +static const upb_MiniTableExtension *extensions_layout[1] = { + &xds_annotations_v3_sensitive_ext, +}; + +const upb_MiniTableFile xds_annotations_v3_sensitive_proto_upb_file_layout = { + NULL, + NULL, + extensions_layout, + 0, + 0, + 1, +}; + +#include "upb/port/undef.inc" + diff --git a/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h b/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h new file mode 100644 index 0000000000..1123f0ecf5 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/sensitive.upb_minitable.h @@ -0,0 +1,30 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/sensitive.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_MINITABLE_H_ +#define XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_MINITABLE_H_ + +#include "upb/generated_code_support.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +extern const upb_MiniTableExtension xds_annotations_v3_sensitive_ext; + +extern const upb_MiniTableFile xds_annotations_v3_sensitive_proto_upb_file_layout; + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_SENSITIVE_PROTO_UPB_MINITABLE_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h b/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h new file mode 100644 index 0000000000..4761ee1b75 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/status.upb.h @@ -0,0 +1,336 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/status.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_STATUS_PROTO_UPB_H_ +#define XDS_ANNOTATIONS_V3_STATUS_PROTO_UPB_H_ + +#include "upb/generated_code_support.h" + +#include "xds/annotations/v3/status.upb_minitable.h" + +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct xds_annotations_v3_FileStatusAnnotation xds_annotations_v3_FileStatusAnnotation; +typedef struct xds_annotations_v3_MessageStatusAnnotation xds_annotations_v3_MessageStatusAnnotation; +typedef struct xds_annotations_v3_FieldStatusAnnotation xds_annotations_v3_FieldStatusAnnotation; +typedef struct xds_annotations_v3_StatusAnnotation xds_annotations_v3_StatusAnnotation; +struct google_protobuf_FieldOptions; +struct google_protobuf_FileOptions; +struct google_protobuf_MessageOptions; + +typedef enum { + xds_annotations_v3_UNKNOWN = 0, + xds_annotations_v3_FROZEN = 1, + xds_annotations_v3_ACTIVE = 2, + xds_annotations_v3_NEXT_MAJOR_VERSION_CANDIDATE = 3 +} xds_annotations_v3_PackageVersionStatus; + + + +/* xds.annotations.v3.FileStatusAnnotation */ + +UPB_INLINE xds_annotations_v3_FileStatusAnnotation* xds_annotations_v3_FileStatusAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_FileStatusAnnotation*)_upb_Message_New(&xds__annotations__v3__FileStatusAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_FileStatusAnnotation* xds_annotations_v3_FileStatusAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_FileStatusAnnotation* ret = xds_annotations_v3_FileStatusAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FileStatusAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_FileStatusAnnotation* xds_annotations_v3_FileStatusAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_FileStatusAnnotation* ret = xds_annotations_v3_FileStatusAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FileStatusAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_FileStatusAnnotation_serialize(const xds_annotations_v3_FileStatusAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FileStatusAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_FileStatusAnnotation_serialize_ex(const xds_annotations_v3_FileStatusAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FileStatusAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_FileStatusAnnotation_clear_work_in_progress(xds_annotations_v3_FileStatusAnnotation* msg) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE bool xds_annotations_v3_FileStatusAnnotation_work_in_progress(const xds_annotations_v3_FileStatusAnnotation* msg) { + bool default_val = false; + bool ret; + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_FileStatusAnnotation_set_work_in_progress(xds_annotations_v3_FileStatusAnnotation *msg, bool value) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +/* xds.annotations.v3.MessageStatusAnnotation */ + +UPB_INLINE xds_annotations_v3_MessageStatusAnnotation* xds_annotations_v3_MessageStatusAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_MessageStatusAnnotation*)_upb_Message_New(&xds__annotations__v3__MessageStatusAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_MessageStatusAnnotation* xds_annotations_v3_MessageStatusAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_MessageStatusAnnotation* ret = xds_annotations_v3_MessageStatusAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__MessageStatusAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_MessageStatusAnnotation* xds_annotations_v3_MessageStatusAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_MessageStatusAnnotation* ret = xds_annotations_v3_MessageStatusAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__MessageStatusAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_MessageStatusAnnotation_serialize(const xds_annotations_v3_MessageStatusAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__MessageStatusAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_MessageStatusAnnotation_serialize_ex(const xds_annotations_v3_MessageStatusAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__MessageStatusAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_MessageStatusAnnotation_clear_work_in_progress(xds_annotations_v3_MessageStatusAnnotation* msg) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE bool xds_annotations_v3_MessageStatusAnnotation_work_in_progress(const xds_annotations_v3_MessageStatusAnnotation* msg) { + bool default_val = false; + bool ret; + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_MessageStatusAnnotation_set_work_in_progress(xds_annotations_v3_MessageStatusAnnotation *msg, bool value) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +/* xds.annotations.v3.FieldStatusAnnotation */ + +UPB_INLINE xds_annotations_v3_FieldStatusAnnotation* xds_annotations_v3_FieldStatusAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_FieldStatusAnnotation*)_upb_Message_New(&xds__annotations__v3__FieldStatusAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_FieldStatusAnnotation* xds_annotations_v3_FieldStatusAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_FieldStatusAnnotation* ret = xds_annotations_v3_FieldStatusAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FieldStatusAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_FieldStatusAnnotation* xds_annotations_v3_FieldStatusAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_FieldStatusAnnotation* ret = xds_annotations_v3_FieldStatusAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__FieldStatusAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_FieldStatusAnnotation_serialize(const xds_annotations_v3_FieldStatusAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FieldStatusAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_FieldStatusAnnotation_serialize_ex(const xds_annotations_v3_FieldStatusAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__FieldStatusAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_FieldStatusAnnotation_clear_work_in_progress(xds_annotations_v3_FieldStatusAnnotation* msg) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE bool xds_annotations_v3_FieldStatusAnnotation_work_in_progress(const xds_annotations_v3_FieldStatusAnnotation* msg) { + bool default_val = false; + bool ret; + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_FieldStatusAnnotation_set_work_in_progress(xds_annotations_v3_FieldStatusAnnotation *msg, bool value) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +/* xds.annotations.v3.StatusAnnotation */ + +UPB_INLINE xds_annotations_v3_StatusAnnotation* xds_annotations_v3_StatusAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_StatusAnnotation*)_upb_Message_New(&xds__annotations__v3__StatusAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_StatusAnnotation* xds_annotations_v3_StatusAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_StatusAnnotation* ret = xds_annotations_v3_StatusAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__StatusAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_StatusAnnotation* xds_annotations_v3_StatusAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_StatusAnnotation* ret = xds_annotations_v3_StatusAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__StatusAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_StatusAnnotation_serialize(const xds_annotations_v3_StatusAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__StatusAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_StatusAnnotation_serialize_ex(const xds_annotations_v3_StatusAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__StatusAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_StatusAnnotation_clear_work_in_progress(xds_annotations_v3_StatusAnnotation* msg) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE bool xds_annotations_v3_StatusAnnotation_work_in_progress(const xds_annotations_v3_StatusAnnotation* msg) { + bool default_val = false; + bool ret; + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_StatusAnnotation_clear_package_version_status(xds_annotations_v3_StatusAnnotation* msg) { + const upb_MiniTableField field = {2, 4, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE int32_t xds_annotations_v3_StatusAnnotation_package_version_status(const xds_annotations_v3_StatusAnnotation* msg) { + int32_t default_val = 0; + int32_t ret; + const upb_MiniTableField field = {2, 4, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_StatusAnnotation_set_work_in_progress(xds_annotations_v3_StatusAnnotation *msg, bool value) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} +UPB_INLINE void xds_annotations_v3_StatusAnnotation_set_package_version_status(xds_annotations_v3_StatusAnnotation *msg, int32_t value) { + const upb_MiniTableField field = {2, 4, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +UPB_INLINE bool xds_annotations_v3_has_file_status(const struct google_protobuf_FileOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_file_status_ext); +} +UPB_INLINE void xds_annotations_v3_clear_file_status(struct google_protobuf_FileOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_file_status_ext); +} +UPB_INLINE const xds_annotations_v3_FileStatusAnnotation* xds_annotations_v3_file_status(const struct google_protobuf_FileOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_file_status_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_FileStatusAnnotation* default_val = NULL; + const xds_annotations_v3_FileStatusAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_file_status(struct google_protobuf_FileOptions* msg, const xds_annotations_v3_FileStatusAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_file_status_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +UPB_INLINE bool xds_annotations_v3_has_message_status(const struct google_protobuf_MessageOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_message_status_ext); +} +UPB_INLINE void xds_annotations_v3_clear_message_status(struct google_protobuf_MessageOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_message_status_ext); +} +UPB_INLINE const xds_annotations_v3_MessageStatusAnnotation* xds_annotations_v3_message_status(const struct google_protobuf_MessageOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_message_status_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_MessageStatusAnnotation* default_val = NULL; + const xds_annotations_v3_MessageStatusAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_message_status(struct google_protobuf_MessageOptions* msg, const xds_annotations_v3_MessageStatusAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_message_status_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +UPB_INLINE bool xds_annotations_v3_has_field_status(const struct google_protobuf_FieldOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_field_status_ext); +} +UPB_INLINE void xds_annotations_v3_clear_field_status(struct google_protobuf_FieldOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_field_status_ext); +} +UPB_INLINE const xds_annotations_v3_FieldStatusAnnotation* xds_annotations_v3_field_status(const struct google_protobuf_FieldOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_field_status_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_FieldStatusAnnotation* default_val = NULL; + const xds_annotations_v3_FieldStatusAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_field_status(struct google_protobuf_FieldOptions* msg, const xds_annotations_v3_FieldStatusAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_field_status_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_STATUS_PROTO_UPB_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c b/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c new file mode 100644 index 0000000000..aa0c15acc1 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.c @@ -0,0 +1,117 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/status.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#include <stddef.h> +#include "upb/generated_code_support.h" +#include "xds/annotations/v3/status.upb_minitable.h" +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +static const upb_MiniTableField xds_annotations_v3_FileStatusAnnotation__fields[1] = { + {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__FileStatusAnnotation_msg_init = { + NULL, + &xds_annotations_v3_FileStatusAnnotation__fields[0], + 8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f000008, &upb_psb1_1bt}, + }) +}; + +static const upb_MiniTableField xds_annotations_v3_MessageStatusAnnotation__fields[1] = { + {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__MessageStatusAnnotation_msg_init = { + NULL, + &xds_annotations_v3_MessageStatusAnnotation__fields[0], + 8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f000008, &upb_psb1_1bt}, + }) +}; + +static const upb_MiniTableField xds_annotations_v3_FieldStatusAnnotation__fields[1] = { + {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__FieldStatusAnnotation_msg_init = { + NULL, + &xds_annotations_v3_FieldStatusAnnotation__fields[0], + 8, 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f000008, &upb_psb1_1bt}, + }) +}; + +static const upb_MiniTableField xds_annotations_v3_StatusAnnotation__fields[2] = { + {1, 0, 0, kUpb_NoSub, 8, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_1Byte << kUpb_FieldRep_Shift)}, + {2, 4, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__StatusAnnotation_msg_init = { + NULL, + &xds_annotations_v3_StatusAnnotation__fields[0], + 8, 2, kUpb_ExtMode_NonExtendable, 2, UPB_FASTTABLE_MASK(24), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f000008, &upb_psb1_1bt}, + {0x000400003f000010, &upb_psv4_1bt}, + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + }) +}; + +static const upb_MiniTable *messages_layout[4] = { + &xds__annotations__v3__FileStatusAnnotation_msg_init, + &xds__annotations__v3__MessageStatusAnnotation_msg_init, + &xds__annotations__v3__FieldStatusAnnotation_msg_init, + &xds__annotations__v3__StatusAnnotation_msg_init, +}; + +const upb_MiniTableExtension xds_annotations_v3_file_status_ext = { + {226829418, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__FileOptions_msg_init, + {.submsg = &xds__annotations__v3__FileStatusAnnotation_msg_init}, + +}; +const upb_MiniTableExtension xds_annotations_v3_message_status_ext = { + {226829418, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__MessageOptions_msg_init, + {.submsg = &xds__annotations__v3__MessageStatusAnnotation_msg_init}, + +}; +const upb_MiniTableExtension xds_annotations_v3_field_status_ext = { + {226829418, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__FieldOptions_msg_init, + {.submsg = &xds__annotations__v3__FieldStatusAnnotation_msg_init}, + +}; + +static const upb_MiniTableExtension *extensions_layout[3] = { + &xds_annotations_v3_file_status_ext, + &xds_annotations_v3_message_status_ext, + &xds_annotations_v3_field_status_ext, +}; + +const upb_MiniTableFile xds_annotations_v3_status_proto_upb_file_layout = { + messages_layout, + NULL, + extensions_layout, + 4, + 0, + 3, +}; + +#include "upb/port/undef.inc" + diff --git a/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h b/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h new file mode 100644 index 0000000000..a70db6f8f2 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/status.upb_minitable.h @@ -0,0 +1,36 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/status.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_STATUS_PROTO_UPB_MINITABLE_H_ +#define XDS_ANNOTATIONS_V3_STATUS_PROTO_UPB_MINITABLE_H_ + +#include "upb/generated_code_support.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +extern const upb_MiniTable xds__annotations__v3__FileStatusAnnotation_msg_init; +extern const upb_MiniTable xds__annotations__v3__MessageStatusAnnotation_msg_init; +extern const upb_MiniTable xds__annotations__v3__FieldStatusAnnotation_msg_init; +extern const upb_MiniTable xds__annotations__v3__StatusAnnotation_msg_init; +extern const upb_MiniTableExtension xds_annotations_v3_file_status_ext; +extern const upb_MiniTableExtension xds_annotations_v3_message_status_ext; +extern const upb_MiniTableExtension xds_annotations_v3_field_status_ext; + +extern const upb_MiniTableFile xds_annotations_v3_status_proto_upb_file_layout; + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_STATUS_PROTO_UPB_MINITABLE_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h b/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h new file mode 100644 index 0000000000..a4f2c9b45d --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb.h @@ -0,0 +1,109 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/versioning.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_VERSIONING_PROTO_UPB_H_ +#define XDS_ANNOTATIONS_V3_VERSIONING_PROTO_UPB_H_ + +#include "upb/generated_code_support.h" + +#include "xds/annotations/v3/versioning.upb_minitable.h" + +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct xds_annotations_v3_VersioningAnnotation xds_annotations_v3_VersioningAnnotation; +struct google_protobuf_MessageOptions; + + + +/* xds.annotations.v3.VersioningAnnotation */ + +UPB_INLINE xds_annotations_v3_VersioningAnnotation* xds_annotations_v3_VersioningAnnotation_new(upb_Arena* arena) { + return (xds_annotations_v3_VersioningAnnotation*)_upb_Message_New(&xds__annotations__v3__VersioningAnnotation_msg_init, arena); +} +UPB_INLINE xds_annotations_v3_VersioningAnnotation* xds_annotations_v3_VersioningAnnotation_parse(const char* buf, size_t size, upb_Arena* arena) { + xds_annotations_v3_VersioningAnnotation* ret = xds_annotations_v3_VersioningAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__VersioningAnnotation_msg_init, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE xds_annotations_v3_VersioningAnnotation* xds_annotations_v3_VersioningAnnotation_parse_ex(const char* buf, size_t size, + const upb_ExtensionRegistry* extreg, + int options, upb_Arena* arena) { + xds_annotations_v3_VersioningAnnotation* ret = xds_annotations_v3_VersioningAnnotation_new(arena); + if (!ret) return NULL; + if (upb_Decode(buf, size, ret, &xds__annotations__v3__VersioningAnnotation_msg_init, extreg, options, arena) != + kUpb_DecodeStatus_Ok) { + return NULL; + } + return ret; +} +UPB_INLINE char* xds_annotations_v3_VersioningAnnotation_serialize(const xds_annotations_v3_VersioningAnnotation* msg, upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__VersioningAnnotation_msg_init, 0, arena, &ptr, len); + return ptr; +} +UPB_INLINE char* xds_annotations_v3_VersioningAnnotation_serialize_ex(const xds_annotations_v3_VersioningAnnotation* msg, int options, + upb_Arena* arena, size_t* len) { + char* ptr; + (void)upb_Encode(msg, &xds__annotations__v3__VersioningAnnotation_msg_init, options, arena, &ptr, len); + return ptr; +} +UPB_INLINE void xds_annotations_v3_VersioningAnnotation_clear_previous_message_type(xds_annotations_v3_VersioningAnnotation* msg) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_ClearNonExtensionField(msg, &field); +} +UPB_INLINE upb_StringView xds_annotations_v3_VersioningAnnotation_previous_message_type(const xds_annotations_v3_VersioningAnnotation* msg) { + upb_StringView default_val = upb_StringView_FromString(""); + upb_StringView ret; + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_GetNonExtensionField(msg, &field, &default_val, &ret); + return ret; +} + +UPB_INLINE void xds_annotations_v3_VersioningAnnotation_set_previous_message_type(xds_annotations_v3_VersioningAnnotation *msg, upb_StringView value) { + const upb_MiniTableField field = {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}; + _upb_Message_SetNonExtensionField(msg, &field, &value); +} + +UPB_INLINE bool xds_annotations_v3_has_versioning(const struct google_protobuf_MessageOptions* msg) { + return _upb_Message_HasExtensionField(msg, &xds_annotations_v3_versioning_ext); +} +UPB_INLINE void xds_annotations_v3_clear_versioning(struct google_protobuf_MessageOptions* msg) { + _upb_Message_ClearExtensionField(msg, &xds_annotations_v3_versioning_ext); +} +UPB_INLINE const xds_annotations_v3_VersioningAnnotation* xds_annotations_v3_versioning(const struct google_protobuf_MessageOptions* msg) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_versioning_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + const xds_annotations_v3_VersioningAnnotation* default_val = NULL; + const xds_annotations_v3_VersioningAnnotation* ret; + _upb_Message_GetExtensionField(msg, ext, &default_val, &ret); + return ret; +} +UPB_INLINE void xds_annotations_v3_set_versioning(struct google_protobuf_MessageOptions* msg, const xds_annotations_v3_VersioningAnnotation* val, upb_Arena* arena) { + const upb_MiniTableExtension* ext = &xds_annotations_v3_versioning_ext; + UPB_ASSUME(!upb_IsRepeatedOrMap(&ext->field)); + UPB_ASSUME(_upb_MiniTableField_GetRep(&ext->field) == kUpb_FieldRep_8Byte); + bool ok = _upb_Message_SetExtensionField(msg, ext, &val, arena); + UPB_ASSERT(ok); +} +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_VERSIONING_PROTO_UPB_H_ */ diff --git a/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c b/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c new file mode 100644 index 0000000000..dba740bd7b --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.c @@ -0,0 +1,55 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/versioning.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#include <stddef.h> +#include "upb/generated_code_support.h" +#include "xds/annotations/v3/versioning.upb_minitable.h" +#include "google/protobuf/descriptor.upb_minitable.h" + +// Must be last. +#include "upb/port/def.inc" + +static const upb_MiniTableField xds_annotations_v3_VersioningAnnotation__fields[1] = { + {1, 0, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)}, +}; + +const upb_MiniTable xds__annotations__v3__VersioningAnnotation_msg_init = { + NULL, + &xds_annotations_v3_VersioningAnnotation__fields[0], + UPB_SIZE(8, 16), 1, kUpb_ExtMode_NonExtendable, 1, UPB_FASTTABLE_MASK(8), 0, + UPB_FASTTABLE_INIT({ + {0x0000000000000000, &_upb_FastDecoder_DecodeGeneric}, + {0x000000003f00000a, &upb_pss_1bt}, + }) +}; + +static const upb_MiniTable *messages_layout[1] = { + &xds__annotations__v3__VersioningAnnotation_msg_init, +}; + +const upb_MiniTableExtension xds_annotations_v3_versioning_ext = { + {92389011, 0, 0, 0, 11, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsExtension | ((int)kUpb_FieldRep_8Byte << kUpb_FieldRep_Shift)}, + &google__protobuf__MessageOptions_msg_init, + {.submsg = &xds__annotations__v3__VersioningAnnotation_msg_init}, + +}; + +static const upb_MiniTableExtension *extensions_layout[1] = { + &xds_annotations_v3_versioning_ext, +}; + +const upb_MiniTableFile xds_annotations_v3_versioning_proto_upb_file_layout = { + messages_layout, + NULL, + extensions_layout, + 1, + 0, + 1, +}; + +#include "upb/port/undef.inc" + diff --git a/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h b/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h new file mode 100644 index 0000000000..47a42b3c27 --- /dev/null +++ b/src/core/ext/upb-gen/xds/annotations/v3/versioning.upb_minitable.h @@ -0,0 +1,31 @@ +/* This file was generated by upb_generator from the input file: + * + * xds/annotations/v3/versioning.proto + * + * Do not edit -- your changes will be discarded when the file is + * regenerated. */ + +#ifndef XDS_ANNOTATIONS_V3_VERSIONING_PROTO_UPB_MINITABLE_H_ +#define XDS_ANNOTATIONS_V3_VERSIONING_PROTO_UPB_MINITABLE_H_ + +#include "upb/generated_code_support.h" + +// Must be last. +#include "upb/port/def.inc" + +#ifdef __cplusplus +extern "C" { +#endif + +extern const upb_MiniTable xds__annotations__v3__VersioningAnnotation_msg_init; +extern const upb_MiniTableExtension xds_annotations_v3_versioning_ext; + +extern const upb_MiniTableFile xds_annotations_v3_versioning_proto_upb_file_layout; + +#ifdef __cplusplus +} /* extern "C" */ +#endif + +#include "upb/port/undef.inc" + +#endif /* XDS_ANNOTATIONS_V3_VERSIONING_PROTO_UPB_MINITABLE_H_ */ |