1*1c12ee1eSDan Willemsen// Copyright 2018 The Go Authors. All rights reserved. 2*1c12ee1eSDan Willemsen// Use of this source code is governed by a BSD-style 3*1c12ee1eSDan Willemsen// license that can be found in the LICENSE file. 4*1c12ee1eSDan Willemsen 5*1c12ee1eSDan Willemsensyntax = "proto2"; 6*1c12ee1eSDan Willemsen 7*1c12ee1eSDan Willemsenpackage goproto.proto.test; 8*1c12ee1eSDan Willemsen 9*1c12ee1eSDan Willemsenimport "internal/testprotos/annotation/annotation.proto"; 10*1c12ee1eSDan Willemsenimport "internal/testprotos/test/test.proto"; 11*1c12ee1eSDan Willemsenimport weak "internal/testprotos/test/weak1/test_weak.proto"; 12*1c12ee1eSDan Willemsenimport weak "internal/testprotos/test/weak2/test_weak.proto"; 13*1c12ee1eSDan Willemsen 14*1c12ee1eSDan Willemsenoption go_package = "google.golang.org/protobuf/internal/testprotos/fieldtrack"; 15*1c12ee1eSDan Willemsen 16*1c12ee1eSDan Willemsenmessage TestFieldTrack { 17*1c12ee1eSDan Willemsen option (go_annotation.track_field_use) = true; 18*1c12ee1eSDan Willemsen 19*1c12ee1eSDan Willemsen optional int32 optional_int32 = 1; 20*1c12ee1eSDan Willemsen optional int64 optional_int64 = 2; 21*1c12ee1eSDan Willemsen optional uint32 optional_uint32 = 3; 22*1c12ee1eSDan Willemsen optional uint64 optional_uint64 = 4; 23*1c12ee1eSDan Willemsen optional sint32 optional_sint32 = 5; 24*1c12ee1eSDan Willemsen optional sint64 optional_sint64 = 6; 25*1c12ee1eSDan Willemsen optional fixed32 optional_fixed32 = 7; 26*1c12ee1eSDan Willemsen optional fixed64 optional_fixed64 = 8; 27*1c12ee1eSDan Willemsen optional sfixed32 optional_sfixed32 = 9; 28*1c12ee1eSDan Willemsen optional sfixed64 optional_sfixed64 = 10; 29*1c12ee1eSDan Willemsen optional float optional_float = 11; 30*1c12ee1eSDan Willemsen optional double optional_double = 12; 31*1c12ee1eSDan Willemsen optional bool optional_bool = 13; 32*1c12ee1eSDan Willemsen optional string optional_string = 14; 33*1c12ee1eSDan Willemsen optional bytes optional_bytes = 15; 34*1c12ee1eSDan Willemsen optional goproto.proto.test.TestAllTypes.NestedEnum optional_enum = 16; 35*1c12ee1eSDan Willemsen optional goproto.proto.test.TestAllTypes.NestedMessage optional_message = 17; 36*1c12ee1eSDan Willemsen 37*1c12ee1eSDan Willemsen repeated int32 repeated_int32 = 21; 38*1c12ee1eSDan Willemsen repeated int64 repeated_int64 = 22; 39*1c12ee1eSDan Willemsen repeated uint32 repeated_uint32 = 23; 40*1c12ee1eSDan Willemsen repeated uint64 repeated_uint64 = 24; 41*1c12ee1eSDan Willemsen repeated sint32 repeated_sint32 = 25; 42*1c12ee1eSDan Willemsen repeated sint64 repeated_sint64 = 26; 43*1c12ee1eSDan Willemsen repeated fixed32 repeated_fixed32 = 27; 44*1c12ee1eSDan Willemsen repeated fixed64 repeated_fixed64 = 28; 45*1c12ee1eSDan Willemsen repeated sfixed32 repeated_sfixed32 = 29; 46*1c12ee1eSDan Willemsen repeated sfixed64 repeated_sfixed64 = 30; 47*1c12ee1eSDan Willemsen repeated float repeated_float = 31; 48*1c12ee1eSDan Willemsen repeated double repeated_double = 32; 49*1c12ee1eSDan Willemsen repeated bool repeated_bool = 33; 50*1c12ee1eSDan Willemsen repeated string repeated_string = 34; 51*1c12ee1eSDan Willemsen repeated bytes repeated_bytes = 35; 52*1c12ee1eSDan Willemsen repeated goproto.proto.test.TestAllTypes.NestedEnum repeated_enum = 36; 53*1c12ee1eSDan Willemsen repeated goproto.proto.test.TestAllTypes.NestedMessage repeated_message = 37; 54*1c12ee1eSDan Willemsen 55*1c12ee1eSDan Willemsen map <string, int32> map_string_int32 = 41; 56*1c12ee1eSDan Willemsen map <string, int64> map_string_int64 = 42; 57*1c12ee1eSDan Willemsen map <string, uint32> map_string_uint32 = 43; 58*1c12ee1eSDan Willemsen map <string, uint64> map_string_uint64 = 44; 59*1c12ee1eSDan Willemsen map <string, sint32> map_string_sint32 = 45; 60*1c12ee1eSDan Willemsen map <string, sint64> map_string_sint64 = 46; 61*1c12ee1eSDan Willemsen map <string, fixed32> map_string_fixed32 = 47; 62*1c12ee1eSDan Willemsen map <string, fixed64> map_string_fixed64 = 48; 63*1c12ee1eSDan Willemsen map <string, sfixed32> map_string_sfixed32 = 49; 64*1c12ee1eSDan Willemsen map <string, sfixed64> map_string_sfixed64 = 50; 65*1c12ee1eSDan Willemsen map <string, float> map_string_float = 51; 66*1c12ee1eSDan Willemsen map <string, double> map_string_double = 52; 67*1c12ee1eSDan Willemsen map <string, bool> map_string_bool = 53; 68*1c12ee1eSDan Willemsen map <string, string> map_string_string = 54; 69*1c12ee1eSDan Willemsen map <string, bytes> map_string_bytes = 55; 70*1c12ee1eSDan Willemsen map <string, goproto.proto.test.TestAllTypes.NestedEnum> map_string_enum = 56; 71*1c12ee1eSDan Willemsen map <string, goproto.proto.test.TestAllTypes.NestedMessage> map_string_message = 57; 72*1c12ee1eSDan Willemsen 73*1c12ee1eSDan Willemsen optional goproto.proto.test.weak.WeakImportMessage1 weak_message1 = 100 [weak=true]; 74*1c12ee1eSDan Willemsen optional goproto.proto.test.weak.WeakImportMessage2 weak_message2 = 101 [weak=true]; 75*1c12ee1eSDan Willemsen} 76