map_proto3_unittest.proto 906 B

123456789101112131415161718192021222324252627
  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. edition = "2023";
  8. // Treat all fields as implicit present by default (proto3 behavior).
  9. option features.field_presence = IMPLICIT;
  10. // This file contains definitions that have different behavior in proto3.
  11. // We don't put this in a package within proto2 because we need to make sure
  12. // that the generated code doesn't depend on being in the proto2 namespace.
  13. // In map_test_util.h we do "using namespace unittest = protobuf_unittest".
  14. package proto3_unittest;
  15. message TestProto3BytesMap {
  16. map<int32, bytes> map_bytes = 1;
  17. map<int32, string> map_string = 2;
  18. }
  19. message TestI32StrMap {
  20. map<int32, string> m_32_str = 1;
  21. }