hash_policy.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  * envoy/type/v3/hash_policy.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef ENVOY_TYPE_V3_HASH_POLICY_PROTO_UPB_H_
10 #define ENVOY_TYPE_V3_HASH_POLICY_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 
32 
33 
34 
35 /* envoy.type.v3.HashPolicy */
36 
39 }
42  if (!ret) return NULL;
44  return NULL;
45  }
46  return ret;
47 }
49  const upb_ExtensionRegistry* extreg,
50  int options, upb_Arena* arena) {
52  if (!ret) return NULL;
55  return NULL;
56  }
57  return ret;
58 }
61 }
63  upb_Arena* arena, size_t* len) {
65 }
66 typedef enum {
73 }
75  return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 1;
76 }
79 }
81  return UPB_READ_ONEOF(msg, const envoy_type_v3_HashPolicy_SourceIp*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 1, NULL);
82 }
84  return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 2;
85 }
88 }
90  return UPB_READ_ONEOF(msg, const envoy_type_v3_HashPolicy_FilterState*, UPB_SIZE(4, 8), UPB_SIZE(0, 0), 2, NULL);
91 }
92 
95 }
98  if (sub == NULL) {
100  if (!sub) return NULL;
102  }
103  return sub;
104 }
107 }
110  if (sub == NULL) {
112  if (!sub) return NULL;
114  }
115  return sub;
116 }
117 
118 /* envoy.type.v3.HashPolicy.SourceIp */
119 
122 }
125  if (!ret) return NULL;
127  return NULL;
128  }
129  return ret;
130 }
132  const upb_ExtensionRegistry* extreg,
133  int options, upb_Arena* arena) {
135  if (!ret) return NULL;
138  return NULL;
139  }
140  return ret;
141 }
144 }
146  upb_Arena* arena, size_t* len) {
148 }
149 
150 
151 /* envoy.type.v3.HashPolicy.FilterState */
152 
155 }
158  if (!ret) return NULL;
160  return NULL;
161  }
162  return ret;
163 }
165  const upb_ExtensionRegistry* extreg,
166  int options, upb_Arena* arena) {
168  if (!ret) return NULL;
171  return NULL;
172  }
173  return ret;
174 }
177 }
179  upb_Arena* arena, size_t* len) {
181 }
184 }
186  return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), upb_StringView);
187 }
188 
191 }
192 
194 
195 #ifdef __cplusplus
196 } /* extern "C" */
197 #endif
198 
199 #include "upb/port_undef.inc"
200 
201 #endif /* ENVOY_TYPE_V3_HASH_POLICY_PROTO_UPB_H_ */
envoy_type_v3_HashPolicy_FilterState
struct envoy_type_v3_HashPolicy_FilterState envoy_type_v3_HashPolicy_FilterState
Definition: hash_policy.upb.h:28
envoy_type_v3_HashPolicy_set_filter_state
UPB_INLINE void envoy_type_v3_HashPolicy_set_filter_state(envoy_type_v3_HashPolicy *msg, envoy_type_v3_HashPolicy_FilterState *value)
Definition: hash_policy.upb.h:105
envoy_type_v3_HashPolicy_clear_source_ip
UPB_INLINE void envoy_type_v3_HashPolicy_clear_source_ip(const envoy_type_v3_HashPolicy *msg)
Definition: hash_policy.upb.h:77
envoy_type_v3_HashPolicy_FilterState_msginit
const upb_MiniTable envoy_type_v3_HashPolicy_FilterState_msginit
Definition: hash_policy.upb.c:44
encode.h
envoy_type_v3_HashPolicy_mutable_source_ip
UPB_INLINE struct envoy_type_v3_HashPolicy_SourceIp * envoy_type_v3_HashPolicy_mutable_source_ip(envoy_type_v3_HashPolicy *msg, upb_Arena *arena)
Definition: hash_policy.upb.h:96
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
envoy_type_v3_HashPolicy_has_filter_state
UPB_INLINE bool envoy_type_v3_HashPolicy_has_filter_state(const envoy_type_v3_HashPolicy *msg)
Definition: hash_policy.upb.h:83
options
double_dict options[]
Definition: capstone_test.c:55
buf
voidpf void * buf
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
envoy_type_v3_HashPolicy_set_source_ip
UPB_INLINE void envoy_type_v3_HashPolicy_set_source_ip(envoy_type_v3_HashPolicy *msg, envoy_type_v3_HashPolicy_SourceIp *value)
Definition: hash_policy.upb.h:93
kUpb_DecodeStatus_Ok
@ kUpb_DecodeStatus_Ok
Definition: decode.h:72
upb_MiniTable
Definition: msg_internal.h:185
envoy_type_v3_HashPolicy_FilterState_set_key
UPB_INLINE void envoy_type_v3_HashPolicy_FilterState_set_key(envoy_type_v3_HashPolicy_FilterState *msg, upb_StringView value)
Definition: hash_policy.upb.h:189
UPB_PTR_AT
#define UPB_PTR_AT(msg, ofs, type)
Definition: php-upb.c:71
envoy_type_v3_HashPolicy_clear_filter_state
UPB_INLINE void envoy_type_v3_HashPolicy_clear_filter_state(const envoy_type_v3_HashPolicy *msg)
Definition: hash_policy.upb.h:86
envoy_type_v3_HashPolicy_policy_specifier_case
UPB_INLINE envoy_type_v3_HashPolicy_policy_specifier_oneofcases envoy_type_v3_HashPolicy_policy_specifier_case(const envoy_type_v3_HashPolicy *msg)
Definition: hash_policy.upb.h:71
envoy_type_v3_HashPolicy_FilterState_parse
UPB_INLINE envoy_type_v3_HashPolicy_FilterState * envoy_type_v3_HashPolicy_FilterState_parse(const char *buf, size_t size, upb_Arena *arena)
Definition: hash_policy.upb.h:156
arena
grpc_core::ScopedArenaPtr arena
Definition: binder_transport_test.cc:237
envoy_type_v3_HashPolicy_SourceIp_serialize_ex
UPB_INLINE char * envoy_type_v3_HashPolicy_SourceIp_serialize_ex(const envoy_type_v3_HashPolicy_SourceIp *msg, int options, upb_Arena *arena, size_t *len)
Definition: hash_policy.upb.h:145
envoy_type_v3_HashPolicy_FilterState_serialize
UPB_INLINE char * envoy_type_v3_HashPolicy_FilterState_serialize(const envoy_type_v3_HashPolicy_FilterState *msg, upb_Arena *arena, size_t *len)
Definition: hash_policy.upb.h:175
_upb_Message_New
upb_Message * _upb_Message_New(const upb_MiniTable *l, upb_Arena *a)
Definition: msg.c:44
decode.h
UPB_SIZE
#define UPB_SIZE(size32, size64)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:32
envoy_type_v3_HashPolicy_new
UPB_INLINE envoy_type_v3_HashPolicy * envoy_type_v3_HashPolicy_new(upb_Arena *arena)
Definition: hash_policy.upb.h:37
UPB_INLINE
#define UPB_INLINE
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:53
envoy_type_v3_HashPolicy_SourceIp_new
UPB_INLINE envoy_type_v3_HashPolicy_SourceIp * envoy_type_v3_HashPolicy_SourceIp_new(upb_Arena *arena)
Definition: hash_policy.upb.h:120
envoy_type_v3_HashPolicy_msginit
const upb_MiniTable envoy_type_v3_HashPolicy_msginit
Definition: hash_policy.upb.c:28
envoy_type_v3_HashPolicy_policy_specifier_source_ip
@ envoy_type_v3_HashPolicy_policy_specifier_source_ip
Definition: hash_policy.upb.h:67
envoy_type_v3_HashPolicy_FilterState_clear_key
UPB_INLINE void envoy_type_v3_HashPolicy_FilterState_clear_key(const envoy_type_v3_HashPolicy_FilterState *msg)
Definition: hash_policy.upb.h:182
envoy_type_v3_HashPolicy_filter_state
const UPB_INLINE envoy_type_v3_HashPolicy_FilterState * envoy_type_v3_HashPolicy_filter_state(const envoy_type_v3_HashPolicy *msg)
Definition: hash_policy.upb.h:89
upb_MiniTable_File
Definition: msg_internal.h:208
envoy_type_v3_HashPolicy_serialize
UPB_INLINE char * envoy_type_v3_HashPolicy_serialize(const envoy_type_v3_HashPolicy *msg, upb_Arena *arena, size_t *len)
Definition: hash_policy.upb.h:59
envoy_type_v3_HashPolicy_policy_specifier_filter_state
@ envoy_type_v3_HashPolicy_policy_specifier_filter_state
Definition: hash_policy.upb.h:68
envoy_type_v3_HashPolicy_serialize_ex
UPB_INLINE char * envoy_type_v3_HashPolicy_serialize_ex(const envoy_type_v3_HashPolicy *msg, int options, upb_Arena *arena, size_t *len)
Definition: hash_policy.upb.h:62
decode_fast.h
msg
std::string msg
Definition: client_interceptors_end2end_test.cc:372
value
const char * value
Definition: hpack_parser_table.cc:165
envoy_type_v3_HashPolicy_has_source_ip
UPB_INLINE bool envoy_type_v3_HashPolicy_has_source_ip(const envoy_type_v3_HashPolicy *msg)
Definition: hash_policy.upb.h:74
_upb_getoneofcase
UPB_INLINE uint32_t _upb_getoneofcase(const void *msg, size_t case_ofs)
Definition: php-upb.h:1307
envoy_type_v3_HashPolicy_parse
UPB_INLINE envoy_type_v3_HashPolicy * envoy_type_v3_HashPolicy_parse(const char *buf, size_t size, upb_Arena *arena)
Definition: hash_policy.upb.h:40
upb_Encode
char * upb_Encode(const void *msg, const upb_MiniTable *l, int options, upb_Arena *arena, size_t *size)
Definition: encode.c:573
envoy_type_v3_HashPolicy_source_ip
const UPB_INLINE envoy_type_v3_HashPolicy_SourceIp * envoy_type_v3_HashPolicy_source_ip(const envoy_type_v3_HashPolicy *msg)
Definition: hash_policy.upb.h:80
upb_StringView
Definition: upb/upb/upb.h:72
envoy_type_v3_HashPolicy_mutable_filter_state
UPB_INLINE struct envoy_type_v3_HashPolicy_FilterState * envoy_type_v3_HashPolicy_mutable_filter_state(envoy_type_v3_HashPolicy *msg, upb_Arena *arena)
Definition: hash_policy.upb.h:108
envoy_type_v3_HashPolicy
struct envoy_type_v3_HashPolicy envoy_type_v3_HashPolicy
Definition: hash_policy.upb.h:26
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
ret
UniquePtr< SSL_SESSION > ret
Definition: ssl_x509.cc:1029
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
envoy_type_v3_HashPolicy_SourceIp_parse
UPB_INLINE envoy_type_v3_HashPolicy_SourceIp * envoy_type_v3_HashPolicy_SourceIp_parse(const char *buf, size_t size, upb_Arena *arena)
Definition: hash_policy.upb.h:123
envoy_type_v3_HashPolicy_FilterState_key
UPB_INLINE upb_StringView envoy_type_v3_HashPolicy_FilterState_key(const envoy_type_v3_HashPolicy_FilterState *msg)
Definition: hash_policy.upb.h:185
envoy_type_v3_HashPolicy_FilterState_new
UPB_INLINE envoy_type_v3_HashPolicy_FilterState * envoy_type_v3_HashPolicy_FilterState_new(upb_Arena *arena)
Definition: hash_policy.upb.h:153
envoy_type_v3_HashPolicy_SourceIp_parse_ex
UPB_INLINE envoy_type_v3_HashPolicy_SourceIp * envoy_type_v3_HashPolicy_SourceIp_parse_ex(const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: hash_policy.upb.h:131
envoy_type_v3_HashPolicy_FilterState_serialize_ex
UPB_INLINE char * envoy_type_v3_HashPolicy_FilterState_serialize_ex(const envoy_type_v3_HashPolicy_FilterState *msg, int options, upb_Arena *arena, size_t *len)
Definition: hash_policy.upb.h:178
envoy_type_v3_HashPolicy_FilterState_parse_ex
UPB_INLINE envoy_type_v3_HashPolicy_FilterState * envoy_type_v3_HashPolicy_FilterState_parse_ex(const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: hash_policy.upb.h:164
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
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77
envoy_type_v3_hash_policy_proto_upb_file_layout
const upb_MiniTable_File envoy_type_v3_hash_policy_proto_upb_file_layout
Definition: hash_policy.upb.c:56
envoy_type_v3_HashPolicy_policy_specifier_NOT_SET
@ envoy_type_v3_HashPolicy_policy_specifier_NOT_SET
Definition: hash_policy.upb.h:69
envoy_type_v3_HashPolicy_policy_specifier_oneofcases
envoy_type_v3_HashPolicy_policy_specifier_oneofcases
Definition: hash_policy.upb.h:66
envoy_type_v3_HashPolicy_SourceIp_msginit
const upb_MiniTable envoy_type_v3_HashPolicy_SourceIp_msginit
Definition: hash_policy.upb.c:34
envoy_type_v3_HashPolicy_parse_ex
UPB_INLINE envoy_type_v3_HashPolicy * envoy_type_v3_HashPolicy_parse_ex(const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: hash_policy.upb.h:48
msg_internal.h
upb_Arena
Definition: upb_internal.h:36
envoy_type_v3_HashPolicy_SourceIp_serialize
UPB_INLINE char * envoy_type_v3_HashPolicy_SourceIp_serialize(const envoy_type_v3_HashPolicy_SourceIp *msg, upb_Arena *arena, size_t *len)
Definition: hash_policy.upb.h:142
upb_ExtensionRegistry
Definition: msg.c:372
envoy_type_v3_HashPolicy_SourceIp
struct envoy_type_v3_HashPolicy_SourceIp envoy_type_v3_HashPolicy_SourceIp
Definition: hash_policy.upb.h:27


grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:00