| 1 |
/* This file was generated by upbc (the upb compiler) from the input |
| 2 |
* file: |
| 3 |
* |
| 4 |
* envoy/admin/v3/server_info.proto |
| 5 |
* |
| 6 |
* Do not edit -- your changes will be discarded when the file is |
| 7 |
* regenerated. */ |
| 8 |
|
| 9 |
#ifndef ENVOY_ADMIN_V3_SERVER_INFO_PROTO_UPB_H_ |
| 10 |
#define ENVOY_ADMIN_V3_SERVER_INFO_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_admin_v3_ServerInfo; |
| 24 |
struct envoy_admin_v3_CommandLineOptions; |
| 25 |
typedef struct envoy_admin_v3_ServerInfo envoy_admin_v3_ServerInfo; |
| 26 |
typedef struct envoy_admin_v3_CommandLineOptions envoy_admin_v3_CommandLineOptions; |
| 27 |
extern const upb_MiniTable envoy_admin_v3_ServerInfo_msginit; |
| 28 |
extern const upb_MiniTable envoy_admin_v3_CommandLineOptions_msginit; |
| 29 |
struct envoy_config_core_v3_Node; |
| 30 |
struct google_protobuf_Duration; |
| 31 |
extern const upb_MiniTable envoy_config_core_v3_Node_msginit; |
| 32 |
extern const upb_MiniTable google_protobuf_Duration_msginit; |
| 33 |
|
| 34 |
typedef enum { |
| 35 |
envoy_admin_v3_CommandLineOptions_Gradual = 0, |
| 36 |
envoy_admin_v3_CommandLineOptions_Immediate = 1 |
| 37 |
} envoy_admin_v3_CommandLineOptions_DrainStrategy; |
| 38 |
|
| 39 |
typedef enum { |
| 40 |
envoy_admin_v3_CommandLineOptions_v4 = 0, |
| 41 |
envoy_admin_v3_CommandLineOptions_v6 = 1 |
| 42 |
} envoy_admin_v3_CommandLineOptions_IpVersion; |
| 43 |
|
| 44 |
typedef enum { |
| 45 |
envoy_admin_v3_CommandLineOptions_Serve = 0, |
| 46 |
envoy_admin_v3_CommandLineOptions_Validate = 1, |
| 47 |
envoy_admin_v3_CommandLineOptions_InitOnly = 2 |
| 48 |
} envoy_admin_v3_CommandLineOptions_Mode; |
| 49 |
|
| 50 |
typedef enum { |
| 51 |
envoy_admin_v3_ServerInfo_LIVE = 0, |
| 52 |
envoy_admin_v3_ServerInfo_DRAINING = 1, |
| 53 |
envoy_admin_v3_ServerInfo_PRE_INITIALIZING = 2, |
| 54 |
envoy_admin_v3_ServerInfo_INITIALIZING = 3 |
| 55 |
} envoy_admin_v3_ServerInfo_State; |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
/* envoy.admin.v3.ServerInfo */ |
| 60 |
|
| 61 |
UPB_INLINE envoy_admin_v3_ServerInfo* envoy_admin_v3_ServerInfo_new(upb_Arena* arena) { |
| 62 |
return (envoy_admin_v3_ServerInfo*)_upb_Message_New(&envoy_admin_v3_ServerInfo_msginit, arena); |
| 63 |
} |
| 64 |
UPB_INLINE envoy_admin_v3_ServerInfo* envoy_admin_v3_ServerInfo_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 65 |
envoy_admin_v3_ServerInfo* ret = envoy_admin_v3_ServerInfo_new(arena); |
| 66 |
if (!ret) return NULL; |
| 67 |
if (upb_Decode(buf, size, ret, &envoy_admin_v3_ServerInfo_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 68 |
return NULL; |
| 69 |
} |
| 70 |
return ret; |
| 71 |
} |
| 72 |
UPB_INLINE envoy_admin_v3_ServerInfo* envoy_admin_v3_ServerInfo_parse_ex(const char* buf, size_t size, |
| 73 |
const upb_ExtensionRegistry* extreg, |
| 74 |
int options, upb_Arena* arena) { |
| 75 |
envoy_admin_v3_ServerInfo* ret = envoy_admin_v3_ServerInfo_new(arena); |
| 76 |
if (!ret) return NULL; |
| 77 |
if (upb_Decode(buf, size, ret, &envoy_admin_v3_ServerInfo_msginit, extreg, options, arena) != |
| 78 |
kUpb_DecodeStatus_Ok) { |
| 79 |
return NULL; |
| 80 |
} |
| 81 |
return ret; |
| 82 |
} |
| 83 |
UPB_INLINE char* envoy_admin_v3_ServerInfo_serialize(const envoy_admin_v3_ServerInfo* msg, upb_Arena* arena, size_t* len) { |
| 84 |
char* ptr; |
| 85 |
(void)upb_Encode(msg, &envoy_admin_v3_ServerInfo_msginit, 0, arena, &ptr, len); |
| 86 |
return ptr; |
| 87 |
} |
| 88 |
UPB_INLINE char* envoy_admin_v3_ServerInfo_serialize_ex(const envoy_admin_v3_ServerInfo* msg, int options, |
| 89 |
upb_Arena* arena, size_t* len) { |
| 90 |
char* ptr; |
| 91 |
(void)upb_Encode(msg, &envoy_admin_v3_ServerInfo_msginit, options, arena, &ptr, len); |
| 92 |
return ptr; |
| 93 |
} |
| 94 |
UPB_INLINE void envoy_admin_v3_ServerInfo_clear_version(const envoy_admin_v3_ServerInfo* msg) { |
| 95 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 96 |
} |
| 97 |
UPB_INLINE upb_StringView envoy_admin_v3_ServerInfo_version(const envoy_admin_v3_ServerInfo* msg) { |
| 98 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_StringView); |
| 99 |
} |
| 100 |
UPB_INLINE void envoy_admin_v3_ServerInfo_clear_state(const envoy_admin_v3_ServerInfo* msg) { |
| 101 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = 0; |
| 102 |
} |
| 103 |
UPB_INLINE int32_t envoy_admin_v3_ServerInfo_state(const envoy_admin_v3_ServerInfo* msg) { |
| 104 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t); |
| 105 |
} |
| 106 |
UPB_INLINE bool envoy_admin_v3_ServerInfo_has_uptime_current_epoch(const envoy_admin_v3_ServerInfo* msg) { |
| 107 |
return _upb_hasbit(msg, 1); |
| 108 |
} |
| 109 |
UPB_INLINE void envoy_admin_v3_ServerInfo_clear_uptime_current_epoch(const envoy_admin_v3_ServerInfo* msg) { |
| 110 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), const upb_Message*) = NULL; |
| 111 |
} |
| 112 |
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_ServerInfo_uptime_current_epoch(const envoy_admin_v3_ServerInfo* msg) { |
| 113 |
return *UPB_PTR_AT(msg, UPB_SIZE(16, 24), const struct google_protobuf_Duration*); |
| 114 |
} |
| 115 |
UPB_INLINE bool envoy_admin_v3_ServerInfo_has_uptime_all_epochs(const envoy_admin_v3_ServerInfo* msg) { |
| 116 |
return _upb_hasbit(msg, 2); |
| 117 |
} |
| 118 |
UPB_INLINE void envoy_admin_v3_ServerInfo_clear_uptime_all_epochs(const envoy_admin_v3_ServerInfo* msg) { |
| 119 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 32), const upb_Message*) = NULL; |
| 120 |
} |
| 121 |
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_ServerInfo_uptime_all_epochs(const envoy_admin_v3_ServerInfo* msg) { |
| 122 |
return *UPB_PTR_AT(msg, UPB_SIZE(20, 32), const struct google_protobuf_Duration*); |
| 123 |
} |
| 124 |
UPB_INLINE void envoy_admin_v3_ServerInfo_clear_hot_restart_version(const envoy_admin_v3_ServerInfo* msg) { |
| 125 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 126 |
} |
| 127 |
UPB_INLINE upb_StringView envoy_admin_v3_ServerInfo_hot_restart_version(const envoy_admin_v3_ServerInfo* msg) { |
| 128 |
return *UPB_PTR_AT(msg, UPB_SIZE(24, 40), upb_StringView); |
| 129 |
} |
| 130 |
UPB_INLINE bool envoy_admin_v3_ServerInfo_has_command_line_options(const envoy_admin_v3_ServerInfo* msg) { |
| 131 |
return _upb_hasbit(msg, 3); |
| 132 |
} |
| 133 |
UPB_INLINE void envoy_admin_v3_ServerInfo_clear_command_line_options(const envoy_admin_v3_ServerInfo* msg) { |
| 134 |
*UPB_PTR_AT(msg, UPB_SIZE(32, 56), const upb_Message*) = NULL; |
| 135 |
} |
| 136 |
UPB_INLINE const envoy_admin_v3_CommandLineOptions* envoy_admin_v3_ServerInfo_command_line_options(const envoy_admin_v3_ServerInfo* msg) { |
| 137 |
return *UPB_PTR_AT(msg, UPB_SIZE(32, 56), const envoy_admin_v3_CommandLineOptions*); |
| 138 |
} |
| 139 |
UPB_INLINE bool envoy_admin_v3_ServerInfo_has_node(const envoy_admin_v3_ServerInfo* msg) { |
| 140 |
return _upb_hasbit(msg, 4); |
| 141 |
} |
| 142 |
UPB_INLINE void envoy_admin_v3_ServerInfo_clear_node(const envoy_admin_v3_ServerInfo* msg) { |
| 143 |
*UPB_PTR_AT(msg, UPB_SIZE(36, 64), const upb_Message*) = NULL; |
| 144 |
} |
| 145 |
UPB_INLINE const struct envoy_config_core_v3_Node* envoy_admin_v3_ServerInfo_node(const envoy_admin_v3_ServerInfo* msg) { |
| 146 |
return *UPB_PTR_AT(msg, UPB_SIZE(36, 64), const struct envoy_config_core_v3_Node*); |
| 147 |
} |
| 148 |
|
| 149 |
UPB_INLINE void envoy_admin_v3_ServerInfo_set_version(envoy_admin_v3_ServerInfo *msg, upb_StringView value) { |
| 150 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_StringView) = value; |
| 151 |
} |
| 152 |
UPB_INLINE void envoy_admin_v3_ServerInfo_set_state(envoy_admin_v3_ServerInfo *msg, int32_t value) { |
| 153 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value; |
| 154 |
} |
| 155 |
UPB_INLINE void envoy_admin_v3_ServerInfo_set_uptime_current_epoch(envoy_admin_v3_ServerInfo *msg, struct google_protobuf_Duration* value) { |
| 156 |
_upb_sethas(msg, 1); |
| 157 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 24), struct google_protobuf_Duration*) = value; |
| 158 |
} |
| 159 |
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_ServerInfo_mutable_uptime_current_epoch(envoy_admin_v3_ServerInfo* msg, upb_Arena* arena) { |
| 160 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_ServerInfo_uptime_current_epoch(msg); |
| 161 |
if (sub == NULL) { |
| 162 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 163 |
if (!sub) return NULL; |
| 164 |
envoy_admin_v3_ServerInfo_set_uptime_current_epoch(msg, sub); |
| 165 |
} |
| 166 |
return sub; |
| 167 |
} |
| 168 |
UPB_INLINE void envoy_admin_v3_ServerInfo_set_uptime_all_epochs(envoy_admin_v3_ServerInfo *msg, struct google_protobuf_Duration* value) { |
| 169 |
_upb_sethas(msg, 2); |
| 170 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 32), struct google_protobuf_Duration*) = value; |
| 171 |
} |
| 172 |
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_ServerInfo_mutable_uptime_all_epochs(envoy_admin_v3_ServerInfo* msg, upb_Arena* arena) { |
| 173 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_ServerInfo_uptime_all_epochs(msg); |
| 174 |
if (sub == NULL) { |
| 175 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 176 |
if (!sub) return NULL; |
| 177 |
envoy_admin_v3_ServerInfo_set_uptime_all_epochs(msg, sub); |
| 178 |
} |
| 179 |
return sub; |
| 180 |
} |
| 181 |
UPB_INLINE void envoy_admin_v3_ServerInfo_set_hot_restart_version(envoy_admin_v3_ServerInfo *msg, upb_StringView value) { |
| 182 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 40), upb_StringView) = value; |
| 183 |
} |
| 184 |
UPB_INLINE void envoy_admin_v3_ServerInfo_set_command_line_options(envoy_admin_v3_ServerInfo *msg, envoy_admin_v3_CommandLineOptions* value) { |
| 185 |
_upb_sethas(msg, 3); |
| 186 |
*UPB_PTR_AT(msg, UPB_SIZE(32, 56), envoy_admin_v3_CommandLineOptions*) = value; |
| 187 |
} |
| 188 |
UPB_INLINE struct envoy_admin_v3_CommandLineOptions* envoy_admin_v3_ServerInfo_mutable_command_line_options(envoy_admin_v3_ServerInfo* msg, upb_Arena* arena) { |
| 189 |
struct envoy_admin_v3_CommandLineOptions* sub = (struct envoy_admin_v3_CommandLineOptions*)envoy_admin_v3_ServerInfo_command_line_options(msg); |
| 190 |
if (sub == NULL) { |
| 191 |
sub = (struct envoy_admin_v3_CommandLineOptions*)_upb_Message_New(&envoy_admin_v3_CommandLineOptions_msginit, arena); |
| 192 |
if (!sub) return NULL; |
| 193 |
envoy_admin_v3_ServerInfo_set_command_line_options(msg, sub); |
| 194 |
} |
| 195 |
return sub; |
| 196 |
} |
| 197 |
UPB_INLINE void envoy_admin_v3_ServerInfo_set_node(envoy_admin_v3_ServerInfo *msg, struct envoy_config_core_v3_Node* value) { |
| 198 |
_upb_sethas(msg, 4); |
| 199 |
*UPB_PTR_AT(msg, UPB_SIZE(36, 64), struct envoy_config_core_v3_Node*) = value; |
| 200 |
} |
| 201 |
UPB_INLINE struct envoy_config_core_v3_Node* envoy_admin_v3_ServerInfo_mutable_node(envoy_admin_v3_ServerInfo* msg, upb_Arena* arena) { |
| 202 |
struct envoy_config_core_v3_Node* sub = (struct envoy_config_core_v3_Node*)envoy_admin_v3_ServerInfo_node(msg); |
| 203 |
if (sub == NULL) { |
| 204 |
sub = (struct envoy_config_core_v3_Node*)_upb_Message_New(&envoy_config_core_v3_Node_msginit, arena); |
| 205 |
if (!sub) return NULL; |
| 206 |
envoy_admin_v3_ServerInfo_set_node(msg, sub); |
| 207 |
} |
| 208 |
return sub; |
| 209 |
} |
| 210 |
|
| 211 |
/* envoy.admin.v3.CommandLineOptions */ |
| 212 |
|
| 213 |
UPB_INLINE envoy_admin_v3_CommandLineOptions* envoy_admin_v3_CommandLineOptions_new(upb_Arena* arena) { |
| 214 |
return (envoy_admin_v3_CommandLineOptions*)_upb_Message_New(&envoy_admin_v3_CommandLineOptions_msginit, arena); |
| 215 |
} |
| 216 |
UPB_INLINE envoy_admin_v3_CommandLineOptions* envoy_admin_v3_CommandLineOptions_parse(const char* buf, size_t size, upb_Arena* arena) { |
| 217 |
envoy_admin_v3_CommandLineOptions* ret = envoy_admin_v3_CommandLineOptions_new(arena); |
| 218 |
if (!ret) return NULL; |
| 219 |
if (upb_Decode(buf, size, ret, &envoy_admin_v3_CommandLineOptions_msginit, NULL, 0, arena) != kUpb_DecodeStatus_Ok) { |
| 220 |
return NULL; |
| 221 |
} |
| 222 |
return ret; |
| 223 |
} |
| 224 |
UPB_INLINE envoy_admin_v3_CommandLineOptions* envoy_admin_v3_CommandLineOptions_parse_ex(const char* buf, size_t size, |
| 225 |
const upb_ExtensionRegistry* extreg, |
| 226 |
int options, upb_Arena* arena) { |
| 227 |
envoy_admin_v3_CommandLineOptions* ret = envoy_admin_v3_CommandLineOptions_new(arena); |
| 228 |
if (!ret) return NULL; |
| 229 |
if (upb_Decode(buf, size, ret, &envoy_admin_v3_CommandLineOptions_msginit, extreg, options, arena) != |
| 230 |
kUpb_DecodeStatus_Ok) { |
| 231 |
return NULL; |
| 232 |
} |
| 233 |
return ret; |
| 234 |
} |
| 235 |
UPB_INLINE char* envoy_admin_v3_CommandLineOptions_serialize(const envoy_admin_v3_CommandLineOptions* msg, upb_Arena* arena, size_t* len) { |
| 236 |
char* ptr; |
| 237 |
(void)upb_Encode(msg, &envoy_admin_v3_CommandLineOptions_msginit, 0, arena, &ptr, len); |
| 238 |
return ptr; |
| 239 |
} |
| 240 |
UPB_INLINE char* envoy_admin_v3_CommandLineOptions_serialize_ex(const envoy_admin_v3_CommandLineOptions* msg, int options, |
| 241 |
upb_Arena* arena, size_t* len) { |
| 242 |
char* ptr; |
| 243 |
(void)upb_Encode(msg, &envoy_admin_v3_CommandLineOptions_msginit, options, arena, &ptr, len); |
| 244 |
return ptr; |
| 245 |
} |
| 246 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_base_id(const envoy_admin_v3_CommandLineOptions* msg) { |
| 247 |
*UPB_PTR_AT(msg, UPB_SIZE(168, 288), uint64_t) = 0; |
| 248 |
} |
| 249 |
UPB_INLINE uint64_t envoy_admin_v3_CommandLineOptions_base_id(const envoy_admin_v3_CommandLineOptions* msg) { |
| 250 |
return *UPB_PTR_AT(msg, UPB_SIZE(168, 288), uint64_t); |
| 251 |
} |
| 252 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_concurrency(const envoy_admin_v3_CommandLineOptions* msg) { |
| 253 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = 0; |
| 254 |
} |
| 255 |
UPB_INLINE uint32_t envoy_admin_v3_CommandLineOptions_concurrency(const envoy_admin_v3_CommandLineOptions* msg) { |
| 256 |
return *UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t); |
| 257 |
} |
| 258 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_config_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 259 |
*UPB_PTR_AT(msg, UPB_SIZE(52, 56), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 260 |
} |
| 261 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_config_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 262 |
return *UPB_PTR_AT(msg, UPB_SIZE(52, 56), upb_StringView); |
| 263 |
} |
| 264 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_config_yaml(const envoy_admin_v3_CommandLineOptions* msg) { |
| 265 |
*UPB_PTR_AT(msg, UPB_SIZE(60, 72), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 266 |
} |
| 267 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_config_yaml(const envoy_admin_v3_CommandLineOptions* msg) { |
| 268 |
return *UPB_PTR_AT(msg, UPB_SIZE(60, 72), upb_StringView); |
| 269 |
} |
| 270 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_allow_unknown_static_fields(const envoy_admin_v3_CommandLineOptions* msg) { |
| 271 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = 0; |
| 272 |
} |
| 273 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_allow_unknown_static_fields(const envoy_admin_v3_CommandLineOptions* msg) { |
| 274 |
return *UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool); |
| 275 |
} |
| 276 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_admin_address_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 277 |
*UPB_PTR_AT(msg, UPB_SIZE(68, 88), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 278 |
} |
| 279 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_admin_address_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 280 |
return *UPB_PTR_AT(msg, UPB_SIZE(68, 88), upb_StringView); |
| 281 |
} |
| 282 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_local_address_ip_version(const envoy_admin_v3_CommandLineOptions* msg) { |
| 283 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t) = 0; |
| 284 |
} |
| 285 |
UPB_INLINE int32_t envoy_admin_v3_CommandLineOptions_local_address_ip_version(const envoy_admin_v3_CommandLineOptions* msg) { |
| 286 |
return *UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t); |
| 287 |
} |
| 288 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_log_level(const envoy_admin_v3_CommandLineOptions* msg) { |
| 289 |
*UPB_PTR_AT(msg, UPB_SIZE(76, 104), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 290 |
} |
| 291 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_log_level(const envoy_admin_v3_CommandLineOptions* msg) { |
| 292 |
return *UPB_PTR_AT(msg, UPB_SIZE(76, 104), upb_StringView); |
| 293 |
} |
| 294 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_component_log_level(const envoy_admin_v3_CommandLineOptions* msg) { |
| 295 |
*UPB_PTR_AT(msg, UPB_SIZE(84, 120), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 296 |
} |
| 297 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_component_log_level(const envoy_admin_v3_CommandLineOptions* msg) { |
| 298 |
return *UPB_PTR_AT(msg, UPB_SIZE(84, 120), upb_StringView); |
| 299 |
} |
| 300 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_log_format(const envoy_admin_v3_CommandLineOptions* msg) { |
| 301 |
*UPB_PTR_AT(msg, UPB_SIZE(92, 136), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 302 |
} |
| 303 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_log_format(const envoy_admin_v3_CommandLineOptions* msg) { |
| 304 |
return *UPB_PTR_AT(msg, UPB_SIZE(92, 136), upb_StringView); |
| 305 |
} |
| 306 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_log_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 307 |
*UPB_PTR_AT(msg, UPB_SIZE(100, 152), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 308 |
} |
| 309 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_log_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 310 |
return *UPB_PTR_AT(msg, UPB_SIZE(100, 152), upb_StringView); |
| 311 |
} |
| 312 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_service_cluster(const envoy_admin_v3_CommandLineOptions* msg) { |
| 313 |
*UPB_PTR_AT(msg, UPB_SIZE(108, 168), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 314 |
} |
| 315 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_service_cluster(const envoy_admin_v3_CommandLineOptions* msg) { |
| 316 |
return *UPB_PTR_AT(msg, UPB_SIZE(108, 168), upb_StringView); |
| 317 |
} |
| 318 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_service_node(const envoy_admin_v3_CommandLineOptions* msg) { |
| 319 |
*UPB_PTR_AT(msg, UPB_SIZE(116, 184), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 320 |
} |
| 321 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_service_node(const envoy_admin_v3_CommandLineOptions* msg) { |
| 322 |
return *UPB_PTR_AT(msg, UPB_SIZE(116, 184), upb_StringView); |
| 323 |
} |
| 324 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_service_zone(const envoy_admin_v3_CommandLineOptions* msg) { |
| 325 |
*UPB_PTR_AT(msg, UPB_SIZE(124, 200), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 326 |
} |
| 327 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_service_zone(const envoy_admin_v3_CommandLineOptions* msg) { |
| 328 |
return *UPB_PTR_AT(msg, UPB_SIZE(124, 200), upb_StringView); |
| 329 |
} |
| 330 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_has_file_flush_interval(const envoy_admin_v3_CommandLineOptions* msg) { |
| 331 |
return _upb_hasbit(msg, 1); |
| 332 |
} |
| 333 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_file_flush_interval(const envoy_admin_v3_CommandLineOptions* msg) { |
| 334 |
*UPB_PTR_AT(msg, UPB_SIZE(132, 216), const upb_Message*) = NULL; |
| 335 |
} |
| 336 |
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_file_flush_interval(const envoy_admin_v3_CommandLineOptions* msg) { |
| 337 |
return *UPB_PTR_AT(msg, UPB_SIZE(132, 216), const struct google_protobuf_Duration*); |
| 338 |
} |
| 339 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_has_drain_time(const envoy_admin_v3_CommandLineOptions* msg) { |
| 340 |
return _upb_hasbit(msg, 2); |
| 341 |
} |
| 342 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_drain_time(const envoy_admin_v3_CommandLineOptions* msg) { |
| 343 |
*UPB_PTR_AT(msg, UPB_SIZE(136, 224), const upb_Message*) = NULL; |
| 344 |
} |
| 345 |
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_drain_time(const envoy_admin_v3_CommandLineOptions* msg) { |
| 346 |
return *UPB_PTR_AT(msg, UPB_SIZE(136, 224), const struct google_protobuf_Duration*); |
| 347 |
} |
| 348 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_has_parent_shutdown_time(const envoy_admin_v3_CommandLineOptions* msg) { |
| 349 |
return _upb_hasbit(msg, 3); |
| 350 |
} |
| 351 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_parent_shutdown_time(const envoy_admin_v3_CommandLineOptions* msg) { |
| 352 |
*UPB_PTR_AT(msg, UPB_SIZE(140, 232), const upb_Message*) = NULL; |
| 353 |
} |
| 354 |
UPB_INLINE const struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_parent_shutdown_time(const envoy_admin_v3_CommandLineOptions* msg) { |
| 355 |
return *UPB_PTR_AT(msg, UPB_SIZE(140, 232), const struct google_protobuf_Duration*); |
| 356 |
} |
| 357 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_mode(const envoy_admin_v3_CommandLineOptions* msg) { |
| 358 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = 0; |
| 359 |
} |
| 360 |
UPB_INLINE int32_t envoy_admin_v3_CommandLineOptions_mode(const envoy_admin_v3_CommandLineOptions* msg) { |
| 361 |
return *UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t); |
| 362 |
} |
| 363 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_disable_hot_restart(const envoy_admin_v3_CommandLineOptions* msg) { |
| 364 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), bool) = 0; |
| 365 |
} |
| 366 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_disable_hot_restart(const envoy_admin_v3_CommandLineOptions* msg) { |
| 367 |
return *UPB_PTR_AT(msg, UPB_SIZE(20, 20), bool); |
| 368 |
} |
| 369 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_enable_mutex_tracing(const envoy_admin_v3_CommandLineOptions* msg) { |
| 370 |
*UPB_PTR_AT(msg, UPB_SIZE(21, 21), bool) = 0; |
| 371 |
} |
| 372 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_enable_mutex_tracing(const envoy_admin_v3_CommandLineOptions* msg) { |
| 373 |
return *UPB_PTR_AT(msg, UPB_SIZE(21, 21), bool); |
| 374 |
} |
| 375 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_restart_epoch(const envoy_admin_v3_CommandLineOptions* msg) { |
| 376 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint32_t) = 0; |
| 377 |
} |
| 378 |
UPB_INLINE uint32_t envoy_admin_v3_CommandLineOptions_restart_epoch(const envoy_admin_v3_CommandLineOptions* msg) { |
| 379 |
return *UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint32_t); |
| 380 |
} |
| 381 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_cpuset_threads(const envoy_admin_v3_CommandLineOptions* msg) { |
| 382 |
*UPB_PTR_AT(msg, UPB_SIZE(28, 28), bool) = 0; |
| 383 |
} |
| 384 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_cpuset_threads(const envoy_admin_v3_CommandLineOptions* msg) { |
| 385 |
return *UPB_PTR_AT(msg, UPB_SIZE(28, 28), bool); |
| 386 |
} |
| 387 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_reject_unknown_dynamic_fields(const envoy_admin_v3_CommandLineOptions* msg) { |
| 388 |
*UPB_PTR_AT(msg, UPB_SIZE(29, 29), bool) = 0; |
| 389 |
} |
| 390 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_reject_unknown_dynamic_fields(const envoy_admin_v3_CommandLineOptions* msg) { |
| 391 |
return *UPB_PTR_AT(msg, UPB_SIZE(29, 29), bool); |
| 392 |
} |
| 393 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_log_format_escaped(const envoy_admin_v3_CommandLineOptions* msg) { |
| 394 |
*UPB_PTR_AT(msg, UPB_SIZE(30, 30), bool) = 0; |
| 395 |
} |
| 396 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_log_format_escaped(const envoy_admin_v3_CommandLineOptions* msg) { |
| 397 |
return *UPB_PTR_AT(msg, UPB_SIZE(30, 30), bool); |
| 398 |
} |
| 399 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_disabled_extensions(const envoy_admin_v3_CommandLineOptions* msg) { |
| 400 |
_upb_array_detach(msg, UPB_SIZE(144, 240)); |
| 401 |
} |
| 402 |
UPB_INLINE upb_StringView const* envoy_admin_v3_CommandLineOptions_disabled_extensions(const envoy_admin_v3_CommandLineOptions* msg, size_t* len) { |
| 403 |
return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(144, 240), len); |
| 404 |
} |
| 405 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_ignore_unknown_dynamic_fields(const envoy_admin_v3_CommandLineOptions* msg) { |
| 406 |
*UPB_PTR_AT(msg, UPB_SIZE(31, 31), bool) = 0; |
| 407 |
} |
| 408 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_ignore_unknown_dynamic_fields(const envoy_admin_v3_CommandLineOptions* msg) { |
| 409 |
return *UPB_PTR_AT(msg, UPB_SIZE(31, 31), bool); |
| 410 |
} |
| 411 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_use_dynamic_base_id(const envoy_admin_v3_CommandLineOptions* msg) { |
| 412 |
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), bool) = 0; |
| 413 |
} |
| 414 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_use_dynamic_base_id(const envoy_admin_v3_CommandLineOptions* msg) { |
| 415 |
return *UPB_PTR_AT(msg, UPB_SIZE(32, 32), bool); |
| 416 |
} |
| 417 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_base_id_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 418 |
*UPB_PTR_AT(msg, UPB_SIZE(148, 248), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 419 |
} |
| 420 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_base_id_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 421 |
return *UPB_PTR_AT(msg, UPB_SIZE(148, 248), upb_StringView); |
| 422 |
} |
| 423 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_drain_strategy(const envoy_admin_v3_CommandLineOptions* msg) { |
| 424 |
*UPB_PTR_AT(msg, UPB_SIZE(36, 36), int32_t) = 0; |
| 425 |
} |
| 426 |
UPB_INLINE int32_t envoy_admin_v3_CommandLineOptions_drain_strategy(const envoy_admin_v3_CommandLineOptions* msg) { |
| 427 |
return *UPB_PTR_AT(msg, UPB_SIZE(36, 36), int32_t); |
| 428 |
} |
| 429 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_enable_fine_grain_logging(const envoy_admin_v3_CommandLineOptions* msg) { |
| 430 |
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), bool) = 0; |
| 431 |
} |
| 432 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_enable_fine_grain_logging(const envoy_admin_v3_CommandLineOptions* msg) { |
| 433 |
return *UPB_PTR_AT(msg, UPB_SIZE(40, 40), bool); |
| 434 |
} |
| 435 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_socket_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 436 |
*UPB_PTR_AT(msg, UPB_SIZE(156, 264), upb_StringView) = upb_StringView_FromDataAndSize(NULL, 0); |
| 437 |
} |
| 438 |
UPB_INLINE upb_StringView envoy_admin_v3_CommandLineOptions_socket_path(const envoy_admin_v3_CommandLineOptions* msg) { |
| 439 |
return *UPB_PTR_AT(msg, UPB_SIZE(156, 264), upb_StringView); |
| 440 |
} |
| 441 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_socket_mode(const envoy_admin_v3_CommandLineOptions* msg) { |
| 442 |
*UPB_PTR_AT(msg, UPB_SIZE(44, 44), uint32_t) = 0; |
| 443 |
} |
| 444 |
UPB_INLINE uint32_t envoy_admin_v3_CommandLineOptions_socket_mode(const envoy_admin_v3_CommandLineOptions* msg) { |
| 445 |
return *UPB_PTR_AT(msg, UPB_SIZE(44, 44), uint32_t); |
| 446 |
} |
| 447 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_enable_core_dump(const envoy_admin_v3_CommandLineOptions* msg) { |
| 448 |
*UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool) = 0; |
| 449 |
} |
| 450 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_enable_core_dump(const envoy_admin_v3_CommandLineOptions* msg) { |
| 451 |
return *UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool); |
| 452 |
} |
| 453 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_clear_stats_tag(const envoy_admin_v3_CommandLineOptions* msg) { |
| 454 |
_upb_array_detach(msg, UPB_SIZE(164, 280)); |
| 455 |
} |
| 456 |
UPB_INLINE upb_StringView const* envoy_admin_v3_CommandLineOptions_stats_tag(const envoy_admin_v3_CommandLineOptions* msg, size_t* len) { |
| 457 |
return (upb_StringView const*)_upb_array_accessor(msg, UPB_SIZE(164, 280), len); |
| 458 |
} |
| 459 |
|
| 460 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_base_id(envoy_admin_v3_CommandLineOptions *msg, uint64_t value) { |
| 461 |
*UPB_PTR_AT(msg, UPB_SIZE(168, 288), uint64_t) = value; |
| 462 |
} |
| 463 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_concurrency(envoy_admin_v3_CommandLineOptions *msg, uint32_t value) { |
| 464 |
*UPB_PTR_AT(msg, UPB_SIZE(4, 4), uint32_t) = value; |
| 465 |
} |
| 466 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_config_path(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 467 |
*UPB_PTR_AT(msg, UPB_SIZE(52, 56), upb_StringView) = value; |
| 468 |
} |
| 469 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_config_yaml(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 470 |
*UPB_PTR_AT(msg, UPB_SIZE(60, 72), upb_StringView) = value; |
| 471 |
} |
| 472 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_allow_unknown_static_fields(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 473 |
*UPB_PTR_AT(msg, UPB_SIZE(8, 8), bool) = value; |
| 474 |
} |
| 475 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_admin_address_path(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 476 |
*UPB_PTR_AT(msg, UPB_SIZE(68, 88), upb_StringView) = value; |
| 477 |
} |
| 478 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_local_address_ip_version(envoy_admin_v3_CommandLineOptions *msg, int32_t value) { |
| 479 |
*UPB_PTR_AT(msg, UPB_SIZE(12, 12), int32_t) = value; |
| 480 |
} |
| 481 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_log_level(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 482 |
*UPB_PTR_AT(msg, UPB_SIZE(76, 104), upb_StringView) = value; |
| 483 |
} |
| 484 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_component_log_level(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 485 |
*UPB_PTR_AT(msg, UPB_SIZE(84, 120), upb_StringView) = value; |
| 486 |
} |
| 487 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_log_format(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 488 |
*UPB_PTR_AT(msg, UPB_SIZE(92, 136), upb_StringView) = value; |
| 489 |
} |
| 490 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_log_path(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 491 |
*UPB_PTR_AT(msg, UPB_SIZE(100, 152), upb_StringView) = value; |
| 492 |
} |
| 493 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_service_cluster(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 494 |
*UPB_PTR_AT(msg, UPB_SIZE(108, 168), upb_StringView) = value; |
| 495 |
} |
| 496 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_service_node(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 497 |
*UPB_PTR_AT(msg, UPB_SIZE(116, 184), upb_StringView) = value; |
| 498 |
} |
| 499 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_service_zone(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 500 |
*UPB_PTR_AT(msg, UPB_SIZE(124, 200), upb_StringView) = value; |
| 501 |
} |
| 502 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_file_flush_interval(envoy_admin_v3_CommandLineOptions *msg, struct google_protobuf_Duration* value) { |
| 503 |
_upb_sethas(msg, 1); |
| 504 |
*UPB_PTR_AT(msg, UPB_SIZE(132, 216), struct google_protobuf_Duration*) = value; |
| 505 |
} |
| 506 |
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_mutable_file_flush_interval(envoy_admin_v3_CommandLineOptions* msg, upb_Arena* arena) { |
| 507 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_CommandLineOptions_file_flush_interval(msg); |
| 508 |
if (sub == NULL) { |
| 509 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 510 |
if (!sub) return NULL; |
| 511 |
envoy_admin_v3_CommandLineOptions_set_file_flush_interval(msg, sub); |
| 512 |
} |
| 513 |
return sub; |
| 514 |
} |
| 515 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_drain_time(envoy_admin_v3_CommandLineOptions *msg, struct google_protobuf_Duration* value) { |
| 516 |
_upb_sethas(msg, 2); |
| 517 |
*UPB_PTR_AT(msg, UPB_SIZE(136, 224), struct google_protobuf_Duration*) = value; |
| 518 |
} |
| 519 |
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_mutable_drain_time(envoy_admin_v3_CommandLineOptions* msg, upb_Arena* arena) { |
| 520 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_CommandLineOptions_drain_time(msg); |
| 521 |
if (sub == NULL) { |
| 522 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 523 |
if (!sub) return NULL; |
| 524 |
envoy_admin_v3_CommandLineOptions_set_drain_time(msg, sub); |
| 525 |
} |
| 526 |
return sub; |
| 527 |
} |
| 528 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_parent_shutdown_time(envoy_admin_v3_CommandLineOptions *msg, struct google_protobuf_Duration* value) { |
| 529 |
_upb_sethas(msg, 3); |
| 530 |
*UPB_PTR_AT(msg, UPB_SIZE(140, 232), struct google_protobuf_Duration*) = value; |
| 531 |
} |
| 532 |
UPB_INLINE struct google_protobuf_Duration* envoy_admin_v3_CommandLineOptions_mutable_parent_shutdown_time(envoy_admin_v3_CommandLineOptions* msg, upb_Arena* arena) { |
| 533 |
struct google_protobuf_Duration* sub = (struct google_protobuf_Duration*)envoy_admin_v3_CommandLineOptions_parent_shutdown_time(msg); |
| 534 |
if (sub == NULL) { |
| 535 |
sub = (struct google_protobuf_Duration*)_upb_Message_New(&google_protobuf_Duration_msginit, arena); |
| 536 |
if (!sub) return NULL; |
| 537 |
envoy_admin_v3_CommandLineOptions_set_parent_shutdown_time(msg, sub); |
| 538 |
} |
| 539 |
return sub; |
| 540 |
} |
| 541 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_mode(envoy_admin_v3_CommandLineOptions *msg, int32_t value) { |
| 542 |
*UPB_PTR_AT(msg, UPB_SIZE(16, 16), int32_t) = value; |
| 543 |
} |
| 544 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_disable_hot_restart(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 545 |
*UPB_PTR_AT(msg, UPB_SIZE(20, 20), bool) = value; |
| 546 |
} |
| 547 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_enable_mutex_tracing(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 548 |
*UPB_PTR_AT(msg, UPB_SIZE(21, 21), bool) = value; |
| 549 |
} |
| 550 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_restart_epoch(envoy_admin_v3_CommandLineOptions *msg, uint32_t value) { |
| 551 |
*UPB_PTR_AT(msg, UPB_SIZE(24, 24), uint32_t) = value; |
| 552 |
} |
| 553 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_cpuset_threads(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 554 |
*UPB_PTR_AT(msg, UPB_SIZE(28, 28), bool) = value; |
| 555 |
} |
| 556 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_reject_unknown_dynamic_fields(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 557 |
*UPB_PTR_AT(msg, UPB_SIZE(29, 29), bool) = value; |
| 558 |
} |
| 559 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_log_format_escaped(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 560 |
*UPB_PTR_AT(msg, UPB_SIZE(30, 30), bool) = value; |
| 561 |
} |
| 562 |
UPB_INLINE upb_StringView* envoy_admin_v3_CommandLineOptions_mutable_disabled_extensions(envoy_admin_v3_CommandLineOptions* msg, size_t* len) { |
| 563 |
return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(144, 240), len); |
| 564 |
} |
| 565 |
UPB_INLINE upb_StringView* envoy_admin_v3_CommandLineOptions_resize_disabled_extensions(envoy_admin_v3_CommandLineOptions* msg, size_t len, upb_Arena* arena) { |
| 566 |
return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(144, 240), len, UPB_SIZE(3, 4), arena); |
| 567 |
} |
| 568 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_add_disabled_extensions(envoy_admin_v3_CommandLineOptions* msg, upb_StringView val, upb_Arena* arena) { |
| 569 |
return _upb_Array_Append_accessor2(msg, UPB_SIZE(144, 240), UPB_SIZE(3, 4), &val, arena); |
| 570 |
} |
| 571 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_ignore_unknown_dynamic_fields(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 572 |
*UPB_PTR_AT(msg, UPB_SIZE(31, 31), bool) = value; |
| 573 |
} |
| 574 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_use_dynamic_base_id(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 575 |
*UPB_PTR_AT(msg, UPB_SIZE(32, 32), bool) = value; |
| 576 |
} |
| 577 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_base_id_path(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 578 |
*UPB_PTR_AT(msg, UPB_SIZE(148, 248), upb_StringView) = value; |
| 579 |
} |
| 580 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_drain_strategy(envoy_admin_v3_CommandLineOptions *msg, int32_t value) { |
| 581 |
*UPB_PTR_AT(msg, UPB_SIZE(36, 36), int32_t) = value; |
| 582 |
} |
| 583 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_enable_fine_grain_logging(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 584 |
*UPB_PTR_AT(msg, UPB_SIZE(40, 40), bool) = value; |
| 585 |
} |
| 586 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_socket_path(envoy_admin_v3_CommandLineOptions *msg, upb_StringView value) { |
| 587 |
*UPB_PTR_AT(msg, UPB_SIZE(156, 264), upb_StringView) = value; |
| 588 |
} |
| 589 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_socket_mode(envoy_admin_v3_CommandLineOptions *msg, uint32_t value) { |
| 590 |
*UPB_PTR_AT(msg, UPB_SIZE(44, 44), uint32_t) = value; |
| 591 |
} |
| 592 |
UPB_INLINE void envoy_admin_v3_CommandLineOptions_set_enable_core_dump(envoy_admin_v3_CommandLineOptions *msg, bool value) { |
| 593 |
*UPB_PTR_AT(msg, UPB_SIZE(48, 48), bool) = value; |
| 594 |
} |
| 595 |
UPB_INLINE upb_StringView* envoy_admin_v3_CommandLineOptions_mutable_stats_tag(envoy_admin_v3_CommandLineOptions* msg, size_t* len) { |
| 596 |
return (upb_StringView*)_upb_array_mutable_accessor(msg, UPB_SIZE(164, 280), len); |
| 597 |
} |
| 598 |
UPB_INLINE upb_StringView* envoy_admin_v3_CommandLineOptions_resize_stats_tag(envoy_admin_v3_CommandLineOptions* msg, size_t len, upb_Arena* arena) { |
| 599 |
return (upb_StringView*)_upb_Array_Resize_accessor2(msg, UPB_SIZE(164, 280), len, UPB_SIZE(3, 4), arena); |
| 600 |
} |
| 601 |
UPB_INLINE bool envoy_admin_v3_CommandLineOptions_add_stats_tag(envoy_admin_v3_CommandLineOptions* msg, upb_StringView val, upb_Arena* arena) { |
| 602 |
return _upb_Array_Append_accessor2(msg, UPB_SIZE(164, 280), UPB_SIZE(3, 4), &val, arena); |
| 603 |
} |
| 604 |
|
| 605 |
extern const upb_MiniTable_File envoy_admin_v3_server_info_proto_upb_file_layout; |
| 606 |
|
| 607 |
#ifdef __cplusplus |
| 608 |
} /* extern "C" */ |
| 609 |
#endif |
| 610 |
|
| 611 |
#include "upb/port_undef.inc" |
| 612 |
|
| 613 |
#endif /* ENVOY_ADMIN_V3_SERVER_INFO_PROTO_UPB_H_ */ |