• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* This file was generated by upb_generator from the input file:
2  *
3  *     src/proto/grpc/gcp/altscontext.proto
4  *
5  * Do not edit -- your changes will be discarded when the file is
6  * regenerated.
7  * NO CHECKED-IN PROTOBUF GENCODE */
8 
9 #ifndef SRC_PROTO_GRPC_GCP_ALTSCONTEXT_PROTO_UPB_H__UPB_H_
10 #define SRC_PROTO_GRPC_GCP_ALTSCONTEXT_PROTO_UPB_H__UPB_H_
11 
12 #include "upb/generated_code_support.h"
13 
14 #include "src/proto/grpc/gcp/altscontext.upb_minitable.h"
15 
16 #include "src/proto/grpc/gcp/transport_security_common.upb_minitable.h"
17 
18 // Must be last.
19 #include "upb/port/def.inc"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef struct grpc_gcp_AltsContext { upb_Message UPB_PRIVATE(base); } grpc_gcp_AltsContext;
26 typedef struct grpc_gcp_AltsContext_PeerAttributesEntry { upb_Message UPB_PRIVATE(base); } grpc_gcp_AltsContext_PeerAttributesEntry;
27 struct grpc_gcp_RpcProtocolVersions;
28 
29 
30 
31 /* grpc.gcp.AltsContext */
32 
grpc_gcp_AltsContext_new(upb_Arena * arena)33 UPB_INLINE grpc_gcp_AltsContext* grpc_gcp_AltsContext_new(upb_Arena* arena) {
34   return (grpc_gcp_AltsContext*)_upb_Message_New(&grpc__gcp__AltsContext_msg_init, arena);
35 }
grpc_gcp_AltsContext_parse(const char * buf,size_t size,upb_Arena * arena)36 UPB_INLINE grpc_gcp_AltsContext* grpc_gcp_AltsContext_parse(const char* buf, size_t size, upb_Arena* arena) {
37   grpc_gcp_AltsContext* ret = grpc_gcp_AltsContext_new(arena);
38   if (!ret) return NULL;
39   if (upb_Decode(buf, size, UPB_UPCAST(ret), &grpc__gcp__AltsContext_msg_init, NULL, 0, arena) !=
40       kUpb_DecodeStatus_Ok) {
41     return NULL;
42   }
43   return ret;
44 }
grpc_gcp_AltsContext_parse_ex(const char * buf,size_t size,const upb_ExtensionRegistry * extreg,int options,upb_Arena * arena)45 UPB_INLINE grpc_gcp_AltsContext* grpc_gcp_AltsContext_parse_ex(const char* buf, size_t size,
46                            const upb_ExtensionRegistry* extreg,
47                            int options, upb_Arena* arena) {
48   grpc_gcp_AltsContext* ret = grpc_gcp_AltsContext_new(arena);
49   if (!ret) return NULL;
50   if (upb_Decode(buf, size, UPB_UPCAST(ret), &grpc__gcp__AltsContext_msg_init, extreg, options,
51                  arena) != kUpb_DecodeStatus_Ok) {
52     return NULL;
53   }
54   return ret;
55 }
grpc_gcp_AltsContext_serialize(const grpc_gcp_AltsContext * msg,upb_Arena * arena,size_t * len)56 UPB_INLINE char* grpc_gcp_AltsContext_serialize(const grpc_gcp_AltsContext* msg, upb_Arena* arena, size_t* len) {
57   char* ptr;
58   (void)upb_Encode(UPB_UPCAST(msg), &grpc__gcp__AltsContext_msg_init, 0, arena, &ptr, len);
59   return ptr;
60 }
grpc_gcp_AltsContext_serialize_ex(const grpc_gcp_AltsContext * msg,int options,upb_Arena * arena,size_t * len)61 UPB_INLINE char* grpc_gcp_AltsContext_serialize_ex(const grpc_gcp_AltsContext* msg, int options,
62                                  upb_Arena* arena, size_t* len) {
63   char* ptr;
64   (void)upb_Encode(UPB_UPCAST(msg), &grpc__gcp__AltsContext_msg_init, options, arena, &ptr, len);
65   return ptr;
66 }
grpc_gcp_AltsContext_clear_application_protocol(grpc_gcp_AltsContext * msg)67 UPB_INLINE void grpc_gcp_AltsContext_clear_application_protocol(grpc_gcp_AltsContext* msg) {
68   const upb_MiniTableField field = {1, UPB_SIZE(24, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
69   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
70 }
grpc_gcp_AltsContext_application_protocol(const grpc_gcp_AltsContext * msg)71 UPB_INLINE upb_StringView grpc_gcp_AltsContext_application_protocol(const grpc_gcp_AltsContext* msg) {
72   upb_StringView default_val = upb_StringView_FromString("");
73   upb_StringView ret;
74   const upb_MiniTableField field = {1, UPB_SIZE(24, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
75   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
76                                     &default_val, &ret);
77   return ret;
78 }
grpc_gcp_AltsContext_clear_record_protocol(grpc_gcp_AltsContext * msg)79 UPB_INLINE void grpc_gcp_AltsContext_clear_record_protocol(grpc_gcp_AltsContext* msg) {
80   const upb_MiniTableField field = {2, 32, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
81   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
82 }
grpc_gcp_AltsContext_record_protocol(const grpc_gcp_AltsContext * msg)83 UPB_INLINE upb_StringView grpc_gcp_AltsContext_record_protocol(const grpc_gcp_AltsContext* msg) {
84   upb_StringView default_val = upb_StringView_FromString("");
85   upb_StringView ret;
86   const upb_MiniTableField field = {2, 32, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
87   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
88                                     &default_val, &ret);
89   return ret;
90 }
grpc_gcp_AltsContext_clear_security_level(grpc_gcp_AltsContext * msg)91 UPB_INLINE void grpc_gcp_AltsContext_clear_security_level(grpc_gcp_AltsContext* msg) {
92   const upb_MiniTableField field = {3, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
93   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
94 }
grpc_gcp_AltsContext_security_level(const grpc_gcp_AltsContext * msg)95 UPB_INLINE int32_t grpc_gcp_AltsContext_security_level(const grpc_gcp_AltsContext* msg) {
96   int32_t default_val = 0;
97   int32_t ret;
98   const upb_MiniTableField field = {3, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
99   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
100                                     &default_val, &ret);
101   return ret;
102 }
grpc_gcp_AltsContext_clear_peer_service_account(grpc_gcp_AltsContext * msg)103 UPB_INLINE void grpc_gcp_AltsContext_clear_peer_service_account(grpc_gcp_AltsContext* msg) {
104   const upb_MiniTableField field = {4, UPB_SIZE(40, 48), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
105   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
106 }
grpc_gcp_AltsContext_peer_service_account(const grpc_gcp_AltsContext * msg)107 UPB_INLINE upb_StringView grpc_gcp_AltsContext_peer_service_account(const grpc_gcp_AltsContext* msg) {
108   upb_StringView default_val = upb_StringView_FromString("");
109   upb_StringView ret;
110   const upb_MiniTableField field = {4, UPB_SIZE(40, 48), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
111   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
112                                     &default_val, &ret);
113   return ret;
114 }
grpc_gcp_AltsContext_clear_local_service_account(grpc_gcp_AltsContext * msg)115 UPB_INLINE void grpc_gcp_AltsContext_clear_local_service_account(grpc_gcp_AltsContext* msg) {
116   const upb_MiniTableField field = {5, UPB_SIZE(48, 64), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
117   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
118 }
grpc_gcp_AltsContext_local_service_account(const grpc_gcp_AltsContext * msg)119 UPB_INLINE upb_StringView grpc_gcp_AltsContext_local_service_account(const grpc_gcp_AltsContext* msg) {
120   upb_StringView default_val = upb_StringView_FromString("");
121   upb_StringView ret;
122   const upb_MiniTableField field = {5, UPB_SIZE(48, 64), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
123   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
124                                     &default_val, &ret);
125   return ret;
126 }
grpc_gcp_AltsContext_clear_peer_rpc_versions(grpc_gcp_AltsContext * msg)127 UPB_INLINE void grpc_gcp_AltsContext_clear_peer_rpc_versions(grpc_gcp_AltsContext* msg) {
128   const upb_MiniTableField field = {6, UPB_SIZE(16, 80), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
129   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
130 }
grpc_gcp_AltsContext_peer_rpc_versions(const grpc_gcp_AltsContext * msg)131 UPB_INLINE const struct grpc_gcp_RpcProtocolVersions* grpc_gcp_AltsContext_peer_rpc_versions(const grpc_gcp_AltsContext* msg) {
132   const struct grpc_gcp_RpcProtocolVersions* default_val = NULL;
133   const struct grpc_gcp_RpcProtocolVersions* ret;
134   const upb_MiniTableField field = {6, UPB_SIZE(16, 80), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
135   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&grpc__gcp__RpcProtocolVersions_msg_init);
136   _upb_Message_GetNonExtensionField(UPB_UPCAST(msg), &field,
137                                     &default_val, &ret);
138   return ret;
139 }
grpc_gcp_AltsContext_has_peer_rpc_versions(const grpc_gcp_AltsContext * msg)140 UPB_INLINE bool grpc_gcp_AltsContext_has_peer_rpc_versions(const grpc_gcp_AltsContext* msg) {
141   const upb_MiniTableField field = {6, UPB_SIZE(16, 80), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
142   return upb_Message_HasBaseField(UPB_UPCAST(msg), &field);
143 }
grpc_gcp_AltsContext_clear_peer_attributes(grpc_gcp_AltsContext * msg)144 UPB_INLINE void grpc_gcp_AltsContext_clear_peer_attributes(grpc_gcp_AltsContext* msg) {
145   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
146   upb_Message_ClearBaseField(UPB_UPCAST(msg), &field);
147 }
grpc_gcp_AltsContext_peer_attributes_size(const grpc_gcp_AltsContext * msg)148 UPB_INLINE size_t grpc_gcp_AltsContext_peer_attributes_size(const grpc_gcp_AltsContext* msg) {
149   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
150   const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
151   return map ? _upb_Map_Size(map) : 0;
152 }
grpc_gcp_AltsContext_peer_attributes_get(const grpc_gcp_AltsContext * msg,upb_StringView key,upb_StringView * val)153 UPB_INLINE bool grpc_gcp_AltsContext_peer_attributes_get(const grpc_gcp_AltsContext* msg, upb_StringView key, upb_StringView* val) {
154   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
155   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&grpc__gcp__AltsContext__PeerAttributesEntry_msg_init);
156   const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
157   if (!map) return false;
158   return _upb_Map_Get(map, &key, 0, val, 0);
159 }
grpc_gcp_AltsContext_peer_attributes_next(const grpc_gcp_AltsContext * msg,size_t * iter)160 UPB_INLINE const grpc_gcp_AltsContext_PeerAttributesEntry* grpc_gcp_AltsContext_peer_attributes_next(const grpc_gcp_AltsContext* msg, size_t* iter) {
161   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
162   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&grpc__gcp__AltsContext__PeerAttributesEntry_msg_init);
163   const upb_Map* map = upb_Message_GetMap(UPB_UPCAST(msg), &field);
164   if (!map) return NULL;
165   return (const grpc_gcp_AltsContext_PeerAttributesEntry*)_upb_map_next(map, iter);
166 }
_grpc_gcp_AltsContext_peer_attributes_upb_map(grpc_gcp_AltsContext * msg)167 UPB_INLINE const upb_Map* _grpc_gcp_AltsContext_peer_attributes_upb_map(grpc_gcp_AltsContext* msg) {
168   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
169   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&grpc__gcp__AltsContext__PeerAttributesEntry_msg_init);
170   return upb_Message_GetMap(UPB_UPCAST(msg), &field);
171 }
_grpc_gcp_AltsContext_peer_attributes_mutable_upb_map(grpc_gcp_AltsContext * msg,upb_Arena * a)172 UPB_INLINE upb_Map* _grpc_gcp_AltsContext_peer_attributes_mutable_upb_map(grpc_gcp_AltsContext* msg, upb_Arena* a) {
173   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
174   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&grpc__gcp__AltsContext__PeerAttributesEntry_msg_init);
175   return _upb_Message_GetOrCreateMutableMap(UPB_UPCAST(msg), &field, 0, 0, a);
176 }
177 
grpc_gcp_AltsContext_set_application_protocol(grpc_gcp_AltsContext * msg,upb_StringView value)178 UPB_INLINE void grpc_gcp_AltsContext_set_application_protocol(grpc_gcp_AltsContext *msg, upb_StringView value) {
179   const upb_MiniTableField field = {1, UPB_SIZE(24, 16), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
180   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
181 }
grpc_gcp_AltsContext_set_record_protocol(grpc_gcp_AltsContext * msg,upb_StringView value)182 UPB_INLINE void grpc_gcp_AltsContext_set_record_protocol(grpc_gcp_AltsContext *msg, upb_StringView value) {
183   const upb_MiniTableField field = {2, 32, 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
184   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
185 }
grpc_gcp_AltsContext_set_security_level(grpc_gcp_AltsContext * msg,int32_t value)186 UPB_INLINE void grpc_gcp_AltsContext_set_security_level(grpc_gcp_AltsContext *msg, int32_t value) {
187   const upb_MiniTableField field = {3, 12, 0, kUpb_NoSub, 5, (int)kUpb_FieldMode_Scalar | (int)kUpb_LabelFlags_IsAlternate | ((int)kUpb_FieldRep_4Byte << kUpb_FieldRep_Shift)};
188   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
189 }
grpc_gcp_AltsContext_set_peer_service_account(grpc_gcp_AltsContext * msg,upb_StringView value)190 UPB_INLINE void grpc_gcp_AltsContext_set_peer_service_account(grpc_gcp_AltsContext *msg, upb_StringView value) {
191   const upb_MiniTableField field = {4, UPB_SIZE(40, 48), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
192   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
193 }
grpc_gcp_AltsContext_set_local_service_account(grpc_gcp_AltsContext * msg,upb_StringView value)194 UPB_INLINE void grpc_gcp_AltsContext_set_local_service_account(grpc_gcp_AltsContext *msg, upb_StringView value) {
195   const upb_MiniTableField field = {5, UPB_SIZE(48, 64), 0, kUpb_NoSub, 9, (int)kUpb_FieldMode_Scalar | ((int)kUpb_FieldRep_StringView << kUpb_FieldRep_Shift)};
196   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
197 }
grpc_gcp_AltsContext_set_peer_rpc_versions(grpc_gcp_AltsContext * msg,struct grpc_gcp_RpcProtocolVersions * value)198 UPB_INLINE void grpc_gcp_AltsContext_set_peer_rpc_versions(grpc_gcp_AltsContext *msg, struct grpc_gcp_RpcProtocolVersions* value) {
199   const upb_MiniTableField field = {6, UPB_SIZE(16, 80), 64, 0, 11, (int)kUpb_FieldMode_Scalar | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
200   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&grpc__gcp__RpcProtocolVersions_msg_init);
201   upb_Message_SetBaseField((upb_Message *)msg, &field, &value);
202 }
grpc_gcp_AltsContext_mutable_peer_rpc_versions(grpc_gcp_AltsContext * msg,upb_Arena * arena)203 UPB_INLINE struct grpc_gcp_RpcProtocolVersions* grpc_gcp_AltsContext_mutable_peer_rpc_versions(grpc_gcp_AltsContext* msg, upb_Arena* arena) {
204   struct grpc_gcp_RpcProtocolVersions* sub = (struct grpc_gcp_RpcProtocolVersions*)grpc_gcp_AltsContext_peer_rpc_versions(msg);
205   if (sub == NULL) {
206     sub = (struct grpc_gcp_RpcProtocolVersions*)_upb_Message_New(&grpc__gcp__RpcProtocolVersions_msg_init, arena);
207     if (sub) grpc_gcp_AltsContext_set_peer_rpc_versions(msg, sub);
208   }
209   return sub;
210 }
grpc_gcp_AltsContext_peer_attributes_clear(grpc_gcp_AltsContext * msg)211 UPB_INLINE void grpc_gcp_AltsContext_peer_attributes_clear(grpc_gcp_AltsContext* msg) {
212   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
213   upb_Map* map = (upb_Map*)upb_Message_GetMap(UPB_UPCAST(msg), &field);
214   if (!map) return;
215   _upb_Map_Clear(map);
216 }
grpc_gcp_AltsContext_peer_attributes_set(grpc_gcp_AltsContext * msg,upb_StringView key,upb_StringView val,upb_Arena * a)217 UPB_INLINE bool grpc_gcp_AltsContext_peer_attributes_set(grpc_gcp_AltsContext* msg, upb_StringView key, upb_StringView val, upb_Arena* a) {
218   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
219   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&grpc__gcp__AltsContext__PeerAttributesEntry_msg_init);
220   upb_Map* map = _upb_Message_GetOrCreateMutableMap(UPB_UPCAST(msg),
221                                                     &field, 0, 0, a);
222   return _upb_Map_Insert(map, &key, 0, &val, 0, a) !=
223          kUpb_MapInsertStatus_OutOfMemory;
224 }
grpc_gcp_AltsContext_peer_attributes_delete(grpc_gcp_AltsContext * msg,upb_StringView key)225 UPB_INLINE bool grpc_gcp_AltsContext_peer_attributes_delete(grpc_gcp_AltsContext* msg, upb_StringView key) {
226   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
227   upb_Map* map = (upb_Map*)upb_Message_GetMap(UPB_UPCAST(msg), &field);
228   if (!map) return false;
229   return _upb_Map_Delete(map, &key, 0, NULL);
230 }
grpc_gcp_AltsContext_peer_attributes_nextmutable(grpc_gcp_AltsContext * msg,size_t * iter)231 UPB_INLINE grpc_gcp_AltsContext_PeerAttributesEntry* grpc_gcp_AltsContext_peer_attributes_nextmutable(grpc_gcp_AltsContext* msg, size_t* iter) {
232   const upb_MiniTableField field = {7, UPB_SIZE(20, 88), 0, 1, 11, (int)kUpb_FieldMode_Map | ((int)UPB_SIZE(kUpb_FieldRep_4Byte, kUpb_FieldRep_8Byte) << kUpb_FieldRep_Shift)};
233   UPB_PRIVATE(_upb_MiniTable_StrongReference)(&grpc__gcp__AltsContext__PeerAttributesEntry_msg_init);
234   upb_Map* map = (upb_Map*)upb_Message_GetMap(UPB_UPCAST(msg), &field);
235   if (!map) return NULL;
236   return (grpc_gcp_AltsContext_PeerAttributesEntry*)_upb_map_next(map, iter);
237 }
238 
239 /* grpc.gcp.AltsContext.PeerAttributesEntry */
240 
grpc_gcp_AltsContext_PeerAttributesEntry_key(const grpc_gcp_AltsContext_PeerAttributesEntry * msg)241 UPB_INLINE upb_StringView grpc_gcp_AltsContext_PeerAttributesEntry_key(const grpc_gcp_AltsContext_PeerAttributesEntry* msg) {
242   upb_StringView ret;
243   _upb_msg_map_key(msg, &ret, 0);
244   return ret;
245 }
grpc_gcp_AltsContext_PeerAttributesEntry_value(const grpc_gcp_AltsContext_PeerAttributesEntry * msg)246 UPB_INLINE upb_StringView grpc_gcp_AltsContext_PeerAttributesEntry_value(const grpc_gcp_AltsContext_PeerAttributesEntry* msg) {
247   upb_StringView ret;
248   _upb_msg_map_value(msg, &ret, 0);
249   return ret;
250 }
251 
grpc_gcp_AltsContext_PeerAttributesEntry_set_value(grpc_gcp_AltsContext_PeerAttributesEntry * msg,upb_StringView value)252 UPB_INLINE void grpc_gcp_AltsContext_PeerAttributesEntry_set_value(grpc_gcp_AltsContext_PeerAttributesEntry *msg, upb_StringView value) {
253   _upb_msg_map_set_value(msg, &value, 0);
254 }
255 
256 #ifdef __cplusplus
257 }  /* extern "C" */
258 #endif
259 
260 #include "upb/port/undef.inc"
261 
262 #endif  /* SRC_PROTO_GRPC_GCP_ALTSCONTEXT_PROTO_UPB_H__UPB_H_ */
263