resource_locator.upb.h
Go to the documentation of this file.
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  * xds/core/v3/resource_locator.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef XDS_CORE_V3_RESOURCE_LOCATOR_PROTO_UPB_H_
10 #define XDS_CORE_V3_RESOURCE_LOCATOR_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 
31 
32 typedef enum {
37 
38 
39 
40 /* xds.core.v3.ResourceLocator */
41 
44 }
47  if (!ret) return NULL;
49  return NULL;
50  }
51  return ret;
52 }
54  const upb_ExtensionRegistry* extreg,
55  int options, upb_Arena* arena) {
57  if (!ret) return NULL;
60  return NULL;
61  }
62  return ret;
63 }
66 }
68  upb_Arena* arena, size_t* len) {
70 }
71 typedef enum {
77 }
79  *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = 0;
80 }
82  return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t);
83 }
86 }
88  return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_StringView);
89 }
92 }
94  return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), upb_StringView);
95 }
98 }
100  return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), upb_StringView);
101 }
103  return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 5;
104 }
107 }
109  return UPB_READ_ONEOF(msg, const struct xds_core_v3_ContextParams*, UPB_SIZE(36, 64), UPB_SIZE(4, 4), 5, NULL);
110 }
112  return _upb_has_submsg_nohasbit(msg, UPB_SIZE(32, 56));
113 }
115  _upb_array_detach(msg, UPB_SIZE(32, 56));
116 }
119 }
120 
122  *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value;
123 }
126 }
129 }
132 }
134  UPB_WRITE_ONEOF(msg, struct xds_core_v3_ContextParams*, UPB_SIZE(36, 64), value, UPB_SIZE(4, 4), 5);
135 }
138  if (sub == NULL) {
140  if (!sub) return NULL;
142  }
143  return sub;
144 }
147 }
150 }
153  bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(32, 56), UPB_SIZE(2, 3), &sub, arena);
154  if (!ok) return NULL;
155  return sub;
156 }
157 
158 /* xds.core.v3.ResourceLocator.Directive */
159 
162 }
165  if (!ret) return NULL;
167  return NULL;
168  }
169  return ret;
170 }
172  const upb_ExtensionRegistry* extreg,
173  int options, upb_Arena* arena) {
175  if (!ret) return NULL;
178  return NULL;
179  }
180  return ret;
181 }
184 }
186  upb_Arena* arena, size_t* len) {
188 }
189 typedef enum {
196 }
198  return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 1;
199 }
202 }
204  return UPB_READ_ONEOF(msg, const xds_core_v3_ResourceLocator*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 1, NULL);
205 }
207  return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 2;
208 }
211 }
214 }
215 
218 }
221  if (sub == NULL) {
223  if (!sub) return NULL;
225  }
226  return sub;
227 }
230 }
231 
233 
234 #ifdef __cplusplus
235 } /* extern "C" */
236 #endif
237 
238 #include "upb/port_undef.inc"
239 
240 #endif /* XDS_CORE_V3_RESOURCE_LOCATOR_PROTO_UPB_H_ */
xds_core_v3_ResourceLocator_set_exact_context
UPB_INLINE void xds_core_v3_ResourceLocator_set_exact_context(xds_core_v3_ResourceLocator *msg, struct xds_core_v3_ContextParams *value)
Definition: resource_locator.upb.h:133
xds_core_v3_ResourceLocator_id
UPB_INLINE upb_StringView xds_core_v3_ResourceLocator_id(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:87
xds_core_v3_ResourceLocator_Directive_has_alt
UPB_INLINE bool xds_core_v3_ResourceLocator_Directive_has_alt(const xds_core_v3_ResourceLocator_Directive *msg)
Definition: resource_locator.upb.h:197
_upb_array_accessor
const UPB_INLINE void * _upb_array_accessor(const void *msg, size_t ofs, size_t *size)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.h:1159
xds_core_v3_ResourceLocator_directives
const UPB_INLINE xds_core_v3_ResourceLocator_Directive *const * xds_core_v3_ResourceLocator_directives(const xds_core_v3_ResourceLocator *msg, size_t *len)
Definition: resource_locator.upb.h:117
xds_core_v3_ResourceLocator_set_resource_type
UPB_INLINE void xds_core_v3_ResourceLocator_set_resource_type(xds_core_v3_ResourceLocator *msg, upb_StringView value)
Definition: resource_locator.upb.h:130
xds_core_v3_ResourceLocator_Directive_directive_case
UPB_INLINE xds_core_v3_ResourceLocator_Directive_directive_oneofcases xds_core_v3_ResourceLocator_Directive_directive_case(const xds_core_v3_ResourceLocator_Directive *msg)
Definition: resource_locator.upb.h:194
xds_core_v3_ResourceLocator_clear_id
UPB_INLINE void xds_core_v3_ResourceLocator_clear_id(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:84
encode.h
upb_Decode
upb_DecodeStatus upb_Decode(const char *buf, size_t size, void *msg, const upb_MiniTable *l, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: decode.c:1076
options
double_dict options[]
Definition: capstone_test.c:55
buf
voidpf void * buf
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
kUpb_DecodeStatus_Ok
@ kUpb_DecodeStatus_Ok
Definition: decode.h:72
xds_core_v3_ResourceLocator_context_param_specifier_oneofcases
xds_core_v3_ResourceLocator_context_param_specifier_oneofcases
Definition: resource_locator.upb.h:71
xds_core_v3_ResourceLocator_serialize
UPB_INLINE char * xds_core_v3_ResourceLocator_serialize(const xds_core_v3_ResourceLocator *msg, upb_Arena *arena, size_t *len)
Definition: resource_locator.upb.h:64
xds_core_v3_ResourceLocator_context_param_specifier_NOT_SET
@ xds_core_v3_ResourceLocator_context_param_specifier_NOT_SET
Definition: resource_locator.upb.h:73
xds_core_v3_ResourceLocator_clear_authority
UPB_INLINE void xds_core_v3_ResourceLocator_clear_authority(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:90
upb_MiniTable
Definition: msg_internal.h:185
xds_core_v3_ResourceLocator_HTTP
@ xds_core_v3_ResourceLocator_HTTP
Definition: resource_locator.upb.h:34
xds_core_v3_ContextParams
struct xds_core_v3_ContextParams xds_core_v3_ContextParams
Definition: context_params.upb.h:25
_upb_array_detach
UPB_INLINE void _upb_array_detach(const void *msg, size_t ofs)
Definition: msg_internal.h:485
xds_core_v3_ResourceLocator_set_id
UPB_INLINE void xds_core_v3_ResourceLocator_set_id(xds_core_v3_ResourceLocator *msg, upb_StringView value)
Definition: resource_locator.upb.h:124
UPB_PTR_AT
#define UPB_PTR_AT(msg, ofs, type)
Definition: php-upb.c:71
xds_core_v3_ResourceLocator_Directive_directive_NOT_SET
@ xds_core_v3_ResourceLocator_Directive_directive_NOT_SET
Definition: resource_locator.upb.h:192
xds_core_v3_ResourceLocator_Directive_directive_oneofcases
xds_core_v3_ResourceLocator_Directive_directive_oneofcases
Definition: resource_locator.upb.h:189
xds_core_v3_ResourceLocator
struct xds_core_v3_ResourceLocator xds_core_v3_ResourceLocator
Definition: resource_locator.upb.h:25
xds_core_v3_ResourceLocator_Directive_mutable_alt
UPB_INLINE struct xds_core_v3_ResourceLocator * xds_core_v3_ResourceLocator_Directive_mutable_alt(xds_core_v3_ResourceLocator_Directive *msg, upb_Arena *arena)
Definition: resource_locator.upb.h:219
arena
grpc_core::ScopedArenaPtr arena
Definition: binder_transport_test.cc:237
xds_core_v3_ResourceLocator_set_scheme
UPB_INLINE void xds_core_v3_ResourceLocator_set_scheme(xds_core_v3_ResourceLocator *msg, int32_t value)
Definition: resource_locator.upb.h:121
xds_core_v3_ResourceLocator_Directive_has_entry
UPB_INLINE bool xds_core_v3_ResourceLocator_Directive_has_entry(const xds_core_v3_ResourceLocator_Directive *msg)
Definition: resource_locator.upb.h:206
xds_core_v3_ResourceLocator_clear_exact_context
UPB_INLINE void xds_core_v3_ResourceLocator_clear_exact_context(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:105
xds_core_v3_resource_locator_proto_upb_file_layout
const upb_MiniTable_File xds_core_v3_resource_locator_proto_upb_file_layout
Definition: resource_locator.upb.c:58
xds_core_v3_ResourceLocator_Directive_msginit
const upb_MiniTable xds_core_v3_ResourceLocator_Directive_msginit
Definition: resource_locator.upb.c:47
_upb_Message_New
upb_Message * _upb_Message_New(const upb_MiniTable *l, upb_Arena *a)
Definition: msg.c:44
decode.h
xds_core_v3_ResourceLocator_Directive_set_entry
UPB_INLINE void xds_core_v3_ResourceLocator_Directive_set_entry(xds_core_v3_ResourceLocator_Directive *msg, upb_StringView value)
Definition: resource_locator.upb.h:228
xds_core_v3_ResourceLocator_Directive_directive_alt
@ xds_core_v3_ResourceLocator_Directive_directive_alt
Definition: resource_locator.upb.h:190
_upb_Array_Append_accessor2
UPB_INLINE bool _upb_Array_Append_accessor2(void *msg, size_t ofs, int elem_size_lg2, const void *value, upb_Arena *arena)
Definition: msg_internal.h:525
UPB_SIZE
#define UPB_SIZE(size32, size64)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:32
UPB_INLINE
#define UPB_INLINE
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:53
xds_core_v3_ResourceLocator_scheme
UPB_INLINE int32_t xds_core_v3_ResourceLocator_scheme(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:81
xds_core_v3_ResourceLocator_Directive_set_alt
UPB_INLINE void xds_core_v3_ResourceLocator_Directive_set_alt(xds_core_v3_ResourceLocator_Directive *msg, xds_core_v3_ResourceLocator *value)
Definition: resource_locator.upb.h:216
upb_MiniTable_File
Definition: msg_internal.h:208
xds_core_v3_ResourceLocator_Directive_parse_ex
UPB_INLINE xds_core_v3_ResourceLocator_Directive * xds_core_v3_ResourceLocator_Directive_parse_ex(const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: resource_locator.upb.h:171
xds_core_v3_ResourceLocator_context_param_specifier_exact_context
@ xds_core_v3_ResourceLocator_context_param_specifier_exact_context
Definition: resource_locator.upb.h:72
xds_core_v3_ResourceLocator_authority
UPB_INLINE upb_StringView xds_core_v3_ResourceLocator_authority(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:93
decode_fast.h
msg
std::string msg
Definition: client_interceptors_end2end_test.cc:372
xds_core_v3_ResourceLocator_Directive_clear_alt
UPB_INLINE void xds_core_v3_ResourceLocator_Directive_clear_alt(const xds_core_v3_ResourceLocator_Directive *msg)
Definition: resource_locator.upb.h:200
xds_core_v3_ResourceLocator_Directive_new
UPB_INLINE xds_core_v3_ResourceLocator_Directive * xds_core_v3_ResourceLocator_Directive_new(upb_Arena *arena)
Definition: resource_locator.upb.h:160
value
const char * value
Definition: hpack_parser_table.cc:165
xds_core_v3_ResourceLocator_clear_scheme
UPB_INLINE void xds_core_v3_ResourceLocator_clear_scheme(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:78
_upb_getoneofcase
UPB_INLINE uint32_t _upb_getoneofcase(const void *msg, size_t case_ofs)
Definition: php-upb.h:1307
upb_Encode
char * upb_Encode(const void *msg, const upb_MiniTable *l, int options, upb_Arena *arena, size_t *size)
Definition: encode.c:573
xds_core_v3_ResourceLocator_has_exact_context
UPB_INLINE bool xds_core_v3_ResourceLocator_has_exact_context(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:102
xds_core_v3_ResourceLocator_Directive_serialize_ex
UPB_INLINE char * xds_core_v3_ResourceLocator_Directive_serialize_ex(const xds_core_v3_ResourceLocator_Directive *msg, int options, upb_Arena *arena, size_t *len)
Definition: resource_locator.upb.h:185
upb_StringView
Definition: upb/upb/upb.h:72
xds_core_v3_ResourceLocator_resource_type
UPB_INLINE upb_StringView xds_core_v3_ResourceLocator_resource_type(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:99
UPB_READ_ONEOF
#define UPB_READ_ONEOF(msg, fieldtype, offset, case_offset, case_val, default)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:38
xds_core_v3_ResourceLocator_parse_ex
UPB_INLINE xds_core_v3_ResourceLocator * xds_core_v3_ResourceLocator_parse_ex(const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: resource_locator.upb.h:53
xds_core_v3_ResourceLocator_Directive_alt
const UPB_INLINE xds_core_v3_ResourceLocator * xds_core_v3_ResourceLocator_Directive_alt(const xds_core_v3_ResourceLocator_Directive *msg)
Definition: resource_locator.upb.h:203
xds_core_v3_ResourceLocator_Directive_clear_entry
UPB_INLINE void xds_core_v3_ResourceLocator_Directive_clear_entry(const xds_core_v3_ResourceLocator_Directive *msg)
Definition: resource_locator.upb.h:209
xds_core_v3_ResourceLocator_Directive_serialize
UPB_INLINE char * xds_core_v3_ResourceLocator_Directive_serialize(const xds_core_v3_ResourceLocator_Directive *msg, upb_Arena *arena, size_t *len)
Definition: resource_locator.upb.h:182
ret
UniquePtr< SSL_SESSION > ret
Definition: ssl_x509.cc:1029
xds_core_v3_ResourceLocator_mutable_directives
UPB_INLINE xds_core_v3_ResourceLocator_Directive ** xds_core_v3_ResourceLocator_mutable_directives(xds_core_v3_ResourceLocator *msg, size_t *len)
Definition: resource_locator.upb.h:145
upb_StringView_FromDataAndSize
UPB_INLINE upb_StringView upb_StringView_FromDataAndSize(const char *data, size_t size)
Definition: upb/upb/upb.h:77
UPB_WRITE_ONEOF
#define UPB_WRITE_ONEOF(msg, fieldtype, offset, value, case_offset, case_val)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:43
xds_core_v3_ResourceLocator_Directive_directive_entry
@ xds_core_v3_ResourceLocator_Directive_directive_entry
Definition: resource_locator.upb.h:191
ok
bool ok
Definition: async_end2end_test.cc:197
xds_core_v3_ResourceLocator_Directive_entry
UPB_INLINE upb_StringView xds_core_v3_ResourceLocator_Directive_entry(const xds_core_v3_ResourceLocator_Directive *msg)
Definition: resource_locator.upb.h:212
xds_core_v3_ResourceLocator_set_authority
UPB_INLINE void xds_core_v3_ResourceLocator_set_authority(xds_core_v3_ResourceLocator *msg, upb_StringView value)
Definition: resource_locator.upb.h:127
xds_core_v3_ResourceLocator_clear_resource_type
UPB_INLINE void xds_core_v3_ResourceLocator_clear_resource_type(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:96
xds_core_v3_ResourceLocator_add_directives
UPB_INLINE struct xds_core_v3_ResourceLocator_Directive * xds_core_v3_ResourceLocator_add_directives(xds_core_v3_ResourceLocator *msg, upb_Arena *arena)
Definition: resource_locator.upb.h:151
xds_core_v3_ResourceLocator_XDSTP
@ xds_core_v3_ResourceLocator_XDSTP
Definition: resource_locator.upb.h:33
xds_core_v3_ResourceLocator_serialize_ex
UPB_INLINE char * xds_core_v3_ResourceLocator_serialize_ex(const xds_core_v3_ResourceLocator *msg, int options, upb_Arena *arena, size_t *len)
Definition: resource_locator.upb.h:67
xds_core_v3_ResourceLocator_Scheme
xds_core_v3_ResourceLocator_Scheme
Definition: resource_locator.upb.h:32
upb_StringView_FromString
UPB_INLINE upb_StringView upb_StringView_FromString(const char *data)
Definition: upb/upb/upb.h:85
xds_core_v3_ResourceLocator_has_directives
UPB_INLINE bool xds_core_v3_ResourceLocator_has_directives(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:111
_upb_Array_Resize_accessor2
UPB_INLINE void * _upb_Array_Resize_accessor2(void *msg, size_t ofs, size_t size, int elem_size_lg2, upb_Arena *arena)
Definition: msg_internal.h:513
xds_core_v3_ResourceLocator_resize_directives
UPB_INLINE xds_core_v3_ResourceLocator_Directive ** xds_core_v3_ResourceLocator_resize_directives(xds_core_v3_ResourceLocator *msg, size_t len, upb_Arena *arena)
Definition: resource_locator.upb.h:148
xds_core_v3_ResourceLocator_new
UPB_INLINE xds_core_v3_ResourceLocator * xds_core_v3_ResourceLocator_new(upb_Arena *arena)
Definition: resource_locator.upb.h:42
xds_core_v3_ResourceLocator_msginit
const upb_MiniTable xds_core_v3_ResourceLocator_msginit
Definition: resource_locator.upb.c:32
xds_core_v3_ResourceLocator_FILE
@ xds_core_v3_ResourceLocator_FILE
Definition: resource_locator.upb.h:35
xds_core_v3_ResourceLocator_clear_directives
UPB_INLINE void xds_core_v3_ResourceLocator_clear_directives(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:114
_upb_has_submsg_nohasbit
UPB_INLINE bool _upb_has_submsg_nohasbit(const upb_msg *msg, size_t ofs)
Definition: php-upb.h:1326
xds_core_v3_ContextParams_msginit
const upb_MiniTable xds_core_v3_ContextParams_msginit
Definition: context_params.upb.c:24
len
int len
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
xds_core_v3_ResourceLocator_context_param_specifier_case
UPB_INLINE xds_core_v3_ResourceLocator_context_param_specifier_oneofcases xds_core_v3_ResourceLocator_context_param_specifier_case(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:75
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77
xds_core_v3_ResourceLocator_mutable_exact_context
UPB_INLINE struct xds_core_v3_ContextParams * xds_core_v3_ResourceLocator_mutable_exact_context(xds_core_v3_ResourceLocator *msg, upb_Arena *arena)
Definition: resource_locator.upb.h:136
xds_core_v3_ResourceLocator_parse
UPB_INLINE xds_core_v3_ResourceLocator * xds_core_v3_ResourceLocator_parse(const char *buf, size_t size, upb_Arena *arena)
Definition: resource_locator.upb.h:45
msg_internal.h
upb_Arena
Definition: upb_internal.h:36
xds_core_v3_ResourceLocator_exact_context
UPB_INLINE const struct xds_core_v3_ContextParams * xds_core_v3_ResourceLocator_exact_context(const xds_core_v3_ResourceLocator *msg)
Definition: resource_locator.upb.h:108
upb_ExtensionRegistry
Definition: msg.c:372
_upb_array_mutable_accessor
UPB_INLINE void * _upb_array_mutable_accessor(void *msg, size_t ofs, size_t *size)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.h:1171
xds_core_v3_ResourceLocator_Directive
struct xds_core_v3_ResourceLocator_Directive xds_core_v3_ResourceLocator_Directive
Definition: resource_locator.upb.h:26
xds_core_v3_ResourceLocator_Directive_parse
UPB_INLINE xds_core_v3_ResourceLocator_Directive * xds_core_v3_ResourceLocator_Directive_parse(const char *buf, size_t size, upb_Arena *arena)
Definition: resource_locator.upb.h:163


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:04