@@ -44,6 +44,11 @@ option csharp_namespace = "Google.Protobuf.WellKnownTypes";
44
44
option go_package = "google.golang.org/protobuf/types/known/typepb" ;
45
45
46
46
// A protocol buffer message type.
47
+ //
48
+ // New usages of this message as an alternative to DescriptorProto are strongly
49
+ // discouraged. This message does not reliability preserve all information
50
+ // necessary to model the schema and preserve semantics. Instead make use of
51
+ // FileDescriptorSet which preserves the necessary information.
47
52
message Type {
48
53
// The fully qualified message name.
49
54
string name = 1 ;
@@ -62,6 +67,11 @@ message Type {
62
67
}
63
68
64
69
// A single field of a message type.
70
+ //
71
+ // New usages of this message as an alternative to FieldDescriptorProto are
72
+ // strongly discouraged. This message does not reliability preserve all
73
+ // information necessary to model the schema and preserve semantics. Instead
74
+ // make use of FileDescriptorSet which preserves the necessary information.
65
75
message Field {
66
76
// Basic field types.
67
77
enum Kind {
@@ -142,6 +152,11 @@ message Field {
142
152
}
143
153
144
154
// Enum type definition.
155
+ //
156
+ // New usages of this message as an alternative to EnumDescriptorProto are
157
+ // strongly discouraged. This message does not reliability preserve all
158
+ // information necessary to model the schema and preserve semantics. Instead
159
+ // make use of FileDescriptorSet which preserves the necessary information.
145
160
message Enum {
146
161
// Enum type name.
147
162
string name = 1 ;
@@ -158,6 +173,11 @@ message Enum {
158
173
}
159
174
160
175
// Enum value definition.
176
+ //
177
+ // New usages of this message as an alternative to EnumValueDescriptorProto are
178
+ // strongly discouraged. This message does not reliability preserve all
179
+ // information necessary to model the schema and preserve semantics. Instead
180
+ // make use of FileDescriptorSet which preserves the necessary information.
161
181
message EnumValue {
162
182
// Enum value name.
163
183
string name = 1 ;
@@ -169,6 +189,10 @@ message EnumValue {
169
189
170
190
// A protocol buffer option, which can be attached to a message, field,
171
191
// enumeration, etc.
192
+ //
193
+ // New usages of this message as an alternative to FileOptions, MessageOptions,
194
+ // FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions
195
+ // are strongly discouraged.
172
196
message Option {
173
197
// The option's name. For protobuf built-in options (options defined in
174
198
// descriptor.proto), this is the short name. For example, `"map_entry"`.
0 commit comments