@@ -5,6 +5,12 @@ import "google/protobuf/descriptor.proto";
55
66option go_package = "github.com/cosmos/cosmos-proto;cosmos_proto" ;
77
8+ extend google.protobuf.MethodOptions {
9+
10+ // method_added_in is used to indicate from which version the method was added.
11+ string method_added_in = 93001 ;
12+ }
13+
814extend google.protobuf.MessageOptions {
915
1016 // implements_interface is used to indicate the type name of the interface
@@ -13,6 +19,9 @@ extend google.protobuf.MessageOptions {
1319 // interfaces. Interfaces should be declared using a declare_interface
1420 // file option.
1521 repeated string implements_interface = 93001 ;
22+
23+ // message_added_in is used to indicate from which version the message was added.
24+ string message_added_in = 93002 ;
1625}
1726
1827extend google.protobuf.FieldOptions {
@@ -27,6 +36,9 @@ extend google.protobuf.FieldOptions {
2736 // generators may choose to use this information to map this field to a
2837 // language-specific type representing the scalar.
2938 string scalar = 93002 ;
39+
40+ // field_added_in is used to indicate from which version the field was added.
41+ string field_added_in = 93003 ;
3042}
3143
3244extend google.protobuf.FileOptions {
@@ -46,6 +58,9 @@ extend google.protobuf.FileOptions {
4658 // expected that the declaration will be found in a protobuf file named
4759 // a/b/scalars.proto in the file descriptor set.
4860 repeated ScalarDescriptor declare_scalar = 793022 ;
61+
62+ // file_added_in is used to indicate from which the version the file was added.
63+ string file_added_in = 793023 ;
4964}
5065
5166// InterfaceDescriptor describes an interface type to be used with
@@ -94,4 +109,4 @@ enum ScalarType {
94109 SCALAR_TYPE_UNSPECIFIED = 0 ;
95110 SCALAR_TYPE_STRING = 1 ;
96111 SCALAR_TYPE_BYTES = 2 ;
97- }
112+ }
0 commit comments