Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc / deps / grpc / src / core / ext / upb-generated / envoy / type / range.upb.h
1 /* This file was generated by upbc (the upb compiler) from the input
2  * file:
3  *
4  *     envoy/type/range.proto
5  *
6  * Do not edit -- your changes will be discarded when the file is
7  * regenerated. */
8
9 #ifndef ENVOY_TYPE_RANGE_PROTO_UPB_H_
10 #define ENVOY_TYPE_RANGE_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
23 struct envoy_type_Int64Range;
24 struct envoy_type_DoubleRange;
25 typedef struct envoy_type_Int64Range envoy_type_Int64Range;
26 typedef struct envoy_type_DoubleRange envoy_type_DoubleRange;
27 extern const upb_msglayout envoy_type_Int64Range_msginit;
28 extern const upb_msglayout envoy_type_DoubleRange_msginit;
29
30
31 /* envoy.type.Int64Range */
32
33 UPB_INLINE envoy_type_Int64Range *envoy_type_Int64Range_new(upb_arena *arena) {
34   return (envoy_type_Int64Range *)upb_msg_new(&envoy_type_Int64Range_msginit, arena);
35 }
36 UPB_INLINE envoy_type_Int64Range *envoy_type_Int64Range_parse(const char *buf, size_t size,
37                         upb_arena *arena) {
38   envoy_type_Int64Range *ret = envoy_type_Int64Range_new(arena);
39   return (ret && upb_decode(buf, size, ret, &envoy_type_Int64Range_msginit, arena)) ? ret : NULL;
40 }
41 UPB_INLINE char *envoy_type_Int64Range_serialize(const envoy_type_Int64Range *msg, upb_arena *arena, size_t *len) {
42   return upb_encode(msg, &envoy_type_Int64Range_msginit, arena, len);
43 }
44
45 UPB_INLINE int64_t envoy_type_Int64Range_start(const envoy_type_Int64Range *msg) { return UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0)); }
46 UPB_INLINE int64_t envoy_type_Int64Range_end(const envoy_type_Int64Range *msg) { return UPB_FIELD_AT(msg, int64_t, UPB_SIZE(8, 8)); }
47
48 UPB_INLINE void envoy_type_Int64Range_set_start(envoy_type_Int64Range *msg, int64_t value) {
49   UPB_FIELD_AT(msg, int64_t, UPB_SIZE(0, 0)) = value;
50 }
51 UPB_INLINE void envoy_type_Int64Range_set_end(envoy_type_Int64Range *msg, int64_t value) {
52   UPB_FIELD_AT(msg, int64_t, UPB_SIZE(8, 8)) = value;
53 }
54
55 /* envoy.type.DoubleRange */
56
57 UPB_INLINE envoy_type_DoubleRange *envoy_type_DoubleRange_new(upb_arena *arena) {
58   return (envoy_type_DoubleRange *)upb_msg_new(&envoy_type_DoubleRange_msginit, arena);
59 }
60 UPB_INLINE envoy_type_DoubleRange *envoy_type_DoubleRange_parse(const char *buf, size_t size,
61                         upb_arena *arena) {
62   envoy_type_DoubleRange *ret = envoy_type_DoubleRange_new(arena);
63   return (ret && upb_decode(buf, size, ret, &envoy_type_DoubleRange_msginit, arena)) ? ret : NULL;
64 }
65 UPB_INLINE char *envoy_type_DoubleRange_serialize(const envoy_type_DoubleRange *msg, upb_arena *arena, size_t *len) {
66   return upb_encode(msg, &envoy_type_DoubleRange_msginit, arena, len);
67 }
68
69 UPB_INLINE double envoy_type_DoubleRange_start(const envoy_type_DoubleRange *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)); }
70 UPB_INLINE double envoy_type_DoubleRange_end(const envoy_type_DoubleRange *msg) { return UPB_FIELD_AT(msg, double, UPB_SIZE(8, 8)); }
71
72 UPB_INLINE void envoy_type_DoubleRange_set_start(envoy_type_DoubleRange *msg, double value) {
73   UPB_FIELD_AT(msg, double, UPB_SIZE(0, 0)) = value;
74 }
75 UPB_INLINE void envoy_type_DoubleRange_set_end(envoy_type_DoubleRange *msg, double value) {
76   UPB_FIELD_AT(msg, double, UPB_SIZE(8, 8)) = value;
77 }
78
79 #ifdef __cplusplus
80 }  /* extern "C" */
81 #endif
82
83 #include "upb/port_undef.inc"
84
85 #endif  /* ENVOY_TYPE_RANGE_PROTO_UPB_H_ */