9 #ifndef SRC_PROTO_GRPC_GCP_ALTSCONTEXT_PROTO_UPB_H_
10 #define SRC_PROTO_GRPC_GCP_ALTSCONTEXT_PROTO_UPB_H_
13 #include "upb/decode.h"
14 #include "upb/decode_fast.h"
15 #include "upb/encode.h"
17 #include "upb/port_def.inc"
44 upb_arena *
arena,
int options) {
66 *UPB_PTR_AT(msg, UPB_SIZE(8, 8), upb_strview) = value;
69 *UPB_PTR_AT(msg, UPB_SIZE(16, 24), upb_strview) = value;
72 *UPB_PTR_AT(msg, UPB_SIZE(4, 4), int32_t) = value;
75 *UPB_PTR_AT(msg, UPB_SIZE(24, 40), upb_strview) = value;
78 *UPB_PTR_AT(msg, UPB_SIZE(32, 56), upb_strview) = value;
88 if (!sub)
return NULL;
94 UPB_INLINE
bool grpc_gcp_AltsContext_peer_attributes_set(
grpc_gcp_AltsContext *msg, upb_strview key, upb_strview val, upb_arena *a) {
return _upb_msg_map_set(msg, UPB_SIZE(44, 80), &key, 0, &val, 0, a); }
102 _upb_msg_map_key(msg, &ret, 0);
107 _upb_msg_map_value(msg, &ret, 0);
112 _upb_msg_map_set_value(msg, &value, 0);
119 #include "upb/port_undef.inc"
UPB_INLINE upb_strview grpc_gcp_AltsContext_application_protocol(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:53
UPB_INLINE void grpc_gcp_AltsContext_set_security_level(grpc_gcp_AltsContext *msg, int32_t value)
Definition: altscontext.upb.h:71
UPB_INLINE char * grpc_gcp_AltsContext_serialize(const grpc_gcp_AltsContext *msg, upb_arena *arena, size_t *len)
Definition: altscontext.upb.h:49
UPB_INLINE int32_t grpc_gcp_AltsContext_security_level(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:55
struct grpc_gcp_AltsContext grpc_gcp_AltsContext
Definition: altscontext.upb.h:25
const upb_msglayout grpc_gcp_AltsContext_PeerAttributesEntry_msginit
Definition: altscontext.upb.c:42
UPB_INLINE void grpc_gcp_AltsContext_set_application_protocol(grpc_gcp_AltsContext *msg, upb_strview value)
Definition: altscontext.upb.h:65
UPB_INLINE upb_strview grpc_gcp_AltsContext_record_protocol(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:54
UPB_INLINE const struct grpc_gcp_RpcProtocolVersions * grpc_gcp_AltsContext_peer_rpc_versions(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:59
UPB_INLINE bool grpc_gcp_AltsContext_has_peer_attributes(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:60
UPB_INLINE grpc_gcp_AltsContext * grpc_gcp_AltsContext_parse(const char *buf, size_t size, upb_arena *arena)
Definition: altscontext.upb.h:38
UPB_INLINE grpc_gcp_AltsContext * grpc_gcp_AltsContext_parse_ex(const char *buf, size_t size, upb_arena *arena, int options)
Definition: altscontext.upb.h:43
const upb_msglayout grpc_gcp_RpcProtocolVersions_msginit
Definition: transport_security_common.upb.c:24
UPB_INLINE void grpc_gcp_AltsContext_PeerAttributesEntry_set_value(grpc_gcp_AltsContext_PeerAttributesEntry *msg, upb_strview value)
Definition: altscontext.upb.h:111
UPB_INLINE bool grpc_gcp_AltsContext_peer_attributes_set(grpc_gcp_AltsContext *msg, upb_strview key, upb_strview val, upb_arena *a)
Definition: altscontext.upb.h:94
UPB_INLINE void grpc_gcp_AltsContext_peer_attributes_clear(grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:93
UPB_INLINE void grpc_gcp_AltsContext_set_local_service_account(grpc_gcp_AltsContext *msg, upb_strview value)
Definition: altscontext.upb.h:77
UPB_INLINE bool grpc_gcp_AltsContext_peer_attributes_get(const grpc_gcp_AltsContext *msg, upb_strview key, upb_strview *val)
Definition: altscontext.upb.h:62
UPB_INLINE bool grpc_gcp_AltsContext_peer_attributes_delete(grpc_gcp_AltsContext *msg, upb_strview key)
Definition: altscontext.upb.h:95
UPB_INLINE size_t grpc_gcp_AltsContext_peer_attributes_size(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:61
const upb_msglayout grpc_gcp_AltsContext_msginit
Definition: altscontext.upb.c:31
UPB_INLINE upb_strview grpc_gcp_AltsContext_PeerAttributesEntry_value(const grpc_gcp_AltsContext_PeerAttributesEntry *msg)
Definition: altscontext.upb.h:105
UPB_INLINE upb_strview grpc_gcp_AltsContext_PeerAttributesEntry_key(const grpc_gcp_AltsContext_PeerAttributesEntry *msg)
Definition: altscontext.upb.h:100
UPB_INLINE grpc_gcp_AltsContext_PeerAttributesEntry * grpc_gcp_AltsContext_peer_attributes_nextmutable(grpc_gcp_AltsContext *msg, size_t *iter)
Definition: altscontext.upb.h:96
UPB_INLINE upb_strview grpc_gcp_AltsContext_local_service_account(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:57
UPB_INLINE void grpc_gcp_AltsContext_set_peer_rpc_versions(grpc_gcp_AltsContext *msg, struct grpc_gcp_RpcProtocolVersions *value)
Definition: altscontext.upb.h:80
UPB_INLINE upb_strview grpc_gcp_AltsContext_peer_service_account(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:56
UPB_INLINE const grpc_gcp_AltsContext_PeerAttributesEntry * grpc_gcp_AltsContext_peer_attributes_next(const grpc_gcp_AltsContext *msg, size_t *iter)
Definition: altscontext.upb.h:63
UPB_INLINE struct grpc_gcp_RpcProtocolVersions * grpc_gcp_AltsContext_mutable_peer_rpc_versions(grpc_gcp_AltsContext *msg, upb_arena *arena)
Definition: altscontext.upb.h:84
UPB_INLINE grpc_gcp_AltsContext * grpc_gcp_AltsContext_new(upb_arena *arena)
Definition: altscontext.upb.h:35
UPB_INLINE void grpc_gcp_AltsContext_set_peer_service_account(grpc_gcp_AltsContext *msg, upb_strview value)
Definition: altscontext.upb.h:74
UPB_INLINE bool grpc_gcp_AltsContext_has_peer_rpc_versions(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:58
UPB_INLINE void grpc_gcp_AltsContext_set_record_protocol(grpc_gcp_AltsContext *msg, upb_strview value)
Definition: altscontext.upb.h:68
struct grpc_gcp_AltsContext_PeerAttributesEntry grpc_gcp_AltsContext_PeerAttributesEntry
Definition: altscontext.upb.h:26
struct grpc_gcp_RpcProtocolVersions grpc_gcp_RpcProtocolVersions
Definition: transport_security_common.upb.h:25
upb_arena * arena
Definition: xds_api.cc:909