2018-12-26 23:57:16 +00:00
|
|
|
// Copyright 2018 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Different proto type definitions for testing the Types registry.
|
|
|
|
syntax = "proto2";
|
|
|
|
|
|
|
|
package testprotos;
|
2019-05-14 06:55:40 +00:00
|
|
|
option go_package = "google.golang.org/protobuf/reflect/protoregistry/testprotos";
|
2018-12-26 23:57:16 +00:00
|
|
|
|
|
|
|
message Message1 {
|
|
|
|
extensions 10 to max;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Message2 {}
|
|
|
|
|
|
|
|
message Message3 {}
|
|
|
|
|
|
|
|
enum Enum1 {
|
|
|
|
ONE = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Enum2 {
|
|
|
|
UNO = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Enum3 {
|
|
|
|
YI = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
extend Message1 {
|
|
|
|
optional string string_field = 11;
|
|
|
|
optional Enum1 enum_field = 12;
|
|
|
|
optional Message2 message_field = 13;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Message4 {
|
|
|
|
optional bool bool_field = 30;
|
|
|
|
|
|
|
|
extend Message1 {
|
|
|
|
optional Message2 message_field = 21;
|
|
|
|
optional Enum1 enum_field = 22;
|
|
|
|
optional string string_field = 23;
|
|
|
|
}
|
|
|
|
}
|