1// Protocol Buffers - Google's data interchange format 2// Copyright 2023 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 10package protobuf_editions_test; 11 12import "net/proto/proto1_features.proto"; 13 14option features.field_presence = IMPLICIT; 15option java_api_version = 1; 16 17enum TestEnumProto3 { 18 TEST_ENUM_PROTO3_UNKNOWN = 0; 19 TEST_ENUM_PROTO3_VALUE = 1; 20} 21 22message TestMessageProto3 { 23 string string_field = 1; 24 map<string, string> string_map_field = 4; 25 repeated int32 int_field = 7; 26 repeated int32 int_field_packed = 8 [ 27 features.(pb.proto1).legacy_packed = true 28 ]; 29 30 repeated int32 int_field_unpacked = 9 [ 31 features.repeated_field_encoding = EXPANDED 32 ]; 33} 34