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