9 #ifndef SRC_PROTO_GRPC_GCP_ALTSCONTEXT_PROTO_UPB_H_ 10 #define SRC_PROTO_GRPC_GCP_ALTSCONTEXT_PROTO_UPB_H_ 12 #include "upb/generated_util.h" 14 #include "upb/decode.h" 15 #include "upb/encode.h" 17 #include "upb/port_def.inc" 56 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 8)) = value;
59 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(16, 24)) = value;
62 UPB_FIELD_AT(msg, int32_t, UPB_SIZE(0, 0)) = value;
65 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(24, 40)) = value;
68 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(32, 56)) = value;
77 if (!sub)
return NULL;
90 bool ok = _upb_array_append_accessor(
91 msg, UPB_SIZE(44, 80), UPB_SIZE(4, 8), UPB_TYPE_MESSAGE, &sub, arena);
114 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(0, 0)) = value;
117 UPB_FIELD_AT(msg, upb_strview, UPB_SIZE(8, 16)) = value;
124 #include "upb/port_undef.inc" UPB_INLINE upb_strview grpc_gcp_AltsContext_peer_service_account(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:50
UPB_INLINE char * grpc_gcp_AltsContext_serialize(const grpc_gcp_AltsContext *msg, upb_arena *arena, size_t *len)
Definition: altscontext.upb.h:43
UPB_INLINE char * grpc_gcp_AltsContext_PeerAttributesEntry_serialize(const grpc_gcp_AltsContext_PeerAttributesEntry *msg, upb_arena *arena, size_t *len)
Definition: altscontext.upb.h:106
const upb_msglayout grpc_gcp_AltsContext_msginit
Definition: altscontext.upb.c:31
struct grpc_gcp_AltsContext grpc_gcp_AltsContext
Definition: altscontext.upb.h:25
UPB_INLINE void grpc_gcp_AltsContext_PeerAttributesEntry_set_key(grpc_gcp_AltsContext_PeerAttributesEntry *msg, upb_strview value)
Definition: altscontext.upb.h:113
UPB_INLINE const struct grpc_gcp_RpcProtocolVersions * grpc_gcp_AltsContext_peer_rpc_versions(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:52
UPB_INLINE upb_strview grpc_gcp_AltsContext_local_service_account(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:51
UPB_INLINE void grpc_gcp_AltsContext_set_peer_service_account(grpc_gcp_AltsContext *msg, upb_strview value)
Definition: altscontext.upb.h:64
UPB_INLINE upb_strview grpc_gcp_AltsContext_PeerAttributesEntry_value(const grpc_gcp_AltsContext_PeerAttributesEntry *msg)
Definition: altscontext.upb.h:111
UPB_INLINE void grpc_gcp_AltsContext_set_application_protocol(grpc_gcp_AltsContext *msg, upb_strview value)
Definition: altscontext.upb.h:55
UPB_INLINE int32_t grpc_gcp_AltsContext_security_level(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:49
UPB_INLINE upb_strview grpc_gcp_AltsContext_PeerAttributesEntry_key(const grpc_gcp_AltsContext_PeerAttributesEntry *msg)
Definition: altscontext.upb.h:110
UPB_INLINE upb_strview grpc_gcp_AltsContext_record_protocol(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:48
struct grpc_gcp_RpcProtocolVersions grpc_gcp_RpcProtocolVersions
Definition: transport_security_common.upb.h:25
UPB_INLINE grpc_gcp_AltsContext * grpc_gcp_AltsContext_parse(const char *buf, size_t size, upb_arena *arena)
Definition: altscontext.upb.h:38
const upb_msglayout grpc_gcp_AltsContext_PeerAttributesEntry_msginit
Definition: altscontext.upb.c:42
UPB_INLINE void grpc_gcp_AltsContext_set_peer_rpc_versions(grpc_gcp_AltsContext *msg, struct grpc_gcp_RpcProtocolVersions *value)
Definition: altscontext.upb.h:70
UPB_INLINE grpc_gcp_AltsContext_PeerAttributesEntry ** grpc_gcp_AltsContext_resize_peer_attributes(grpc_gcp_AltsContext *msg, size_t len, upb_arena *arena)
Definition: altscontext.upb.h:85
UPB_INLINE const grpc_gcp_AltsContext_PeerAttributesEntry *const * grpc_gcp_AltsContext_peer_attributes(const grpc_gcp_AltsContext *msg, size_t *len)
Definition: altscontext.upb.h:53
UPB_INLINE grpc_gcp_AltsContext_PeerAttributesEntry * grpc_gcp_AltsContext_PeerAttributesEntry_new(upb_arena *arena)
Definition: altscontext.upb.h:98
UPB_INLINE void grpc_gcp_AltsContext_set_record_protocol(grpc_gcp_AltsContext *msg, upb_strview value)
Definition: altscontext.upb.h:58
UPB_INLINE void grpc_gcp_AltsContext_set_security_level(grpc_gcp_AltsContext *msg, int32_t value)
Definition: altscontext.upb.h:61
const upb_msglayout grpc_gcp_RpcProtocolVersions_msginit
Definition: transport_security_common.upb.c:24
UPB_INLINE struct grpc_gcp_AltsContext_PeerAttributesEntry * grpc_gcp_AltsContext_add_peer_attributes(grpc_gcp_AltsContext *msg, upb_arena *arena)
Definition: altscontext.upb.h:88
UPB_INLINE grpc_gcp_AltsContext * grpc_gcp_AltsContext_new(upb_arena *arena)
Definition: altscontext.upb.h:35
struct grpc_gcp_AltsContext_PeerAttributesEntry grpc_gcp_AltsContext_PeerAttributesEntry
Definition: altscontext.upb.h:26
UPB_INLINE grpc_gcp_AltsContext_PeerAttributesEntry ** grpc_gcp_AltsContext_mutable_peer_attributes(grpc_gcp_AltsContext *msg, size_t *len)
Definition: altscontext.upb.h:82
UPB_INLINE void grpc_gcp_AltsContext_PeerAttributesEntry_set_value(grpc_gcp_AltsContext_PeerAttributesEntry *msg, upb_strview value)
Definition: altscontext.upb.h:116
UPB_INLINE upb_strview grpc_gcp_AltsContext_application_protocol(const grpc_gcp_AltsContext *msg)
Definition: altscontext.upb.h:47
UPB_INLINE void grpc_gcp_AltsContext_set_local_service_account(grpc_gcp_AltsContext *msg, upb_strview value)
Definition: altscontext.upb.h:67
UPB_INLINE grpc_gcp_AltsContext_PeerAttributesEntry * grpc_gcp_AltsContext_PeerAttributesEntry_parse(const char *buf, size_t size, upb_arena *arena)
Definition: altscontext.upb.h:101
UPB_INLINE struct grpc_gcp_RpcProtocolVersions * grpc_gcp_AltsContext_mutable_peer_rpc_versions(grpc_gcp_AltsContext *msg, upb_arena *arena)
Definition: altscontext.upb.h:73