...
1// Protocol Buffers for Go with Gadgets
2//
3// Copyright (c) 2013, The GoGo Authors. All rights reserved.
4// http://github.com/gogo/protobuf
5//
6// Redistribution and use in source and binary forms, with or without
7// modification, are permitted provided that the following conditions are
8// met:
9//
10// * Redistributions of source code must retain the above copyright
11// notice, this list of conditions and the following disclaimer.
12// * Redistributions in binary form must reproduce the above
13// copyright notice, this list of conditions and the following disclaimer
14// in the documentation and/or other materials provided with the
15// distribution.
16//
17// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
29syntax = "proto2";
30
31package packed;
32
33import "github.com/gogo/protobuf/gogoproto/gogo.proto";
34
35option (gogoproto.populate_all) = true;
36
37message NinRepNative {
38 option (gogoproto.unmarshaler) = true;
39 repeated double Field1 = 1;
40 repeated float Field2 = 2;
41 repeated int32 Field3 = 3;
42 repeated int64 Field4 = 4;
43 repeated uint32 Field5 = 5;
44 repeated uint64 Field6 = 6;
45 repeated sint32 Field7 = 7;
46 repeated sint64 Field8 = 8;
47 repeated fixed32 Field9 = 9;
48 repeated sfixed32 Field10 = 10;
49 repeated fixed64 Field11 = 11;
50 repeated sfixed64 Field12 = 12;
51 repeated bool Field13 = 13;
52}
53
54message NinRepPackedNative {
55 option (gogoproto.unmarshaler) = true;
56 repeated double Field1 = 1 [packed = true];
57 repeated float Field2 = 2 [packed = true];
58 repeated int32 Field3 = 3 [packed = true];
59 repeated int64 Field4 = 4 [packed = true];
60 repeated uint32 Field5 = 5 [packed = true];
61 repeated uint64 Field6 = 6 [packed = true];
62 repeated sint32 Field7 = 7 [packed = true];
63 repeated sint64 Field8 = 8 [packed = true];
64 repeated fixed32 Field9 = 9 [packed = true];
65 repeated sfixed32 Field10 = 10 [packed = true];
66 repeated fixed64 Field11 = 11 [packed = true];
67 repeated sfixed64 Field12 = 12 [packed = true];
68 repeated bool Field13 = 13 [packed = true];
69}
70
71message NinRepNativeUnsafe {
72 option (gogoproto.unsafe_unmarshaler) = true;
73 repeated double Field1 = 1;
74 repeated float Field2 = 2;
75 repeated int32 Field3 = 3;
76 repeated int64 Field4 = 4;
77 repeated uint32 Field5 = 5;
78 repeated uint64 Field6 = 6;
79 repeated sint32 Field7 = 7;
80 repeated sint64 Field8 = 8;
81 repeated fixed32 Field9 = 9;
82 repeated sfixed32 Field10 = 10;
83 repeated fixed64 Field11 = 11;
84 repeated sfixed64 Field12 = 12;
85 repeated bool Field13 = 13;
86}
87
88message NinRepPackedNativeUnsafe {
89 option (gogoproto.unsafe_unmarshaler) = true;
90 repeated double Field1 = 1 [packed = true];
91 repeated float Field2 = 2 [packed = true];
92 repeated int32 Field3 = 3 [packed = true];
93 repeated int64 Field4 = 4 [packed = true];
94 repeated uint32 Field5 = 5 [packed = true];
95 repeated uint64 Field6 = 6 [packed = true];
96 repeated sint32 Field7 = 7 [packed = true];
97 repeated sint64 Field8 = 8 [packed = true];
98 repeated fixed32 Field9 = 9 [packed = true];
99 repeated sfixed32 Field10 = 10 [packed = true];
100 repeated fixed64 Field11 = 11 [packed = true];
101 repeated sfixed64 Field12 = 12 [packed = true];
102 repeated bool Field13 = 13 [packed = true];
103}
View as plain text