| 1 |
/* This file was generated by upbc (the upb compiler) from the input |
| 2 |
* file: |
| 3 |
* |
| 4 |
* envoy/annotations/deprecation.proto |
| 5 |
* |
| 6 |
* Do not edit -- your changes will be discarded when the file is |
| 7 |
* regenerated. */ |
| 8 |
|
| 9 |
#ifndef ENVOY_ANNOTATIONS_DEPRECATION_PROTO_UPB_H_ |
| 10 |
#define ENVOY_ANNOTATIONS_DEPRECATION_PROTO_UPB_H_ |
| 11 |
|
| 12 |
#include "upb/msg_internal.h" |
| 13 |
#include "upb/decode.h" |
| 14 |
#include "upb/decode_fast.h" |
| 15 |
#include "upb/encode.h" |
| 16 |
|
| 17 |
#include "upb/port_def.inc" |
| 18 |
|
| 19 |
#ifdef __cplusplus |
| 20 |
extern "C" { |
| 21 |
#endif |
| 22 |
|
| 23 |
extern const upb_MiniTable_Extension envoy_annotations_disallowed_by_default_ext; |
| 24 |
extern const upb_MiniTable_Extension envoy_annotations_deprecated_at_minor_version_ext; |
| 25 |
extern const upb_MiniTable_Extension envoy_annotations_disallowed_by_default_enum_ext; |
| 26 |
extern const upb_MiniTable_Extension envoy_annotations_deprecated_at_minor_version_enum_ext; |
| 27 |
struct google_protobuf_EnumValueOptions; |
| 28 |
struct google_protobuf_FieldOptions; |
| 29 |
extern const upb_MiniTable google_protobuf_EnumValueOptions_msginit; |
| 30 |
extern const upb_MiniTable google_protobuf_FieldOptions_msginit; |
| 31 |
|
| 32 |
|
| 33 |
UPB_INLINE bool envoy_annotations_has_disallowed_by_default(const struct google_protobuf_FieldOptions* msg) { |
| 34 |
return _upb_Message_Getext(msg, &envoy_annotations_disallowed_by_default_ext) != NULL; |
| 35 |
} |
| 36 |
UPB_INLINE void envoy_annotations_clear_disallowed_by_default(struct google_protobuf_FieldOptions* msg) { |
| 37 |
_upb_Message_Clearext(msg, &envoy_annotations_disallowed_by_default_ext); |
| 38 |
} |
| 39 |
UPB_INLINE bool envoy_annotations_disallowed_by_default(const struct google_protobuf_FieldOptions* msg) { |
| 40 |
const upb_Message_Extension* ext = _upb_Message_Getext(msg, &envoy_annotations_disallowed_by_default_ext); |
| 41 |
return ext ? *UPB_PTR_AT(&ext->data, 0, bool) : false; |
| 42 |
} |
| 43 |
UPB_INLINE bool envoy_annotations_has_deprecated_at_minor_version(const struct google_protobuf_FieldOptions* msg) { |
| 44 |
return _upb_Message_Getext(msg, &envoy_annotations_deprecated_at_minor_version_ext) != NULL; |
| 45 |
} |
| 46 |
UPB_INLINE void envoy_annotations_clear_deprecated_at_minor_version(struct google_protobuf_FieldOptions* msg) { |
| 47 |
_upb_Message_Clearext(msg, &envoy_annotations_deprecated_at_minor_version_ext); |
| 48 |
} |
| 49 |
UPB_INLINE upb_StringView envoy_annotations_deprecated_at_minor_version(const struct google_protobuf_FieldOptions* msg) { |
| 50 |
const upb_Message_Extension* ext = _upb_Message_Getext(msg, &envoy_annotations_deprecated_at_minor_version_ext); |
| 51 |
return ext ? *UPB_PTR_AT(&ext->data, 0, upb_StringView) : upb_StringView_FromString(""); |
| 52 |
} |
| 53 |
UPB_INLINE bool envoy_annotations_has_disallowed_by_default_enum(const struct google_protobuf_EnumValueOptions* msg) { |
| 54 |
return _upb_Message_Getext(msg, &envoy_annotations_disallowed_by_default_enum_ext) != NULL; |
| 55 |
} |
| 56 |
UPB_INLINE void envoy_annotations_clear_disallowed_by_default_enum(struct google_protobuf_EnumValueOptions* msg) { |
| 57 |
_upb_Message_Clearext(msg, &envoy_annotations_disallowed_by_default_enum_ext); |
| 58 |
} |
| 59 |
UPB_INLINE bool envoy_annotations_disallowed_by_default_enum(const struct google_protobuf_EnumValueOptions* msg) { |
| 60 |
const upb_Message_Extension* ext = _upb_Message_Getext(msg, &envoy_annotations_disallowed_by_default_enum_ext); |
| 61 |
return ext ? *UPB_PTR_AT(&ext->data, 0, bool) : false; |
| 62 |
} |
| 63 |
UPB_INLINE bool envoy_annotations_has_deprecated_at_minor_version_enum(const struct google_protobuf_EnumValueOptions* msg) { |
| 64 |
return _upb_Message_Getext(msg, &envoy_annotations_deprecated_at_minor_version_enum_ext) != NULL; |
| 65 |
} |
| 66 |
UPB_INLINE void envoy_annotations_clear_deprecated_at_minor_version_enum(struct google_protobuf_EnumValueOptions* msg) { |
| 67 |
_upb_Message_Clearext(msg, &envoy_annotations_deprecated_at_minor_version_enum_ext); |
| 68 |
} |
| 69 |
UPB_INLINE upb_StringView envoy_annotations_deprecated_at_minor_version_enum(const struct google_protobuf_EnumValueOptions* msg) { |
| 70 |
const upb_Message_Extension* ext = _upb_Message_Getext(msg, &envoy_annotations_deprecated_at_minor_version_enum_ext); |
| 71 |
return ext ? *UPB_PTR_AT(&ext->data, 0, upb_StringView) : upb_StringView_FromString(""); |
| 72 |
} |
| 73 |
extern const upb_MiniTable_File envoy_annotations_deprecation_proto_upb_file_layout; |
| 74 |
|
| 75 |
#ifdef __cplusplus |
| 76 |
} /* extern "C" */ |
| 77 |
#endif |
| 78 |
|
| 79 |
#include "upb/port_undef.inc" |
| 80 |
|
| 81 |
#endif /* ENVOY_ANNOTATIONS_DEPRECATION_PROTO_UPB_H_ */ |