@@ -42,22 +42,16 @@ class CelMapReflectionFriend final {
4242 return reflection.MapSize (message, &field);
4343 }
4444
45- static google::protobuf::MapIterator MapBegin (const google::protobuf::Reflection& reflection,
46- const google::protobuf::Message& message,
47- const google::protobuf::FieldDescriptor& field) {
48- return reflection.MapBegin (
49- const_cast < // NOLINT(google3-runtime-proto-const-cast)
50- google::protobuf::Message*>(&message),
51- &field);
45+ static proto2::ConstMapIterator ConstMapBegin (
46+ const google::protobuf::Reflection& reflection, const google::protobuf::Message& message,
47+ const google::protobuf::FieldDescriptor& field) {
48+ return reflection.ConstMapBegin (&message, &field);
5249 }
5350
54- static google::protobuf::MapIterator MapEnd (const google::protobuf::Reflection& reflection,
55- const google::protobuf::Message& message,
56- const google::protobuf::FieldDescriptor& field) {
57- return reflection.MapEnd (
58- const_cast < // NOLINT(google3-runtime-proto-const-cast)
59- google::protobuf::Message*>(&message),
60- &field);
51+ static proto2::ConstMapIterator ConstMapEnd (
52+ const google::protobuf::Reflection& reflection, const google::protobuf::Message& message,
53+ const google::protobuf::FieldDescriptor& field) {
54+ return reflection.ConstMapEnd (&message, &field);
6155 }
6256
6357 static bool InsertOrLookupMapValue (const google::protobuf::Reflection& reflection,
@@ -104,18 +98,18 @@ int MapSize(const google::protobuf::Reflection& reflection,
10498 field);
10599}
106100
107- google::protobuf::MapIterator MapBegin (const google::protobuf::Reflection& reflection,
108- const google::protobuf::Message& message,
109- const google::protobuf::FieldDescriptor& field) {
110- return google::protobuf::expr::CelMapReflectionFriend::MapBegin (reflection, message ,
111- field);
101+ proto2::ConstMapIterator ConstMapBegin (const google::protobuf::Reflection& reflection,
102+ const google::protobuf::Message& message,
103+ const google::protobuf::FieldDescriptor& field) {
104+ return google::protobuf::expr::CelMapReflectionFriend::ConstMapBegin (reflection,
105+ message, field);
112106}
113107
114- google::protobuf::MapIterator MapEnd (const google::protobuf::Reflection& reflection,
115- const google::protobuf::Message& message,
116- const google::protobuf::FieldDescriptor& field) {
117- return google::protobuf::expr::CelMapReflectionFriend::MapEnd (reflection, message,
118- field);
108+ proto2::ConstMapIterator ConstMapEnd (const google::protobuf::Reflection& reflection,
109+ const google::protobuf::Message& message,
110+ const google::protobuf::FieldDescriptor& field) {
111+ return google::protobuf::expr::CelMapReflectionFriend::ConstMapEnd (reflection, message,
112+ field);
119113}
120114
121115bool InsertOrLookupMapValue (const google::protobuf::Reflection& reflection,
0 commit comments