| 1 |
/* This file was generated by upbc (the upb compiler) from the input |
| 2 |
* file: |
| 3 |
* |
| 4 |
* envoy/config/bootstrap/v3/bootstrap.proto |
| 5 |
* |
| 6 |
* Do not edit -- your changes will be discarded when the file is |
| 7 |
* regenerated. */ |
| 8 |
|
| 9 |
#ifndef ENVOY_CONFIG_BOOTSTRAP_V3_BOOTSTRAP_PROTO_UPB_H_ |
| 10 |
#define ENVOY_CONFIG_BOOTSTRAP_V3_BOOTSTRAP_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_config_bootstrap_v3_Bootstrap; |
| 24 |
struct envoy_config_bootstrap_v3_Bootstrap_StaticResources; |
| 25 |
struct envoy_config_bootstrap_v3_Bootstrap_DynamicResources; |
| 26 |
struct envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry; |
| 27 |
struct envoy_config_bootstrap_v3_Admin; |
| 28 |
struct envoy_config_bootstrap_v3_ClusterManager; |
| 29 |
struct envoy_config_bootstrap_v3_ClusterManager_OutlierDetection; |
| 30 |
struct envoy_config_bootstrap_v3_Watchdogs; |
| 31 |
struct envoy_config_bootstrap_v3_Watchdog; |
| 32 |
struct envoy_config_bootstrap_v3_Watchdog_WatchdogAction; |
| 33 |
struct envoy_config_bootstrap_v3_FatalAction; |
| 34 |
struct envoy_config_bootstrap_v3_Runtime; |
| 35 |
struct envoy_config_bootstrap_v3_RuntimeLayer; |
| 36 |
struct envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer; |
| 37 |
struct envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer; |
| 38 |
struct envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer; |
| 39 |
struct envoy_config_bootstrap_v3_LayeredRuntime; |
| 40 |
struct envoy_config_bootstrap_v3_CustomInlineHeader; |
| 41 |
typedef struct envoy_config_bootstrap_v3_Bootstrap envoy_config_bootstrap_v3_Bootstrap; |
| 42 |
typedef struct envoy_config_bootstrap_v3_Bootstrap_StaticResources envoy_config_bootstrap_v3_Bootstrap_StaticResources; |
| 43 |
typedef struct envoy_config_bootstrap_v3_Bootstrap_DynamicResources envoy_config_bootstrap_v3_Bootstrap_DynamicResources; |
| 44 |
typedef struct envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry; |
| 45 |
typedef struct envoy_config_bootstrap_v3_Admin envoy_config_bootstrap_v3_Admin; |
| 46 |
typedef struct envoy_config_bootstrap_v3_ClusterManager envoy_config_bootstrap_v3_ClusterManager; |
| 47 |
typedef struct envoy_config_bootstrap_v3_ClusterManager_OutlierDetection envoy_config_bootstrap_v3_ClusterManager_OutlierDetection; |
| 48 |
typedef struct envoy_config_bootstrap_v3_Watchdogs envoy_config_bootstrap_v3_Watchdogs; |
| 49 |
typedef struct envoy_config_bootstrap_v3_Watchdog envoy_config_bootstrap_v3_Watchdog; |
| 50 |
typedef struct envoy_config_bootstrap_v3_Watchdog_WatchdogAction envoy_config_bootstrap_v3_Watchdog_WatchdogAction; |
| 51 |
typedef struct envoy_config_bootstrap_v3_FatalAction envoy_config_bootstrap_v3_FatalAction; |
| 52 |
typedef struct envoy_config_bootstrap_v3_Runtime envoy_config_bootstrap_v3_Runtime; |
| 53 |
typedef struct envoy_config_bootstrap_v3_RuntimeLayer envoy_config_bootstrap_v3_RuntimeLayer; |
| 54 |
typedef struct envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer; |
| 55 |
typedef struct envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer; |
| 56 |
typedef struct envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer; |
| 57 |
typedef struct envoy_config_bootstrap_v3_LayeredRuntime envoy_config_bootstrap_v3_LayeredRuntime; |
| 58 |
typedef struct envoy_config_bootstrap_v3_CustomInlineHeader envoy_config_bootstrap_v3_CustomInlineHeader; |
| 59 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Bootstrap_msginit; |
| 60 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Bootstrap_StaticResources_msginit; |
| 61 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Bootstrap_DynamicResources_msginit; |
| 62 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry_msginit; |
| 63 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Admin_msginit; |
| 64 |
extern const upb_MiniTable envoy_config_bootstrap_v3_ClusterManager_msginit; |
| 65 |
extern const upb_MiniTable envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_msginit; |
| 66 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Watchdogs_msginit; |
| 67 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Watchdog_msginit; |
| 68 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Watchdog_WatchdogAction_msginit; |
| 69 |
extern const upb_MiniTable envoy_config_bootstrap_v3_FatalAction_msginit; |
| 70 |
extern const upb_MiniTable envoy_config_bootstrap_v3_Runtime_msginit; |
| 71 |
extern const upb_MiniTable envoy_config_bootstrap_v3_RuntimeLayer_msginit; |
| 72 |
extern const upb_MiniTable envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_msginit; |
| 73 |
extern const upb_MiniTable envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_msginit; |
| 74 |
extern const upb_MiniTable envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_msginit; |
| 75 |
extern const upb_MiniTable envoy_config_bootstrap_v3_LayeredRuntime_msginit; |
| 76 |
extern const upb_MiniTable envoy_config_bootstrap_v3_CustomInlineHeader_msginit; |
| 77 |
struct envoy_config_accesslog_v3_AccessLog; |
| 78 |
struct envoy_config_cluster_v3_Cluster; |
| 79 |
struct envoy_config_core_v3_Address; |
| 80 |
struct envoy_config_core_v3_ApiConfigSource; |
| 81 |
struct envoy_config_core_v3_BindConfig; |
| 82 |
struct envoy_config_core_v3_ConfigSource; |
| 83 |
struct envoy_config_core_v3_DnsResolutionConfig; |
| 84 |
struct envoy_config_core_v3_EventServiceConfig; |
| 85 |
struct envoy_config_core_v3_Node; |
| 86 |
struct envoy_config_core_v3_SocketOption; |
| 87 |
struct envoy_config_core_v3_TypedExtensionConfig; |
| 88 |
struct envoy_config_listener_v3_Listener; |
| 89 |
struct envoy_config_metrics_v3_StatsConfig; |
| 90 |
struct envoy_config_metrics_v3_StatsSink; |
| 91 |
struct envoy_config_overload_v3_OverloadManager; |
| 92 |
struct envoy_config_trace_v3_Tracing; |
| 93 |
struct envoy_extensions_transport_sockets_tls_v3_Secret; |
| 94 |
struct envoy_type_v3_Percent; |
| 95 |
struct google_protobuf_Duration; |
| 96 |
struct google_protobuf_Struct; |
| 97 |
struct google_protobuf_UInt64Value; |
| 98 |
extern const upb_MiniTable envoy_config_accesslog_v3_AccessLog_msginit; |
| 99 |
extern const upb_MiniTable envoy_config_cluster_v3_Cluster_msginit; |
| 100 |
extern const upb_MiniTable envoy_config_core_v3_Address_msginit; |
| 101 |
extern const upb_MiniTable envoy_config_core_v3_ApiConfigSource_msginit; |
| 102 |
extern const upb_MiniTable envoy_config_core_v3_BindConfig_msginit; |
| 103 |
extern const upb_MiniTable envoy_config_core_v3_ConfigSource_msginit; |
| 104 |
extern const upb_MiniTable envoy_config_core_v3_DnsResolutionConfig_msginit; |
| 105 |
extern const upb_MiniTable envoy_config_core_v3_EventServiceConfig_msginit; |
| 106 |
extern const upb_MiniTable envoy_config_core_v3_Node_msginit; |
| 107 |
extern const upb_MiniTable envoy_config_core_v3_SocketOption_msginit; |
| 108 |
extern const upb_MiniTable envoy_config_core_v3_TypedExtensionConfig_msginit; |
| 109 |
extern const upb_MiniTable envoy_config_listener_v3_Listener_msginit; |
| 110 |
extern const upb_MiniTable envoy_config_metrics_v3_StatsConfig_msginit; |
| 111 |
extern const upb_MiniTable envoy_config_metrics_v3_StatsSink_msginit; |
| 112 |
extern const upb_MiniTable envoy_config_overload_v3_OverloadManager_msginit; |
| 113 |
extern const upb_MiniTable envoy_config_trace_v3_Tracing_msginit; |
| 114 |
extern const upb_MiniTable envoy_extensions_transport_sockets_tls_v3_Secret_msginit; |
| 115 |
extern const upb_MiniTable envoy_type_v3_Percent_msginit; |
| 116 |
extern const upb_MiniTable google_protobuf_Duration_msginit; |
| 117 |
extern const upb_MiniTable google_protobuf_Struct_msginit; |
| 118 |
extern const upb_MiniTable google_protobuf_UInt64Value_msginit; |
| 119 |
|
| 120 |
typedef enum { |
| 121 |
envoy_config_bootstrap_v3_CustomInlineHeader_REQUEST_HEADER = 0, |
| 122 |
envoy_config_bootstrap_v3_CustomInlineHeader_REQUEST_TRAILER = 1, |
| 123 |
envoy_config_bootstrap_v3_CustomInlineHeader_RESPONSE_HEADER = 2, |
| 124 |
envoy_config_bootstrap_v3_CustomInlineHeader_RESPONSE_TRAILER = 3 |
| 125 |
} envoy_config_bootstrap_v3_CustomInlineHeader_InlineHeaderType; |
| 126 |
|
| 127 |
typedef enum { |
| 128 |
envoy_config_bootstrap_v3_Watchdog_WatchdogAction_UNKNOWN = 0, |
| 129 |
envoy_config_bootstrap_v3_Watchdog_WatchdogAction_KILL = 1, |
| 130 |
envoy_config_bootstrap_v3_Watchdog_WatchdogAction_MULTIKILL = 2, |
| 131 |
envoy_config_bootstrap_v3_Watchdog_WatchdogAction_MEGAMISS = 3, |
| 132 |
envoy_config_bootstrap_v3_Watchdog_WatchdogAction_MISS = 4 |
| 133 |
} envoy_config_bootstrap_v3_Watchdog_WatchdogAction_WatchdogEvent; |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
/* envoy.config.bootstrap.v3.Bootstrap */ |
| 138 |
|
| 139 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap* envoy_config_bootstrap_v3_Bootstrap_new(upb_Arena* arena) { |
| 140 |
return (envoy_config_bootstrap_v3_Bootstrap*)_upb_Message_New(&envoy_config_bootstrap_v3_Bootstrap_msginit, arena); |
| 141 |
} |
| 142 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap* envoy_config_bootstrap_v3_Bootstrap_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 143 |
envoy_config_bootstrap_v3_Bootstrap* ret = envoy_config_bootstrap_v3_Bootstrap_new(arena); |
| 144 |
if (!ret) return NULL; |
| 145 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Bootstrap_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 146 |
return NULL; |
| 147 |
} |
| 148 |
return ret; |
| 149 |
} |
| 150 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap* envoy_config_bootstrap_v3_Bootstrap_parse_ex(const char* buf, size_t size, |
| 151 |
const upb_ExtensionRegistry* extreg, |
| 152 |
int options, upb_Arena* arena) { |
| 153 |
envoy_config_bootstrap_v3_Bootstrap* ret = envoy_config_bootstrap_v3_Bootstrap_new(arena); |
| 154 |
if (!ret) return NULL; |
| 155 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Bootstrap_msginit, extreg, options, arena) != |
| 156 |
kUpb_DecodeStatus_Ok) { |
| 157 |
return NULL; |
| 158 |
} |
| 159 |
return ret; |
| 160 |
} |
| 161 |
UPB_INLINE char* envoy_config_bootstrap_v3_Bootstrap_serialize(const envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena, size_t* len) { |
| 162 |
char* ptr; |
| 163 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Bootstrap_msginit, 0, arena, &ptr, len); |
| 164 |
return ptr; |
| 165 |
} |
| 166 |
UPB_INLINE char* envoy_config_bootstrap_v3_Bootstrap_serialize_ex(const envoy_config_bootstrap_v3_Bootstrap* msg, int options, |
| 167 |
upb_Arena* arena, size_t* len) { |
| 168 |
char* ptr; |
| 169 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Bootstrap_msginit, options, arena, &ptr, len); |
| 170 |
return ptr; |
| 171 |
} |
| 172 |
typedef enum { |
| 173 |
envoy_config_bootstrap_v3_Bootstrap_stats_flush_stats_flush_on_admin = 29, |
| 174 |
envoy_config_bootstrap_v3_Bootstrap_stats_flush_NOT_SET = 0 |
| 175 |
} envoy_config_bootstrap_v3_Bootstrap_stats_flush_oneofcases; |
| 176 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap_stats_flush_oneofcases envoy_config_bootstrap_v3_Bootstrap_stats_flush_case(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 177 |
return (envoy_config_bootstrap_v3_Bootstrap_stats_flush_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(8, 8), int32_t); |
| 178 |
} |
| 179 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_node(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 180 |
return _upb_hasbit(msg, 1); |
| 181 |
} |
| 182 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_node(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 183 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 16), const upb_Message*) = NULL; |
| 184 |
} |
| 185 |
UPB_INLINE const struct envoy_config_core_v3_Node* envoy_config_bootstrap_v3_Bootstrap_node(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 186 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 16), const struct envoy_config_core_v3_Node*); |
| 187 |
} |
| 188 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_static_resources(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 189 |
return _upb_hasbit(msg, 2); |
| 190 |
} |
| 191 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_static_resources(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 192 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), const upb_Message*) = NULL; |
| 193 |
} |
| 194 |
UPB_INLINE const envoy_config_bootstrap_v3_Bootstrap_StaticResources* envoy_config_bootstrap_v3_Bootstrap_static_resources(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 195 |
return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const envoy_config_bootstrap_v3_Bootstrap_StaticResources*); |
| 196 |
} |
| 197 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_dynamic_resources(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 198 |
return _upb_hasbit(msg, 3); |
| 199 |
} |
| 200 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_dynamic_resources(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 201 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 32), const upb_Message*) = NULL; |
| 202 |
} |
| 203 |
UPB_INLINE const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* envoy_config_bootstrap_v3_Bootstrap_dynamic_resources(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 204 |
return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const envoy_config_bootstrap_v3_Bootstrap_DynamicResources*); |
| 205 |
} |
| 206 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_cluster_manager(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 207 |
return _upb_hasbit(msg, 4); |
| 208 |
} |
| 209 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_cluster_manager(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 210 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), const upb_Message*) = NULL; |
| 211 |
} |
| 212 |
UPB_INLINE const envoy_config_bootstrap_v3_ClusterManager* envoy_config_bootstrap_v3_Bootstrap_cluster_manager(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 213 |
return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), const envoy_config_bootstrap_v3_ClusterManager*); |
| 214 |
} |
| 215 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_flags_path(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 216 |
*UPB_PTR_AT(msg, UPB_SIZE(28, 48), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 217 |
} |
| 218 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Bootstrap_flags_path(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 219 |
return *UPB_PTR_AT(msg, UPB_SIZE(28, 48), upb_StringView); |
| 220 |
} |
| 221 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_stats_sinks(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 222 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(36, 64)); |
| 223 |
} |
| 224 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_stats_sinks(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 225 |
_upb_array_detach(msg, UPB_SIZE(36, 64)); |
| 226 |
} |
| 227 |
UPB_INLINE const struct envoy_config_metrics_v3_StatsSink* const* envoy_config_bootstrap_v3_Bootstrap_stats_sinks(const envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 228 |
return (const struct envoy_config_metrics_v3_StatsSink* const*)_upb_array_accessor(msg, UPB_SIZE(36, 64), len); |
| 229 |
} |
| 230 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_stats_flush_interval(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 231 |
return _upb_hasbit(msg, 5); |
| 232 |
} |
| 233 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_stats_flush_interval(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 234 |
*UPB_PTR_AT(msg, UPB_SIZE(40, 72), const upb_Message*) = NULL; |
| 235 |
} |
| 236 |
UPB_INLINE const struct google_protobuf_Duration* envoy_config_bootstrap_v3_Bootstrap_stats_flush_interval(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 237 |
return *UPB_PTR_AT(msg, UPB_SIZE(40, 72), const struct google_protobuf_Duration*); |
| 238 |
} |
| 239 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_watchdog(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 240 |
return _upb_hasbit(msg, 6); |
| 241 |
} |
| 242 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_watchdog(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 243 |
*UPB_PTR_AT(msg, UPB_SIZE(44, 80), const upb_Message*) = NULL; |
| 244 |
} |
| 245 |
UPB_INLINE const envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Bootstrap_watchdog(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 246 |
return *UPB_PTR_AT(msg, UPB_SIZE(44, 80), const envoy_config_bootstrap_v3_Watchdog*); |
| 247 |
} |
| 248 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_tracing(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 249 |
return _upb_hasbit(msg, 7); |
| 250 |
} |
| 251 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_tracing(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 252 |
*UPB_PTR_AT(msg, UPB_SIZE(48, 88), const upb_Message*) = NULL; |
| 253 |
} |
| 254 |
UPB_INLINE const struct envoy_config_trace_v3_Tracing* envoy_config_bootstrap_v3_Bootstrap_tracing(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 255 |
return *UPB_PTR_AT(msg, UPB_SIZE(48, 88), const struct envoy_config_trace_v3_Tracing*); |
| 256 |
} |
| 257 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_admin(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 258 |
return _upb_hasbit(msg, 8); |
| 259 |
} |
| 260 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_admin(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 261 |
*UPB_PTR_AT(msg, UPB_SIZE(52, 96), const upb_Message*) = NULL; |
| 262 |
} |
| 263 |
UPB_INLINE const envoy_config_bootstrap_v3_Admin* envoy_config_bootstrap_v3_Bootstrap_admin(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 264 |
return *UPB_PTR_AT(msg, UPB_SIZE(52, 96), const envoy_config_bootstrap_v3_Admin*); |
| 265 |
} |
| 266 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_stats_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 267 |
return _upb_hasbit(msg, 9); |
| 268 |
} |
| 269 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_stats_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 270 |
*UPB_PTR_AT(msg, UPB_SIZE(56, 104), const upb_Message*) = NULL; |
| 271 |
} |
| 272 |
UPB_INLINE const struct envoy_config_metrics_v3_StatsConfig* envoy_config_bootstrap_v3_Bootstrap_stats_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 273 |
return *UPB_PTR_AT(msg, UPB_SIZE(56, 104), const struct envoy_config_metrics_v3_StatsConfig*); |
| 274 |
} |
| 275 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_hds_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 276 |
return _upb_hasbit(msg, 10); |
| 277 |
} |
| 278 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_hds_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 279 |
*UPB_PTR_AT(msg, UPB_SIZE(60, 112), const upb_Message*) = NULL; |
| 280 |
} |
| 281 |
UPB_INLINE const struct envoy_config_core_v3_ApiConfigSource* envoy_config_bootstrap_v3_Bootstrap_hds_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 282 |
return *UPB_PTR_AT(msg, UPB_SIZE(60, 112), const struct envoy_config_core_v3_ApiConfigSource*); |
| 283 |
} |
| 284 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_overload_manager(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 285 |
return _upb_hasbit(msg, 11); |
| 286 |
} |
| 287 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_overload_manager(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 288 |
*UPB_PTR_AT(msg, UPB_SIZE(64, 120), const upb_Message*) = NULL; |
| 289 |
} |
| 290 |
UPB_INLINE const struct envoy_config_overload_v3_OverloadManager* envoy_config_bootstrap_v3_Bootstrap_overload_manager(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 291 |
return *UPB_PTR_AT(msg, UPB_SIZE(64, 120), const struct envoy_config_overload_v3_OverloadManager*); |
| 292 |
} |
| 293 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_enable_dispatcher_stats(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 294 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool) = 0; |
| 295 |
} |
| 296 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_enable_dispatcher_stats(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 297 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool); |
| 298 |
} |
| 299 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_layered_runtime(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 300 |
return _upb_hasbit(msg, 12); |
| 301 |
} |
| 302 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_layered_runtime(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 303 |
*UPB_PTR_AT(msg, UPB_SIZE(68, 128), const upb_Message*) = NULL; |
| 304 |
} |
| 305 |
UPB_INLINE const envoy_config_bootstrap_v3_LayeredRuntime* envoy_config_bootstrap_v3_Bootstrap_layered_runtime(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 306 |
return *UPB_PTR_AT(msg, UPB_SIZE(68, 128), const envoy_config_bootstrap_v3_LayeredRuntime*); |
| 307 |
} |
| 308 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_header_prefix(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 309 |
*UPB_PTR_AT(msg, UPB_SIZE(72, 136), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 310 |
} |
| 311 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Bootstrap_header_prefix(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 312 |
return *UPB_PTR_AT(msg, UPB_SIZE(72, 136), upb_StringView); |
| 313 |
} |
| 314 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_stats_server_version_override(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 315 |
return _upb_hasbit(msg, 13); |
| 316 |
} |
| 317 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_stats_server_version_override(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 318 |
*UPB_PTR_AT(msg, UPB_SIZE(80, 152), const upb_Message*) = NULL; |
| 319 |
} |
| 320 |
UPB_INLINE const struct google_protobuf_UInt64Value* envoy_config_bootstrap_v3_Bootstrap_stats_server_version_override(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 321 |
return *UPB_PTR_AT(msg, UPB_SIZE(80, 152), const struct google_protobuf_UInt64Value*); |
| 322 |
} |
| 323 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_use_tcp_for_dns_lookups(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 324 |
*UPB_PTR_AT(msg, UPB_SIZE(5, 5), bool) = 0; |
| 325 |
} |
| 326 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_use_tcp_for_dns_lookups(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 327 |
return *UPB_PTR_AT(msg, UPB_SIZE(5, 5), bool); |
| 328 |
} |
| 329 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_bootstrap_extensions(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 330 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(84, 160)); |
| 331 |
} |
| 332 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_bootstrap_extensions(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 333 |
_upb_array_detach(msg, UPB_SIZE(84, 160)); |
| 334 |
} |
| 335 |
UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* const* envoy_config_bootstrap_v3_Bootstrap_bootstrap_extensions(const envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 336 |
return (const struct envoy_config_core_v3_TypedExtensionConfig* const*)_upb_array_accessor(msg, UPB_SIZE(84, 160), len); |
| 337 |
} |
| 338 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_config_sources(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 339 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(88, 168)); |
| 340 |
} |
| 341 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_config_sources(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 342 |
_upb_array_detach(msg, UPB_SIZE(88, 168)); |
| 343 |
} |
| 344 |
UPB_INLINE const struct envoy_config_core_v3_ConfigSource* const* envoy_config_bootstrap_v3_Bootstrap_config_sources(const envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 345 |
return (const struct envoy_config_core_v3_ConfigSource* const*)_upb_array_accessor(msg, UPB_SIZE(88, 168), len); |
| 346 |
} |
| 347 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_default_config_source(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 348 |
return _upb_hasbit(msg, 14); |
| 349 |
} |
| 350 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_default_config_source(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 351 |
*UPB_PTR_AT(msg, UPB_SIZE(92, 176), const upb_Message*) = NULL; |
| 352 |
} |
| 353 |
UPB_INLINE const struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_Bootstrap_default_config_source(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 354 |
return *UPB_PTR_AT(msg, UPB_SIZE(92, 176), const struct envoy_config_core_v3_ConfigSource*); |
| 355 |
} |
| 356 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_default_socket_interface(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 357 |
*UPB_PTR_AT(msg, UPB_SIZE(96, 184), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 358 |
} |
| 359 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Bootstrap_default_socket_interface(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 360 |
return *UPB_PTR_AT(msg, UPB_SIZE(96, 184), upb_StringView); |
| 361 |
} |
| 362 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_certificate_provider_instances(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 363 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(104, 200)); |
| 364 |
} |
| 365 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_certificate_provider_instances(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 366 |
_upb_array_detach(msg, UPB_SIZE(104, 200)); |
| 367 |
} |
| 368 |
UPB_INLINE size_t envoy_config_bootstrap_v3_Bootstrap_certificate_provider_instances_size(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 369 |
return _upb_msg_map_size(msg, UPB_SIZE(104, 200)); |
| 370 |
} |
| 371 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_certificate_provider_instances_get(const envoy_config_bootstrap_v3_Bootstrap* msg, upb_StringView key, struct envoy_config_core_v3_TypedExtensionConfig** val) { |
| 372 |
return _upb_msg_map_get(msg, UPB_SIZE(104, 200), &key, 0, val, sizeof(*val)); |
| 373 |
} |
| 374 |
UPB_INLINE const envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry* envoy_config_bootstrap_v3_Bootstrap_certificate_provider_instances_next(const envoy_config_bootstrap_v3_Bootstrap* msg, size_t* iter) { |
| 375 |
return (const envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry*)_upb_msg_map_next(msg, UPB_SIZE(104, 200), iter); |
| 376 |
} |
| 377 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_node_context_params(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 378 |
_upb_array_detach(msg, UPB_SIZE(108, 208)); |
| 379 |
} |
| 380 |
UPB_INLINE upb_StringView const* envoy_config_bootstrap_v3_Bootstrap_node_context_params(const envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 381 |
return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(108, 208), len); |
| 382 |
} |
| 383 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_watchdogs(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 384 |
return _upb_hasbit(msg, 15); |
| 385 |
} |
| 386 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_watchdogs(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 387 |
*UPB_PTR_AT(msg, UPB_SIZE(112, 216), const upb_Message*) = NULL; |
| 388 |
} |
| 389 |
UPB_INLINE const envoy_config_bootstrap_v3_Watchdogs* envoy_config_bootstrap_v3_Bootstrap_watchdogs(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 390 |
return *UPB_PTR_AT(msg, UPB_SIZE(112, 216), const envoy_config_bootstrap_v3_Watchdogs*); |
| 391 |
} |
| 392 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_fatal_actions(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 393 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(116, 224)); |
| 394 |
} |
| 395 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_fatal_actions(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 396 |
_upb_array_detach(msg, UPB_SIZE(116, 224)); |
| 397 |
} |
| 398 |
UPB_INLINE const envoy_config_bootstrap_v3_FatalAction* const* envoy_config_bootstrap_v3_Bootstrap_fatal_actions(const envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 399 |
return (const envoy_config_bootstrap_v3_FatalAction* const*)_upb_array_accessor(msg, UPB_SIZE(116, 224), len); |
| 400 |
} |
| 401 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_stats_flush_on_admin(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 402 |
return _upb_getoneofcase(msg, UPB_SIZE(8, 8)) == 29; |
| 403 |
} |
| 404 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_stats_flush_on_admin(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 405 |
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(3, 3), 0, UPB_SIZE(8, 8), envoy_config_bootstrap_v3_Bootstrap_stats_flush_NOT_SET); |
| 406 |
} |
| 407 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_stats_flush_on_admin(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 408 |
return UPB_READ_ONEOF(msg, bool, UPB_SIZE(3, 3), UPB_SIZE(8, 8), 29, false); |
| 409 |
} |
| 410 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_dns_resolution_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 411 |
return _upb_hasbit(msg, 16); |
| 412 |
} |
| 413 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_dns_resolution_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 414 |
*UPB_PTR_AT(msg, UPB_SIZE(120, 232), const upb_Message*) = NULL; |
| 415 |
} |
| 416 |
UPB_INLINE const struct envoy_config_core_v3_DnsResolutionConfig* envoy_config_bootstrap_v3_Bootstrap_dns_resolution_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 417 |
return *UPB_PTR_AT(msg, UPB_SIZE(120, 232), const struct envoy_config_core_v3_DnsResolutionConfig*); |
| 418 |
} |
| 419 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_typed_dns_resolver_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 420 |
return _upb_hasbit(msg, 17); |
| 421 |
} |
| 422 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_typed_dns_resolver_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 423 |
*UPB_PTR_AT(msg, UPB_SIZE(124, 240), const upb_Message*) = NULL; |
| 424 |
} |
| 425 |
UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_Bootstrap_typed_dns_resolver_config(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 426 |
return *UPB_PTR_AT(msg, UPB_SIZE(124, 240), const struct envoy_config_core_v3_TypedExtensionConfig*); |
| 427 |
} |
| 428 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_inline_headers(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 429 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(128, 248)); |
| 430 |
} |
| 431 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_inline_headers(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 432 |
_upb_array_detach(msg, UPB_SIZE(128, 248)); |
| 433 |
} |
| 434 |
UPB_INLINE const envoy_config_bootstrap_v3_CustomInlineHeader* const* envoy_config_bootstrap_v3_Bootstrap_inline_headers(const envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 435 |
return (const envoy_config_bootstrap_v3_CustomInlineHeader* const*)_upb_array_accessor(msg, UPB_SIZE(128, 248), len); |
| 436 |
} |
| 437 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_perf_tracing_file_path(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 438 |
*UPB_PTR_AT(msg, UPB_SIZE(132, 256), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 439 |
} |
| 440 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Bootstrap_perf_tracing_file_path(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 441 |
return *UPB_PTR_AT(msg, UPB_SIZE(132, 256), upb_StringView); |
| 442 |
} |
| 443 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_has_default_regex_engine(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 444 |
return _upb_hasbit(msg, 18); |
| 445 |
} |
| 446 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_clear_default_regex_engine(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 447 |
*UPB_PTR_AT(msg, UPB_SIZE(140, 272), const upb_Message*) = NULL; |
| 448 |
} |
| 449 |
UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_Bootstrap_default_regex_engine(const envoy_config_bootstrap_v3_Bootstrap* msg) { |
| 450 |
return *UPB_PTR_AT(msg, UPB_SIZE(140, 272), const struct envoy_config_core_v3_TypedExtensionConfig*); |
| 451 |
} |
| 452 |
|
| 453 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_node(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_core_v3_Node* value) { |
| 454 |
_upb_sethas(msg, 1); |
| 455 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 16), struct envoy_config_core_v3_Node*) = value; |
| 456 |
} |
| 457 |
UPB_INLINE struct envoy_config_core_v3_Node* envoy_config_bootstrap_v3_Bootstrap_mutable_node(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 458 |
struct envoy_config_core_v3_Node* sub = (struct envoy_config_core_v3_Node*)envoy_config_bootstrap_v3_Bootstrap_node(msg); |
| 459 |
if (sub == NULL) { |
| 460 |
sub = (struct envoy_config_core_v3_Node*)_upb_Message_New(&envoy_config_core_v3_Node_msginit, arena); |
| 461 |
if (!sub) return NULL; |
| 462 |
envoy_config_bootstrap_v3_Bootstrap_set_node(msg, sub); |
| 463 |
} |
| 464 |
return sub; |
| 465 |
} |
| 466 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_static_resources(envoy_config_bootstrap_v3_Bootstrap *msg, envoy_config_bootstrap_v3_Bootstrap_StaticResources* value) { |
| 467 |
_upb_sethas(msg, 2); |
| 468 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), envoy_config_bootstrap_v3_Bootstrap_StaticResources*) = value; |
| 469 |
} |
| 470 |
UPB_INLINE struct envoy_config_bootstrap_v3_Bootstrap_StaticResources* envoy_config_bootstrap_v3_Bootstrap_mutable_static_resources(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 471 |
struct envoy_config_bootstrap_v3_Bootstrap_StaticResources* sub = (struct envoy_config_bootstrap_v3_Bootstrap_StaticResources*)envoy_config_bootstrap_v3_Bootstrap_static_resources(msg); |
| 472 |
if (sub == NULL) { |
| 473 |
sub = (struct envoy_config_bootstrap_v3_Bootstrap_StaticResources*)_upb_Message_New(&envoy_config_bootstrap_v3_Bootstrap_StaticResources_msginit, arena); |
| 474 |
if (!sub) return NULL; |
| 475 |
envoy_config_bootstrap_v3_Bootstrap_set_static_resources(msg, sub); |
| 476 |
} |
| 477 |
return sub; |
| 478 |
} |
| 479 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_dynamic_resources(envoy_config_bootstrap_v3_Bootstrap *msg, envoy_config_bootstrap_v3_Bootstrap_DynamicResources* value) { |
| 480 |
_upb_sethas(msg, 3); |
| 481 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 32), envoy_config_bootstrap_v3_Bootstrap_DynamicResources*) = value; |
| 482 |
} |
| 483 |
UPB_INLINE struct envoy_config_bootstrap_v3_Bootstrap_DynamicResources* envoy_config_bootstrap_v3_Bootstrap_mutable_dynamic_resources(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 484 |
struct envoy_config_bootstrap_v3_Bootstrap_DynamicResources* sub = (struct envoy_config_bootstrap_v3_Bootstrap_DynamicResources*)envoy_config_bootstrap_v3_Bootstrap_dynamic_resources(msg); |
| 485 |
if (sub == NULL) { |
| 486 |
sub = (struct envoy_config_bootstrap_v3_Bootstrap_DynamicResources*)_upb_Message_New(&envoy_config_bootstrap_v3_Bootstrap_DynamicResources_msginit, arena); |
| 487 |
if (!sub) return NULL; |
| 488 |
envoy_config_bootstrap_v3_Bootstrap_set_dynamic_resources(msg, sub); |
| 489 |
} |
| 490 |
return sub; |
| 491 |
} |
| 492 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_cluster_manager(envoy_config_bootstrap_v3_Bootstrap *msg, envoy_config_bootstrap_v3_ClusterManager* value) { |
| 493 |
_upb_sethas(msg, 4); |
| 494 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), envoy_config_bootstrap_v3_ClusterManager*) = value; |
| 495 |
} |
| 496 |
UPB_INLINE struct envoy_config_bootstrap_v3_ClusterManager* envoy_config_bootstrap_v3_Bootstrap_mutable_cluster_manager(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 497 |
struct envoy_config_bootstrap_v3_ClusterManager* sub = (struct envoy_config_bootstrap_v3_ClusterManager*)envoy_config_bootstrap_v3_Bootstrap_cluster_manager(msg); |
| 498 |
if (sub == NULL) { |
| 499 |
sub = (struct envoy_config_bootstrap_v3_ClusterManager*)_upb_Message_New(&envoy_config_bootstrap_v3_ClusterManager_msginit, arena); |
| 500 |
if (!sub) return NULL; |
| 501 |
envoy_config_bootstrap_v3_Bootstrap_set_cluster_manager(msg, sub); |
| 502 |
} |
| 503 |
return sub; |
| 504 |
} |
| 505 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_flags_path(envoy_config_bootstrap_v3_Bootstrap *msg, upb_StringView value) { |
| 506 |
*UPB_PTR_AT(msg, UPB_SIZE(28, 48), upb_StringView) = value; |
| 507 |
} |
| 508 |
UPB_INLINE struct envoy_config_metrics_v3_StatsSink** envoy_config_bootstrap_v3_Bootstrap_mutable_stats_sinks(envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 509 |
return (struct envoy_config_metrics_v3_StatsSink**)_upb_array_mutable_accessor(msg, UPB_SIZE(36, 64), len); |
| 510 |
} |
| 511 |
UPB_INLINE struct envoy_config_metrics_v3_StatsSink** envoy_config_bootstrap_v3_Bootstrap_resize_stats_sinks(envoy_config_bootstrap_v3_Bootstrap* msg, size_t len, upb_Arena* arena) { |
| 512 |
return (struct envoy_config_metrics_v3_StatsSink**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(36, 64), len, UPB_SIZE(2, 3), arena); |
| 513 |
} |
| 514 |
UPB_INLINE struct envoy_config_metrics_v3_StatsSink* envoy_config_bootstrap_v3_Bootstrap_add_stats_sinks(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 515 |
struct envoy_config_metrics_v3_StatsSink* sub = (struct envoy_config_metrics_v3_StatsSink*)_upb_Message_New(&envoy_config_metrics_v3_StatsSink_msginit, arena); |
| 516 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(36, 64), UPB_SIZE(2, 3), &sub, arena); |
| 517 |
if (!ok) return NULL; |
| 518 |
return sub; |
| 519 |
} |
| 520 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_stats_flush_interval(envoy_config_bootstrap_v3_Bootstrap *msg, struct google_protobuf_Duration* value) { |
| 521 |
_upb_sethas(msg, 5); |
| 522 |
*UPB_PTR_AT(msg, UPB_SIZE(40, 72), struct google_protobuf_Duration*) = value; |
| 523 |
} |
| 524 |
UPB_INLINE struct google_protobuf_Duration* envoy_config_bootstrap_v3_Bootstrap_mutable_stats_flush_interval(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 525 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_bootstrap_v3_Bootstrap_stats_flush_interval(msg); |
| 526 |
if (sub == NULL) { |
| 527 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 528 |
if (!sub) return NULL; |
| 529 |
envoy_config_bootstrap_v3_Bootstrap_set_stats_flush_interval(msg, sub); |
| 530 |
} |
| 531 |
return sub; |
| 532 |
} |
| 533 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_watchdog(envoy_config_bootstrap_v3_Bootstrap *msg, envoy_config_bootstrap_v3_Watchdog* value) { |
| 534 |
_upb_sethas(msg, 6); |
| 535 |
*UPB_PTR_AT(msg, UPB_SIZE(44, 80), envoy_config_bootstrap_v3_Watchdog*) = value; |
| 536 |
} |
| 537 |
UPB_INLINE struct envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Bootstrap_mutable_watchdog(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 538 |
struct envoy_config_bootstrap_v3_Watchdog* sub = (struct envoy_config_bootstrap_v3_Watchdog*)envoy_config_bootstrap_v3_Bootstrap_watchdog(msg); |
| 539 |
if (sub == NULL) { |
| 540 |
sub = (struct envoy_config_bootstrap_v3_Watchdog*)_upb_Message_New(&envoy_config_bootstrap_v3_Watchdog_msginit, arena); |
| 541 |
if (!sub) return NULL; |
| 542 |
envoy_config_bootstrap_v3_Bootstrap_set_watchdog(msg, sub); |
| 543 |
} |
| 544 |
return sub; |
| 545 |
} |
| 546 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_tracing(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_trace_v3_Tracing* value) { |
| 547 |
_upb_sethas(msg, 7); |
| 548 |
*UPB_PTR_AT(msg, UPB_SIZE(48, 88), struct envoy_config_trace_v3_Tracing*) = value; |
| 549 |
} |
| 550 |
UPB_INLINE struct envoy_config_trace_v3_Tracing* envoy_config_bootstrap_v3_Bootstrap_mutable_tracing(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 551 |
struct envoy_config_trace_v3_Tracing* sub = (struct envoy_config_trace_v3_Tracing*)envoy_config_bootstrap_v3_Bootstrap_tracing(msg); |
| 552 |
if (sub == NULL) { |
| 553 |
sub = (struct envoy_config_trace_v3_Tracing*)_upb_Message_New(&envoy_config_trace_v3_Tracing_msginit, arena); |
| 554 |
if (!sub) return NULL; |
| 555 |
envoy_config_bootstrap_v3_Bootstrap_set_tracing(msg, sub); |
| 556 |
} |
| 557 |
return sub; |
| 558 |
} |
| 559 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_admin(envoy_config_bootstrap_v3_Bootstrap *msg, envoy_config_bootstrap_v3_Admin* value) { |
| 560 |
_upb_sethas(msg, 8); |
| 561 |
*UPB_PTR_AT(msg, UPB_SIZE(52, 96), envoy_config_bootstrap_v3_Admin*) = value; |
| 562 |
} |
| 563 |
UPB_INLINE struct envoy_config_bootstrap_v3_Admin* envoy_config_bootstrap_v3_Bootstrap_mutable_admin(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 564 |
struct envoy_config_bootstrap_v3_Admin* sub = (struct envoy_config_bootstrap_v3_Admin*)envoy_config_bootstrap_v3_Bootstrap_admin(msg); |
| 565 |
if (sub == NULL) { |
| 566 |
sub = (struct envoy_config_bootstrap_v3_Admin*)_upb_Message_New(&envoy_config_bootstrap_v3_Admin_msginit, arena); |
| 567 |
if (!sub) return NULL; |
| 568 |
envoy_config_bootstrap_v3_Bootstrap_set_admin(msg, sub); |
| 569 |
} |
| 570 |
return sub; |
| 571 |
} |
| 572 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_stats_config(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_metrics_v3_StatsConfig* value) { |
| 573 |
_upb_sethas(msg, 9); |
| 574 |
*UPB_PTR_AT(msg, UPB_SIZE(56, 104), struct envoy_config_metrics_v3_StatsConfig*) = value; |
| 575 |
} |
| 576 |
UPB_INLINE struct envoy_config_metrics_v3_StatsConfig* envoy_config_bootstrap_v3_Bootstrap_mutable_stats_config(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 577 |
struct envoy_config_metrics_v3_StatsConfig* sub = (struct envoy_config_metrics_v3_StatsConfig*)envoy_config_bootstrap_v3_Bootstrap_stats_config(msg); |
| 578 |
if (sub == NULL) { |
| 579 |
sub = (struct envoy_config_metrics_v3_StatsConfig*)_upb_Message_New(&envoy_config_metrics_v3_StatsConfig_msginit, arena); |
| 580 |
if (!sub) return NULL; |
| 581 |
envoy_config_bootstrap_v3_Bootstrap_set_stats_config(msg, sub); |
| 582 |
} |
| 583 |
return sub; |
| 584 |
} |
| 585 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_hds_config(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_core_v3_ApiConfigSource* value) { |
| 586 |
_upb_sethas(msg, 10); |
| 587 |
*UPB_PTR_AT(msg, UPB_SIZE(60, 112), struct envoy_config_core_v3_ApiConfigSource*) = value; |
| 588 |
} |
| 589 |
UPB_INLINE struct envoy_config_core_v3_ApiConfigSource* envoy_config_bootstrap_v3_Bootstrap_mutable_hds_config(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 590 |
struct envoy_config_core_v3_ApiConfigSource* sub = (struct envoy_config_core_v3_ApiConfigSource*)envoy_config_bootstrap_v3_Bootstrap_hds_config(msg); |
| 591 |
if (sub == NULL) { |
| 592 |
sub = (struct envoy_config_core_v3_ApiConfigSource*)_upb_Message_New(&envoy_config_core_v3_ApiConfigSource_msginit, arena); |
| 593 |
if (!sub) return NULL; |
| 594 |
envoy_config_bootstrap_v3_Bootstrap_set_hds_config(msg, sub); |
| 595 |
} |
| 596 |
return sub; |
| 597 |
} |
| 598 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_overload_manager(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_overload_v3_OverloadManager* value) { |
| 599 |
_upb_sethas(msg, 11); |
| 600 |
*UPB_PTR_AT(msg, UPB_SIZE(64, 120), struct envoy_config_overload_v3_OverloadManager*) = value; |
| 601 |
} |
| 602 |
UPB_INLINE struct envoy_config_overload_v3_OverloadManager* envoy_config_bootstrap_v3_Bootstrap_mutable_overload_manager(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 603 |
struct envoy_config_overload_v3_OverloadManager* sub = (struct envoy_config_overload_v3_OverloadManager*)envoy_config_bootstrap_v3_Bootstrap_overload_manager(msg); |
| 604 |
if (sub == NULL) { |
| 605 |
sub = (struct envoy_config_overload_v3_OverloadManager*)_upb_Message_New(&envoy_config_overload_v3_OverloadManager_msginit, arena); |
| 606 |
if (!sub) return NULL; |
| 607 |
envoy_config_bootstrap_v3_Bootstrap_set_overload_manager(msg, sub); |
| 608 |
} |
| 609 |
return sub; |
| 610 |
} |
| 611 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_enable_dispatcher_stats(envoy_config_bootstrap_v3_Bootstrap *msg, bool value) { |
| 612 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), bool) = value; |
| 613 |
} |
| 614 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_layered_runtime(envoy_config_bootstrap_v3_Bootstrap *msg, envoy_config_bootstrap_v3_LayeredRuntime* value) { |
| 615 |
_upb_sethas(msg, 12); |
| 616 |
*UPB_PTR_AT(msg, UPB_SIZE(68, 128), envoy_config_bootstrap_v3_LayeredRuntime*) = value; |
| 617 |
} |
| 618 |
UPB_INLINE struct envoy_config_bootstrap_v3_LayeredRuntime* envoy_config_bootstrap_v3_Bootstrap_mutable_layered_runtime(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 619 |
struct envoy_config_bootstrap_v3_LayeredRuntime* sub = (struct envoy_config_bootstrap_v3_LayeredRuntime*)envoy_config_bootstrap_v3_Bootstrap_layered_runtime(msg); |
| 620 |
if (sub == NULL) { |
| 621 |
sub = (struct envoy_config_bootstrap_v3_LayeredRuntime*)_upb_Message_New(&envoy_config_bootstrap_v3_LayeredRuntime_msginit, arena); |
| 622 |
if (!sub) return NULL; |
| 623 |
envoy_config_bootstrap_v3_Bootstrap_set_layered_runtime(msg, sub); |
| 624 |
} |
| 625 |
return sub; |
| 626 |
} |
| 627 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_header_prefix(envoy_config_bootstrap_v3_Bootstrap *msg, upb_StringView value) { |
| 628 |
*UPB_PTR_AT(msg, UPB_SIZE(72, 136), upb_StringView) = value; |
| 629 |
} |
| 630 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_stats_server_version_override(envoy_config_bootstrap_v3_Bootstrap *msg, struct google_protobuf_UInt64Value* value) { |
| 631 |
_upb_sethas(msg, 13); |
| 632 |
*UPB_PTR_AT(msg, UPB_SIZE(80, 152), struct google_protobuf_UInt64Value*) = value; |
| 633 |
} |
| 634 |
UPB_INLINE struct google_protobuf_UInt64Value* envoy_config_bootstrap_v3_Bootstrap_mutable_stats_server_version_override(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 635 |
struct google_protobuf_UInt64Value* sub = (struct google_protobuf_UInt64Value*)envoy_config_bootstrap_v3_Bootstrap_stats_server_version_override(msg); |
| 636 |
if (sub == NULL) { |
| 637 |
sub = (struct google_protobuf_UInt64Value*)_upb_Message_New(&google_protobuf_UInt64Value_msginit, arena); |
| 638 |
if (!sub) return NULL; |
| 639 |
envoy_config_bootstrap_v3_Bootstrap_set_stats_server_version_override(msg, sub); |
| 640 |
} |
| 641 |
return sub; |
| 642 |
} |
| 643 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_use_tcp_for_dns_lookups(envoy_config_bootstrap_v3_Bootstrap *msg, bool value) { |
| 644 |
*UPB_PTR_AT(msg, UPB_SIZE(5, 5), bool) = value; |
| 645 |
} |
| 646 |
UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig** envoy_config_bootstrap_v3_Bootstrap_mutable_bootstrap_extensions(envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 647 |
return (struct envoy_config_core_v3_TypedExtensionConfig**)_upb_array_mutable_accessor(msg, UPB_SIZE(84, 160), len); |
| 648 |
} |
| 649 |
UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig** envoy_config_bootstrap_v3_Bootstrap_resize_bootstrap_extensions(envoy_config_bootstrap_v3_Bootstrap* msg, size_t len, upb_Arena* arena) { |
| 650 |
return (struct envoy_config_core_v3_TypedExtensionConfig**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(84, 160), len, UPB_SIZE(2, 3), arena); |
| 651 |
} |
| 652 |
UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_Bootstrap_add_bootstrap_extensions(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 653 |
struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_Message_New(&envoy_config_core_v3_TypedExtensionConfig_msginit, arena); |
| 654 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(84, 160), UPB_SIZE(2, 3), &sub, arena); |
| 655 |
if (!ok) return NULL; |
| 656 |
return sub; |
| 657 |
} |
| 658 |
UPB_INLINE struct envoy_config_core_v3_ConfigSource** envoy_config_bootstrap_v3_Bootstrap_mutable_config_sources(envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 659 |
return (struct envoy_config_core_v3_ConfigSource**)_upb_array_mutable_accessor(msg, UPB_SIZE(88, 168), len); |
| 660 |
} |
| 661 |
UPB_INLINE struct envoy_config_core_v3_ConfigSource** envoy_config_bootstrap_v3_Bootstrap_resize_config_sources(envoy_config_bootstrap_v3_Bootstrap* msg, size_t len, upb_Arena* arena) { |
| 662 |
return (struct envoy_config_core_v3_ConfigSource**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(88, 168), len, UPB_SIZE(2, 3), arena); |
| 663 |
} |
| 664 |
UPB_INLINE struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_Bootstrap_add_config_sources(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 665 |
struct envoy_config_core_v3_ConfigSource* sub = (struct envoy_config_core_v3_ConfigSource*)_upb_Message_New(&envoy_config_core_v3_ConfigSource_msginit, arena); |
| 666 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(88, 168), UPB_SIZE(2, 3), &sub, arena); |
| 667 |
if (!ok) return NULL; |
| 668 |
return sub; |
| 669 |
} |
| 670 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_default_config_source(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_core_v3_ConfigSource* value) { |
| 671 |
_upb_sethas(msg, 14); |
| 672 |
*UPB_PTR_AT(msg, UPB_SIZE(92, 176), struct envoy_config_core_v3_ConfigSource*) = value; |
| 673 |
} |
| 674 |
UPB_INLINE struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_Bootstrap_mutable_default_config_source(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 675 |
struct envoy_config_core_v3_ConfigSource* sub = (struct envoy_config_core_v3_ConfigSource*)envoy_config_bootstrap_v3_Bootstrap_default_config_source(msg); |
| 676 |
if (sub == NULL) { |
| 677 |
sub = (struct envoy_config_core_v3_ConfigSource*)_upb_Message_New(&envoy_config_core_v3_ConfigSource_msginit, arena); |
| 678 |
if (!sub) return NULL; |
| 679 |
envoy_config_bootstrap_v3_Bootstrap_set_default_config_source(msg, sub); |
| 680 |
} |
| 681 |
return sub; |
| 682 |
} |
| 683 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_default_socket_interface(envoy_config_bootstrap_v3_Bootstrap *msg, upb_StringView value) { |
| 684 |
*UPB_PTR_AT(msg, UPB_SIZE(96, 184), upb_StringView) = value; |
| 685 |
} |
| 686 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_certificate_provider_instances_clear(envoy_config_bootstrap_v3_Bootstrap* msg) { _upb_msg_map_clear(msg, UPB_SIZE(104, 200)); } |
| 687 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_certificate_provider_instances_set(envoy_config_bootstrap_v3_Bootstrap* msg, upb_StringView key, struct envoy_config_core_v3_TypedExtensionConfig* val, upb_Arena* a) { |
| 688 |
return _upb_msg_map_set(msg, UPB_SIZE(104, 200), &key, 0, &val, sizeof(val), a); |
| 689 |
} |
| 690 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_certificate_provider_instances_delete(envoy_config_bootstrap_v3_Bootstrap* msg, upb_StringView key) { |
| 691 |
return _upb_msg_map_delete(msg, UPB_SIZE(104, 200), &key, 0); |
| 692 |
} |
| 693 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry* envoy_config_bootstrap_v3_Bootstrap_certificate_provider_instances_nextmutable(envoy_config_bootstrap_v3_Bootstrap* msg, size_t* iter) { |
| 694 |
return (envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry*)_upb_msg_map_next(msg, UPB_SIZE(104, 200), iter); |
| 695 |
} |
| 696 |
UPB_INLINE upb_StringView* envoy_config_bootstrap_v3_Bootstrap_mutable_node_context_params(envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 697 |
return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(108, 208), len); |
| 698 |
} |
| 699 |
UPB_INLINE upb_StringView* envoy_config_bootstrap_v3_Bootstrap_resize_node_context_params(envoy_config_bootstrap_v3_Bootstrap* msg, size_t len, upb_Arena* arena) { |
| 700 |
return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(108, 208), len, UPB_SIZE(3, 4), arena); |
| 701 |
} |
| 702 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_add_node_context_params(envoy_config_bootstrap_v3_Bootstrap* msg, upb_StringView val, upb_Arena* arena) { |
| 703 |
return _upb_Array_Append_accessor2(msg, UPB_SIZE(108, 208), UPB_SIZE(3, 4), &val, arena); |
| 704 |
} |
| 705 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_watchdogs(envoy_config_bootstrap_v3_Bootstrap *msg, envoy_config_bootstrap_v3_Watchdogs* value) { |
| 706 |
_upb_sethas(msg, 15); |
| 707 |
*UPB_PTR_AT(msg, UPB_SIZE(112, 216), envoy_config_bootstrap_v3_Watchdogs*) = value; |
| 708 |
} |
| 709 |
UPB_INLINE struct envoy_config_bootstrap_v3_Watchdogs* envoy_config_bootstrap_v3_Bootstrap_mutable_watchdogs(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 710 |
struct envoy_config_bootstrap_v3_Watchdogs* sub = (struct envoy_config_bootstrap_v3_Watchdogs*)envoy_config_bootstrap_v3_Bootstrap_watchdogs(msg); |
| 711 |
if (sub == NULL) { |
| 712 |
sub = (struct envoy_config_bootstrap_v3_Watchdogs*)_upb_Message_New(&envoy_config_bootstrap_v3_Watchdogs_msginit, arena); |
| 713 |
if (!sub) return NULL; |
| 714 |
envoy_config_bootstrap_v3_Bootstrap_set_watchdogs(msg, sub); |
| 715 |
} |
| 716 |
return sub; |
| 717 |
} |
| 718 |
UPB_INLINE envoy_config_bootstrap_v3_FatalAction** envoy_config_bootstrap_v3_Bootstrap_mutable_fatal_actions(envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 719 |
return (envoy_config_bootstrap_v3_FatalAction**)_upb_array_mutable_accessor(msg, UPB_SIZE(116, 224), len); |
| 720 |
} |
| 721 |
UPB_INLINE envoy_config_bootstrap_v3_FatalAction** envoy_config_bootstrap_v3_Bootstrap_resize_fatal_actions(envoy_config_bootstrap_v3_Bootstrap* msg, size_t len, upb_Arena* arena) { |
| 722 |
return (envoy_config_bootstrap_v3_FatalAction**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(116, 224), len, UPB_SIZE(2, 3), arena); |
| 723 |
} |
| 724 |
UPB_INLINE struct envoy_config_bootstrap_v3_FatalAction* envoy_config_bootstrap_v3_Bootstrap_add_fatal_actions(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 725 |
struct envoy_config_bootstrap_v3_FatalAction* sub = (struct envoy_config_bootstrap_v3_FatalAction*)_upb_Message_New(&envoy_config_bootstrap_v3_FatalAction_msginit, arena); |
| 726 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(116, 224), UPB_SIZE(2, 3), &sub, arena); |
| 727 |
if (!ok) return NULL; |
| 728 |
return sub; |
| 729 |
} |
| 730 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_stats_flush_on_admin(envoy_config_bootstrap_v3_Bootstrap *msg, bool value) { |
| 731 |
UPB_WRITE_ONEOF(msg, bool, UPB_SIZE(3, 3), value, UPB_SIZE(8, 8), 29); |
| 732 |
} |
| 733 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_dns_resolution_config(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_core_v3_DnsResolutionConfig* value) { |
| 734 |
_upb_sethas(msg, 16); |
| 735 |
*UPB_PTR_AT(msg, UPB_SIZE(120, 232), struct envoy_config_core_v3_DnsResolutionConfig*) = value; |
| 736 |
} |
| 737 |
UPB_INLINE struct envoy_config_core_v3_DnsResolutionConfig* envoy_config_bootstrap_v3_Bootstrap_mutable_dns_resolution_config(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 738 |
struct envoy_config_core_v3_DnsResolutionConfig* sub = (struct envoy_config_core_v3_DnsResolutionConfig*)envoy_config_bootstrap_v3_Bootstrap_dns_resolution_config(msg); |
| 739 |
if (sub == NULL) { |
| 740 |
sub = (struct envoy_config_core_v3_DnsResolutionConfig*)_upb_Message_New(&envoy_config_core_v3_DnsResolutionConfig_msginit, arena); |
| 741 |
if (!sub) return NULL; |
| 742 |
envoy_config_bootstrap_v3_Bootstrap_set_dns_resolution_config(msg, sub); |
| 743 |
} |
| 744 |
return sub; |
| 745 |
} |
| 746 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_typed_dns_resolver_config(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) { |
| 747 |
_upb_sethas(msg, 17); |
| 748 |
*UPB_PTR_AT(msg, UPB_SIZE(124, 240), struct envoy_config_core_v3_TypedExtensionConfig*) = value; |
| 749 |
} |
| 750 |
UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_Bootstrap_mutable_typed_dns_resolver_config(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 751 |
struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)envoy_config_bootstrap_v3_Bootstrap_typed_dns_resolver_config(msg); |
| 752 |
if (sub == NULL) { |
| 753 |
sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_Message_New(&envoy_config_core_v3_TypedExtensionConfig_msginit, arena); |
| 754 |
if (!sub) return NULL; |
| 755 |
envoy_config_bootstrap_v3_Bootstrap_set_typed_dns_resolver_config(msg, sub); |
| 756 |
} |
| 757 |
return sub; |
| 758 |
} |
| 759 |
UPB_INLINE envoy_config_bootstrap_v3_CustomInlineHeader** envoy_config_bootstrap_v3_Bootstrap_mutable_inline_headers(envoy_config_bootstrap_v3_Bootstrap* msg, size_t* len) { |
| 760 |
return (envoy_config_bootstrap_v3_CustomInlineHeader**)_upb_array_mutable_accessor(msg, UPB_SIZE(128, 248), len); |
| 761 |
} |
| 762 |
UPB_INLINE envoy_config_bootstrap_v3_CustomInlineHeader** envoy_config_bootstrap_v3_Bootstrap_resize_inline_headers(envoy_config_bootstrap_v3_Bootstrap* msg, size_t len, upb_Arena* arena) { |
| 763 |
return (envoy_config_bootstrap_v3_CustomInlineHeader**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(128, 248), len, UPB_SIZE(2, 3), arena); |
| 764 |
} |
| 765 |
UPB_INLINE struct envoy_config_bootstrap_v3_CustomInlineHeader* envoy_config_bootstrap_v3_Bootstrap_add_inline_headers(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 766 |
struct envoy_config_bootstrap_v3_CustomInlineHeader* sub = (struct envoy_config_bootstrap_v3_CustomInlineHeader*)_upb_Message_New(&envoy_config_bootstrap_v3_CustomInlineHeader_msginit, arena); |
| 767 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(128, 248), UPB_SIZE(2, 3), &sub, arena); |
| 768 |
if (!ok) return NULL; |
| 769 |
return sub; |
| 770 |
} |
| 771 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_perf_tracing_file_path(envoy_config_bootstrap_v3_Bootstrap *msg, upb_StringView value) { |
| 772 |
*UPB_PTR_AT(msg, UPB_SIZE(132, 256), upb_StringView) = value; |
| 773 |
} |
| 774 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_set_default_regex_engine(envoy_config_bootstrap_v3_Bootstrap *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) { |
| 775 |
_upb_sethas(msg, 18); |
| 776 |
*UPB_PTR_AT(msg, UPB_SIZE(140, 272), struct envoy_config_core_v3_TypedExtensionConfig*) = value; |
| 777 |
} |
| 778 |
UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_Bootstrap_mutable_default_regex_engine(envoy_config_bootstrap_v3_Bootstrap* msg, upb_Arena* arena) { |
| 779 |
struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)envoy_config_bootstrap_v3_Bootstrap_default_regex_engine(msg); |
| 780 |
if (sub == NULL) { |
| 781 |
sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_Message_New(&envoy_config_core_v3_TypedExtensionConfig_msginit, arena); |
| 782 |
if (!sub) return NULL; |
| 783 |
envoy_config_bootstrap_v3_Bootstrap_set_default_regex_engine(msg, sub); |
| 784 |
} |
| 785 |
return sub; |
| 786 |
} |
| 787 |
|
| 788 |
/* envoy.config.bootstrap.v3.Bootstrap.StaticResources */ |
| 789 |
|
| 790 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap_StaticResources* envoy_config_bootstrap_v3_Bootstrap_StaticResources_new(upb_Arena* arena) { |
| 791 |
return (envoy_config_bootstrap_v3_Bootstrap_StaticResources*)_upb_Message_New(&envoy_config_bootstrap_v3_Bootstrap_StaticResources_msginit, arena); |
| 792 |
} |
| 793 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap_StaticResources* envoy_config_bootstrap_v3_Bootstrap_StaticResources_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 794 |
envoy_config_bootstrap_v3_Bootstrap_StaticResources* ret = envoy_config_bootstrap_v3_Bootstrap_StaticResources_new(arena); |
| 795 |
if (!ret) return NULL; |
| 796 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Bootstrap_StaticResources_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 797 |
return NULL; |
| 798 |
} |
| 799 |
return ret; |
| 800 |
} |
| 801 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap_StaticResources* envoy_config_bootstrap_v3_Bootstrap_StaticResources_parse_ex(const char* buf, size_t size, |
| 802 |
const upb_ExtensionRegistry* extreg, |
| 803 |
int options, upb_Arena* arena) { |
| 804 |
envoy_config_bootstrap_v3_Bootstrap_StaticResources* ret = envoy_config_bootstrap_v3_Bootstrap_StaticResources_new(arena); |
| 805 |
if (!ret) return NULL; |
| 806 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Bootstrap_StaticResources_msginit, extreg, options, arena) != |
| 807 |
kUpb_DecodeStatus_Ok) { |
| 808 |
return NULL; |
| 809 |
} |
| 810 |
return ret; |
| 811 |
} |
| 812 |
UPB_INLINE char* envoy_config_bootstrap_v3_Bootstrap_StaticResources_serialize(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, upb_Arena* arena, size_t* len) { |
| 813 |
char* ptr; |
| 814 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Bootstrap_StaticResources_msginit, 0, arena, &ptr, len); |
| 815 |
return ptr; |
| 816 |
} |
| 817 |
UPB_INLINE char* envoy_config_bootstrap_v3_Bootstrap_StaticResources_serialize_ex(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, int options, |
| 818 |
upb_Arena* arena, size_t* len) { |
| 819 |
char* ptr; |
| 820 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Bootstrap_StaticResources_msginit, options, arena, &ptr, len); |
| 821 |
return ptr; |
| 822 |
} |
| 823 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_StaticResources_has_listeners(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg) { |
| 824 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
| 825 |
} |
| 826 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_StaticResources_clear_listeners(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg) { |
| 827 |
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
| 828 |
} |
| 829 |
UPB_INLINE const struct envoy_config_listener_v3_Listener* const* envoy_config_bootstrap_v3_Bootstrap_StaticResources_listeners(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t* len) { |
| 830 |
return (const struct envoy_config_listener_v3_Listener* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
| 831 |
} |
| 832 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_StaticResources_has_clusters(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg) { |
| 833 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(4, 8)); |
| 834 |
} |
| 835 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_StaticResources_clear_clusters(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg) { |
| 836 |
_upb_array_detach(msg, UPB_SIZE(4, 8)); |
| 837 |
} |
| 838 |
UPB_INLINE const struct envoy_config_cluster_v3_Cluster* const* envoy_config_bootstrap_v3_Bootstrap_StaticResources_clusters(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t* len) { |
| 839 |
return (const struct envoy_config_cluster_v3_Cluster* const*)_upb_array_accessor(msg, UPB_SIZE(4, 8), len); |
| 840 |
} |
| 841 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_StaticResources_has_secrets(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg) { |
| 842 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); |
| 843 |
} |
| 844 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_StaticResources_clear_secrets(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg) { |
| 845 |
_upb_array_detach(msg, UPB_SIZE(8, 16)); |
| 846 |
} |
| 847 |
UPB_INLINE const struct envoy_extensions_transport_sockets_tls_v3_Secret* const* envoy_config_bootstrap_v3_Bootstrap_StaticResources_secrets(const envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t* len) { |
| 848 |
return (const struct envoy_extensions_transport_sockets_tls_v3_Secret* const*)_upb_array_accessor(msg, UPB_SIZE(8, 16), len); |
| 849 |
} |
| 850 |
|
| 851 |
UPB_INLINE struct envoy_config_listener_v3_Listener** envoy_config_bootstrap_v3_Bootstrap_StaticResources_mutable_listeners(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t* len) { |
| 852 |
return (struct envoy_config_listener_v3_Listener**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
| 853 |
} |
| 854 |
UPB_INLINE struct envoy_config_listener_v3_Listener** envoy_config_bootstrap_v3_Bootstrap_StaticResources_resize_listeners(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t len, upb_Arena* arena) { |
| 855 |
return (struct envoy_config_listener_v3_Listener**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
| 856 |
} |
| 857 |
UPB_INLINE struct envoy_config_listener_v3_Listener* envoy_config_bootstrap_v3_Bootstrap_StaticResources_add_listeners(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, upb_Arena* arena) { |
| 858 |
struct envoy_config_listener_v3_Listener* sub = (struct envoy_config_listener_v3_Listener*)_upb_Message_New(&envoy_config_listener_v3_Listener_msginit, arena); |
| 859 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
| 860 |
if (!ok) return NULL; |
| 861 |
return sub; |
| 862 |
} |
| 863 |
UPB_INLINE struct envoy_config_cluster_v3_Cluster** envoy_config_bootstrap_v3_Bootstrap_StaticResources_mutable_clusters(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t* len) { |
| 864 |
return (struct envoy_config_cluster_v3_Cluster**)_upb_array_mutable_accessor(msg, UPB_SIZE(4, 8), len); |
| 865 |
} |
| 866 |
UPB_INLINE struct envoy_config_cluster_v3_Cluster** envoy_config_bootstrap_v3_Bootstrap_StaticResources_resize_clusters(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t len, upb_Arena* arena) { |
| 867 |
return (struct envoy_config_cluster_v3_Cluster**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(4, 8), len, UPB_SIZE(2, 3), arena); |
| 868 |
} |
| 869 |
UPB_INLINE struct envoy_config_cluster_v3_Cluster* envoy_config_bootstrap_v3_Bootstrap_StaticResources_add_clusters(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, upb_Arena* arena) { |
| 870 |
struct envoy_config_cluster_v3_Cluster* sub = (struct envoy_config_cluster_v3_Cluster*)_upb_Message_New(&envoy_config_cluster_v3_Cluster_msginit, arena); |
| 871 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(4, 8), UPB_SIZE(2, 3), &sub, arena); |
| 872 |
if (!ok) return NULL; |
| 873 |
return sub; |
| 874 |
} |
| 875 |
UPB_INLINE struct envoy_extensions_transport_sockets_tls_v3_Secret** envoy_config_bootstrap_v3_Bootstrap_StaticResources_mutable_secrets(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t* len) { |
| 876 |
return (struct envoy_extensions_transport_sockets_tls_v3_Secret**)_upb_array_mutable_accessor(msg, UPB_SIZE(8, 16), len); |
| 877 |
} |
| 878 |
UPB_INLINE struct envoy_extensions_transport_sockets_tls_v3_Secret** envoy_config_bootstrap_v3_Bootstrap_StaticResources_resize_secrets(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, size_t len, upb_Arena* arena) { |
| 879 |
return (struct envoy_extensions_transport_sockets_tls_v3_Secret**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(8, 16), len, UPB_SIZE(2, 3), arena); |
| 880 |
} |
| 881 |
UPB_INLINE struct envoy_extensions_transport_sockets_tls_v3_Secret* envoy_config_bootstrap_v3_Bootstrap_StaticResources_add_secrets(envoy_config_bootstrap_v3_Bootstrap_StaticResources* msg, upb_Arena* arena) { |
| 882 |
struct envoy_extensions_transport_sockets_tls_v3_Secret* sub = (struct envoy_extensions_transport_sockets_tls_v3_Secret*)_upb_Message_New(&envoy_extensions_transport_sockets_tls_v3_Secret_msginit, arena); |
| 883 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(8, 16), UPB_SIZE(2, 3), &sub, arena); |
| 884 |
if (!ok) return NULL; |
| 885 |
return sub; |
| 886 |
} |
| 887 |
|
| 888 |
/* envoy.config.bootstrap.v3.Bootstrap.DynamicResources */ |
| 889 |
|
| 890 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap_DynamicResources* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_new(upb_Arena* arena) { |
| 891 |
return (envoy_config_bootstrap_v3_Bootstrap_DynamicResources*)_upb_Message_New(&envoy_config_bootstrap_v3_Bootstrap_DynamicResources_msginit, arena); |
| 892 |
} |
| 893 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap_DynamicResources* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 894 |
envoy_config_bootstrap_v3_Bootstrap_DynamicResources* ret = envoy_config_bootstrap_v3_Bootstrap_DynamicResources_new(arena); |
| 895 |
if (!ret) return NULL; |
| 896 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Bootstrap_DynamicResources_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 897 |
return NULL; |
| 898 |
} |
| 899 |
return ret; |
| 900 |
} |
| 901 |
UPB_INLINE envoy_config_bootstrap_v3_Bootstrap_DynamicResources* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_parse_ex(const char* buf, size_t size, |
| 902 |
const upb_ExtensionRegistry* extreg, |
| 903 |
int options, upb_Arena* arena) { |
| 904 |
envoy_config_bootstrap_v3_Bootstrap_DynamicResources* ret = envoy_config_bootstrap_v3_Bootstrap_DynamicResources_new(arena); |
| 905 |
if (!ret) return NULL; |
| 906 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Bootstrap_DynamicResources_msginit, extreg, options, arena) != |
| 907 |
kUpb_DecodeStatus_Ok) { |
| 908 |
return NULL; |
| 909 |
} |
| 910 |
return ret; |
| 911 |
} |
| 912 |
UPB_INLINE char* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_serialize(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg, upb_Arena* arena, size_t* len) { |
| 913 |
char* ptr; |
| 914 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Bootstrap_DynamicResources_msginit, 0, arena, &ptr, len); |
| 915 |
return ptr; |
| 916 |
} |
| 917 |
UPB_INLINE char* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_serialize_ex(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg, int options, |
| 918 |
upb_Arena* arena, size_t* len) { |
| 919 |
char* ptr; |
| 920 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Bootstrap_DynamicResources_msginit, options, arena, &ptr, len); |
| 921 |
return ptr; |
| 922 |
} |
| 923 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_DynamicResources_has_lds_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 924 |
return _upb_hasbit(msg, 1); |
| 925 |
} |
| 926 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_clear_lds_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 927 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
| 928 |
} |
| 929 |
UPB_INLINE const struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_lds_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 930 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_ConfigSource*); |
| 931 |
} |
| 932 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_DynamicResources_has_cds_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 933 |
return _upb_hasbit(msg, 2); |
| 934 |
} |
| 935 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_clear_cds_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 936 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
| 937 |
} |
| 938 |
UPB_INLINE const struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_cds_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 939 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct envoy_config_core_v3_ConfigSource*); |
| 940 |
} |
| 941 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_DynamicResources_has_ads_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 942 |
return _upb_hasbit(msg, 3); |
| 943 |
} |
| 944 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_clear_ads_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 945 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
| 946 |
} |
| 947 |
UPB_INLINE const struct envoy_config_core_v3_ApiConfigSource* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_ads_config(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 948 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_ApiConfigSource*); |
| 949 |
} |
| 950 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_clear_lds_resources_locator(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 951 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 952 |
} |
| 953 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Bootstrap_DynamicResources_lds_resources_locator(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 954 |
return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_StringView); |
| 955 |
} |
| 956 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_clear_cds_resources_locator(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 957 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 48), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 958 |
} |
| 959 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Bootstrap_DynamicResources_cds_resources_locator(const envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg) { |
| 960 |
return *UPB_PTR_AT(msg, UPB_SIZE(24, 48), upb_StringView); |
| 961 |
} |
| 962 |
|
| 963 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_set_lds_config(envoy_config_bootstrap_v3_Bootstrap_DynamicResources *msg, struct envoy_config_core_v3_ConfigSource* value) { |
| 964 |
_upb_sethas(msg, 1); |
| 965 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_config_core_v3_ConfigSource*) = value; |
| 966 |
} |
| 967 |
UPB_INLINE struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_mutable_lds_config(envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg, upb_Arena* arena) { |
| 968 |
struct envoy_config_core_v3_ConfigSource* sub = (struct envoy_config_core_v3_ConfigSource*)envoy_config_bootstrap_v3_Bootstrap_DynamicResources_lds_config(msg); |
| 969 |
if (sub == NULL) { |
| 970 |
sub = (struct envoy_config_core_v3_ConfigSource*)_upb_Message_New(&envoy_config_core_v3_ConfigSource_msginit, arena); |
| 971 |
if (!sub) return NULL; |
| 972 |
envoy_config_bootstrap_v3_Bootstrap_DynamicResources_set_lds_config(msg, sub); |
| 973 |
} |
| 974 |
return sub; |
| 975 |
} |
| 976 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_set_cds_config(envoy_config_bootstrap_v3_Bootstrap_DynamicResources *msg, struct envoy_config_core_v3_ConfigSource* value) { |
| 977 |
_upb_sethas(msg, 2); |
| 978 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct envoy_config_core_v3_ConfigSource*) = value; |
| 979 |
} |
| 980 |
UPB_INLINE struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_mutable_cds_config(envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg, upb_Arena* arena) { |
| 981 |
struct envoy_config_core_v3_ConfigSource* sub = (struct envoy_config_core_v3_ConfigSource*)envoy_config_bootstrap_v3_Bootstrap_DynamicResources_cds_config(msg); |
| 982 |
if (sub == NULL) { |
| 983 |
sub = (struct envoy_config_core_v3_ConfigSource*)_upb_Message_New(&envoy_config_core_v3_ConfigSource_msginit, arena); |
| 984 |
if (!sub) return NULL; |
| 985 |
envoy_config_bootstrap_v3_Bootstrap_DynamicResources_set_cds_config(msg, sub); |
| 986 |
} |
| 987 |
return sub; |
| 988 |
} |
| 989 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_set_ads_config(envoy_config_bootstrap_v3_Bootstrap_DynamicResources *msg, struct envoy_config_core_v3_ApiConfigSource* value) { |
| 990 |
_upb_sethas(msg, 3); |
| 991 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_ApiConfigSource*) = value; |
| 992 |
} |
| 993 |
UPB_INLINE struct envoy_config_core_v3_ApiConfigSource* envoy_config_bootstrap_v3_Bootstrap_DynamicResources_mutable_ads_config(envoy_config_bootstrap_v3_Bootstrap_DynamicResources* msg, upb_Arena* arena) { |
| 994 |
struct envoy_config_core_v3_ApiConfigSource* sub = (struct envoy_config_core_v3_ApiConfigSource*)envoy_config_bootstrap_v3_Bootstrap_DynamicResources_ads_config(msg); |
| 995 |
if (sub == NULL) { |
| 996 |
sub = (struct envoy_config_core_v3_ApiConfigSource*)_upb_Message_New(&envoy_config_core_v3_ApiConfigSource_msginit, arena); |
| 997 |
if (!sub) return NULL; |
| 998 |
envoy_config_bootstrap_v3_Bootstrap_DynamicResources_set_ads_config(msg, sub); |
| 999 |
} |
| 1000 |
return sub; |
| 1001 |
} |
| 1002 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_set_lds_resources_locator(envoy_config_bootstrap_v3_Bootstrap_DynamicResources *msg, upb_StringView value) { |
| 1003 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), upb_StringView) = value; |
| 1004 |
} |
| 1005 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_DynamicResources_set_cds_resources_locator(envoy_config_bootstrap_v3_Bootstrap_DynamicResources *msg, upb_StringView value) { |
| 1006 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 48), upb_StringView) = value; |
| 1007 |
} |
| 1008 |
|
| 1009 |
/* envoy.config.bootstrap.v3.Bootstrap.CertificateProviderInstancesEntry */ |
| 1010 |
|
| 1011 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry_key(const envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry* msg) { |
| 1012 |
upb_StringView ret; |
| 1013 |
_upb_msg_map_key(msg, &ret, 0); |
| 1014 |
return ret; |
| 1015 |
} |
| 1016 |
UPB_INLINE bool envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry_has_value(const envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry* msg) { |
| 1017 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(8, 16)); |
| 1018 |
} |
| 1019 |
UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry_value(const envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry* msg) { |
| 1020 |
struct envoy_config_core_v3_TypedExtensionConfig* ret; |
| 1021 |
_upb_msg_map_value(msg, &ret, sizeof(ret)); |
| 1022 |
return ret; |
| 1023 |
} |
| 1024 |
|
| 1025 |
UPB_INLINE void envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry_set_value(envoy_config_bootstrap_v3_Bootstrap_CertificateProviderInstancesEntry *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) { |
| 1026 |
_upb_msg_map_set_value(msg, &value, sizeof(struct envoy_config_core_v3_TypedExtensionConfig*)); |
| 1027 |
} |
| 1028 |
|
| 1029 |
/* envoy.config.bootstrap.v3.Admin */ |
| 1030 |
|
| 1031 |
UPB_INLINE envoy_config_bootstrap_v3_Admin* envoy_config_bootstrap_v3_Admin_new(upb_Arena* arena) { |
| 1032 |
return (envoy_config_bootstrap_v3_Admin*)_upb_Message_New(&envoy_config_bootstrap_v3_Admin_msginit, arena); |
| 1033 |
} |
| 1034 |
UPB_INLINE envoy_config_bootstrap_v3_Admin* envoy_config_bootstrap_v3_Admin_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1035 |
envoy_config_bootstrap_v3_Admin* ret = envoy_config_bootstrap_v3_Admin_new(arena); |
| 1036 |
if (!ret) return NULL; |
| 1037 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Admin_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1038 |
return NULL; |
| 1039 |
} |
| 1040 |
return ret; |
| 1041 |
} |
| 1042 |
UPB_INLINE envoy_config_bootstrap_v3_Admin* envoy_config_bootstrap_v3_Admin_parse_ex(const char* buf, size_t size, |
| 1043 |
const upb_ExtensionRegistry* extreg, |
| 1044 |
int options, upb_Arena* arena) { |
| 1045 |
envoy_config_bootstrap_v3_Admin* ret = envoy_config_bootstrap_v3_Admin_new(arena); |
| 1046 |
if (!ret) return NULL; |
| 1047 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Admin_msginit, extreg, options, arena) != |
| 1048 |
kUpb_DecodeStatus_Ok) { |
| 1049 |
return NULL; |
| 1050 |
} |
| 1051 |
return ret; |
| 1052 |
} |
| 1053 |
UPB_INLINE char* envoy_config_bootstrap_v3_Admin_serialize(const envoy_config_bootstrap_v3_Admin* msg, upb_Arena* arena, size_t* len) { |
| 1054 |
char* ptr; |
| 1055 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Admin_msginit, 0, arena, &ptr, len); |
| 1056 |
return ptr; |
| 1057 |
} |
| 1058 |
UPB_INLINE char* envoy_config_bootstrap_v3_Admin_serialize_ex(const envoy_config_bootstrap_v3_Admin* msg, int options, |
| 1059 |
upb_Arena* arena, size_t* len) { |
| 1060 |
char* ptr; |
| 1061 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Admin_msginit, options, arena, &ptr, len); |
| 1062 |
return ptr; |
| 1063 |
} |
| 1064 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_clear_access_log_path(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1065 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1066 |
} |
| 1067 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Admin_access_log_path(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1068 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 1069 |
} |
| 1070 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_clear_profile_path(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1071 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1072 |
} |
| 1073 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Admin_profile_path(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1074 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView); |
| 1075 |
} |
| 1076 |
UPB_INLINE bool envoy_config_bootstrap_v3_Admin_has_address(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1077 |
return _upb_hasbit(msg, 1); |
| 1078 |
} |
| 1079 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_clear_address(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1080 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), const upb_Message*) = NULL; |
| 1081 |
} |
| 1082 |
UPB_INLINE const struct envoy_config_core_v3_Address* envoy_config_bootstrap_v3_Admin_address(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1083 |
return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct envoy_config_core_v3_Address*); |
| 1084 |
} |
| 1085 |
UPB_INLINE bool envoy_config_bootstrap_v3_Admin_has_socket_options(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1086 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(24, 48)); |
| 1087 |
} |
| 1088 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_clear_socket_options(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1089 |
_upb_array_detach(msg, UPB_SIZE(24, 48)); |
| 1090 |
} |
| 1091 |
UPB_INLINE const struct envoy_config_core_v3_SocketOption* const* envoy_config_bootstrap_v3_Admin_socket_options(const envoy_config_bootstrap_v3_Admin* msg, size_t* len) { |
| 1092 |
return (const struct envoy_config_core_v3_SocketOption* const*)_upb_array_accessor(msg, UPB_SIZE(24, 48), len); |
| 1093 |
} |
| 1094 |
UPB_INLINE bool envoy_config_bootstrap_v3_Admin_has_access_log(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1095 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 56)); |
| 1096 |
} |
| 1097 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_clear_access_log(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1098 |
_upb_array_detach(msg, UPB_SIZE(28, 56)); |
| 1099 |
} |
| 1100 |
UPB_INLINE const struct envoy_config_accesslog_v3_AccessLog* const* envoy_config_bootstrap_v3_Admin_access_log(const envoy_config_bootstrap_v3_Admin* msg, size_t* len) { |
| 1101 |
return (const struct envoy_config_accesslog_v3_AccessLog* const*)_upb_array_accessor(msg, UPB_SIZE(28, 56), len); |
| 1102 |
} |
| 1103 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_clear_ignore_global_conn_limit(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1104 |
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = 0; |
| 1105 |
} |
| 1106 |
UPB_INLINE bool envoy_config_bootstrap_v3_Admin_ignore_global_conn_limit(const envoy_config_bootstrap_v3_Admin* msg) { |
| 1107 |
return *UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool); |
| 1108 |
} |
| 1109 |
|
| 1110 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_set_access_log_path(envoy_config_bootstrap_v3_Admin *msg, upb_StringView value) { |
| 1111 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 1112 |
} |
| 1113 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_set_profile_path(envoy_config_bootstrap_v3_Admin *msg, upb_StringView value) { |
| 1114 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView) = value; |
| 1115 |
} |
| 1116 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_set_address(envoy_config_bootstrap_v3_Admin *msg, struct envoy_config_core_v3_Address* value) { |
| 1117 |
_upb_sethas(msg, 1); |
| 1118 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct envoy_config_core_v3_Address*) = value; |
| 1119 |
} |
| 1120 |
UPB_INLINE struct envoy_config_core_v3_Address* envoy_config_bootstrap_v3_Admin_mutable_address(envoy_config_bootstrap_v3_Admin* msg, upb_Arena* arena) { |
| 1121 |
struct envoy_config_core_v3_Address* sub = (struct envoy_config_core_v3_Address*)envoy_config_bootstrap_v3_Admin_address(msg); |
| 1122 |
if (sub == NULL) { |
| 1123 |
sub = (struct envoy_config_core_v3_Address*)_upb_Message_New(&envoy_config_core_v3_Address_msginit, arena); |
| 1124 |
if (!sub) return NULL; |
| 1125 |
envoy_config_bootstrap_v3_Admin_set_address(msg, sub); |
| 1126 |
} |
| 1127 |
return sub; |
| 1128 |
} |
| 1129 |
UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_bootstrap_v3_Admin_mutable_socket_options(envoy_config_bootstrap_v3_Admin* msg, size_t* len) { |
| 1130 |
return (struct envoy_config_core_v3_SocketOption**)_upb_array_mutable_accessor(msg, UPB_SIZE(24, 48), len); |
| 1131 |
} |
| 1132 |
UPB_INLINE struct envoy_config_core_v3_SocketOption** envoy_config_bootstrap_v3_Admin_resize_socket_options(envoy_config_bootstrap_v3_Admin* msg, size_t len, upb_Arena* arena) { |
| 1133 |
return (struct envoy_config_core_v3_SocketOption**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(24, 48), len, UPB_SIZE(2, 3), arena); |
| 1134 |
} |
| 1135 |
UPB_INLINE struct envoy_config_core_v3_SocketOption* envoy_config_bootstrap_v3_Admin_add_socket_options(envoy_config_bootstrap_v3_Admin* msg, upb_Arena* arena) { |
| 1136 |
struct envoy_config_core_v3_SocketOption* sub = (struct envoy_config_core_v3_SocketOption*)_upb_Message_New(&envoy_config_core_v3_SocketOption_msginit, arena); |
| 1137 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(24, 48), UPB_SIZE(2, 3), &sub, arena); |
| 1138 |
if (!ok) return NULL; |
| 1139 |
return sub; |
| 1140 |
} |
| 1141 |
UPB_INLINE struct envoy_config_accesslog_v3_AccessLog** envoy_config_bootstrap_v3_Admin_mutable_access_log(envoy_config_bootstrap_v3_Admin* msg, size_t* len) { |
| 1142 |
return (struct envoy_config_accesslog_v3_AccessLog**)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 56), len); |
| 1143 |
} |
| 1144 |
UPB_INLINE struct envoy_config_accesslog_v3_AccessLog** envoy_config_bootstrap_v3_Admin_resize_access_log(envoy_config_bootstrap_v3_Admin* msg, size_t len, upb_Arena* arena) { |
| 1145 |
return (struct envoy_config_accesslog_v3_AccessLog**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 56), len, UPB_SIZE(2, 3), arena); |
| 1146 |
} |
| 1147 |
UPB_INLINE struct envoy_config_accesslog_v3_AccessLog* envoy_config_bootstrap_v3_Admin_add_access_log(envoy_config_bootstrap_v3_Admin* msg, upb_Arena* arena) { |
| 1148 |
struct envoy_config_accesslog_v3_AccessLog* sub = (struct envoy_config_accesslog_v3_AccessLog*)_upb_Message_New(&envoy_config_accesslog_v3_AccessLog_msginit, arena); |
| 1149 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 56), UPB_SIZE(2, 3), &sub, arena); |
| 1150 |
if (!ok) return NULL; |
| 1151 |
return sub; |
| 1152 |
} |
| 1153 |
UPB_INLINE void envoy_config_bootstrap_v3_Admin_set_ignore_global_conn_limit(envoy_config_bootstrap_v3_Admin *msg, bool value) { |
| 1154 |
*UPB_PTR_AT(msg, UPB_SIZE(1, 1), bool) = value; |
| 1155 |
} |
| 1156 |
|
| 1157 |
/* envoy.config.bootstrap.v3.ClusterManager */ |
| 1158 |
|
| 1159 |
UPB_INLINE envoy_config_bootstrap_v3_ClusterManager* envoy_config_bootstrap_v3_ClusterManager_new(upb_Arena* arena) { |
| 1160 |
return (envoy_config_bootstrap_v3_ClusterManager*)_upb_Message_New(&envoy_config_bootstrap_v3_ClusterManager_msginit, arena); |
| 1161 |
} |
| 1162 |
UPB_INLINE envoy_config_bootstrap_v3_ClusterManager* envoy_config_bootstrap_v3_ClusterManager_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1163 |
envoy_config_bootstrap_v3_ClusterManager* ret = envoy_config_bootstrap_v3_ClusterManager_new(arena); |
| 1164 |
if (!ret) return NULL; |
| 1165 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_ClusterManager_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1166 |
return NULL; |
| 1167 |
} |
| 1168 |
return ret; |
| 1169 |
} |
| 1170 |
UPB_INLINE envoy_config_bootstrap_v3_ClusterManager* envoy_config_bootstrap_v3_ClusterManager_parse_ex(const char* buf, size_t size, |
| 1171 |
const upb_ExtensionRegistry* extreg, |
| 1172 |
int options, upb_Arena* arena) { |
| 1173 |
envoy_config_bootstrap_v3_ClusterManager* ret = envoy_config_bootstrap_v3_ClusterManager_new(arena); |
| 1174 |
if (!ret) return NULL; |
| 1175 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_ClusterManager_msginit, extreg, options, arena) != |
| 1176 |
kUpb_DecodeStatus_Ok) { |
| 1177 |
return NULL; |
| 1178 |
} |
| 1179 |
return ret; |
| 1180 |
} |
| 1181 |
UPB_INLINE char* envoy_config_bootstrap_v3_ClusterManager_serialize(const envoy_config_bootstrap_v3_ClusterManager* msg, upb_Arena* arena, size_t* len) { |
| 1182 |
char* ptr; |
| 1183 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_ClusterManager_msginit, 0, arena, &ptr, len); |
| 1184 |
return ptr; |
| 1185 |
} |
| 1186 |
UPB_INLINE char* envoy_config_bootstrap_v3_ClusterManager_serialize_ex(const envoy_config_bootstrap_v3_ClusterManager* msg, int options, |
| 1187 |
upb_Arena* arena, size_t* len) { |
| 1188 |
char* ptr; |
| 1189 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_ClusterManager_msginit, options, arena, &ptr, len); |
| 1190 |
return ptr; |
| 1191 |
} |
| 1192 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_clear_local_cluster_name(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1193 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1194 |
} |
| 1195 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_ClusterManager_local_cluster_name(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1196 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 1197 |
} |
| 1198 |
UPB_INLINE bool envoy_config_bootstrap_v3_ClusterManager_has_outlier_detection(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1199 |
return _upb_hasbit(msg, 1); |
| 1200 |
} |
| 1201 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_clear_outlier_detection(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1202 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
| 1203 |
} |
| 1204 |
UPB_INLINE const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* envoy_config_bootstrap_v3_ClusterManager_outlier_detection(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1205 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection*); |
| 1206 |
} |
| 1207 |
UPB_INLINE bool envoy_config_bootstrap_v3_ClusterManager_has_upstream_bind_config(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1208 |
return _upb_hasbit(msg, 2); |
| 1209 |
} |
| 1210 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_clear_upstream_bind_config(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1211 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), const upb_Message*) = NULL; |
| 1212 |
} |
| 1213 |
UPB_INLINE const struct envoy_config_core_v3_BindConfig* envoy_config_bootstrap_v3_ClusterManager_upstream_bind_config(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1214 |
return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct envoy_config_core_v3_BindConfig*); |
| 1215 |
} |
| 1216 |
UPB_INLINE bool envoy_config_bootstrap_v3_ClusterManager_has_load_stats_config(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1217 |
return _upb_hasbit(msg, 3); |
| 1218 |
} |
| 1219 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_clear_load_stats_config(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1220 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), const upb_Message*) = NULL; |
| 1221 |
} |
| 1222 |
UPB_INLINE const struct envoy_config_core_v3_ApiConfigSource* envoy_config_bootstrap_v3_ClusterManager_load_stats_config(const envoy_config_bootstrap_v3_ClusterManager* msg) { |
| 1223 |
return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct envoy_config_core_v3_ApiConfigSource*); |
| 1224 |
} |
| 1225 |
|
| 1226 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_set_local_cluster_name(envoy_config_bootstrap_v3_ClusterManager *msg, upb_StringView value) { |
| 1227 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 1228 |
} |
| 1229 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_set_outlier_detection(envoy_config_bootstrap_v3_ClusterManager *msg, envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* value) { |
| 1230 |
_upb_sethas(msg, 1); |
| 1231 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), envoy_config_bootstrap_v3_ClusterManager_OutlierDetection*) = value; |
| 1232 |
} |
| 1233 |
UPB_INLINE struct envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* envoy_config_bootstrap_v3_ClusterManager_mutable_outlier_detection(envoy_config_bootstrap_v3_ClusterManager* msg, upb_Arena* arena) { |
| 1234 |
struct envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* sub = (struct envoy_config_bootstrap_v3_ClusterManager_OutlierDetection*)envoy_config_bootstrap_v3_ClusterManager_outlier_detection(msg); |
| 1235 |
if (sub == NULL) { |
| 1236 |
sub = (struct envoy_config_bootstrap_v3_ClusterManager_OutlierDetection*)_upb_Message_New(&envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_msginit, arena); |
| 1237 |
if (!sub) return NULL; |
| 1238 |
envoy_config_bootstrap_v3_ClusterManager_set_outlier_detection(msg, sub); |
| 1239 |
} |
| 1240 |
return sub; |
| 1241 |
} |
| 1242 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_set_upstream_bind_config(envoy_config_bootstrap_v3_ClusterManager *msg, struct envoy_config_core_v3_BindConfig* value) { |
| 1243 |
_upb_sethas(msg, 2); |
| 1244 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct envoy_config_core_v3_BindConfig*) = value; |
| 1245 |
} |
| 1246 |
UPB_INLINE struct envoy_config_core_v3_BindConfig* envoy_config_bootstrap_v3_ClusterManager_mutable_upstream_bind_config(envoy_config_bootstrap_v3_ClusterManager* msg, upb_Arena* arena) { |
| 1247 |
struct envoy_config_core_v3_BindConfig* sub = (struct envoy_config_core_v3_BindConfig*)envoy_config_bootstrap_v3_ClusterManager_upstream_bind_config(msg); |
| 1248 |
if (sub == NULL) { |
| 1249 |
sub = (struct envoy_config_core_v3_BindConfig*)_upb_Message_New(&envoy_config_core_v3_BindConfig_msginit, arena); |
| 1250 |
if (!sub) return NULL; |
| 1251 |
envoy_config_bootstrap_v3_ClusterManager_set_upstream_bind_config(msg, sub); |
| 1252 |
} |
| 1253 |
return sub; |
| 1254 |
} |
| 1255 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_set_load_stats_config(envoy_config_bootstrap_v3_ClusterManager *msg, struct envoy_config_core_v3_ApiConfigSource* value) { |
| 1256 |
_upb_sethas(msg, 3); |
| 1257 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct envoy_config_core_v3_ApiConfigSource*) = value; |
| 1258 |
} |
| 1259 |
UPB_INLINE struct envoy_config_core_v3_ApiConfigSource* envoy_config_bootstrap_v3_ClusterManager_mutable_load_stats_config(envoy_config_bootstrap_v3_ClusterManager* msg, upb_Arena* arena) { |
| 1260 |
struct envoy_config_core_v3_ApiConfigSource* sub = (struct envoy_config_core_v3_ApiConfigSource*)envoy_config_bootstrap_v3_ClusterManager_load_stats_config(msg); |
| 1261 |
if (sub == NULL) { |
| 1262 |
sub = (struct envoy_config_core_v3_ApiConfigSource*)_upb_Message_New(&envoy_config_core_v3_ApiConfigSource_msginit, arena); |
| 1263 |
if (!sub) return NULL; |
| 1264 |
envoy_config_bootstrap_v3_ClusterManager_set_load_stats_config(msg, sub); |
| 1265 |
} |
| 1266 |
return sub; |
| 1267 |
} |
| 1268 |
|
| 1269 |
/* envoy.config.bootstrap.v3.ClusterManager.OutlierDetection */ |
| 1270 |
|
| 1271 |
UPB_INLINE envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_new(upb_Arena* arena) { |
| 1272 |
return (envoy_config_bootstrap_v3_ClusterManager_OutlierDetection*)_upb_Message_New(&envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_msginit, arena); |
| 1273 |
} |
| 1274 |
UPB_INLINE envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1275 |
envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* ret = envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_new(arena); |
| 1276 |
if (!ret) return NULL; |
| 1277 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1278 |
return NULL; |
| 1279 |
} |
| 1280 |
return ret; |
| 1281 |
} |
| 1282 |
UPB_INLINE envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_parse_ex(const char* buf, size_t size, |
| 1283 |
const upb_ExtensionRegistry* extreg, |
| 1284 |
int options, upb_Arena* arena) { |
| 1285 |
envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* ret = envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_new(arena); |
| 1286 |
if (!ret) return NULL; |
| 1287 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_msginit, extreg, options, arena) != |
| 1288 |
kUpb_DecodeStatus_Ok) { |
| 1289 |
return NULL; |
| 1290 |
} |
| 1291 |
return ret; |
| 1292 |
} |
| 1293 |
UPB_INLINE char* envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_serialize(const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* msg, upb_Arena* arena, size_t* len) { |
| 1294 |
char* ptr; |
| 1295 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_msginit, 0, arena, &ptr, len); |
| 1296 |
return ptr; |
| 1297 |
} |
| 1298 |
UPB_INLINE char* envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_serialize_ex(const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* msg, int options, |
| 1299 |
upb_Arena* arena, size_t* len) { |
| 1300 |
char* ptr; |
| 1301 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_msginit, options, arena, &ptr, len); |
| 1302 |
return ptr; |
| 1303 |
} |
| 1304 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_clear_event_log_path(const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* msg) { |
| 1305 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1306 |
} |
| 1307 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_event_log_path(const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* msg) { |
| 1308 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 1309 |
} |
| 1310 |
UPB_INLINE bool envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_has_event_service(const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* msg) { |
| 1311 |
return _upb_hasbit(msg, 1); |
| 1312 |
} |
| 1313 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_clear_event_service(const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* msg) { |
| 1314 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
| 1315 |
} |
| 1316 |
UPB_INLINE const struct envoy_config_core_v3_EventServiceConfig* envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_event_service(const envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* msg) { |
| 1317 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_EventServiceConfig*); |
| 1318 |
} |
| 1319 |
|
| 1320 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_set_event_log_path(envoy_config_bootstrap_v3_ClusterManager_OutlierDetection *msg, upb_StringView value) { |
| 1321 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 1322 |
} |
| 1323 |
UPB_INLINE void envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_set_event_service(envoy_config_bootstrap_v3_ClusterManager_OutlierDetection *msg, struct envoy_config_core_v3_EventServiceConfig* value) { |
| 1324 |
_upb_sethas(msg, 1); |
| 1325 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_EventServiceConfig*) = value; |
| 1326 |
} |
| 1327 |
UPB_INLINE struct envoy_config_core_v3_EventServiceConfig* envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_mutable_event_service(envoy_config_bootstrap_v3_ClusterManager_OutlierDetection* msg, upb_Arena* arena) { |
| 1328 |
struct envoy_config_core_v3_EventServiceConfig* sub = (struct envoy_config_core_v3_EventServiceConfig*)envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_event_service(msg); |
| 1329 |
if (sub == NULL) { |
| 1330 |
sub = (struct envoy_config_core_v3_EventServiceConfig*)_upb_Message_New(&envoy_config_core_v3_EventServiceConfig_msginit, arena); |
| 1331 |
if (!sub) return NULL; |
| 1332 |
envoy_config_bootstrap_v3_ClusterManager_OutlierDetection_set_event_service(msg, sub); |
| 1333 |
} |
| 1334 |
return sub; |
| 1335 |
} |
| 1336 |
|
| 1337 |
/* envoy.config.bootstrap.v3.Watchdogs */ |
| 1338 |
|
| 1339 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdogs* envoy_config_bootstrap_v3_Watchdogs_new(upb_Arena* arena) { |
| 1340 |
return (envoy_config_bootstrap_v3_Watchdogs*)_upb_Message_New(&envoy_config_bootstrap_v3_Watchdogs_msginit, arena); |
| 1341 |
} |
| 1342 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdogs* envoy_config_bootstrap_v3_Watchdogs_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1343 |
envoy_config_bootstrap_v3_Watchdogs* ret = envoy_config_bootstrap_v3_Watchdogs_new(arena); |
| 1344 |
if (!ret) return NULL; |
| 1345 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Watchdogs_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1346 |
return NULL; |
| 1347 |
} |
| 1348 |
return ret; |
| 1349 |
} |
| 1350 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdogs* envoy_config_bootstrap_v3_Watchdogs_parse_ex(const char* buf, size_t size, |
| 1351 |
const upb_ExtensionRegistry* extreg, |
| 1352 |
int options, upb_Arena* arena) { |
| 1353 |
envoy_config_bootstrap_v3_Watchdogs* ret = envoy_config_bootstrap_v3_Watchdogs_new(arena); |
| 1354 |
if (!ret) return NULL; |
| 1355 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Watchdogs_msginit, extreg, options, arena) != |
| 1356 |
kUpb_DecodeStatus_Ok) { |
| 1357 |
return NULL; |
| 1358 |
} |
| 1359 |
return ret; |
| 1360 |
} |
| 1361 |
UPB_INLINE char* envoy_config_bootstrap_v3_Watchdogs_serialize(const envoy_config_bootstrap_v3_Watchdogs* msg, upb_Arena* arena, size_t* len) { |
| 1362 |
char* ptr; |
| 1363 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Watchdogs_msginit, 0, arena, &ptr, len); |
| 1364 |
return ptr; |
| 1365 |
} |
| 1366 |
UPB_INLINE char* envoy_config_bootstrap_v3_Watchdogs_serialize_ex(const envoy_config_bootstrap_v3_Watchdogs* msg, int options, |
| 1367 |
upb_Arena* arena, size_t* len) { |
| 1368 |
char* ptr; |
| 1369 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Watchdogs_msginit, options, arena, &ptr, len); |
| 1370 |
return ptr; |
| 1371 |
} |
| 1372 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdogs_has_main_thread_watchdog(const envoy_config_bootstrap_v3_Watchdogs* msg) { |
| 1373 |
return _upb_hasbit(msg, 1); |
| 1374 |
} |
| 1375 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdogs_clear_main_thread_watchdog(const envoy_config_bootstrap_v3_Watchdogs* msg) { |
| 1376 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
| 1377 |
} |
| 1378 |
UPB_INLINE const envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Watchdogs_main_thread_watchdog(const envoy_config_bootstrap_v3_Watchdogs* msg) { |
| 1379 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const envoy_config_bootstrap_v3_Watchdog*); |
| 1380 |
} |
| 1381 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdogs_has_worker_watchdog(const envoy_config_bootstrap_v3_Watchdogs* msg) { |
| 1382 |
return _upb_hasbit(msg, 2); |
| 1383 |
} |
| 1384 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdogs_clear_worker_watchdog(const envoy_config_bootstrap_v3_Watchdogs* msg) { |
| 1385 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
| 1386 |
} |
| 1387 |
UPB_INLINE const envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Watchdogs_worker_watchdog(const envoy_config_bootstrap_v3_Watchdogs* msg) { |
| 1388 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const envoy_config_bootstrap_v3_Watchdog*); |
| 1389 |
} |
| 1390 |
|
| 1391 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdogs_set_main_thread_watchdog(envoy_config_bootstrap_v3_Watchdogs *msg, envoy_config_bootstrap_v3_Watchdog* value) { |
| 1392 |
_upb_sethas(msg, 1); |
| 1393 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), envoy_config_bootstrap_v3_Watchdog*) = value; |
| 1394 |
} |
| 1395 |
UPB_INLINE struct envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Watchdogs_mutable_main_thread_watchdog(envoy_config_bootstrap_v3_Watchdogs* msg, upb_Arena* arena) { |
| 1396 |
struct envoy_config_bootstrap_v3_Watchdog* sub = (struct envoy_config_bootstrap_v3_Watchdog*)envoy_config_bootstrap_v3_Watchdogs_main_thread_watchdog(msg); |
| 1397 |
if (sub == NULL) { |
| 1398 |
sub = (struct envoy_config_bootstrap_v3_Watchdog*)_upb_Message_New(&envoy_config_bootstrap_v3_Watchdog_msginit, arena); |
| 1399 |
if (!sub) return NULL; |
| 1400 |
envoy_config_bootstrap_v3_Watchdogs_set_main_thread_watchdog(msg, sub); |
| 1401 |
} |
| 1402 |
return sub; |
| 1403 |
} |
| 1404 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdogs_set_worker_watchdog(envoy_config_bootstrap_v3_Watchdogs *msg, envoy_config_bootstrap_v3_Watchdog* value) { |
| 1405 |
_upb_sethas(msg, 2); |
| 1406 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), envoy_config_bootstrap_v3_Watchdog*) = value; |
| 1407 |
} |
| 1408 |
UPB_INLINE struct envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Watchdogs_mutable_worker_watchdog(envoy_config_bootstrap_v3_Watchdogs* msg, upb_Arena* arena) { |
| 1409 |
struct envoy_config_bootstrap_v3_Watchdog* sub = (struct envoy_config_bootstrap_v3_Watchdog*)envoy_config_bootstrap_v3_Watchdogs_worker_watchdog(msg); |
| 1410 |
if (sub == NULL) { |
| 1411 |
sub = (struct envoy_config_bootstrap_v3_Watchdog*)_upb_Message_New(&envoy_config_bootstrap_v3_Watchdog_msginit, arena); |
| 1412 |
if (!sub) return NULL; |
| 1413 |
envoy_config_bootstrap_v3_Watchdogs_set_worker_watchdog(msg, sub); |
| 1414 |
} |
| 1415 |
return sub; |
| 1416 |
} |
| 1417 |
|
| 1418 |
/* envoy.config.bootstrap.v3.Watchdog */ |
| 1419 |
|
| 1420 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Watchdog_new(upb_Arena* arena) { |
| 1421 |
return (envoy_config_bootstrap_v3_Watchdog*)_upb_Message_New(&envoy_config_bootstrap_v3_Watchdog_msginit, arena); |
| 1422 |
} |
| 1423 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Watchdog_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1424 |
envoy_config_bootstrap_v3_Watchdog* ret = envoy_config_bootstrap_v3_Watchdog_new(arena); |
| 1425 |
if (!ret) return NULL; |
| 1426 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Watchdog_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1427 |
return NULL; |
| 1428 |
} |
| 1429 |
return ret; |
| 1430 |
} |
| 1431 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdog* envoy_config_bootstrap_v3_Watchdog_parse_ex(const char* buf, size_t size, |
| 1432 |
const upb_ExtensionRegistry* extreg, |
| 1433 |
int options, upb_Arena* arena) { |
| 1434 |
envoy_config_bootstrap_v3_Watchdog* ret = envoy_config_bootstrap_v3_Watchdog_new(arena); |
| 1435 |
if (!ret) return NULL; |
| 1436 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Watchdog_msginit, extreg, options, arena) != |
| 1437 |
kUpb_DecodeStatus_Ok) { |
| 1438 |
return NULL; |
| 1439 |
} |
| 1440 |
return ret; |
| 1441 |
} |
| 1442 |
UPB_INLINE char* envoy_config_bootstrap_v3_Watchdog_serialize(const envoy_config_bootstrap_v3_Watchdog* msg, upb_Arena* arena, size_t* len) { |
| 1443 |
char* ptr; |
| 1444 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Watchdog_msginit, 0, arena, &ptr, len); |
| 1445 |
return ptr; |
| 1446 |
} |
| 1447 |
UPB_INLINE char* envoy_config_bootstrap_v3_Watchdog_serialize_ex(const envoy_config_bootstrap_v3_Watchdog* msg, int options, |
| 1448 |
upb_Arena* arena, size_t* len) { |
| 1449 |
char* ptr; |
| 1450 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Watchdog_msginit, options, arena, &ptr, len); |
| 1451 |
return ptr; |
| 1452 |
} |
| 1453 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdog_has_miss_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1454 |
return _upb_hasbit(msg, 1); |
| 1455 |
} |
| 1456 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_clear_miss_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1457 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
| 1458 |
} |
| 1459 |
UPB_INLINE const struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_miss_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1460 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct google_protobuf_Duration*); |
| 1461 |
} |
| 1462 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdog_has_megamiss_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1463 |
return _upb_hasbit(msg, 2); |
| 1464 |
} |
| 1465 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_clear_megamiss_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1466 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), const upb_Message*) = NULL; |
| 1467 |
} |
| 1468 |
UPB_INLINE const struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_megamiss_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1469 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 16), const struct google_protobuf_Duration*); |
| 1470 |
} |
| 1471 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdog_has_kill_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1472 |
return _upb_hasbit(msg, 3); |
| 1473 |
} |
| 1474 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_clear_kill_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1475 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
| 1476 |
} |
| 1477 |
UPB_INLINE const struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_kill_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1478 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct google_protobuf_Duration*); |
| 1479 |
} |
| 1480 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdog_has_multikill_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1481 |
return _upb_hasbit(msg, 4); |
| 1482 |
} |
| 1483 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_clear_multikill_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1484 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), const upb_Message*) = NULL; |
| 1485 |
} |
| 1486 |
UPB_INLINE const struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_multikill_timeout(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1487 |
return *UPB_PTR_AT(msg, UPB_SIZE(16, 32), const struct google_protobuf_Duration*); |
| 1488 |
} |
| 1489 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdog_has_multikill_threshold(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1490 |
return _upb_hasbit(msg, 5); |
| 1491 |
} |
| 1492 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_clear_multikill_threshold(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1493 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), const upb_Message*) = NULL; |
| 1494 |
} |
| 1495 |
UPB_INLINE const struct envoy_type_v3_Percent* envoy_config_bootstrap_v3_Watchdog_multikill_threshold(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1496 |
return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), const struct envoy_type_v3_Percent*); |
| 1497 |
} |
| 1498 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdog_has_max_kill_timeout_jitter(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1499 |
return _upb_hasbit(msg, 6); |
| 1500 |
} |
| 1501 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_clear_max_kill_timeout_jitter(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1502 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 48), const upb_Message*) = NULL; |
| 1503 |
} |
| 1504 |
UPB_INLINE const struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_max_kill_timeout_jitter(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1505 |
return *UPB_PTR_AT(msg, UPB_SIZE(24, 48), const struct google_protobuf_Duration*); |
| 1506 |
} |
| 1507 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdog_has_actions(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1508 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(28, 56)); |
| 1509 |
} |
| 1510 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_clear_actions(const envoy_config_bootstrap_v3_Watchdog* msg) { |
| 1511 |
_upb_array_detach(msg, UPB_SIZE(28, 56)); |
| 1512 |
} |
| 1513 |
UPB_INLINE const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* const* envoy_config_bootstrap_v3_Watchdog_actions(const envoy_config_bootstrap_v3_Watchdog* msg, size_t* len) { |
| 1514 |
return (const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* const*)_upb_array_accessor(msg, UPB_SIZE(28, 56), len); |
| 1515 |
} |
| 1516 |
|
| 1517 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_set_miss_timeout(envoy_config_bootstrap_v3_Watchdog *msg, struct google_protobuf_Duration* value) { |
| 1518 |
_upb_sethas(msg, 1); |
| 1519 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct google_protobuf_Duration*) = value; |
| 1520 |
} |
| 1521 |
UPB_INLINE struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_mutable_miss_timeout(envoy_config_bootstrap_v3_Watchdog* msg, upb_Arena* arena) { |
| 1522 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_bootstrap_v3_Watchdog_miss_timeout(msg); |
| 1523 |
if (sub == NULL) { |
| 1524 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 1525 |
if (!sub) return NULL; |
| 1526 |
envoy_config_bootstrap_v3_Watchdog_set_miss_timeout(msg, sub); |
| 1527 |
} |
| 1528 |
return sub; |
| 1529 |
} |
| 1530 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_set_megamiss_timeout(envoy_config_bootstrap_v3_Watchdog *msg, struct google_protobuf_Duration* value) { |
| 1531 |
_upb_sethas(msg, 2); |
| 1532 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 16), struct google_protobuf_Duration*) = value; |
| 1533 |
} |
| 1534 |
UPB_INLINE struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_mutable_megamiss_timeout(envoy_config_bootstrap_v3_Watchdog* msg, upb_Arena* arena) { |
| 1535 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_bootstrap_v3_Watchdog_megamiss_timeout(msg); |
| 1536 |
if (sub == NULL) { |
| 1537 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 1538 |
if (!sub) return NULL; |
| 1539 |
envoy_config_bootstrap_v3_Watchdog_set_megamiss_timeout(msg, sub); |
| 1540 |
} |
| 1541 |
return sub; |
| 1542 |
} |
| 1543 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_set_kill_timeout(envoy_config_bootstrap_v3_Watchdog *msg, struct google_protobuf_Duration* value) { |
| 1544 |
_upb_sethas(msg, 3); |
| 1545 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct google_protobuf_Duration*) = value; |
| 1546 |
} |
| 1547 |
UPB_INLINE struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_mutable_kill_timeout(envoy_config_bootstrap_v3_Watchdog* msg, upb_Arena* arena) { |
| 1548 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_bootstrap_v3_Watchdog_kill_timeout(msg); |
| 1549 |
if (sub == NULL) { |
| 1550 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 1551 |
if (!sub) return NULL; |
| 1552 |
envoy_config_bootstrap_v3_Watchdog_set_kill_timeout(msg, sub); |
| 1553 |
} |
| 1554 |
return sub; |
| 1555 |
} |
| 1556 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_set_multikill_timeout(envoy_config_bootstrap_v3_Watchdog *msg, struct google_protobuf_Duration* value) { |
| 1557 |
_upb_sethas(msg, 4); |
| 1558 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 32), struct google_protobuf_Duration*) = value; |
| 1559 |
} |
| 1560 |
UPB_INLINE struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_mutable_multikill_timeout(envoy_config_bootstrap_v3_Watchdog* msg, upb_Arena* arena) { |
| 1561 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_bootstrap_v3_Watchdog_multikill_timeout(msg); |
| 1562 |
if (sub == NULL) { |
| 1563 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 1564 |
if (!sub) return NULL; |
| 1565 |
envoy_config_bootstrap_v3_Watchdog_set_multikill_timeout(msg, sub); |
| 1566 |
} |
| 1567 |
return sub; |
| 1568 |
} |
| 1569 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_set_multikill_threshold(envoy_config_bootstrap_v3_Watchdog *msg, struct envoy_type_v3_Percent* value) { |
| 1570 |
_upb_sethas(msg, 5); |
| 1571 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), struct envoy_type_v3_Percent*) = value; |
| 1572 |
} |
| 1573 |
UPB_INLINE struct envoy_type_v3_Percent* envoy_config_bootstrap_v3_Watchdog_mutable_multikill_threshold(envoy_config_bootstrap_v3_Watchdog* msg, upb_Arena* arena) { |
| 1574 |
struct envoy_type_v3_Percent* sub = (struct envoy_type_v3_Percent*)envoy_config_bootstrap_v3_Watchdog_multikill_threshold(msg); |
| 1575 |
if (sub == NULL) { |
| 1576 |
sub = (struct envoy_type_v3_Percent*)_upb_Message_New(&envoy_type_v3_Percent_msginit, arena); |
| 1577 |
if (!sub) return NULL; |
| 1578 |
envoy_config_bootstrap_v3_Watchdog_set_multikill_threshold(msg, sub); |
| 1579 |
} |
| 1580 |
return sub; |
| 1581 |
} |
| 1582 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_set_max_kill_timeout_jitter(envoy_config_bootstrap_v3_Watchdog *msg, struct google_protobuf_Duration* value) { |
| 1583 |
_upb_sethas(msg, 6); |
| 1584 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 48), struct google_protobuf_Duration*) = value; |
| 1585 |
} |
| 1586 |
UPB_INLINE struct google_protobuf_Duration* envoy_config_bootstrap_v3_Watchdog_mutable_max_kill_timeout_jitter(envoy_config_bootstrap_v3_Watchdog* msg, upb_Arena* arena) { |
| 1587 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_config_bootstrap_v3_Watchdog_max_kill_timeout_jitter(msg); |
| 1588 |
if (sub == NULL) { |
| 1589 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 1590 |
if (!sub) return NULL; |
| 1591 |
envoy_config_bootstrap_v3_Watchdog_set_max_kill_timeout_jitter(msg, sub); |
| 1592 |
} |
| 1593 |
return sub; |
| 1594 |
} |
| 1595 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdog_WatchdogAction** envoy_config_bootstrap_v3_Watchdog_mutable_actions(envoy_config_bootstrap_v3_Watchdog* msg, size_t* len) { |
| 1596 |
return (envoy_config_bootstrap_v3_Watchdog_WatchdogAction**)_upb_array_mutable_accessor(msg, UPB_SIZE(28, 56), len); |
| 1597 |
} |
| 1598 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdog_WatchdogAction** envoy_config_bootstrap_v3_Watchdog_resize_actions(envoy_config_bootstrap_v3_Watchdog* msg, size_t len, upb_Arena* arena) { |
| 1599 |
return (envoy_config_bootstrap_v3_Watchdog_WatchdogAction**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(28, 56), len, UPB_SIZE(2, 3), arena); |
| 1600 |
} |
| 1601 |
UPB_INLINE struct envoy_config_bootstrap_v3_Watchdog_WatchdogAction* envoy_config_bootstrap_v3_Watchdog_add_actions(envoy_config_bootstrap_v3_Watchdog* msg, upb_Arena* arena) { |
| 1602 |
struct envoy_config_bootstrap_v3_Watchdog_WatchdogAction* sub = (struct envoy_config_bootstrap_v3_Watchdog_WatchdogAction*)_upb_Message_New(&envoy_config_bootstrap_v3_Watchdog_WatchdogAction_msginit, arena); |
| 1603 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(28, 56), UPB_SIZE(2, 3), &sub, arena); |
| 1604 |
if (!ok) return NULL; |
| 1605 |
return sub; |
| 1606 |
} |
| 1607 |
|
| 1608 |
/* envoy.config.bootstrap.v3.Watchdog.WatchdogAction */ |
| 1609 |
|
| 1610 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdog_WatchdogAction* envoy_config_bootstrap_v3_Watchdog_WatchdogAction_new(upb_Arena* arena) { |
| 1611 |
return (envoy_config_bootstrap_v3_Watchdog_WatchdogAction*)_upb_Message_New(&envoy_config_bootstrap_v3_Watchdog_WatchdogAction_msginit, arena); |
| 1612 |
} |
| 1613 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdog_WatchdogAction* envoy_config_bootstrap_v3_Watchdog_WatchdogAction_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1614 |
envoy_config_bootstrap_v3_Watchdog_WatchdogAction* ret = envoy_config_bootstrap_v3_Watchdog_WatchdogAction_new(arena); |
| 1615 |
if (!ret) return NULL; |
| 1616 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Watchdog_WatchdogAction_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1617 |
return NULL; |
| 1618 |
} |
| 1619 |
return ret; |
| 1620 |
} |
| 1621 |
UPB_INLINE envoy_config_bootstrap_v3_Watchdog_WatchdogAction* envoy_config_bootstrap_v3_Watchdog_WatchdogAction_parse_ex(const char* buf, size_t size, |
| 1622 |
const upb_ExtensionRegistry* extreg, |
| 1623 |
int options, upb_Arena* arena) { |
| 1624 |
envoy_config_bootstrap_v3_Watchdog_WatchdogAction* ret = envoy_config_bootstrap_v3_Watchdog_WatchdogAction_new(arena); |
| 1625 |
if (!ret) return NULL; |
| 1626 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Watchdog_WatchdogAction_msginit, extreg, options, arena) != |
| 1627 |
kUpb_DecodeStatus_Ok) { |
| 1628 |
return NULL; |
| 1629 |
} |
| 1630 |
return ret; |
| 1631 |
} |
| 1632 |
UPB_INLINE char* envoy_config_bootstrap_v3_Watchdog_WatchdogAction_serialize(const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* msg, upb_Arena* arena, size_t* len) { |
| 1633 |
char* ptr; |
| 1634 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Watchdog_WatchdogAction_msginit, 0, arena, &ptr, len); |
| 1635 |
return ptr; |
| 1636 |
} |
| 1637 |
UPB_INLINE char* envoy_config_bootstrap_v3_Watchdog_WatchdogAction_serialize_ex(const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* msg, int options, |
| 1638 |
upb_Arena* arena, size_t* len) { |
| 1639 |
char* ptr; |
| 1640 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Watchdog_WatchdogAction_msginit, options, arena, &ptr, len); |
| 1641 |
return ptr; |
| 1642 |
} |
| 1643 |
UPB_INLINE bool envoy_config_bootstrap_v3_Watchdog_WatchdogAction_has_config(const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* msg) { |
| 1644 |
return _upb_hasbit(msg, 1); |
| 1645 |
} |
| 1646 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_WatchdogAction_clear_config(const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* msg) { |
| 1647 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), const upb_Message*) = NULL; |
| 1648 |
} |
| 1649 |
UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_Watchdog_WatchdogAction_config(const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* msg) { |
| 1650 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), const struct envoy_config_core_v3_TypedExtensionConfig*); |
| 1651 |
} |
| 1652 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_WatchdogAction_clear_event(const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* msg) { |
| 1653 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = 0; |
| 1654 |
} |
| 1655 |
UPB_INLINE int32_t envoy_config_bootstrap_v3_Watchdog_WatchdogAction_event(const envoy_config_bootstrap_v3_Watchdog_WatchdogAction* msg) { |
| 1656 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); |
| 1657 |
} |
| 1658 |
|
| 1659 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_WatchdogAction_set_config(envoy_config_bootstrap_v3_Watchdog_WatchdogAction *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) { |
| 1660 |
_upb_sethas(msg, 1); |
| 1661 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), struct envoy_config_core_v3_TypedExtensionConfig*) = value; |
| 1662 |
} |
| 1663 |
UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_Watchdog_WatchdogAction_mutable_config(envoy_config_bootstrap_v3_Watchdog_WatchdogAction* msg, upb_Arena* arena) { |
| 1664 |
struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)envoy_config_bootstrap_v3_Watchdog_WatchdogAction_config(msg); |
| 1665 |
if (sub == NULL) { |
| 1666 |
sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_Message_New(&envoy_config_core_v3_TypedExtensionConfig_msginit, arena); |
| 1667 |
if (!sub) return NULL; |
| 1668 |
envoy_config_bootstrap_v3_Watchdog_WatchdogAction_set_config(msg, sub); |
| 1669 |
} |
| 1670 |
return sub; |
| 1671 |
} |
| 1672 |
UPB_INLINE void envoy_config_bootstrap_v3_Watchdog_WatchdogAction_set_event(envoy_config_bootstrap_v3_Watchdog_WatchdogAction *msg, int32_t value) { |
| 1673 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value; |
| 1674 |
} |
| 1675 |
|
| 1676 |
/* envoy.config.bootstrap.v3.FatalAction */ |
| 1677 |
|
| 1678 |
UPB_INLINE envoy_config_bootstrap_v3_FatalAction* envoy_config_bootstrap_v3_FatalAction_new(upb_Arena* arena) { |
| 1679 |
return (envoy_config_bootstrap_v3_FatalAction*)_upb_Message_New(&envoy_config_bootstrap_v3_FatalAction_msginit, arena); |
| 1680 |
} |
| 1681 |
UPB_INLINE envoy_config_bootstrap_v3_FatalAction* envoy_config_bootstrap_v3_FatalAction_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1682 |
envoy_config_bootstrap_v3_FatalAction* ret = envoy_config_bootstrap_v3_FatalAction_new(arena); |
| 1683 |
if (!ret) return NULL; |
| 1684 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_FatalAction_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1685 |
return NULL; |
| 1686 |
} |
| 1687 |
return ret; |
| 1688 |
} |
| 1689 |
UPB_INLINE envoy_config_bootstrap_v3_FatalAction* envoy_config_bootstrap_v3_FatalAction_parse_ex(const char* buf, size_t size, |
| 1690 |
const upb_ExtensionRegistry* extreg, |
| 1691 |
int options, upb_Arena* arena) { |
| 1692 |
envoy_config_bootstrap_v3_FatalAction* ret = envoy_config_bootstrap_v3_FatalAction_new(arena); |
| 1693 |
if (!ret) return NULL; |
| 1694 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_FatalAction_msginit, extreg, options, arena) != |
| 1695 |
kUpb_DecodeStatus_Ok) { |
| 1696 |
return NULL; |
| 1697 |
} |
| 1698 |
return ret; |
| 1699 |
} |
| 1700 |
UPB_INLINE char* envoy_config_bootstrap_v3_FatalAction_serialize(const envoy_config_bootstrap_v3_FatalAction* msg, upb_Arena* arena, size_t* len) { |
| 1701 |
char* ptr; |
| 1702 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_FatalAction_msginit, 0, arena, &ptr, len); |
| 1703 |
return ptr; |
| 1704 |
} |
| 1705 |
UPB_INLINE char* envoy_config_bootstrap_v3_FatalAction_serialize_ex(const envoy_config_bootstrap_v3_FatalAction* msg, int options, |
| 1706 |
upb_Arena* arena, size_t* len) { |
| 1707 |
char* ptr; |
| 1708 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_FatalAction_msginit, options, arena, &ptr, len); |
| 1709 |
return ptr; |
| 1710 |
} |
| 1711 |
UPB_INLINE bool envoy_config_bootstrap_v3_FatalAction_has_config(const envoy_config_bootstrap_v3_FatalAction* msg) { |
| 1712 |
return _upb_hasbit(msg, 1); |
| 1713 |
} |
| 1714 |
UPB_INLINE void envoy_config_bootstrap_v3_FatalAction_clear_config(const envoy_config_bootstrap_v3_FatalAction* msg) { |
| 1715 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), const upb_Message*) = NULL; |
| 1716 |
} |
| 1717 |
UPB_INLINE const struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_FatalAction_config(const envoy_config_bootstrap_v3_FatalAction* msg) { |
| 1718 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), const struct envoy_config_core_v3_TypedExtensionConfig*); |
| 1719 |
} |
| 1720 |
|
| 1721 |
UPB_INLINE void envoy_config_bootstrap_v3_FatalAction_set_config(envoy_config_bootstrap_v3_FatalAction *msg, struct envoy_config_core_v3_TypedExtensionConfig* value) { |
| 1722 |
_upb_sethas(msg, 1); |
| 1723 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), struct envoy_config_core_v3_TypedExtensionConfig*) = value; |
| 1724 |
} |
| 1725 |
UPB_INLINE struct envoy_config_core_v3_TypedExtensionConfig* envoy_config_bootstrap_v3_FatalAction_mutable_config(envoy_config_bootstrap_v3_FatalAction* msg, upb_Arena* arena) { |
| 1726 |
struct envoy_config_core_v3_TypedExtensionConfig* sub = (struct envoy_config_core_v3_TypedExtensionConfig*)envoy_config_bootstrap_v3_FatalAction_config(msg); |
| 1727 |
if (sub == NULL) { |
| 1728 |
sub = (struct envoy_config_core_v3_TypedExtensionConfig*)_upb_Message_New(&envoy_config_core_v3_TypedExtensionConfig_msginit, arena); |
| 1729 |
if (!sub) return NULL; |
| 1730 |
envoy_config_bootstrap_v3_FatalAction_set_config(msg, sub); |
| 1731 |
} |
| 1732 |
return sub; |
| 1733 |
} |
| 1734 |
|
| 1735 |
/* envoy.config.bootstrap.v3.Runtime */ |
| 1736 |
|
| 1737 |
UPB_INLINE envoy_config_bootstrap_v3_Runtime* envoy_config_bootstrap_v3_Runtime_new(upb_Arena* arena) { |
| 1738 |
return (envoy_config_bootstrap_v3_Runtime*)_upb_Message_New(&envoy_config_bootstrap_v3_Runtime_msginit, arena); |
| 1739 |
} |
| 1740 |
UPB_INLINE envoy_config_bootstrap_v3_Runtime* envoy_config_bootstrap_v3_Runtime_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1741 |
envoy_config_bootstrap_v3_Runtime* ret = envoy_config_bootstrap_v3_Runtime_new(arena); |
| 1742 |
if (!ret) return NULL; |
| 1743 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Runtime_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1744 |
return NULL; |
| 1745 |
} |
| 1746 |
return ret; |
| 1747 |
} |
| 1748 |
UPB_INLINE envoy_config_bootstrap_v3_Runtime* envoy_config_bootstrap_v3_Runtime_parse_ex(const char* buf, size_t size, |
| 1749 |
const upb_ExtensionRegistry* extreg, |
| 1750 |
int options, upb_Arena* arena) { |
| 1751 |
envoy_config_bootstrap_v3_Runtime* ret = envoy_config_bootstrap_v3_Runtime_new(arena); |
| 1752 |
if (!ret) return NULL; |
| 1753 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_Runtime_msginit, extreg, options, arena) != |
| 1754 |
kUpb_DecodeStatus_Ok) { |
| 1755 |
return NULL; |
| 1756 |
} |
| 1757 |
return ret; |
| 1758 |
} |
| 1759 |
UPB_INLINE char* envoy_config_bootstrap_v3_Runtime_serialize(const envoy_config_bootstrap_v3_Runtime* msg, upb_Arena* arena, size_t* len) { |
| 1760 |
char* ptr; |
| 1761 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Runtime_msginit, 0, arena, &ptr, len); |
| 1762 |
return ptr; |
| 1763 |
} |
| 1764 |
UPB_INLINE char* envoy_config_bootstrap_v3_Runtime_serialize_ex(const envoy_config_bootstrap_v3_Runtime* msg, int options, |
| 1765 |
upb_Arena* arena, size_t* len) { |
| 1766 |
char* ptr; |
| 1767 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_Runtime_msginit, options, arena, &ptr, len); |
| 1768 |
return ptr; |
| 1769 |
} |
| 1770 |
UPB_INLINE void envoy_config_bootstrap_v3_Runtime_clear_symlink_root(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1771 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1772 |
} |
| 1773 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Runtime_symlink_root(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1774 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 1775 |
} |
| 1776 |
UPB_INLINE void envoy_config_bootstrap_v3_Runtime_clear_subdirectory(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1777 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1778 |
} |
| 1779 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Runtime_subdirectory(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1780 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView); |
| 1781 |
} |
| 1782 |
UPB_INLINE void envoy_config_bootstrap_v3_Runtime_clear_override_subdirectory(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1783 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1784 |
} |
| 1785 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_Runtime_override_subdirectory(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1786 |
return *UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_StringView); |
| 1787 |
} |
| 1788 |
UPB_INLINE bool envoy_config_bootstrap_v3_Runtime_has_base(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1789 |
return _upb_hasbit(msg, 1); |
| 1790 |
} |
| 1791 |
UPB_INLINE void envoy_config_bootstrap_v3_Runtime_clear_base(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1792 |
*UPB_PTR_AT(msg, UPB_SIZE(28, 56), const upb_Message*) = NULL; |
| 1793 |
} |
| 1794 |
UPB_INLINE const struct google_protobuf_Struct* envoy_config_bootstrap_v3_Runtime_base(const envoy_config_bootstrap_v3_Runtime* msg) { |
| 1795 |
return *UPB_PTR_AT(msg, UPB_SIZE(28, 56), const struct google_protobuf_Struct*); |
| 1796 |
} |
| 1797 |
|
| 1798 |
UPB_INLINE void envoy_config_bootstrap_v3_Runtime_set_symlink_root(envoy_config_bootstrap_v3_Runtime *msg, upb_StringView value) { |
| 1799 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 1800 |
} |
| 1801 |
UPB_INLINE void envoy_config_bootstrap_v3_Runtime_set_subdirectory(envoy_config_bootstrap_v3_Runtime *msg, upb_StringView value) { |
| 1802 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView) = value; |
| 1803 |
} |
| 1804 |
UPB_INLINE void envoy_config_bootstrap_v3_Runtime_set_override_subdirectory(envoy_config_bootstrap_v3_Runtime *msg, upb_StringView value) { |
| 1805 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 40), upb_StringView) = value; |
| 1806 |
} |
| 1807 |
UPB_INLINE void envoy_config_bootstrap_v3_Runtime_set_base(envoy_config_bootstrap_v3_Runtime *msg, struct google_protobuf_Struct* value) { |
| 1808 |
_upb_sethas(msg, 1); |
| 1809 |
*UPB_PTR_AT(msg, UPB_SIZE(28, 56), struct google_protobuf_Struct*) = value; |
| 1810 |
} |
| 1811 |
UPB_INLINE struct google_protobuf_Struct* envoy_config_bootstrap_v3_Runtime_mutable_base(envoy_config_bootstrap_v3_Runtime* msg, upb_Arena* arena) { |
| 1812 |
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_config_bootstrap_v3_Runtime_base(msg); |
| 1813 |
if (sub == NULL) { |
| 1814 |
sub = (struct google_protobuf_Struct*)_upb_Message_New(&google_protobuf_Struct_msginit, arena); |
| 1815 |
if (!sub) return NULL; |
| 1816 |
envoy_config_bootstrap_v3_Runtime_set_base(msg, sub); |
| 1817 |
} |
| 1818 |
return sub; |
| 1819 |
} |
| 1820 |
|
| 1821 |
/* envoy.config.bootstrap.v3.RuntimeLayer */ |
| 1822 |
|
| 1823 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer* envoy_config_bootstrap_v3_RuntimeLayer_new(upb_Arena* arena) { |
| 1824 |
return (envoy_config_bootstrap_v3_RuntimeLayer*)_upb_Message_New(&envoy_config_bootstrap_v3_RuntimeLayer_msginit, arena); |
| 1825 |
} |
| 1826 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer* envoy_config_bootstrap_v3_RuntimeLayer_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1827 |
envoy_config_bootstrap_v3_RuntimeLayer* ret = envoy_config_bootstrap_v3_RuntimeLayer_new(arena); |
| 1828 |
if (!ret) return NULL; |
| 1829 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_RuntimeLayer_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1830 |
return NULL; |
| 1831 |
} |
| 1832 |
return ret; |
| 1833 |
} |
| 1834 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer* envoy_config_bootstrap_v3_RuntimeLayer_parse_ex(const char* buf, size_t size, |
| 1835 |
const upb_ExtensionRegistry* extreg, |
| 1836 |
int options, upb_Arena* arena) { |
| 1837 |
envoy_config_bootstrap_v3_RuntimeLayer* ret = envoy_config_bootstrap_v3_RuntimeLayer_new(arena); |
| 1838 |
if (!ret) return NULL; |
| 1839 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_RuntimeLayer_msginit, extreg, options, arena) != |
| 1840 |
kUpb_DecodeStatus_Ok) { |
| 1841 |
return NULL; |
| 1842 |
} |
| 1843 |
return ret; |
| 1844 |
} |
| 1845 |
UPB_INLINE char* envoy_config_bootstrap_v3_RuntimeLayer_serialize(const envoy_config_bootstrap_v3_RuntimeLayer* msg, upb_Arena* arena, size_t* len) { |
| 1846 |
char* ptr; |
| 1847 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_RuntimeLayer_msginit, 0, arena, &ptr, len); |
| 1848 |
return ptr; |
| 1849 |
} |
| 1850 |
UPB_INLINE char* envoy_config_bootstrap_v3_RuntimeLayer_serialize_ex(const envoy_config_bootstrap_v3_RuntimeLayer* msg, int options, |
| 1851 |
upb_Arena* arena, size_t* len) { |
| 1852 |
char* ptr; |
| 1853 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_RuntimeLayer_msginit, options, arena, &ptr, len); |
| 1854 |
return ptr; |
| 1855 |
} |
| 1856 |
typedef enum { |
| 1857 |
envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_static_layer = 2, |
| 1858 |
envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_disk_layer = 3, |
| 1859 |
envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_admin_layer = 4, |
| 1860 |
envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_rtds_layer = 5, |
| 1861 |
envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_NOT_SET = 0 |
| 1862 |
} envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_oneofcases; |
| 1863 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_oneofcases envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_case(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1864 |
return (envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_oneofcases)*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
| 1865 |
} |
| 1866 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_clear_name(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1867 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1868 |
} |
| 1869 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_RuntimeLayer_name(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1870 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 1871 |
} |
| 1872 |
UPB_INLINE bool envoy_config_bootstrap_v3_RuntimeLayer_has_static_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1873 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 2; |
| 1874 |
} |
| 1875 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_clear_static_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1876 |
UPB_WRITE_ONEOF(msg, struct google_protobuf_Struct*, UPB_SIZE(12, 24), 0, UPB_SIZE(0, 0), envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_NOT_SET); |
| 1877 |
} |
| 1878 |
UPB_INLINE const struct google_protobuf_Struct* envoy_config_bootstrap_v3_RuntimeLayer_static_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1879 |
return UPB_READ_ONEOF(msg, const struct google_protobuf_Struct*, UPB_SIZE(12, 24), UPB_SIZE(0, 0), 2, NULL); |
| 1880 |
} |
| 1881 |
UPB_INLINE bool envoy_config_bootstrap_v3_RuntimeLayer_has_disk_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1882 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 3; |
| 1883 |
} |
| 1884 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_clear_disk_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1885 |
UPB_WRITE_ONEOF(msg, envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer*, UPB_SIZE(12, 24), 0, UPB_SIZE(0, 0), envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_NOT_SET); |
| 1886 |
} |
| 1887 |
UPB_INLINE const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* envoy_config_bootstrap_v3_RuntimeLayer_disk_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1888 |
return UPB_READ_ONEOF(msg, const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer*, UPB_SIZE(12, 24), UPB_SIZE(0, 0), 3, NULL); |
| 1889 |
} |
| 1890 |
UPB_INLINE bool envoy_config_bootstrap_v3_RuntimeLayer_has_admin_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1891 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 4; |
| 1892 |
} |
| 1893 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_clear_admin_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1894 |
UPB_WRITE_ONEOF(msg, envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer*, UPB_SIZE(12, 24), 0, UPB_SIZE(0, 0), envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_NOT_SET); |
| 1895 |
} |
| 1896 |
UPB_INLINE const envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* envoy_config_bootstrap_v3_RuntimeLayer_admin_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1897 |
return UPB_READ_ONEOF(msg, const envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer*, UPB_SIZE(12, 24), UPB_SIZE(0, 0), 4, NULL); |
| 1898 |
} |
| 1899 |
UPB_INLINE bool envoy_config_bootstrap_v3_RuntimeLayer_has_rtds_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1900 |
return _upb_getoneofcase(msg, UPB_SIZE(0, 0)) == 5; |
| 1901 |
} |
| 1902 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_clear_rtds_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1903 |
UPB_WRITE_ONEOF(msg, envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer*, UPB_SIZE(12, 24), 0, UPB_SIZE(0, 0), envoy_config_bootstrap_v3_RuntimeLayer_layer_specifier_NOT_SET); |
| 1904 |
} |
| 1905 |
UPB_INLINE const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* envoy_config_bootstrap_v3_RuntimeLayer_rtds_layer(const envoy_config_bootstrap_v3_RuntimeLayer* msg) { |
| 1906 |
return UPB_READ_ONEOF(msg, const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer*, UPB_SIZE(12, 24), UPB_SIZE(0, 0), 5, NULL); |
| 1907 |
} |
| 1908 |
|
| 1909 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_set_name(envoy_config_bootstrap_v3_RuntimeLayer *msg, upb_StringView value) { |
| 1910 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 1911 |
} |
| 1912 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_set_static_layer(envoy_config_bootstrap_v3_RuntimeLayer *msg, struct google_protobuf_Struct* value) { |
| 1913 |
UPB_WRITE_ONEOF(msg, struct google_protobuf_Struct*, UPB_SIZE(12, 24), value, UPB_SIZE(0, 0), 2); |
| 1914 |
} |
| 1915 |
UPB_INLINE struct google_protobuf_Struct* envoy_config_bootstrap_v3_RuntimeLayer_mutable_static_layer(envoy_config_bootstrap_v3_RuntimeLayer* msg, upb_Arena* arena) { |
| 1916 |
struct google_protobuf_Struct* sub = (struct google_protobuf_Struct*)envoy_config_bootstrap_v3_RuntimeLayer_static_layer(msg); |
| 1917 |
if (sub == NULL) { |
| 1918 |
sub = (struct google_protobuf_Struct*)_upb_Message_New(&google_protobuf_Struct_msginit, arena); |
| 1919 |
if (!sub) return NULL; |
| 1920 |
envoy_config_bootstrap_v3_RuntimeLayer_set_static_layer(msg, sub); |
| 1921 |
} |
| 1922 |
return sub; |
| 1923 |
} |
| 1924 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_set_disk_layer(envoy_config_bootstrap_v3_RuntimeLayer *msg, envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* value) { |
| 1925 |
UPB_WRITE_ONEOF(msg, envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer*, UPB_SIZE(12, 24), value, UPB_SIZE(0, 0), 3); |
| 1926 |
} |
| 1927 |
UPB_INLINE struct envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* envoy_config_bootstrap_v3_RuntimeLayer_mutable_disk_layer(envoy_config_bootstrap_v3_RuntimeLayer* msg, upb_Arena* arena) { |
| 1928 |
struct envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* sub = (struct envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer*)envoy_config_bootstrap_v3_RuntimeLayer_disk_layer(msg); |
| 1929 |
if (sub == NULL) { |
| 1930 |
sub = (struct envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer*)_upb_Message_New(&envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_msginit, arena); |
| 1931 |
if (!sub) return NULL; |
| 1932 |
envoy_config_bootstrap_v3_RuntimeLayer_set_disk_layer(msg, sub); |
| 1933 |
} |
| 1934 |
return sub; |
| 1935 |
} |
| 1936 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_set_admin_layer(envoy_config_bootstrap_v3_RuntimeLayer *msg, envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* value) { |
| 1937 |
UPB_WRITE_ONEOF(msg, envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer*, UPB_SIZE(12, 24), value, UPB_SIZE(0, 0), 4); |
| 1938 |
} |
| 1939 |
UPB_INLINE struct envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* envoy_config_bootstrap_v3_RuntimeLayer_mutable_admin_layer(envoy_config_bootstrap_v3_RuntimeLayer* msg, upb_Arena* arena) { |
| 1940 |
struct envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* sub = (struct envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer*)envoy_config_bootstrap_v3_RuntimeLayer_admin_layer(msg); |
| 1941 |
if (sub == NULL) { |
| 1942 |
sub = (struct envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer*)_upb_Message_New(&envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_msginit, arena); |
| 1943 |
if (!sub) return NULL; |
| 1944 |
envoy_config_bootstrap_v3_RuntimeLayer_set_admin_layer(msg, sub); |
| 1945 |
} |
| 1946 |
return sub; |
| 1947 |
} |
| 1948 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_set_rtds_layer(envoy_config_bootstrap_v3_RuntimeLayer *msg, envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* value) { |
| 1949 |
UPB_WRITE_ONEOF(msg, envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer*, UPB_SIZE(12, 24), value, UPB_SIZE(0, 0), 5); |
| 1950 |
} |
| 1951 |
UPB_INLINE struct envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* envoy_config_bootstrap_v3_RuntimeLayer_mutable_rtds_layer(envoy_config_bootstrap_v3_RuntimeLayer* msg, upb_Arena* arena) { |
| 1952 |
struct envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* sub = (struct envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer*)envoy_config_bootstrap_v3_RuntimeLayer_rtds_layer(msg); |
| 1953 |
if (sub == NULL) { |
| 1954 |
sub = (struct envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer*)_upb_Message_New(&envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_msginit, arena); |
| 1955 |
if (!sub) return NULL; |
| 1956 |
envoy_config_bootstrap_v3_RuntimeLayer_set_rtds_layer(msg, sub); |
| 1957 |
} |
| 1958 |
return sub; |
| 1959 |
} |
| 1960 |
|
| 1961 |
/* envoy.config.bootstrap.v3.RuntimeLayer.DiskLayer */ |
| 1962 |
|
| 1963 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_new(upb_Arena* arena) { |
| 1964 |
return (envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer*)_upb_Message_New(&envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_msginit, arena); |
| 1965 |
} |
| 1966 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 1967 |
envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* ret = envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_new(arena); |
| 1968 |
if (!ret) return NULL; |
| 1969 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 1970 |
return NULL; |
| 1971 |
} |
| 1972 |
return ret; |
| 1973 |
} |
| 1974 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_parse_ex(const char* buf, size_t size, |
| 1975 |
const upb_ExtensionRegistry* extreg, |
| 1976 |
int options, upb_Arena* arena) { |
| 1977 |
envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* ret = envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_new(arena); |
| 1978 |
if (!ret) return NULL; |
| 1979 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_msginit, extreg, options, arena) != |
| 1980 |
kUpb_DecodeStatus_Ok) { |
| 1981 |
return NULL; |
| 1982 |
} |
| 1983 |
return ret; |
| 1984 |
} |
| 1985 |
UPB_INLINE char* envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_serialize(const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* msg, upb_Arena* arena, size_t* len) { |
| 1986 |
char* ptr; |
| 1987 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_msginit, 0, arena, &ptr, len); |
| 1988 |
return ptr; |
| 1989 |
} |
| 1990 |
UPB_INLINE char* envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_serialize_ex(const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* msg, int options, |
| 1991 |
upb_Arena* arena, size_t* len) { |
| 1992 |
char* ptr; |
| 1993 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_msginit, options, arena, &ptr, len); |
| 1994 |
return ptr; |
| 1995 |
} |
| 1996 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_clear_symlink_root(const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* msg) { |
| 1997 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 1998 |
} |
| 1999 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_symlink_root(const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* msg) { |
| 2000 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 2001 |
} |
| 2002 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_clear_append_service_cluster(const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* msg) { |
| 2003 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = 0; |
| 2004 |
} |
| 2005 |
UPB_INLINE bool envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_append_service_cluster(const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* msg) { |
| 2006 |
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool); |
| 2007 |
} |
| 2008 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_clear_subdirectory(const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* msg) { |
| 2009 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 2010 |
} |
| 2011 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_subdirectory(const envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer* msg) { |
| 2012 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView); |
| 2013 |
} |
| 2014 |
|
| 2015 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_set_symlink_root(envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer *msg, upb_StringView value) { |
| 2016 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 2017 |
} |
| 2018 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_set_append_service_cluster(envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer *msg, bool value) { |
| 2019 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), bool) = value; |
| 2020 |
} |
| 2021 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer_set_subdirectory(envoy_config_bootstrap_v3_RuntimeLayer_DiskLayer *msg, upb_StringView value) { |
| 2022 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), upb_StringView) = value; |
| 2023 |
} |
| 2024 |
|
| 2025 |
/* envoy.config.bootstrap.v3.RuntimeLayer.AdminLayer */ |
| 2026 |
|
| 2027 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_new(upb_Arena* arena) { |
| 2028 |
return (envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer*)_upb_Message_New(&envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_msginit, arena); |
| 2029 |
} |
| 2030 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 2031 |
envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* ret = envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_new(arena); |
| 2032 |
if (!ret) return NULL; |
| 2033 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 2034 |
return NULL; |
| 2035 |
} |
| 2036 |
return ret; |
| 2037 |
} |
| 2038 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_parse_ex(const char* buf, size_t size, |
| 2039 |
const upb_ExtensionRegistry* extreg, |
| 2040 |
int options, upb_Arena* arena) { |
| 2041 |
envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* ret = envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_new(arena); |
| 2042 |
if (!ret) return NULL; |
| 2043 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_msginit, extreg, options, arena) != |
| 2044 |
kUpb_DecodeStatus_Ok) { |
| 2045 |
return NULL; |
| 2046 |
} |
| 2047 |
return ret; |
| 2048 |
} |
| 2049 |
UPB_INLINE char* envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_serialize(const envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* msg, upb_Arena* arena, size_t* len) { |
| 2050 |
char* ptr; |
| 2051 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_msginit, 0, arena, &ptr, len); |
| 2052 |
return ptr; |
| 2053 |
} |
| 2054 |
UPB_INLINE char* envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_serialize_ex(const envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer* msg, int options, |
| 2055 |
upb_Arena* arena, size_t* len) { |
| 2056 |
char* ptr; |
| 2057 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_RuntimeLayer_AdminLayer_msginit, options, arena, &ptr, len); |
| 2058 |
return ptr; |
| 2059 |
} |
| 2060 |
|
| 2061 |
|
| 2062 |
/* envoy.config.bootstrap.v3.RuntimeLayer.RtdsLayer */ |
| 2063 |
|
| 2064 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_new(upb_Arena* arena) { |
| 2065 |
return (envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer*)_upb_Message_New(&envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_msginit, arena); |
| 2066 |
} |
| 2067 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 2068 |
envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* ret = envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_new(arena); |
| 2069 |
if (!ret) return NULL; |
| 2070 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 2071 |
return NULL; |
| 2072 |
} |
| 2073 |
return ret; |
| 2074 |
} |
| 2075 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_parse_ex(const char* buf, size_t size, |
| 2076 |
const upb_ExtensionRegistry* extreg, |
| 2077 |
int options, upb_Arena* arena) { |
| 2078 |
envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* ret = envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_new(arena); |
| 2079 |
if (!ret) return NULL; |
| 2080 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_msginit, extreg, options, arena) != |
| 2081 |
kUpb_DecodeStatus_Ok) { |
| 2082 |
return NULL; |
| 2083 |
} |
| 2084 |
return ret; |
| 2085 |
} |
| 2086 |
UPB_INLINE char* envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_serialize(const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* msg, upb_Arena* arena, size_t* len) { |
| 2087 |
char* ptr; |
| 2088 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_msginit, 0, arena, &ptr, len); |
| 2089 |
return ptr; |
| 2090 |
} |
| 2091 |
UPB_INLINE char* envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_serialize_ex(const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* msg, int options, |
| 2092 |
upb_Arena* arena, size_t* len) { |
| 2093 |
char* ptr; |
| 2094 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_msginit, options, arena, &ptr, len); |
| 2095 |
return ptr; |
| 2096 |
} |
| 2097 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_clear_name(const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* msg) { |
| 2098 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 2099 |
} |
| 2100 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_name(const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* msg) { |
| 2101 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 2102 |
} |
| 2103 |
UPB_INLINE bool envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_has_rtds_config(const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* msg) { |
| 2104 |
return _upb_hasbit(msg, 1); |
| 2105 |
} |
| 2106 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_clear_rtds_config(const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* msg) { |
| 2107 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), const upb_Message*) = NULL; |
| 2108 |
} |
| 2109 |
UPB_INLINE const struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_rtds_config(const envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* msg) { |
| 2110 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 24), const struct envoy_config_core_v3_ConfigSource*); |
| 2111 |
} |
| 2112 |
|
| 2113 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_set_name(envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer *msg, upb_StringView value) { |
| 2114 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 2115 |
} |
| 2116 |
UPB_INLINE void envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_set_rtds_config(envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer *msg, struct envoy_config_core_v3_ConfigSource* value) { |
| 2117 |
_upb_sethas(msg, 1); |
| 2118 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 24), struct envoy_config_core_v3_ConfigSource*) = value; |
| 2119 |
} |
| 2120 |
UPB_INLINE struct envoy_config_core_v3_ConfigSource* envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_mutable_rtds_config(envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer* msg, upb_Arena* arena) { |
| 2121 |
struct envoy_config_core_v3_ConfigSource* sub = (struct envoy_config_core_v3_ConfigSource*)envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_rtds_config(msg); |
| 2122 |
if (sub == NULL) { |
| 2123 |
sub = (struct envoy_config_core_v3_ConfigSource*)_upb_Message_New(&envoy_config_core_v3_ConfigSource_msginit, arena); |
| 2124 |
if (!sub) return NULL; |
| 2125 |
envoy_config_bootstrap_v3_RuntimeLayer_RtdsLayer_set_rtds_config(msg, sub); |
| 2126 |
} |
| 2127 |
return sub; |
| 2128 |
} |
| 2129 |
|
| 2130 |
/* envoy.config.bootstrap.v3.LayeredRuntime */ |
| 2131 |
|
| 2132 |
UPB_INLINE envoy_config_bootstrap_v3_LayeredRuntime* envoy_config_bootstrap_v3_LayeredRuntime_new(upb_Arena* arena) { |
| 2133 |
return (envoy_config_bootstrap_v3_LayeredRuntime*)_upb_Message_New(&envoy_config_bootstrap_v3_LayeredRuntime_msginit, arena); |
| 2134 |
} |
| 2135 |
UPB_INLINE envoy_config_bootstrap_v3_LayeredRuntime* envoy_config_bootstrap_v3_LayeredRuntime_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 2136 |
envoy_config_bootstrap_v3_LayeredRuntime* ret = envoy_config_bootstrap_v3_LayeredRuntime_new(arena); |
| 2137 |
if (!ret) return NULL; |
| 2138 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_LayeredRuntime_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 2139 |
return NULL; |
| 2140 |
} |
| 2141 |
return ret; |
| 2142 |
} |
| 2143 |
UPB_INLINE envoy_config_bootstrap_v3_LayeredRuntime* envoy_config_bootstrap_v3_LayeredRuntime_parse_ex(const char* buf, size_t size, |
| 2144 |
const upb_ExtensionRegistry* extreg, |
| 2145 |
int options, upb_Arena* arena) { |
| 2146 |
envoy_config_bootstrap_v3_LayeredRuntime* ret = envoy_config_bootstrap_v3_LayeredRuntime_new(arena); |
| 2147 |
if (!ret) return NULL; |
| 2148 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_LayeredRuntime_msginit, extreg, options, arena) != |
| 2149 |
kUpb_DecodeStatus_Ok) { |
| 2150 |
return NULL; |
| 2151 |
} |
| 2152 |
return ret; |
| 2153 |
} |
| 2154 |
UPB_INLINE char* envoy_config_bootstrap_v3_LayeredRuntime_serialize(const envoy_config_bootstrap_v3_LayeredRuntime* msg, upb_Arena* arena, size_t* len) { |
| 2155 |
char* ptr; |
| 2156 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_LayeredRuntime_msginit, 0, arena, &ptr, len); |
| 2157 |
return ptr; |
| 2158 |
} |
| 2159 |
UPB_INLINE char* envoy_config_bootstrap_v3_LayeredRuntime_serialize_ex(const envoy_config_bootstrap_v3_LayeredRuntime* msg, int options, |
| 2160 |
upb_Arena* arena, size_t* len) { |
| 2161 |
char* ptr; |
| 2162 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_LayeredRuntime_msginit, options, arena, &ptr, len); |
| 2163 |
return ptr; |
| 2164 |
} |
| 2165 |
UPB_INLINE bool envoy_config_bootstrap_v3_LayeredRuntime_has_layers(const envoy_config_bootstrap_v3_LayeredRuntime* msg) { |
| 2166 |
return _upb_has_submsg_nohasbit(msg, UPB_SIZE(0, 0)); |
| 2167 |
} |
| 2168 |
UPB_INLINE void envoy_config_bootstrap_v3_LayeredRuntime_clear_layers(const envoy_config_bootstrap_v3_LayeredRuntime* msg) { |
| 2169 |
_upb_array_detach(msg, UPB_SIZE(0, 0)); |
| 2170 |
} |
| 2171 |
UPB_INLINE const envoy_config_bootstrap_v3_RuntimeLayer* const* envoy_config_bootstrap_v3_LayeredRuntime_layers(const envoy_config_bootstrap_v3_LayeredRuntime* msg, size_t* len) { |
| 2172 |
return (const envoy_config_bootstrap_v3_RuntimeLayer* const*)_upb_array_accessor(msg, UPB_SIZE(0, 0), len); |
| 2173 |
} |
| 2174 |
|
| 2175 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer** envoy_config_bootstrap_v3_LayeredRuntime_mutable_layers(envoy_config_bootstrap_v3_LayeredRuntime* msg, size_t* len) { |
| 2176 |
return (envoy_config_bootstrap_v3_RuntimeLayer**)_upb_array_mutable_accessor(msg, UPB_SIZE(0, 0), len); |
| 2177 |
} |
| 2178 |
UPB_INLINE envoy_config_bootstrap_v3_RuntimeLayer** envoy_config_bootstrap_v3_LayeredRuntime_resize_layers(envoy_config_bootstrap_v3_LayeredRuntime* msg, size_t len, upb_Arena* arena) { |
| 2179 |
return (envoy_config_bootstrap_v3_RuntimeLayer**)_upb_Array_Resize_accessor2(msg, UPB_SIZE(0, 0), len, UPB_SIZE(2, 3), arena); |
| 2180 |
} |
| 2181 |
UPB_INLINE struct envoy_config_bootstrap_v3_RuntimeLayer* envoy_config_bootstrap_v3_LayeredRuntime_add_layers(envoy_config_bootstrap_v3_LayeredRuntime* msg, upb_Arena* arena) { |
| 2182 |
struct envoy_config_bootstrap_v3_RuntimeLayer* sub = (struct envoy_config_bootstrap_v3_RuntimeLayer*)_upb_Message_New(&envoy_config_bootstrap_v3_RuntimeLayer_msginit, arena); |
| 2183 |
bool ok = _upb_Array_Append_accessor2(msg, UPB_SIZE(0, 0), UPB_SIZE(2, 3), &sub, arena); |
| 2184 |
if (!ok) return NULL; |
| 2185 |
return sub; |
| 2186 |
} |
| 2187 |
|
| 2188 |
/* envoy.config.bootstrap.v3.CustomInlineHeader */ |
| 2189 |
|
| 2190 |
UPB_INLINE envoy_config_bootstrap_v3_CustomInlineHeader* envoy_config_bootstrap_v3_CustomInlineHeader_new(upb_Arena* arena) { |
| 2191 |
return (envoy_config_bootstrap_v3_CustomInlineHeader*)_upb_Message_New(&envoy_config_bootstrap_v3_CustomInlineHeader_msginit, arena); |
| 2192 |
} |
| 2193 |
UPB_INLINE envoy_config_bootstrap_v3_CustomInlineHeader* envoy_config_bootstrap_v3_CustomInlineHeader_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 2194 |
envoy_config_bootstrap_v3_CustomInlineHeader* ret = envoy_config_bootstrap_v3_CustomInlineHeader_new(arena); |
| 2195 |
if (!ret) return NULL; |
| 2196 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_CustomInlineHeader_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 2197 |
return NULL; |
| 2198 |
} |
| 2199 |
return ret; |
| 2200 |
} |
| 2201 |
UPB_INLINE envoy_config_bootstrap_v3_CustomInlineHeader* envoy_config_bootstrap_v3_CustomInlineHeader_parse_ex(const char* buf, size_t size, |
| 2202 |
const upb_ExtensionRegistry* extreg, |
| 2203 |
int options, upb_Arena* arena) { |
| 2204 |
envoy_config_bootstrap_v3_CustomInlineHeader* ret = envoy_config_bootstrap_v3_CustomInlineHeader_new(arena); |
| 2205 |
if (!ret) return NULL; |
| 2206 |
if (upb_Decode(buf, size, ret, &envoy_config_bootstrap_v3_CustomInlineHeader_msginit, extreg, options, arena) != |
| 2207 |
kUpb_DecodeStatus_Ok) { |
| 2208 |
return NULL; |
| 2209 |
} |
| 2210 |
return ret; |
| 2211 |
} |
| 2212 |
UPB_INLINE char* envoy_config_bootstrap_v3_CustomInlineHeader_serialize(const envoy_config_bootstrap_v3_CustomInlineHeader* msg, upb_Arena* arena, size_t* len) { |
| 2213 |
char* ptr; |
| 2214 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_CustomInlineHeader_msginit, 0, arena, &ptr, len); |
| 2215 |
return ptr; |
| 2216 |
} |
| 2217 |
UPB_INLINE char* envoy_config_bootstrap_v3_CustomInlineHeader_serialize_ex(const envoy_config_bootstrap_v3_CustomInlineHeader* msg, int options, |
| 2218 |
upb_Arena* arena, size_t* len) { |
| 2219 |
char* ptr; |
| 2220 |
(void)upb_Encode(msg, &envoy_config_bootstrap_v3_CustomInlineHeader_msginit, options, arena, &ptr, len); |
| 2221 |
return ptr; |
| 2222 |
} |
| 2223 |
UPB_INLINE void envoy_config_bootstrap_v3_CustomInlineHeader_clear_inline_header_name(const envoy_config_bootstrap_v3_CustomInlineHeader* msg) { |
| 2224 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 2225 |
} |
| 2226 |
UPB_INLINE upb_StringView envoy_config_bootstrap_v3_CustomInlineHeader_inline_header_name(const envoy_config_bootstrap_v3_CustomInlineHeader* msg) { |
| 2227 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView); |
| 2228 |
} |
| 2229 |
UPB_INLINE void envoy_config_bootstrap_v3_CustomInlineHeader_clear_inline_header_type(const envoy_config_bootstrap_v3_CustomInlineHeader* msg) { |
| 2230 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = 0; |
| 2231 |
} |
| 2232 |
UPB_INLINE int32_t envoy_config_bootstrap_v3_CustomInlineHeader_inline_header_type(const envoy_config_bootstrap_v3_CustomInlineHeader* msg) { |
| 2233 |
return *UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t); |
| 2234 |
} |
| 2235 |
|
| 2236 |
UPB_INLINE void envoy_config_bootstrap_v3_CustomInlineHeader_set_inline_header_name(envoy_config_bootstrap_v3_CustomInlineHeader *msg, upb_StringView value) { |
| 2237 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 8), upb_StringView) = value; |
| 2238 |
} |
| 2239 |
UPB_INLINE void envoy_config_bootstrap_v3_CustomInlineHeader_set_inline_header_type(envoy_config_bootstrap_v3_CustomInlineHeader *msg, int32_t value) { |
| 2240 |
*UPB_PTR_AT(msg, UPB_SIZE(0, 0), int32_t) = value; |
| 2241 |
} |
| 2242 |
|
| 2243 |
extern const upb_MiniTable_File envoy_config_bootstrap_v3_bootstrap_proto_upb_file_layout; |
| 2244 |
|
| 2245 |
#ifdef __cplusplus |
| 2246 |
} /* extern "C" */ |
| 2247 |
#endif |
| 2248 |
|
| 2249 |
#include "upb/port_undef.inc" |
| 2250 |
|
| 2251 |
#endif /* ENVOY_CONFIG_BOOTSTRAP_V3_BOOTSTRAP_PROTO_UPB_H_ */ |