| 1 |
/* This file was generated by upbc (the upb compiler) from the input |
| 2 |
* file: |
| 3 |
* |
| 4 |
* envoy/service/status/v3/csds.proto |
| 5 |
* |
| 6 |
* Do not edit -- your changes will be discarded when the file is |
| 7 |
* regenerated. */ |
| 8 |
|
| 9 |
#ifndef ENVOY_SERVICE_STATUS_V3_CSDS_PROTO_UPB_H_ |
| 10 |
#define ENVOY_SERVICE_STATUS_V3_CSDS_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 |
|
| 23 |
struct envoy_service_status_v3_ClientStatusRequest; |
| 24 |
struct envoy_service_status_v3_PerXdsConfig; |
| 25 |
struct envoy_service_status_v3_ClientConfig; |
| 26 |
struct envoy_service_status_v3_ClientConfig_GenericXdsConfig; |
| 27 |
struct envoy_service_status_v3_ClientStatusResponse; |
| 28 |
typedef struct envoy_service_status_v3_ClientStatusRequest envoy_service_status_v3_ClientStatusRequest; |
| 29 |
typedef struct envoy_service_status_v3_PerXdsConfig envoy_service_status_v3_PerXdsConfig; |
| 30 |
typedef struct envoy_service_status_v3_ClientConfig envoy_service_status_v3_ClientConfig; |
| 31 |
typedef struct envoy_service_status_v3_ClientConfig_GenericXdsConfig envoy_service_status_v3_ClientConfig_GenericXdsConfig; |
| 32 |
typedef struct envoy_service_status_v3_ClientStatusResponse envoy_service_status_v3_ClientStatusResponse; |
| 33 |
extern const upb_MiniTable envoy_service_status_v3_ClientStatusRequest_msginit; |
| 34 |
extern const upb_MiniTable envoy_service_status_v3_PerXdsConfig_msginit; |
| 35 |
extern const upb_MiniTable envoy_service_status_v3_ClientConfig_msginit; |
| 36 |
extern const upb_MiniTable envoy_service_status_v3_ClientConfig_GenericXdsConfig_msginit; |
| 37 |
extern const upb_MiniTable envoy_service_status_v3_ClientStatusResponse_msginit; |
| 38 |
struct envoy_admin_v3_ClustersConfigDump; |
| 39 |
struct envoy_admin_v3_EndpointsConfigDump; |
| 40 |
struct envoy_admin_v3_ListenersConfigDump; |
| 41 |
struct envoy_admin_v3_RoutesConfigDump; |
| 42 |
struct envoy_admin_v3_ScopedRoutesConfigDump; |
| 43 |
struct envoy_admin_v3_UpdateFailureState; |
| 44 |
struct envoy_config_core_v3_Node; |
| 45 |
struct envoy_type_matcher_v3_NodeMatcher; |
| 46 |
struct google_protobuf_Any; |
| 47 |
struct google_protobuf_Timestamp; |
| 48 |
extern const upb_MiniTable envoy_admin_v3_ClustersConfigDump_msginit; |
| 49 |
extern const upb_MiniTable envoy_admin_v3_EndpointsConfigDump_msginit; |
| 50 |
extern const upb_MiniTable envoy_admin_v3_ListenersConfigDump_msginit; |
| 51 |
extern const upb_MiniTable envoy_admin_v3_RoutesConfigDump_msginit; |
| 52 |
extern const upb_MiniTable envoy_admin_v3_ScopedRoutesConfigDump_msginit; |
| 53 |
extern const upb_MiniTable envoy_admin_v3_UpdateFailureState_msginit; |
| 54 |
extern const upb_MiniTable envoy_config_core_v3_Node_msginit; |
| 55 |
extern const upb_MiniTable envoy_type_matcher_v3_NodeMatcher_msginit; |
| 56 |
extern const upb_MiniTable google_protobuf_Any_msginit; |
| 57 |
extern const upb_MiniTable google_protobuf_Timestamp_msginit; |
| 58 |
|
| 59 |
typedef enum { |
| 60 |
envoy_service_status_v3_CLIENT_UNKNOWN = 0, |
| 61 |
envoy_service_status_v3_CLIENT_REQUESTED = 1, |
| 62 |
envoy_service_status_v3_CLIENT_ACKED = 2, |
| 63 |
envoy_service_status_v3_CLIENT_NACKED = 3 |
| 64 |
} envoy_service_status_v3_ClientConfigStatus; |
| 65 |
|
| 66 |
typedef enum { |
| 67 |
envoy_service_status_v3_UNKNOWN = 0, |
| 68 |
envoy_service_status_v3_SYNCED = 1, |
| 69 |
envoy_service_status_v3_NOT_SENT = 2, |
| 70 |
envoy_service_status_v3_STALE = 3, |
| 71 |
envoy_service_status_v3_ERROR = 4 |
| 72 |
} envoy_service_status_v3_ConfigStatus; |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
/* envoy.service.status.v3.ClientStatusRequest */ |
| 77 |
|
| 78 |
UPB_INLINE envoy_service_status_v3_ClientStatusRequest* envoy_service_status_v3_ClientStatusRequest_new(upb_Arena* arena) { |
| 79 |
return (envoy_service_status_v3_ClientStatusRequest*)_upb_Message_New(&envoy_service_status_v3_ClientStatusRequest_msginit, arena); |
| 80 |
} |
| 81 |
UPB_INLINE envoy_service_status_v3_ClientStatusRequest* envoy_service_status_v3_ClientStatusRequest_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 82 |
envoy_service_status_v3_ClientStatusRequest* ret = envoy_service_status_v3_ClientStatusRequest_new(arena); |
| 83 |
if (!ret) return NULL; |
| 84 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_ClientStatusRequest_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 85 |
return NULL; |
| 86 |
} |
| 87 |
return ret; |
| 88 |
} |
| 89 |
UPB_INLINE envoy_service_status_v3_ClientStatusRequest* envoy_service_status_v3_ClientStatusRequest_parse_ex(const char* buf, size_t size, |
| 90 |
const upb_ExtensionRegistry* extreg, |
| 91 |
int options, upb_Arena* arena) { |
| 92 |
envoy_service_status_v3_ClientStatusRequest* ret = envoy_service_status_v3_ClientStatusRequest_new(arena); |
| 93 |
if (!ret) return NULL; |
| 94 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_ClientStatusRequest_msginit, extreg, options, arena) != |
| 95 |
kUpb_DecodeStatus_Ok) { |
| 96 |
return NULL; |
| 97 |
} |
| 98 |
return ret; |
| 99 |
} |
| 100 |
UPB_INLINE char* envoy_service_status_v3_ClientStatusRequest_serialize(const envoy_service_status_v3_ClientStatusRequest* msg, upb_Arena* arena, size_t* len) { |
| 101 |
char* ptr; |
| 102 |
(void)upb_Encode(msg, &envoy_service_status_v3_ClientStatusRequest_msginit, 0, arena, &ptr, len); |
| 103 |
return ptr; |
| 104 |
} |
| 105 |
UPB_INLINE char* envoy_service_status_v3_ClientStatusRequest_serialize_ex(const envoy_service_status_v3_ClientStatusRequest* msg, int options, |
| 106 |
upb_Arena* arena, size_t* len) { |
| 107 |
char* ptr; |
| 108 |
(void)upb_Encode(msg, &envoy_service_status_v3_ClientStatusRequest_msginit, options, arena, &ptr, len); |
| 109 |
return ptr; |
| 110 |
} |
| 111 |
UPB_INLINE bool envoy_service_status_v3_ClientStatusRequest_has_node_matchers(const envoy_service_status_v3_ClientStatusRequest* msg) { |
| 112 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
| 113 |
} |
| 114 |
UPB_INLINE void envoy_service_status_v3_ClientStatusRequest_clear_node_matchers(const envoy_service_status_v3_ClientStatusRequest* msg) { |
| 115 |
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
| 116 |
} |
| 117 |
UPB_INLINE const struct envoy_type_matcher_v3_NodeMatcher* const* envoy_service_status_v3_ClientStatusRequest_node_matchers(const envoy_service_status_v3_ClientStatusRequest* msg, size_t* len) { |
| 118 |
return (const struct envoy_type_matcher_v3_NodeMatcher* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
| 119 |
} |
| 120 |
UPB_INLINE bool envoy_service_status_v3_ClientStatusRequest_has_node(const envoy_service_status_v3_ClientStatusRequest* msg) { |
| 121 |
return _upb_hasbit(msg, 1); |
| 122 |
} |
| 123 |
UPB_INLINE void envoy_service_status_v3_ClientStatusRequest_clear_node(const envoy_service_status_v3_ClientStatusRequest* msg) { |
| 124 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
| 125 |
} |
| 126 |
UPB_INLINE const struct envoy_config_core_v3_Node* envoy_service_status_v3_ClientStatusRequest_node(const envoy_service_status_v3_ClientStatusRequest* msg) { |
| 127 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_config_core_v3_Node*); |
| 128 |
} |
| 129 |
|
| 130 |
UPB_INLINE struct envoy_type_matcher_v3_NodeMatcher** envoy_service_status_v3_ClientStatusRequest_mutable_node_matchers(envoy_service_status_v3_ClientStatusRequest* msg, size_t* len) { |
| 131 |
return (struct envoy_type_matcher_v3_NodeMatcher**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
| 132 |
} |
| 133 |
UPB_INLINE struct envoy_type_matcher_v3_NodeMatcher** envoy_service_status_v3_ClientStatusRequest_resize_node_matchers(envoy_service_status_v3_ClientStatusRequest* msg, size_t len, upb_Arena* arena) { |
| 134 |
return (struct envoy_type_matcher_v3_NodeMatcher**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
| 135 |
} |
| 136 |
UPB_INLINE struct envoy_type_matcher_v3_NodeMatcher* envoy_service_status_v3_ClientStatusRequest_add_node_matchers(envoy_service_status_v3_ClientStatusRequest* msg, upb_Arena* arena) { |
| 137 |
struct envoy_type_matcher_v3_NodeMatcher* sub = (struct envoy_type_matcher_v3_NodeMatcher*)_upb_Message_New(&envoy_type_matcher_v3_NodeMatcher_msginit, arena); |
| 138 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
| 139 |
if (!ok) return NULL; |
| 140 |
return sub; |
| 141 |
} |
| 142 |
UPB_INLINE void envoy_service_status_v3_ClientStatusRequest_set_node(envoy_service_status_v3_ClientStatusRequest *msg, struct envoy_config_core_v3_Node* value) { |
| 143 |
_upb_sethas(msg, 1); |
| 144 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_config_core_v3_Node*) = value; |
| 145 |
} |
| 146 |
UPB_INLINE struct envoy_config_core_v3_Node* envoy_service_status_v3_ClientStatusRequest_mutable_node(envoy_service_status_v3_ClientStatusRequest* msg, upb_Arena* arena) { |
| 147 |
struct envoy_config_core_v3_Node* sub = (struct envoy_config_core_v3_Node*)envoy_service_status_v3_ClientStatusRequest_node(msg); |
| 148 |
if (sub == NULL) { |
| 149 |
sub = (struct envoy_config_core_v3_Node*)_upb_Message_New(&envoy_config_core_v3_Node_msginit, arena); |
| 150 |
if (!sub) return NULL; |
| 151 |
envoy_service_status_v3_ClientStatusRequest_set_node(msg, sub); |
| 152 |
} |
| 153 |
return sub; |
| 154 |
} |
| 155 |
|
| 156 |
/* envoy.service.status.v3.PerXdsConfig */ |
| 157 |
|
| 158 |
UPB_INLINE envoy_service_status_v3_PerXdsConfig* envoy_service_status_v3_PerXdsConfig_new(upb_Arena* arena) { |
| 159 |
return (envoy_service_status_v3_PerXdsConfig*)_upb_Message_New(&envoy_service_status_v3_PerXdsConfig_msginit, arena); |
| 160 |
} |
| 161 |
UPB_INLINE envoy_service_status_v3_PerXdsConfig* envoy_service_status_v3_PerXdsConfig_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 162 |
envoy_service_status_v3_PerXdsConfig* ret = envoy_service_status_v3_PerXdsConfig_new(arena); |
| 163 |
if (!ret) return NULL; |
| 164 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_PerXdsConfig_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 165 |
return NULL; |
| 166 |
} |
| 167 |
return ret; |
| 168 |
} |
| 169 |
UPB_INLINE envoy_service_status_v3_PerXdsConfig* envoy_service_status_v3_PerXdsConfig_parse_ex(const char* buf, size_t size, |
| 170 |
const upb_ExtensionRegistry* extreg, |
| 171 |
int options, upb_Arena* arena) { |
| 172 |
envoy_service_status_v3_PerXdsConfig* ret = envoy_service_status_v3_PerXdsConfig_new(arena); |
| 173 |
if (!ret) return NULL; |
| 174 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_PerXdsConfig_msginit, extreg, options, arena) != |
| 175 |
kUpb_DecodeStatus_Ok) { |
| 176 |
return NULL; |
| 177 |
} |
| 178 |
return ret; |
| 179 |
} |
| 180 |
UPB_INLINE char* envoy_service_status_v3_PerXdsConfig_serialize(const envoy_service_status_v3_PerXdsConfig* msg, upb_Arena* arena, size_t* len) { |
| 181 |
char* ptr; |
| 182 |
(void)upb_Encode(msg, &envoy_service_status_v3_PerXdsConfig_msginit, 0, arena, &ptr, len); |
| 183 |
return ptr; |
| 184 |
} |
| 185 |
UPB_INLINE char* envoy_service_status_v3_PerXdsConfig_serialize_ex(const envoy_service_status_v3_PerXdsConfig* msg, int options, |
| 186 |
upb_Arena* arena, size_t* len) { |
| 187 |
char* ptr; |
| 188 |
(void)upb_Encode(msg, &envoy_service_status_v3_PerXdsConfig_msginit, options, arena, &ptr, len); |
| 189 |
return ptr; |
| 190 |
} |
| 191 |
typedef enum { |
| 192 |
envoy_service_status_v3_PerXdsConfig_per_xds_config_listener_config = 2, |
| 193 |
envoy_service_status_v3_PerXdsConfig_per_xds_config_cluster_config = 3, |
| 194 |
envoy_service_status_v3_PerXdsConfig_per_xds_config_route_config = 4, |
| 195 |
envoy_service_status_v3_PerXdsConfig_per_xds_config_scoped_route_config = 5, |
| 196 |
envoy_service_status_v3_PerXdsConfig_per_xds_config_endpoint_config = 6, |
| 197 |
envoy_service_status_v3_PerXdsConfig_per_xds_config_NOT_SET = 0 |
| 198 |
} envoy_service_status_v3_PerXdsConfig_per_xds_config_oneofcases; |
| 199 |
UPB_INLINE envoy_service_status_v3_PerXdsConfig_per_xds_config_oneofcases envoy_service_status_v3_PerXdsConfig_per_xds_config_case(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 200 |
return (envoy_service_status_v3_PerXdsConfig_per_xds_config_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); |
| 201 |
} |
| 202 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_clear_status(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 203 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = 0; |
| 204 |
} |
| 205 |
UPB_INLINE int32_t envoy_service_status_v3_PerXdsConfig_status(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 206 |
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
| 207 |
} |
| 208 |
UPB_INLINE bool envoy_service_status_v3_PerXdsConfig_has_listener_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 209 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 2; |
| 210 |
} |
| 211 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_clear_listener_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 212 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_ListenersConfigDump*, UPB_SIZE(12, 16), 0, UPB_SIZE(4, 4), envoy_service_status_v3_PerXdsConfig_per_xds_config_NOT_SET); |
| 213 |
} |
| 214 |
UPB_INLINE const struct envoy_admin_v3_ListenersConfigDump* envoy_service_status_v3_PerXdsConfig_listener_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 215 |
return UPB_READ_ONEOF(msg, const struct envoy_admin_v3_ListenersConfigDump*, UPB_SIZE(12, 16), UPB_SIZE(4, 4), 2, NULL); |
| 216 |
} |
| 217 |
UPB_INLINE bool envoy_service_status_v3_PerXdsConfig_has_cluster_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 218 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 3; |
| 219 |
} |
| 220 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_clear_cluster_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 221 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_ClustersConfigDump*, UPB_SIZE(12, 16), 0, UPB_SIZE(4, 4), envoy_service_status_v3_PerXdsConfig_per_xds_config_NOT_SET); |
| 222 |
} |
| 223 |
UPB_INLINE const struct envoy_admin_v3_ClustersConfigDump* envoy_service_status_v3_PerXdsConfig_cluster_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 224 |
return UPB_READ_ONEOF(msg, const struct envoy_admin_v3_ClustersConfigDump*, UPB_SIZE(12, 16), UPB_SIZE(4, 4), 3, NULL); |
| 225 |
} |
| 226 |
UPB_INLINE bool envoy_service_status_v3_PerXdsConfig_has_route_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 227 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 4; |
| 228 |
} |
| 229 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_clear_route_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 230 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_RoutesConfigDump*, UPB_SIZE(12, 16), 0, UPB_SIZE(4, 4), envoy_service_status_v3_PerXdsConfig_per_xds_config_NOT_SET); |
| 231 |
} |
| 232 |
UPB_INLINE const struct envoy_admin_v3_RoutesConfigDump* envoy_service_status_v3_PerXdsConfig_route_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 233 |
return UPB_READ_ONEOF(msg, const struct envoy_admin_v3_RoutesConfigDump*, UPB_SIZE(12, 16), UPB_SIZE(4, 4), 4, NULL); |
| 234 |
} |
| 235 |
UPB_INLINE bool envoy_service_status_v3_PerXdsConfig_has_scoped_route_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 236 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 5; |
| 237 |
} |
| 238 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_clear_scoped_route_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 239 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_ScopedRoutesConfigDump*, UPB_SIZE(12, 16), 0, UPB_SIZE(4, 4), envoy_service_status_v3_PerXdsConfig_per_xds_config_NOT_SET); |
| 240 |
} |
| 241 |
UPB_INLINE const struct envoy_admin_v3_ScopedRoutesConfigDump* envoy_service_status_v3_PerXdsConfig_scoped_route_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 242 |
return UPB_READ_ONEOF(msg, const struct envoy_admin_v3_ScopedRoutesConfigDump*, UPB_SIZE(12, 16), UPB_SIZE(4, 4), 5, NULL); |
| 243 |
} |
| 244 |
UPB_INLINE bool envoy_service_status_v3_PerXdsConfig_has_endpoint_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 245 |
return _upb_getoneofcase(msg, UPB_SIZE(4, 4)) == 6; |
| 246 |
} |
| 247 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_clear_endpoint_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 248 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_EndpointsConfigDump*, UPB_SIZE(12, 16), 0, UPB_SIZE(4, 4), envoy_service_status_v3_PerXdsConfig_per_xds_config_NOT_SET); |
| 249 |
} |
| 250 |
UPB_INLINE const struct envoy_admin_v3_EndpointsConfigDump* envoy_service_status_v3_PerXdsConfig_endpoint_config(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 251 |
return UPB_READ_ONEOF(msg, const struct envoy_admin_v3_EndpointsConfigDump*, UPB_SIZE(12, 16), UPB_SIZE(4, 4), 6, NULL); |
| 252 |
} |
| 253 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_clear_client_status(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 254 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = 0; |
| 255 |
} |
| 256 |
UPB_INLINE int32_t envoy_service_status_v3_PerXdsConfig_client_status(const envoy_service_status_v3_PerXdsConfig* msg) { |
| 257 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); |
| 258 |
} |
| 259 |
|
| 260 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_set_status(envoy_service_status_v3_PerXdsConfig *msg, int32_t value) { |
| 261 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
| 262 |
} |
| 263 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_set_listener_config(envoy_service_status_v3_PerXdsConfig *msg, struct envoy_admin_v3_ListenersConfigDump* value) { |
| 264 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_ListenersConfigDump*, UPB_SIZE(12, 16), value, UPB_SIZE(4, 4), 2); |
| 265 |
} |
| 266 |
UPB_INLINE struct envoy_admin_v3_ListenersConfigDump* envoy_service_status_v3_PerXdsConfig_mutable_listener_config(envoy_service_status_v3_PerXdsConfig* msg, upb_Arena* arena) { |
| 267 |
struct envoy_admin_v3_ListenersConfigDump* sub = (struct envoy_admin_v3_ListenersConfigDump*)envoy_service_status_v3_PerXdsConfig_listener_config(msg); |
| 268 |
if (sub == NULL) { |
| 269 |
sub = (struct envoy_admin_v3_ListenersConfigDump*)_upb_Message_New(&envoy_admin_v3_ListenersConfigDump_msginit, arena); |
| 270 |
if (!sub) return NULL; |
| 271 |
envoy_service_status_v3_PerXdsConfig_set_listener_config(msg, sub); |
| 272 |
} |
| 273 |
return sub; |
| 274 |
} |
| 275 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_set_cluster_config(envoy_service_status_v3_PerXdsConfig *msg, struct envoy_admin_v3_ClustersConfigDump* value) { |
| 276 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_ClustersConfigDump*, UPB_SIZE(12, 16), value, UPB_SIZE(4, 4), 3); |
| 277 |
} |
| 278 |
UPB_INLINE struct envoy_admin_v3_ClustersConfigDump* envoy_service_status_v3_PerXdsConfig_mutable_cluster_config(envoy_service_status_v3_PerXdsConfig* msg, upb_Arena* arena) { |
| 279 |
struct envoy_admin_v3_ClustersConfigDump* sub = (struct envoy_admin_v3_ClustersConfigDump*)envoy_service_status_v3_PerXdsConfig_cluster_config(msg); |
| 280 |
if (sub == NULL) { |
| 281 |
sub = (struct envoy_admin_v3_ClustersConfigDump*)_upb_Message_New(&envoy_admin_v3_ClustersConfigDump_msginit, arena); |
| 282 |
if (!sub) return NULL; |
| 283 |
envoy_service_status_v3_PerXdsConfig_set_cluster_config(msg, sub); |
| 284 |
} |
| 285 |
return sub; |
| 286 |
} |
| 287 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_set_route_config(envoy_service_status_v3_PerXdsConfig *msg, struct envoy_admin_v3_RoutesConfigDump* value) { |
| 288 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_RoutesConfigDump*, UPB_SIZE(12, 16), value, UPB_SIZE(4, 4), 4); |
| 289 |
} |
| 290 |
UPB_INLINE struct envoy_admin_v3_RoutesConfigDump* envoy_service_status_v3_PerXdsConfig_mutable_route_config(envoy_service_status_v3_PerXdsConfig* msg, upb_Arena* arena) { |
| 291 |
struct envoy_admin_v3_RoutesConfigDump* sub = (struct envoy_admin_v3_RoutesConfigDump*)envoy_service_status_v3_PerXdsConfig_route_config(msg); |
| 292 |
if (sub == NULL) { |
| 293 |
sub = (struct envoy_admin_v3_RoutesConfigDump*)_upb_Message_New(&envoy_admin_v3_RoutesConfigDump_msginit, arena); |
| 294 |
if (!sub) return NULL; |
| 295 |
envoy_service_status_v3_PerXdsConfig_set_route_config(msg, sub); |
| 296 |
} |
| 297 |
return sub; |
| 298 |
} |
| 299 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_set_scoped_route_config(envoy_service_status_v3_PerXdsConfig *msg, struct envoy_admin_v3_ScopedRoutesConfigDump* value) { |
| 300 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_ScopedRoutesConfigDump*, UPB_SIZE(12, 16), value, UPB_SIZE(4, 4), 5); |
| 301 |
} |
| 302 |
UPB_INLINE struct envoy_admin_v3_ScopedRoutesConfigDump* envoy_service_status_v3_PerXdsConfig_mutable_scoped_route_config(envoy_service_status_v3_PerXdsConfig* msg, upb_Arena* arena) { |
| 303 |
struct envoy_admin_v3_ScopedRoutesConfigDump* sub = (struct envoy_admin_v3_ScopedRoutesConfigDump*)envoy_service_status_v3_PerXdsConfig_scoped_route_config(msg); |
| 304 |
if (sub == NULL) { |
| 305 |
sub = (struct envoy_admin_v3_ScopedRoutesConfigDump*)_upb_Message_New(&envoy_admin_v3_ScopedRoutesConfigDump_msginit, arena); |
| 306 |
if (!sub) return NULL; |
| 307 |
envoy_service_status_v3_PerXdsConfig_set_scoped_route_config(msg, sub); |
| 308 |
} |
| 309 |
return sub; |
| 310 |
} |
| 311 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_set_endpoint_config(envoy_service_status_v3_PerXdsConfig *msg, struct envoy_admin_v3_EndpointsConfigDump* value) { |
| 312 |
UPB_WRITE_ONEOF(msg, struct envoy_admin_v3_EndpointsConfigDump*, UPB_SIZE(12, 16), value, UPB_SIZE(4, 4), 6); |
| 313 |
} |
| 314 |
UPB_INLINE struct envoy_admin_v3_EndpointsConfigDump* envoy_service_status_v3_PerXdsConfig_mutable_endpoint_config(envoy_service_status_v3_PerXdsConfig* msg, upb_Arena* arena) { |
| 315 |
struct envoy_admin_v3_EndpointsConfigDump* sub = (struct envoy_admin_v3_EndpointsConfigDump*)envoy_service_status_v3_PerXdsConfig_endpoint_config(msg); |
| 316 |
if (sub == NULL) { |
| 317 |
sub = (struct envoy_admin_v3_EndpointsConfigDump*)_upb_Message_New(&envoy_admin_v3_EndpointsConfigDump_msginit, arena); |
| 318 |
if (!sub) return NULL; |
| 319 |
envoy_service_status_v3_PerXdsConfig_set_endpoint_config(msg, sub); |
| 320 |
} |
| 321 |
return sub; |
| 322 |
} |
| 323 |
UPB_INLINE void envoy_service_status_v3_PerXdsConfig_set_client_status(envoy_service_status_v3_PerXdsConfig *msg, int32_t value) { |
| 324 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value; |
| 325 |
} |
| 326 |
|
| 327 |
/* envoy.service.status.v3.ClientConfig */ |
| 328 |
|
| 329 |
UPB_INLINE envoy_service_status_v3_ClientConfig* envoy_service_status_v3_ClientConfig_new(upb_Arena* arena) { |
| 330 |
return (envoy_service_status_v3_ClientConfig*)_upb_Message_New(&envoy_service_status_v3_ClientConfig_msginit, arena); |
| 331 |
} |
| 332 |
UPB_INLINE envoy_service_status_v3_ClientConfig* envoy_service_status_v3_ClientConfig_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 333 |
envoy_service_status_v3_ClientConfig* ret = envoy_service_status_v3_ClientConfig_new(arena); |
| 334 |
if (!ret) return NULL; |
| 335 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_ClientConfig_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 336 |
return NULL; |
| 337 |
} |
| 338 |
return ret; |
| 339 |
} |
| 340 |
UPB_INLINE envoy_service_status_v3_ClientConfig* envoy_service_status_v3_ClientConfig_parse_ex(const char* buf, size_t size, |
| 341 |
const upb_ExtensionRegistry* extreg, |
| 342 |
int options, upb_Arena* arena) { |
| 343 |
envoy_service_status_v3_ClientConfig* ret = envoy_service_status_v3_ClientConfig_new(arena); |
| 344 |
if (!ret) return NULL; |
| 345 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_ClientConfig_msginit, extreg, options, arena) != |
| 346 |
kUpb_DecodeStatus_Ok) { |
| 347 |
return NULL; |
| 348 |
} |
| 349 |
return ret; |
| 350 |
} |
| 351 |
UPB_INLINE char* envoy_service_status_v3_ClientConfig_serialize(const envoy_service_status_v3_ClientConfig* msg, upb_Arena* arena, size_t* len) { |
| 352 |
char* ptr; |
| 353 |
(void)upb_Encode(msg, &envoy_service_status_v3_ClientConfig_msginit, 0, arena, &ptr, len); |
| 354 |
return ptr; |
| 355 |
} |
| 356 |
UPB_INLINE char* envoy_service_status_v3_ClientConfig_serialize_ex(const envoy_service_status_v3_ClientConfig* msg, int options, |
| 357 |
upb_Arena* arena, size_t* len) { |
| 358 |
char* ptr; |
| 359 |
(void)upb_Encode(msg, &envoy_service_status_v3_ClientConfig_msginit, options, arena, &ptr, len); |
| 360 |
return ptr; |
| 361 |
} |
| 362 |
UPB_INLINE bool envoy_service_status_v3_ClientConfig_has_node(const envoy_service_status_v3_ClientConfig* msg) { |
| 363 |
return _upb_hasbit(msg, 1); |
| 364 |
} |
| 365 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_clear_node(const envoy_service_status_v3_ClientConfig* msg) { |
| 366 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
| 367 |
} |
| 368 |
UPB_INLINE const struct envoy_config_core_v3_Node* envoy_service_status_v3_ClientConfig_node(const envoy_service_status_v3_ClientConfig* msg) { |
| 369 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_Node*); |
| 370 |
} |
| 371 |
UPB_INLINE bool envoy_service_status_v3_ClientConfig_has_xds_config(const envoy_service_status_v3_ClientConfig* msg) { |
| 372 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); |
| 373 |
} |
| 374 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_clear_xds_config(const envoy_service_status_v3_ClientConfig* msg) { |
| 375 |
_upb_array_detach(msg, UPB_SIZE(8, 16)); |
| 376 |
} |
| 377 |
UPB_INLINE const envoy_service_status_v3_PerXdsConfig* const* envoy_service_status_v3_ClientConfig_xds_config(const envoy_service_status_v3_ClientConfig* msg, size_t* len) { |
| 378 |
return (const envoy_service_status_v3_PerXdsConfig* const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); |
| 379 |
} |
| 380 |
UPB_INLINE bool envoy_service_status_v3_ClientConfig_has_generic_xds_configs(const envoy_service_status_v3_ClientConfig* msg) { |
| 381 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(12, 24)); |
| 382 |
} |
| 383 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_clear_generic_xds_configs(const envoy_service_status_v3_ClientConfig* msg) { |
| 384 |
_upb_array_detach(msg, UPB_SIZE(12, 24)); |
| 385 |
} |
| 386 |
UPB_INLINE const envoy_service_status_v3_ClientConfig_GenericXdsConfig* const* envoy_service_status_v3_ClientConfig_generic_xds_configs(const envoy_service_status_v3_ClientConfig* msg, size_t* len) { |
| 387 |
return (const envoy_service_status_v3_ClientConfig_GenericXdsConfig* const*)_upb_array_accessor(msg, UPB_SIZE(12, 24), len); |
| 388 |
} |
| 389 |
|
| 390 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_set_node(envoy_service_status_v3_ClientConfig *msg, struct envoy_config_core_v3_Node* value) { |
| 391 |
_upb_sethas(msg, 1); |
| 392 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_config_core_v3_Node*) = value; |
| 393 |
} |
| 394 |
UPB_INLINE struct envoy_config_core_v3_Node* envoy_service_status_v3_ClientConfig_mutable_node(envoy_service_status_v3_ClientConfig* msg, upb_Arena* arena) { |
| 395 |
struct envoy_config_core_v3_Node* sub = (struct envoy_config_core_v3_Node*)envoy_service_status_v3_ClientConfig_node(msg); |
| 396 |
if (sub == NULL) { |
| 397 |
sub = (struct envoy_config_core_v3_Node*)_upb_Message_New(&envoy_config_core_v3_Node_msginit, arena); |
| 398 |
if (!sub) return NULL; |
| 399 |
envoy_service_status_v3_ClientConfig_set_node(msg, sub); |
| 400 |
} |
| 401 |
return sub; |
| 402 |
} |
| 403 |
UPB_INLINE envoy_service_status_v3_PerXdsConfig** envoy_service_status_v3_ClientConfig_mutable_xds_config(envoy_service_status_v3_ClientConfig* msg, size_t* len) { |
| 404 |
return (envoy_service_status_v3_PerXdsConfig**)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len); |
| 405 |
} |
| 406 |
UPB_INLINE envoy_service_status_v3_PerXdsConfig** envoy_service_status_v3_ClientConfig_resize_xds_config(envoy_service_status_v3_ClientConfig* msg, size_t len, upb_Arena* arena) { |
| 407 |
return (envoy_service_status_v3_PerXdsConfig**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(2, 3), arena); |
| 408 |
} |
| 409 |
UPB_INLINE struct envoy_service_status_v3_PerXdsConfig* envoy_service_status_v3_ClientConfig_add_xds_config(envoy_service_status_v3_ClientConfig* msg, upb_Arena* arena) { |
| 410 |
struct envoy_service_status_v3_PerXdsConfig* sub = (struct envoy_service_status_v3_PerXdsConfig*)_upb_Message_New(&envoy_service_status_v3_PerXdsConfig_msginit, arena); |
| 411 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(2, 3), &sub, arena); |
| 412 |
if (!ok) return NULL; |
| 413 |
return sub; |
| 414 |
} |
| 415 |
UPB_INLINE envoy_service_status_v3_ClientConfig_GenericXdsConfig** envoy_service_status_v3_ClientConfig_mutable_generic_xds_configs(envoy_service_status_v3_ClientConfig* msg, size_t* len) { |
| 416 |
return (envoy_service_status_v3_ClientConfig_GenericXdsConfig**)_upb_array_mutable_accessor(msg, UPB_SIZE(12, 24), len); |
| 417 |
} |
| 418 |
UPB_INLINE envoy_service_status_v3_ClientConfig_GenericXdsConfig** envoy_service_status_v3_ClientConfig_resize_generic_xds_configs(envoy_service_status_v3_ClientConfig* msg, size_t len, upb_Arena* arena) { |
| 419 |
return (envoy_service_status_v3_ClientConfig_GenericXdsConfig**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(12, 24), len, UPB_SIZE(2, 3), arena); |
| 420 |
} |
| 421 |
UPB_INLINE struct envoy_service_status_v3_ClientConfig_GenericXdsConfig* envoy_service_status_v3_ClientConfig_add_generic_xds_configs(envoy_service_status_v3_ClientConfig* msg, upb_Arena* arena) { |
| 422 |
struct envoy_service_status_v3_ClientConfig_GenericXdsConfig* sub = (struct envoy_service_status_v3_ClientConfig_GenericXdsConfig*)_upb_Message_New(&envoy_service_status_v3_ClientConfig_GenericXdsConfig_msginit, arena); |
| 423 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(12, 24), UPB_SIZE(2, 3), &sub, arena); |
| 424 |
if (!ok) return NULL; |
| 425 |
return sub; |
| 426 |
} |
| 427 |
|
| 428 |
/* envoy.service.status.v3.ClientConfig.GenericXdsConfig */ |
| 429 |
|
| 430 |
UPB_INLINE envoy_service_status_v3_ClientConfig_GenericXdsConfig* envoy_service_status_v3_ClientConfig_GenericXdsConfig_new(upb_Arena* arena) { |
| 431 |
return (envoy_service_status_v3_ClientConfig_GenericXdsConfig*)_upb_Message_New(&envoy_service_status_v3_ClientConfig_GenericXdsConfig_msginit, arena); |
| 432 |
} |
| 433 |
UPB_INLINE envoy_service_status_v3_ClientConfig_GenericXdsConfig* envoy_service_status_v3_ClientConfig_GenericXdsConfig_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 434 |
envoy_service_status_v3_ClientConfig_GenericXdsConfig* ret = envoy_service_status_v3_ClientConfig_GenericXdsConfig_new(arena); |
| 435 |
if (!ret) return NULL; |
| 436 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_ClientConfig_GenericXdsConfig_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 437 |
return NULL; |
| 438 |
} |
| 439 |
return ret; |
| 440 |
} |
| 441 |
UPB_INLINE envoy_service_status_v3_ClientConfig_GenericXdsConfig* envoy_service_status_v3_ClientConfig_GenericXdsConfig_parse_ex(const char* buf, size_t size, |
| 442 |
const upb_ExtensionRegistry* extreg, |
| 443 |
int options, upb_Arena* arena) { |
| 444 |
envoy_service_status_v3_ClientConfig_GenericXdsConfig* ret = envoy_service_status_v3_ClientConfig_GenericXdsConfig_new(arena); |
| 445 |
if (!ret) return NULL; |
| 446 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_ClientConfig_GenericXdsConfig_msginit, extreg, options, arena) != |
| 447 |
kUpb_DecodeStatus_Ok) { |
| 448 |
return NULL; |
| 449 |
} |
| 450 |
return ret; |
| 451 |
} |
| 452 |
UPB_INLINE char* envoy_service_status_v3_ClientConfig_GenericXdsConfig_serialize(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg, upb_Arena* arena, size_t* len) { |
| 453 |
char* ptr; |
| 454 |
(void)upb_Encode(msg, &envoy_service_status_v3_ClientConfig_GenericXdsConfig_msginit, 0, arena, &ptr, len); |
| 455 |
return ptr; |
| 456 |
} |
| 457 |
UPB_INLINE char* envoy_service_status_v3_ClientConfig_GenericXdsConfig_serialize_ex(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg, int options, |
| 458 |
upb_Arena* arena, size_t* len) { |
| 459 |
char* ptr; |
| 460 |
(void)upb_Encode(msg, &envoy_service_status_v3_ClientConfig_GenericXdsConfig_msginit, options, arena, &ptr, len); |
| 461 |
return ptr; |
| 462 |
} |
| 463 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_type_url(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 464 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 465 |
} |
| 466 |
UPB_INLINE upb_StringView envoy_service_status_v3_ClientConfig_GenericXdsConfig_type_url(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 467 |
return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_StringView); |
| 468 |
} |
| 469 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_name(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 470 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 32), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 471 |
} |
| 472 |
UPB_INLINE upb_StringView envoy_service_status_v3_ClientConfig_GenericXdsConfig_name(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 473 |
return *UPB_PTR_AT(msg, UPB_SIZE(24, 32), upb_StringView); |
| 474 |
} |
| 475 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_version_info(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 476 |
*UPB_PTR_AT(msg, UPB_SIZE(32, 48), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 477 |
} |
| 478 |
UPB_INLINE upb_StringView envoy_service_status_v3_ClientConfig_GenericXdsConfig_version_info(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 479 |
return *UPB_PTR_AT(msg, UPB_SIZE(32, 48), upb_StringView); |
| 480 |
} |
| 481 |
UPB_INLINE bool envoy_service_status_v3_ClientConfig_GenericXdsConfig_has_xds_config(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 482 |
return _upb_hasbit(msg, 1); |
| 483 |
} |
| 484 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_xds_config(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 485 |
*UPB_PTR_AT(msg, UPB_SIZE(40, 64), const upb_Message*) = NULL; |
| 486 |
} |
| 487 |
UPB_INLINE const struct google_protobuf_Any* envoy_service_status_v3_ClientConfig_GenericXdsConfig_xds_config(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 488 |
return *UPB_PTR_AT(msg, UPB_SIZE(40, 64), const struct google_protobuf_Any*); |
| 489 |
} |
| 490 |
UPB_INLINE bool envoy_service_status_v3_ClientConfig_GenericXdsConfig_has_last_updated(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 491 |
return _upb_hasbit(msg, 2); |
| 492 |
} |
| 493 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_last_updated(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 494 |
*UPB_PTR_AT(msg, UPB_SIZE(44, 72), const upb_Message*) = NULL; |
| 495 |
} |
| 496 |
UPB_INLINE const struct google_protobuf_Timestamp* envoy_service_status_v3_ClientConfig_GenericXdsConfig_last_updated(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 497 |
return *UPB_PTR_AT(msg, UPB_SIZE(44, 72), const struct google_protobuf_Timestamp*); |
| 498 |
} |
| 499 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_config_status(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 500 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = 0; |
| 501 |
} |
| 502 |
UPB_INLINE int32_t envoy_service_status_v3_ClientConfig_GenericXdsConfig_config_status(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 503 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); |
| 504 |
} |
| 505 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_client_status(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 506 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = 0; |
| 507 |
} |
| 508 |
UPB_INLINE int32_t envoy_service_status_v3_ClientConfig_GenericXdsConfig_client_status(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 509 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); |
| 510 |
} |
| 511 |
UPB_INLINE bool envoy_service_status_v3_ClientConfig_GenericXdsConfig_has_error_state(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 512 |
return _upb_hasbit(msg, 3); |
| 513 |
} |
| 514 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_error_state(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 515 |
*UPB_PTR_AT(msg, UPB_SIZE(48, 80), const upb_Message*) = NULL; |
| 516 |
} |
| 517 |
UPB_INLINE const struct envoy_admin_v3_UpdateFailureState* envoy_service_status_v3_ClientConfig_GenericXdsConfig_error_state(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 518 |
return *UPB_PTR_AT(msg, UPB_SIZE(48, 80), const struct envoy_admin_v3_UpdateFailureState*); |
| 519 |
} |
| 520 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_clear_is_static_resource(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 521 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), bool) = 0; |
| 522 |
} |
| 523 |
UPB_INLINE bool envoy_service_status_v3_ClientConfig_GenericXdsConfig_is_static_resource(const envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg) { |
| 524 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), bool); |
| 525 |
} |
| 526 |
|
| 527 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_type_url(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, upb_StringView value) { |
| 528 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), upb_StringView) = value; |
| 529 |
} |
| 530 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_name(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, upb_StringView value) { |
| 531 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 32), upb_StringView) = value; |
| 532 |
} |
| 533 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_version_info(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, upb_StringView value) { |
| 534 |
*UPB_PTR_AT(msg, UPB_SIZE(32, 48), upb_StringView) = value; |
| 535 |
} |
| 536 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_xds_config(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, struct google_protobuf_Any* value) { |
| 537 |
_upb_sethas(msg, 1); |
| 538 |
*UPB_PTR_AT(msg, UPB_SIZE(40, 64), struct google_protobuf_Any*) = value; |
| 539 |
} |
| 540 |
UPB_INLINE struct google_protobuf_Any* envoy_service_status_v3_ClientConfig_GenericXdsConfig_mutable_xds_config(envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg, upb_Arena* arena) { |
| 541 |
struct google_protobuf_Any* sub = (struct google_protobuf_Any*)envoy_service_status_v3_ClientConfig_GenericXdsConfig_xds_config(msg); |
| 542 |
if (sub == NULL) { |
| 543 |
sub = (struct google_protobuf_Any*)_upb_Message_New(&google_protobuf_Any_msginit, arena); |
| 544 |
if (!sub) return NULL; |
| 545 |
envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_xds_config(msg, sub); |
| 546 |
} |
| 547 |
return sub; |
| 548 |
} |
| 549 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_last_updated(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, struct google_protobuf_Timestamp* value) { |
| 550 |
_upb_sethas(msg, 2); |
| 551 |
*UPB_PTR_AT(msg, UPB_SIZE(44, 72), struct google_protobuf_Timestamp*) = value; |
| 552 |
} |
| 553 |
UPB_INLINE struct google_protobuf_Timestamp* envoy_service_status_v3_ClientConfig_GenericXdsConfig_mutable_last_updated(envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg, upb_Arena* arena) { |
| 554 |
struct google_protobuf_Timestamp* sub = (struct google_protobuf_Timestamp*)envoy_service_status_v3_ClientConfig_GenericXdsConfig_last_updated(msg); |
| 555 |
if (sub == NULL) { |
| 556 |
sub = (struct google_protobuf_Timestamp*)_upb_Message_New(&google_protobuf_Timestamp_msginit, arena); |
| 557 |
if (!sub) return NULL; |
| 558 |
envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_last_updated(msg, sub); |
| 559 |
} |
| 560 |
return sub; |
| 561 |
} |
| 562 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_config_status(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, int32_t value) { |
| 563 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value; |
| 564 |
} |
| 565 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_client_status(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, int32_t value) { |
| 566 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t) = value; |
| 567 |
} |
| 568 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_error_state(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, struct envoy_admin_v3_UpdateFailureState* value) { |
| 569 |
_upb_sethas(msg, 3); |
| 570 |
*UPB_PTR_AT(msg, UPB_SIZE(48, 80), struct envoy_admin_v3_UpdateFailureState*) = value; |
| 571 |
} |
| 572 |
UPB_INLINE struct envoy_admin_v3_UpdateFailureState* envoy_service_status_v3_ClientConfig_GenericXdsConfig_mutable_error_state(envoy_service_status_v3_ClientConfig_GenericXdsConfig* msg, upb_Arena* arena) { |
| 573 |
struct envoy_admin_v3_UpdateFailureState* sub = (struct envoy_admin_v3_UpdateFailureState*)envoy_service_status_v3_ClientConfig_GenericXdsConfig_error_state(msg); |
| 574 |
if (sub == NULL) { |
| 575 |
sub = (struct envoy_admin_v3_UpdateFailureState*)_upb_Message_New(&envoy_admin_v3_UpdateFailureState_msginit, arena); |
| 576 |
if (!sub) return NULL; |
| 577 |
envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_error_state(msg, sub); |
| 578 |
} |
| 579 |
return sub; |
| 580 |
} |
| 581 |
UPB_INLINE void envoy_service_status_v3_ClientConfig_GenericXdsConfig_set_is_static_resource(envoy_service_status_v3_ClientConfig_GenericXdsConfig *msg, bool value) { |
| 582 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), bool) = value; |
| 583 |
} |
| 584 |
|
| 585 |
/* envoy.service.status.v3.ClientStatusResponse */ |
| 586 |
|
| 587 |
UPB_INLINE envoy_service_status_v3_ClientStatusResponse* envoy_service_status_v3_ClientStatusResponse_new(upb_Arena* arena) { |
| 588 |
return (envoy_service_status_v3_ClientStatusResponse*)_upb_Message_New(&envoy_service_status_v3_ClientStatusResponse_msginit, arena); |
| 589 |
} |
| 590 |
UPB_INLINE envoy_service_status_v3_ClientStatusResponse* envoy_service_status_v3_ClientStatusResponse_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 591 |
envoy_service_status_v3_ClientStatusResponse* ret = envoy_service_status_v3_ClientStatusResponse_new(arena); |
| 592 |
if (!ret) return NULL; |
| 593 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_ClientStatusResponse_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 594 |
return NULL; |
| 595 |
} |
| 596 |
return ret; |
| 597 |
} |
| 598 |
UPB_INLINE envoy_service_status_v3_ClientStatusResponse* envoy_service_status_v3_ClientStatusResponse_parse_ex(const char* buf, size_t size, |
| 599 |
const upb_ExtensionRegistry* extreg, |
| 600 |
int options, upb_Arena* arena) { |
| 601 |
envoy_service_status_v3_ClientStatusResponse* ret = envoy_service_status_v3_ClientStatusResponse_new(arena); |
| 602 |
if (!ret) return NULL; |
| 603 |
if (upb_Decode(buf, size, ret, &envoy_service_status_v3_ClientStatusResponse_msginit, extreg, options, arena) != |
| 604 |
kUpb_DecodeStatus_Ok) { |
| 605 |
return NULL; |
| 606 |
} |
| 607 |
return ret; |
| 608 |
} |
| 609 |
UPB_INLINE char* envoy_service_status_v3_ClientStatusResponse_serialize(const envoy_service_status_v3_ClientStatusResponse* msg, upb_Arena* arena, size_t* len) { |
| 610 |
char* ptr; |
| 611 |
(void)upb_Encode(msg, &envoy_service_status_v3_ClientStatusResponse_msginit, 0, arena, &ptr, len); |
| 612 |
return ptr; |
| 613 |
} |
| 614 |
UPB_INLINE char* envoy_service_status_v3_ClientStatusResponse_serialize_ex(const envoy_service_status_v3_ClientStatusResponse* msg, int options, |
| 615 |
upb_Arena* arena, size_t* len) { |
| 616 |
char* ptr; |
| 617 |
(void)upb_Encode(msg, &envoy_service_status_v3_ClientStatusResponse_msginit, options, arena, &ptr, len); |
| 618 |
return ptr; |
| 619 |
} |
| 620 |
UPB_INLINE bool envoy_service_status_v3_ClientStatusResponse_has_config(const envoy_service_status_v3_ClientStatusResponse* msg) { |
| 621 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
| 622 |
} |
| 623 |
UPB_INLINE void envoy_service_status_v3_ClientStatusResponse_clear_config(const envoy_service_status_v3_ClientStatusResponse* msg) { |
| 624 |
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
| 625 |
} |
| 626 |
UPB_INLINE const envoy_service_status_v3_ClientConfig* const* envoy_service_status_v3_ClientStatusResponse_config(const envoy_service_status_v3_ClientStatusResponse* msg, size_t* len) { |
| 627 |
return (const envoy_service_status_v3_ClientConfig* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
| 628 |
} |
| 629 |
|
| 630 |
UPB_INLINE envoy_service_status_v3_ClientConfig** envoy_service_status_v3_ClientStatusResponse_mutable_config(envoy_service_status_v3_ClientStatusResponse* msg, size_t* len) { |
| 631 |
return (envoy_service_status_v3_ClientConfig**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
| 632 |
} |
| 633 |
UPB_INLINE envoy_service_status_v3_ClientConfig** envoy_service_status_v3_ClientStatusResponse_resize_config(envoy_service_status_v3_ClientStatusResponse* msg, size_t len, upb_Arena* arena) { |
| 634 |
return (envoy_service_status_v3_ClientConfig**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
| 635 |
} |
| 636 |
UPB_INLINE struct envoy_service_status_v3_ClientConfig* envoy_service_status_v3_ClientStatusResponse_add_config(envoy_service_status_v3_ClientStatusResponse* msg, upb_Arena* arena) { |
| 637 |
struct envoy_service_status_v3_ClientConfig* sub = (struct envoy_service_status_v3_ClientConfig*)_upb_Message_New(&envoy_service_status_v3_ClientConfig_msginit, arena); |
| 638 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
| 639 |
if (!ok) return NULL; |
| 640 |
return sub; |
| 641 |
} |
| 642 |
|
| 643 |
extern const upb_MiniTable_File envoy_service_status_v3_csds_proto_upb_file_layout; |
| 644 |
|
| 645 |
#ifdef __cplusplus |
| 646 |
} /* extern "C" */ |
| 647 |
#endif |
| 648 |
|
| 649 |
#include "upb/port_undef.inc" |
| 650 |
|
| 651 |
#endif /* ENVOY_SERVICE_STATUS_V3_CSDS_PROTO_UPB_H_ */ |