// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd edition = "2023"; package protobuf_unittest; import "google/protobuf/unittest_lite.proto"; option features.enum_type = CLOSED; option features.utf8_validation = NONE; option cc_enable_arenas = true; option optimize_for = LITE_RUNTIME; message TestMapLite { map map_int32_int32 = 1; map map_int64_int64 = 2; map map_uint32_uint32 = 3; map map_uint64_uint64 = 4; map map_sint32_sint32 = 5; map map_sint64_sint64 = 6; map map_fixed32_fixed32 = 7; map map_fixed64_fixed64 = 8; map map_sfixed32_sfixed32 = 9; map map_sfixed64_sfixed64 = 10; map map_int32_float = 11; map map_int32_double = 12; map map_bool_bool = 13; map map_string_string = 14; map map_int32_bytes = 15; map map_int32_enum = 16; map map_int32_foreign_message = 17; map teboring = 18; } message TestArenaMapLite { map map_int32_int32 = 1; map map_int64_int64 = 2; map map_uint32_uint32 = 3; map map_uint64_uint64 = 4; map map_sint32_sint32 = 5; map map_sint64_sint64 = 6; map map_fixed32_fixed32 = 7; map map_fixed64_fixed64 = 8; map map_sfixed32_sfixed32 = 9; map map_sfixed64_sfixed64 = 10; map map_int32_float = 11; map map_int32_double = 12; map map_bool_bool = 13; map map_string_string = 14; map map_int32_bytes = 15; map map_int32_enum = 16; map map_int32_foreign_message = 17; } // Test embedded message with required fields message TestRequiredMessageMapLite { map map_field = 1; } message TestEnumMapLite { map known_map_field = 101; map unknown_map_field = 102; } message TestEnumMapPlusExtraLite { map known_map_field = 101; map unknown_map_field = 102; } message TestMessageMapLite { map map_int32_message = 1; } enum Proto2MapEnumLite { PROTO2_MAP_ENUM_FOO_LITE = 0; PROTO2_MAP_ENUM_BAR_LITE = 1; PROTO2_MAP_ENUM_BAZ_LITE = 2; } enum Proto2MapEnumPlusExtraLite { E_PROTO2_MAP_ENUM_FOO_LITE = 0; E_PROTO2_MAP_ENUM_BAR_LITE = 1; E_PROTO2_MAP_ENUM_BAZ_LITE = 2; E_PROTO2_MAP_ENUM_EXTRA_LITE = 3; } enum MapEnumLite { MAP_ENUM_FOO_LITE = 0; MAP_ENUM_BAR_LITE = 1; MAP_ENUM_BAZ_LITE = 2; } message TestRequiredLite { int32 a = 1 [features.field_presence = LEGACY_REQUIRED]; int32 b = 2 [features.field_presence = LEGACY_REQUIRED]; int32 c = 3 [features.field_presence = LEGACY_REQUIRED]; extend TestAllExtensionsLite { TestRequiredLite single = 1000; } } message ForeignMessageArenaLite { int32 c = 1; }