• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Protocol Buffers - Google's data interchange format
2// Copyright 2008 Google Inc.  All rights reserved.
3//
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file or at
6// https://developers.google.com/open-source/licenses/bsd
7
8edition = "2023";
9
10// Treat all fields as implicit present by default (proto3 behavior).
11option features.field_presence = IMPLICIT;
12
13// This file contains definitions that have different behavior in proto3.
14
15// We don't put this in a package within proto2 because we need to make sure
16// that the generated code doesn't depend on being in the proto2 namespace.
17// In map_test_util.h we do "using namespace unittest = protobuf_unittest".
18package proto3_unittest;
19
20message TestProto3BytesMap {
21  map<int32, bytes> map_bytes = 1;
22  map<int32, string> map_string = 2;
23}
24
25message TestI32StrMap {
26  map<int32, string> m_32_str = 1;
27}
28