token_bucket.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/token_bucket.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef ENVOY_TYPE_V3_TOKEN_BUCKET_PROTO_UPB_H_
10 #define ENVOY_TYPE_V3_TOKEN_BUCKET_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 
30 
31 
32 
33 /* envoy.type.v3.TokenBucket */
34 
37 }
40  if (!ret) return NULL;
42  return NULL;
43  }
44  return ret;
45 }
47  const upb_ExtensionRegistry* extreg,
48  int options, upb_Arena* arena) {
50  if (!ret) return NULL;
53  return NULL;
54  }
55  return ret;
56 }
59 }
61  upb_Arena* arena, size_t* len) {
63 }
65  *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = 0;
66 }
68  return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t);
69 }
71  return _upb_hasbit(msg, 1);
72 }
74  *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const upb_Message*) = NULL;
75 }
77  return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const struct google_protobuf_UInt32Value*);
78 }
80  return _upb_hasbit(msg, 2);
81 }
83  *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const upb_Message*) = NULL;
84 }
86  return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct google_protobuf_Duration*);
87 }
88 
90  *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value;
91 }
93  _upb_sethas(msg, 1);
95 }
98  if (sub == NULL) {
100  if (!sub) return NULL;
102  }
103  return sub;
104 }
106  _upb_sethas(msg, 2);
107  *UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct google_protobuf_Duration*) = value;
108 }
111  if (sub == NULL) {
113  if (!sub) return NULL;
115  }
116  return sub;
117 }
118 
120 
121 #ifdef __cplusplus
122 } /* extern "C" */
123 #endif
124 
125 #include "upb/port_undef.inc"
126 
127 #endif /* ENVOY_TYPE_V3_TOKEN_BUCKET_PROTO_UPB_H_ */
google_protobuf_Duration_msginit
const upb_MiniTable google_protobuf_Duration_msginit
Definition: duration.upb.c:20
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
envoy_type_v3_TokenBucket_serialize
UPB_INLINE char * envoy_type_v3_TokenBucket_serialize(const envoy_type_v3_TokenBucket *msg, upb_Arena *arena, size_t *len)
Definition: token_bucket.upb.h:57
options
double_dict options[]
Definition: capstone_test.c:55
envoy_type_v3_TokenBucket_set_tokens_per_fill
UPB_INLINE void envoy_type_v3_TokenBucket_set_tokens_per_fill(envoy_type_v3_TokenBucket *msg, struct google_protobuf_UInt32Value *value)
Definition: token_bucket.upb.h:92
buf
voidpf void * buf
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
kUpb_DecodeStatus_Ok
@ kUpb_DecodeStatus_Ok
Definition: decode.h:72
_upb_sethas
UPB_INLINE bool _upb_sethas(const void *msg, size_t idx)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.h:1232
upb_MiniTable
Definition: msg_internal.h:185
UPB_PTR_AT
#define UPB_PTR_AT(msg, ofs, type)
Definition: php-upb.c:71
envoy_type_v3_TokenBucket_new
UPB_INLINE envoy_type_v3_TokenBucket * envoy_type_v3_TokenBucket_new(upb_Arena *arena)
Definition: token_bucket.upb.h:35
envoy_type_v3_TokenBucket
struct envoy_type_v3_TokenBucket envoy_type_v3_TokenBucket
Definition: token_bucket.upb.h:24
envoy_type_v3_TokenBucket_mutable_tokens_per_fill
UPB_INLINE struct google_protobuf_UInt32Value * envoy_type_v3_TokenBucket_mutable_tokens_per_fill(envoy_type_v3_TokenBucket *msg, upb_Arena *arena)
Definition: token_bucket.upb.h:96
arena
grpc_core::ScopedArenaPtr arena
Definition: binder_transport_test.cc:237
envoy_type_v3_TokenBucket_mutable_fill_interval
UPB_INLINE struct google_protobuf_Duration * envoy_type_v3_TokenBucket_mutable_fill_interval(envoy_type_v3_TokenBucket *msg, upb_Arena *arena)
Definition: token_bucket.upb.h:109
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
envoy_type_v3_TokenBucket_tokens_per_fill
UPB_INLINE const struct google_protobuf_UInt32Value * envoy_type_v3_TokenBucket_tokens_per_fill(const envoy_type_v3_TokenBucket *msg)
Definition: token_bucket.upb.h:76
_upb_Message_New
upb_Message * _upb_Message_New(const upb_MiniTable *l, upb_Arena *a)
Definition: msg.c:44
envoy_type_v3_TokenBucket_max_tokens
UPB_INLINE uint32_t envoy_type_v3_TokenBucket_max_tokens(const envoy_type_v3_TokenBucket *msg)
Definition: token_bucket.upb.h:67
decode.h
envoy_type_v3_TokenBucket_clear_fill_interval
UPB_INLINE void envoy_type_v3_TokenBucket_clear_fill_interval(const envoy_type_v3_TokenBucket *msg)
Definition: token_bucket.upb.h:82
UPB_SIZE
#define UPB_SIZE(size32, size64)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:32
envoy_type_v3_TokenBucket_fill_interval
UPB_INLINE const struct google_protobuf_Duration * envoy_type_v3_TokenBucket_fill_interval(const envoy_type_v3_TokenBucket *msg)
Definition: token_bucket.upb.h:85
UPB_INLINE
#define UPB_INLINE
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:53
upb_MiniTable_File
Definition: msg_internal.h:208
envoy_type_v3_TokenBucket_clear_max_tokens
UPB_INLINE void envoy_type_v3_TokenBucket_clear_max_tokens(const envoy_type_v3_TokenBucket *msg)
Definition: token_bucket.upb.h:64
envoy_type_v3_TokenBucket_msginit
const upb_MiniTable envoy_type_v3_TokenBucket_msginit
Definition: token_bucket.upb.c:31
upb_Message
void upb_Message
Definition: msg.h:49
envoy_type_v3_TokenBucket_has_fill_interval
UPB_INLINE bool envoy_type_v3_TokenBucket_has_fill_interval(const envoy_type_v3_TokenBucket *msg)
Definition: token_bucket.upb.h:79
decode_fast.h
msg
std::string msg
Definition: client_interceptors_end2end_test.cc:372
envoy_type_v3_TokenBucket_serialize_ex
UPB_INLINE char * envoy_type_v3_TokenBucket_serialize_ex(const envoy_type_v3_TokenBucket *msg, int options, upb_Arena *arena, size_t *len)
Definition: token_bucket.upb.h:60
envoy_type_v3_TokenBucket_set_fill_interval
UPB_INLINE void envoy_type_v3_TokenBucket_set_fill_interval(envoy_type_v3_TokenBucket *msg, struct google_protobuf_Duration *value)
Definition: token_bucket.upb.h:105
envoy_type_v3_TokenBucket_set_max_tokens
UPB_INLINE void envoy_type_v3_TokenBucket_set_max_tokens(envoy_type_v3_TokenBucket *msg, uint32_t value)
Definition: token_bucket.upb.h:89
value
const char * value
Definition: hpack_parser_table.cc:165
upb_Encode
char * upb_Encode(const void *msg, const upb_MiniTable *l, int options, upb_Arena *arena, size_t *size)
Definition: encode.c:573
_upb_hasbit
UPB_INLINE bool _upb_hasbit(const upb_msg *msg, size_t idx)
Definition: php-upb.h:1269
envoy_type_v3_TokenBucket_has_tokens_per_fill
UPB_INLINE bool envoy_type_v3_TokenBucket_has_tokens_per_fill(const envoy_type_v3_TokenBucket *msg)
Definition: token_bucket.upb.h:70
ret
UniquePtr< SSL_SESSION > ret
Definition: ssl_x509.cc:1029
google_protobuf_Duration
struct google_protobuf_Duration google_protobuf_Duration
Definition: duration.upb.h:24
envoy_type_v3_TokenBucket_parse
UPB_INLINE envoy_type_v3_TokenBucket * envoy_type_v3_TokenBucket_parse(const char *buf, size_t size, upb_Arena *arena)
Definition: token_bucket.upb.h:38
envoy_type_v3_token_bucket_proto_upb_file_layout
const upb_MiniTable_File envoy_type_v3_token_bucket_proto_upb_file_layout
Definition: token_bucket.upb.c:41
envoy_type_v3_TokenBucket_parse_ex
UPB_INLINE envoy_type_v3_TokenBucket * envoy_type_v3_TokenBucket_parse_ex(const char *buf, size_t size, const upb_ExtensionRegistry *extreg, int options, upb_Arena *arena)
Definition: token_bucket.upb.h:46
google_protobuf_UInt32Value
struct google_protobuf_UInt32Value google_protobuf_UInt32Value
Definition: wrappers.upb.h:37
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
envoy_type_v3_TokenBucket_clear_tokens_per_fill
UPB_INLINE void envoy_type_v3_TokenBucket_clear_tokens_per_fill(const envoy_type_v3_TokenBucket *msg)
Definition: token_bucket.upb.h:73
msg_internal.h
upb_Arena
Definition: upb_internal.h:36
upb_ExtensionRegistry
Definition: msg.c:372
google_protobuf_UInt32Value_msginit
const upb_MiniTable google_protobuf_UInt32Value_msginit
Definition: wrappers.upb.c:69


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