...
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 = "proto3";
6
7import "google/protobuf/descriptor.proto";
8
9package goproto.protoc.extension.proto3;
10
11option go_package = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3";
12
13message Message {}
14enum Enum { ZERO = 0; }
15
16// The only types proto3 is allowed to extend are descriptor options.
17extend google.protobuf.MessageOptions {
18 bool extension_bool = 1001;
19 Enum extension_enum = 1002;
20 int32 extension_int32 = 1003;
21 sint32 extension_sint32 = 1004;
22 uint32 extension_uint32 = 1005;
23 int64 extension_int64 = 1006;
24 sint64 extension_sint64 = 1007;
25 uint64 extension_uint64 = 1008;
26 sfixed32 extension_sfixed32 = 1009;
27 fixed32 extension_fixed32 = 1010;
28 float extension_float = 1011;
29 sfixed64 extension_sfixed64 = 1012;
30 fixed64 extension_fixed64 = 1013;
31 double extension_double = 1014;
32 string extension_string = 1015;
33 bytes extension_bytes = 1016;
34 Message extension_Message = 1017;
35
36 repeated bool repeated_extension_bool = 2001;
37 repeated Enum repeated_extension_enum = 2002;
38 repeated int32 repeated_extension_int32 = 2003;
39 repeated sint32 repeated_extension_sint32 = 2004;
40 repeated uint32 repeated_extension_uint32 = 2005;
41 repeated int64 repeated_extension_int64 = 2006;
42 repeated sint64 repeated_extension_sint64 = 2007;
43 repeated uint64 repeated_extension_uint64 = 2008;
44 repeated sfixed32 repeated_extension_sfixed32 = 2009;
45 repeated fixed32 repeated_extension_fixed32 = 2010;
46 repeated float repeated_extension_float = 2011;
47 repeated sfixed64 repeated_extension_sfixed64 = 2012;
48 repeated fixed64 repeated_extension_fixed64 = 2013;
49 repeated double repeated_extension_double = 2014;
50 repeated string repeated_extension_string = 2015;
51 repeated bytes repeated_extension_bytes = 2016;
52 repeated Message repeated_extension_Message = 2017;
53}
View as plain text