GRPC Core  9.0.0
filter.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/api/v2/cluster/filter.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8 
9 #ifndef ENVOY_API_V2_CLUSTER_FILTER_PROTO_UPB_H_
10 #define ENVOY_API_V2_CLUSTER_FILTER_PROTO_UPB_H_
11 
12 #include "upb/generated_util.h"
13 #include "upb/msg.h"
14 #include "upb/decode.h"
15 #include "upb/encode.h"
16 
17 #include "upb/port_def.inc"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
25 extern const upb_msglayout envoy_api_v2_cluster_Filter_msginit;
26 struct google_protobuf_Any;
27 extern const upb_msglayout google_protobuf_Any_msginit;
28 
29 
30 /* envoy.api.v2.cluster.Filter */
31 
34 }
35 UPB_INLINE envoy_api_v2_cluster_Filter *envoy_api_v2_cluster_Filter_parse(const char *buf, size_t size,
36  upb_arena *arena) {
38  return (ret && upb_decode(buf, size, ret, &envoy_api_v2_cluster_Filter_msginit, arena)) ? ret : NULL;
39 }
40 UPB_INLINE char *envoy_api_v2_cluster_Filter_serialize(const envoy_api_v2_cluster_Filter *msg, upb_arena *arena, size_t *len) {
41  return upb_encode(msg, &envoy_api_v2_cluster_Filter_msginit, arena, len);
42 }
43 
44 UPB_INLINE upb_strview envoy_api_v2_cluster_Filter_name(const envoy_api_v2_cluster_Filter *msg) { return UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)); }
45 UPB_INLINE const struct google_protobuf_Any* envoy_api_v2_cluster_Filter_typed_config(const envoy_api_v2_cluster_Filter *msg) { return UPB_FIELD_AT(msg, const struct google_protobuf_Any*, UPB_SIZE(8, 16)); }
46 
47 UPB_INLINE void envoy_api_v2_cluster_Filter_set_name(envoy_api_v2_cluster_Filter *msg, upb_strview value) {
48  UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
49 }
51  UPB_FIELD_AT(msg, struct google_protobuf_Any*, UPB_SIZE(8, 16)) = value;
52 }
55  if (sub == NULL) {
56  sub = (struct google_protobuf_Any*)upb_msg_new(&google_protobuf_Any_msginit, arena);
57  if (!sub) return NULL;
59  }
60  return sub;
61 }
62 
63 #ifdef __cplusplus
64 } /* extern "C" */
65 #endif
66 
67 #include "upb/port_undef.inc"
68 
69 #endif /* ENVOY_API_V2_CLUSTER_FILTER_PROTO_UPB_H_ */
UPB_INLINE void envoy_api_v2_cluster_Filter_set_name(envoy_api_v2_cluster_Filter *msg, upb_strview value)
Definition: filter.upb.h:47
const upb_msglayout envoy_api_v2_cluster_Filter_msginit
Definition: filter.upb.c:26
UPB_INLINE char * envoy_api_v2_cluster_Filter_serialize(const envoy_api_v2_cluster_Filter *msg, upb_arena *arena, size_t *len)
Definition: filter.upb.h:40
UPB_INLINE struct google_protobuf_Any * envoy_api_v2_cluster_Filter_mutable_typed_config(envoy_api_v2_cluster_Filter *msg, upb_arena *arena)
Definition: filter.upb.h:53
UPB_INLINE const struct google_protobuf_Any * envoy_api_v2_cluster_Filter_typed_config(const envoy_api_v2_cluster_Filter *msg)
Definition: filter.upb.h:45
const upb_msglayout google_protobuf_Any_msginit
Definition: any.upb.c:20
UPB_INLINE void envoy_api_v2_cluster_Filter_set_typed_config(envoy_api_v2_cluster_Filter *msg, struct google_protobuf_Any *value)
Definition: filter.upb.h:50
UPB_INLINE envoy_api_v2_cluster_Filter * envoy_api_v2_cluster_Filter_new(upb_arena *arena)
Definition: filter.upb.h:32
UPB_INLINE envoy_api_v2_cluster_Filter * envoy_api_v2_cluster_Filter_parse(const char *buf, size_t size, upb_arena *arena)
Definition: filter.upb.h:35
UPB_INLINE upb_strview envoy_api_v2_cluster_Filter_name(const envoy_api_v2_cluster_Filter *msg)
Definition: filter.upb.h:44
struct google_protobuf_Any google_protobuf_Any
Definition: any.upb.h:24
struct envoy_api_v2_cluster_Filter envoy_api_v2_cluster_Filter
Definition: filter.upb.h:24