@lansweeper/integrations-assets-grpc 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/buf.yaml +23 -0
  3. package/gen-proto/assets_grpc_pb.js +1 -0
  4. package/gen-proto/assets_pb.d.ts +458 -0
  5. package/gen-proto/assets_pb.js +3599 -0
  6. package/gen-proto/image.json +1 -0
  7. package/gen-proto/index.d.ts +1 -0
  8. package/gen-proto/index.js +3 -0
  9. package/generated-go/assets.pb.go +1118 -0
  10. package/go.mod +3 -0
  11. package/java.json +6 -0
  12. package/package.json +18 -0
  13. package/pom.xml +76 -0
  14. package/proto/assets.proto +86 -0
  15. package/src/main/proto/assets.proto +86 -0
  16. package/target/classes/assets.proto +86 -0
  17. package/target/classes/lansweeper/integrations/assets/v1/Asset$1.class +0 -0
  18. package/target/classes/lansweeper/integrations/assets/v1/Asset$Builder.class +0 -0
  19. package/target/classes/lansweeper/integrations/assets/v1/Asset.class +0 -0
  20. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo$1.class +0 -0
  21. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo$Builder.class +0 -0
  22. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfo.class +0 -0
  23. package/target/classes/lansweeper/integrations/assets/v1/AssetBasicInfoOrBuilder.class +0 -0
  24. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom$1.class +0 -0
  25. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom$Builder.class +0 -0
  26. package/target/classes/lansweeper/integrations/assets/v1/AssetCustom.class +0 -0
  27. package/target/classes/lansweeper/integrations/assets/v1/AssetCustomOrBuilder.class +0 -0
  28. package/target/classes/lansweeper/integrations/assets/v1/AssetOrBuilder.class +0 -0
  29. package/target/classes/lansweeper/integrations/assets/v1/Assets.class +0 -0
  30. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom$1.class +0 -0
  31. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom$Builder.class +0 -0
  32. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustom.class +0 -0
  33. package/target/classes/lansweeper/integrations/assets/v1/CloudAssetCustomOrBuilder.class +0 -0
  34. package/target/classes/lansweeper/integrations/assets/v1/CustomField$1.class +0 -0
  35. package/target/classes/lansweeper/integrations/assets/v1/CustomField$Builder.class +0 -0
  36. package/target/classes/lansweeper/integrations/assets/v1/CustomField.class +0 -0
  37. package/target/classes/lansweeper/integrations/assets/v1/CustomFieldOrBuilder.class +0 -0
  38. package/target/classes/lansweeper/integrations/assets/v1/LockedFields$1.class +0 -0
  39. package/target/classes/lansweeper/integrations/assets/v1/LockedFields$Builder.class +0 -0
  40. package/target/classes/lansweeper/integrations/assets/v1/LockedFields.class +0 -0
  41. package/target/classes/lansweeper/integrations/assets/v1/LockedFieldsOrBuilder.class +0 -0
  42. package/target/classes/lansweeper/integrations/assets/v1/OtData$1.class +0 -0
  43. package/target/classes/lansweeper/integrations/assets/v1/OtData$Builder.class +0 -0
  44. package/target/classes/lansweeper/integrations/assets/v1/OtData.class +0 -0
  45. package/target/classes/lansweeper/integrations/assets/v1/OtDataOrBuilder.class +0 -0
  46. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/Asset.java +1292 -0
  47. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetBasicInfo.java +1431 -0
  48. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetBasicInfoOrBuilder.java +118 -0
  49. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetCustom.java +3690 -0
  50. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetCustomOrBuilder.java +351 -0
  51. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/AssetOrBuilder.java +84 -0
  52. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/Assets.java +176 -0
  53. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CloudAssetCustom.java +1316 -0
  54. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CloudAssetCustomOrBuilder.java +111 -0
  55. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CustomField.java +643 -0
  56. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/CustomFieldOrBuilder.java +33 -0
  57. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/LockedFields.java +2886 -0
  58. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/LockedFieldsOrBuilder.java +281 -0
  59. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/OtData.java +688 -0
  60. package/target/generated-sources/protobuf/java/lansweeper/integrations/assets/v1/OtDataOrBuilder.java +43 -0
  61. package/target/integrations-assets-model-0.1.0-sources.jar +0 -0
  62. package/target/integrations-assets-model-0.1.0.jar +0 -0
  63. package/target/maven-archiver/pom.properties +5 -0
  64. package/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +29 -0
  65. package/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +15 -0
  66. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/any.proto +161 -0
  67. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/api.proto +207 -0
  68. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/descriptor.proto +975 -0
  69. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/duration.proto +115 -0
  70. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/empty.proto +51 -0
  71. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/field_mask.proto +245 -0
  72. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/source_context.proto +48 -0
  73. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/struct.proto +95 -0
  74. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/timestamp.proto +144 -0
  75. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/type.proto +187 -0
  76. package/target/protoc-dependencies/7040d1881ddf12571fac95ba4e19f89c/google/protobuf/wrappers.proto +123 -0
  77. package/target/protoc-plugins/protoc-3.22.2-linux-x86_64.exe +0 -0
@@ -0,0 +1,975 @@
1
+ // Protocol Buffers - Google's data interchange format
2
+ // Copyright 2008 Google Inc. All rights reserved.
3
+ // https://developers.google.com/protocol-buffers/
4
+ //
5
+ // Redistribution and use in source and binary forms, with or without
6
+ // modification, are permitted provided that the following conditions are
7
+ // met:
8
+ //
9
+ // * Redistributions of source code must retain the above copyright
10
+ // notice, this list of conditions and the following disclaimer.
11
+ // * Redistributions in binary form must reproduce the above
12
+ // copyright notice, this list of conditions and the following disclaimer
13
+ // in the documentation and/or other materials provided with the
14
+ // distribution.
15
+ // * Neither the name of Google Inc. nor the names of its
16
+ // contributors may be used to endorse or promote products derived from
17
+ // this software without specific prior written permission.
18
+ //
19
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+
31
+ // Author: kenton@google.com (Kenton Varda)
32
+ // Based on original Protocol Buffers design by
33
+ // Sanjay Ghemawat, Jeff Dean, and others.
34
+ //
35
+ // The messages in this file describe the definitions found in .proto files.
36
+ // A valid .proto file can be translated directly to a FileDescriptorProto
37
+ // without any other information (e.g. without reading its imports).
38
+
39
+ syntax = "proto2";
40
+
41
+ package google.protobuf;
42
+
43
+ option go_package = "google.golang.org/protobuf/types/descriptorpb";
44
+ option java_package = "com.google.protobuf";
45
+ option java_outer_classname = "DescriptorProtos";
46
+ option csharp_namespace = "Google.Protobuf.Reflection";
47
+ option objc_class_prefix = "GPB";
48
+ option cc_enable_arenas = true;
49
+
50
+ // descriptor.proto must be optimized for speed because reflection-based
51
+ // algorithms don't work during bootstrapping.
52
+ option optimize_for = SPEED;
53
+
54
+ // The protocol compiler can output a FileDescriptorSet containing the .proto
55
+ // files it parses.
56
+ message FileDescriptorSet {
57
+ repeated FileDescriptorProto file = 1;
58
+ }
59
+
60
+ // Describes a complete .proto file.
61
+ message FileDescriptorProto {
62
+ optional string name = 1; // file name, relative to root of source tree
63
+ optional string package = 2; // e.g. "foo", "foo.bar", etc.
64
+
65
+ // Names of files imported by this file.
66
+ repeated string dependency = 3;
67
+ // Indexes of the public imported files in the dependency list above.
68
+ repeated int32 public_dependency = 10;
69
+ // Indexes of the weak imported files in the dependency list.
70
+ // For Google-internal migration only. Do not use.
71
+ repeated int32 weak_dependency = 11;
72
+
73
+ // All top-level definitions in this file.
74
+ repeated DescriptorProto message_type = 4;
75
+ repeated EnumDescriptorProto enum_type = 5;
76
+ repeated ServiceDescriptorProto service = 6;
77
+ repeated FieldDescriptorProto extension = 7;
78
+
79
+ optional FileOptions options = 8;
80
+
81
+ // This field contains optional information about the original source code.
82
+ // You may safely remove this entire field without harming runtime
83
+ // functionality of the descriptors -- the information is needed only by
84
+ // development tools.
85
+ optional SourceCodeInfo source_code_info = 9;
86
+
87
+ // The syntax of the proto file.
88
+ // The supported values are "proto2", "proto3", and "editions".
89
+ //
90
+ // If `edition` is present, this value must be "editions".
91
+ optional string syntax = 12;
92
+
93
+ // The edition of the proto file, which is an opaque string.
94
+ optional string edition = 13;
95
+ }
96
+
97
+ // Describes a message type.
98
+ message DescriptorProto {
99
+ optional string name = 1;
100
+
101
+ repeated FieldDescriptorProto field = 2;
102
+ repeated FieldDescriptorProto extension = 6;
103
+
104
+ repeated DescriptorProto nested_type = 3;
105
+ repeated EnumDescriptorProto enum_type = 4;
106
+
107
+ message ExtensionRange {
108
+ optional int32 start = 1; // Inclusive.
109
+ optional int32 end = 2; // Exclusive.
110
+
111
+ optional ExtensionRangeOptions options = 3;
112
+ }
113
+ repeated ExtensionRange extension_range = 5;
114
+
115
+ repeated OneofDescriptorProto oneof_decl = 8;
116
+
117
+ optional MessageOptions options = 7;
118
+
119
+ // Range of reserved tag numbers. Reserved tag numbers may not be used by
120
+ // fields or extension ranges in the same message. Reserved ranges may
121
+ // not overlap.
122
+ message ReservedRange {
123
+ optional int32 start = 1; // Inclusive.
124
+ optional int32 end = 2; // Exclusive.
125
+ }
126
+ repeated ReservedRange reserved_range = 9;
127
+ // Reserved field names, which may not be used by fields in the same message.
128
+ // A given name may only be reserved once.
129
+ repeated string reserved_name = 10;
130
+ }
131
+
132
+ message ExtensionRangeOptions {
133
+ // The parser stores options it doesn't recognize here. See above.
134
+ repeated UninterpretedOption uninterpreted_option = 999;
135
+
136
+ // Clients can define custom options in extensions of this message. See above.
137
+ extensions 1000 to max;
138
+ }
139
+
140
+ // Describes a field within a message.
141
+ message FieldDescriptorProto {
142
+ enum Type {
143
+ // 0 is reserved for errors.
144
+ // Order is weird for historical reasons.
145
+ TYPE_DOUBLE = 1;
146
+ TYPE_FLOAT = 2;
147
+ // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
148
+ // negative values are likely.
149
+ TYPE_INT64 = 3;
150
+ TYPE_UINT64 = 4;
151
+ // Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
152
+ // negative values are likely.
153
+ TYPE_INT32 = 5;
154
+ TYPE_FIXED64 = 6;
155
+ TYPE_FIXED32 = 7;
156
+ TYPE_BOOL = 8;
157
+ TYPE_STRING = 9;
158
+ // Tag-delimited aggregate.
159
+ // Group type is deprecated and not supported in proto3. However, Proto3
160
+ // implementations should still be able to parse the group wire format and
161
+ // treat group fields as unknown fields.
162
+ TYPE_GROUP = 10;
163
+ TYPE_MESSAGE = 11; // Length-delimited aggregate.
164
+
165
+ // New in version 2.
166
+ TYPE_BYTES = 12;
167
+ TYPE_UINT32 = 13;
168
+ TYPE_ENUM = 14;
169
+ TYPE_SFIXED32 = 15;
170
+ TYPE_SFIXED64 = 16;
171
+ TYPE_SINT32 = 17; // Uses ZigZag encoding.
172
+ TYPE_SINT64 = 18; // Uses ZigZag encoding.
173
+ }
174
+
175
+ enum Label {
176
+ // 0 is reserved for errors
177
+ LABEL_OPTIONAL = 1;
178
+ LABEL_REQUIRED = 2;
179
+ LABEL_REPEATED = 3;
180
+ }
181
+
182
+ optional string name = 1;
183
+ optional int32 number = 3;
184
+ optional Label label = 4;
185
+
186
+ // If type_name is set, this need not be set. If both this and type_name
187
+ // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
188
+ optional Type type = 5;
189
+
190
+ // For message and enum types, this is the name of the type. If the name
191
+ // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
192
+ // rules are used to find the type (i.e. first the nested types within this
193
+ // message are searched, then within the parent, on up to the root
194
+ // namespace).
195
+ optional string type_name = 6;
196
+
197
+ // For extensions, this is the name of the type being extended. It is
198
+ // resolved in the same manner as type_name.
199
+ optional string extendee = 2;
200
+
201
+ // For numeric types, contains the original text representation of the value.
202
+ // For booleans, "true" or "false".
203
+ // For strings, contains the default text contents (not escaped in any way).
204
+ // For bytes, contains the C escaped value. All bytes >= 128 are escaped.
205
+ optional string default_value = 7;
206
+
207
+ // If set, gives the index of a oneof in the containing type's oneof_decl
208
+ // list. This field is a member of that oneof.
209
+ optional int32 oneof_index = 9;
210
+
211
+ // JSON name of this field. The value is set by protocol compiler. If the
212
+ // user has set a "json_name" option on this field, that option's value
213
+ // will be used. Otherwise, it's deduced from the field's name by converting
214
+ // it to camelCase.
215
+ optional string json_name = 10;
216
+
217
+ optional FieldOptions options = 8;
218
+
219
+ // If true, this is a proto3 "optional". When a proto3 field is optional, it
220
+ // tracks presence regardless of field type.
221
+ //
222
+ // When proto3_optional is true, this field must be belong to a oneof to
223
+ // signal to old proto3 clients that presence is tracked for this field. This
224
+ // oneof is known as a "synthetic" oneof, and this field must be its sole
225
+ // member (each proto3 optional field gets its own synthetic oneof). Synthetic
226
+ // oneofs exist in the descriptor only, and do not generate any API. Synthetic
227
+ // oneofs must be ordered after all "real" oneofs.
228
+ //
229
+ // For message fields, proto3_optional doesn't create any semantic change,
230
+ // since non-repeated message fields always track presence. However it still
231
+ // indicates the semantic detail of whether the user wrote "optional" or not.
232
+ // This can be useful for round-tripping the .proto file. For consistency we
233
+ // give message fields a synthetic oneof also, even though it is not required
234
+ // to track presence. This is especially important because the parser can't
235
+ // tell if a field is a message or an enum, so it must always create a
236
+ // synthetic oneof.
237
+ //
238
+ // Proto2 optional fields do not set this flag, because they already indicate
239
+ // optional with `LABEL_OPTIONAL`.
240
+ optional bool proto3_optional = 17;
241
+ }
242
+
243
+ // Describes a oneof.
244
+ message OneofDescriptorProto {
245
+ optional string name = 1;
246
+ optional OneofOptions options = 2;
247
+ }
248
+
249
+ // Describes an enum type.
250
+ message EnumDescriptorProto {
251
+ optional string name = 1;
252
+
253
+ repeated EnumValueDescriptorProto value = 2;
254
+
255
+ optional EnumOptions options = 3;
256
+
257
+ // Range of reserved numeric values. Reserved values may not be used by
258
+ // entries in the same enum. Reserved ranges may not overlap.
259
+ //
260
+ // Note that this is distinct from DescriptorProto.ReservedRange in that it
261
+ // is inclusive such that it can appropriately represent the entire int32
262
+ // domain.
263
+ message EnumReservedRange {
264
+ optional int32 start = 1; // Inclusive.
265
+ optional int32 end = 2; // Inclusive.
266
+ }
267
+
268
+ // Range of reserved numeric values. Reserved numeric values may not be used
269
+ // by enum values in the same enum declaration. Reserved ranges may not
270
+ // overlap.
271
+ repeated EnumReservedRange reserved_range = 4;
272
+
273
+ // Reserved enum value names, which may not be reused. A given name may only
274
+ // be reserved once.
275
+ repeated string reserved_name = 5;
276
+ }
277
+
278
+ // Describes a value within an enum.
279
+ message EnumValueDescriptorProto {
280
+ optional string name = 1;
281
+ optional int32 number = 2;
282
+
283
+ optional EnumValueOptions options = 3;
284
+ }
285
+
286
+ // Describes a service.
287
+ message ServiceDescriptorProto {
288
+ optional string name = 1;
289
+ repeated MethodDescriptorProto method = 2;
290
+
291
+ optional ServiceOptions options = 3;
292
+ }
293
+
294
+ // Describes a method of a service.
295
+ message MethodDescriptorProto {
296
+ optional string name = 1;
297
+
298
+ // Input and output type names. These are resolved in the same way as
299
+ // FieldDescriptorProto.type_name, but must refer to a message type.
300
+ optional string input_type = 2;
301
+ optional string output_type = 3;
302
+
303
+ optional MethodOptions options = 4;
304
+
305
+ // Identifies if client streams multiple client messages
306
+ optional bool client_streaming = 5 [default = false];
307
+ // Identifies if server streams multiple server messages
308
+ optional bool server_streaming = 6 [default = false];
309
+ }
310
+
311
+ // ===================================================================
312
+ // Options
313
+
314
+ // Each of the definitions above may have "options" attached. These are
315
+ // just annotations which may cause code to be generated slightly differently
316
+ // or may contain hints for code that manipulates protocol messages.
317
+ //
318
+ // Clients may define custom options as extensions of the *Options messages.
319
+ // These extensions may not yet be known at parsing time, so the parser cannot
320
+ // store the values in them. Instead it stores them in a field in the *Options
321
+ // message called uninterpreted_option. This field must have the same name
322
+ // across all *Options messages. We then use this field to populate the
323
+ // extensions when we build a descriptor, at which point all protos have been
324
+ // parsed and so all extensions are known.
325
+ //
326
+ // Extension numbers for custom options may be chosen as follows:
327
+ // * For options which will only be used within a single application or
328
+ // organization, or for experimental options, use field numbers 50000
329
+ // through 99999. It is up to you to ensure that you do not use the
330
+ // same number for multiple options.
331
+ // * For options which will be published and used publicly by multiple
332
+ // independent entities, e-mail protobuf-global-extension-registry@google.com
333
+ // to reserve extension numbers. Simply provide your project name (e.g.
334
+ // Objective-C plugin) and your project website (if available) -- there's no
335
+ // need to explain how you intend to use them. Usually you only need one
336
+ // extension number. You can declare multiple options with only one extension
337
+ // number by putting them in a sub-message. See the Custom Options section of
338
+ // the docs for examples:
339
+ // https://developers.google.com/protocol-buffers/docs/proto#options
340
+ // If this turns out to be popular, a web service will be set up
341
+ // to automatically assign option numbers.
342
+
343
+ message FileOptions {
344
+
345
+ // Sets the Java package where classes generated from this .proto will be
346
+ // placed. By default, the proto package is used, but this is often
347
+ // inappropriate because proto packages do not normally start with backwards
348
+ // domain names.
349
+ optional string java_package = 1;
350
+
351
+ // Controls the name of the wrapper Java class generated for the .proto file.
352
+ // That class will always contain the .proto file's getDescriptor() method as
353
+ // well as any top-level extensions defined in the .proto file.
354
+ // If java_multiple_files is disabled, then all the other classes from the
355
+ // .proto file will be nested inside the single wrapper outer class.
356
+ optional string java_outer_classname = 8;
357
+
358
+ // If enabled, then the Java code generator will generate a separate .java
359
+ // file for each top-level message, enum, and service defined in the .proto
360
+ // file. Thus, these types will *not* be nested inside the wrapper class
361
+ // named by java_outer_classname. However, the wrapper class will still be
362
+ // generated to contain the file's getDescriptor() method as well as any
363
+ // top-level extensions defined in the file.
364
+ optional bool java_multiple_files = 10 [default = false];
365
+
366
+ // This option does nothing.
367
+ optional bool java_generate_equals_and_hash = 20 [deprecated=true];
368
+
369
+ // If set true, then the Java2 code generator will generate code that
370
+ // throws an exception whenever an attempt is made to assign a non-UTF-8
371
+ // byte sequence to a string field.
372
+ // Message reflection will do the same.
373
+ // However, an extension field still accepts non-UTF-8 byte sequences.
374
+ // This option has no effect on when used with the lite runtime.
375
+ optional bool java_string_check_utf8 = 27 [default = false];
376
+
377
+ // Generated classes can be optimized for speed or code size.
378
+ enum OptimizeMode {
379
+ SPEED = 1; // Generate complete code for parsing, serialization,
380
+ // etc.
381
+ CODE_SIZE = 2; // Use ReflectionOps to implement these methods.
382
+ LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime.
383
+ }
384
+ optional OptimizeMode optimize_for = 9 [default = SPEED];
385
+
386
+ // Sets the Go package where structs generated from this .proto will be
387
+ // placed. If omitted, the Go package will be derived from the following:
388
+ // - The basename of the package import path, if provided.
389
+ // - Otherwise, the package statement in the .proto file, if present.
390
+ // - Otherwise, the basename of the .proto file, without extension.
391
+ optional string go_package = 11;
392
+
393
+ // Should generic services be generated in each language? "Generic" services
394
+ // are not specific to any particular RPC system. They are generated by the
395
+ // main code generators in each language (without additional plugins).
396
+ // Generic services were the only kind of service generation supported by
397
+ // early versions of google.protobuf.
398
+ //
399
+ // Generic services are now considered deprecated in favor of using plugins
400
+ // that generate code specific to your particular RPC system. Therefore,
401
+ // these default to false. Old code which depends on generic services should
402
+ // explicitly set them to true.
403
+ optional bool cc_generic_services = 16 [default = false];
404
+ optional bool java_generic_services = 17 [default = false];
405
+ optional bool py_generic_services = 18 [default = false];
406
+ optional bool php_generic_services = 42 [default = false];
407
+
408
+ // Is this file deprecated?
409
+ // Depending on the target platform, this can emit Deprecated annotations
410
+ // for everything in the file, or it will be completely ignored; in the very
411
+ // least, this is a formalization for deprecating files.
412
+ optional bool deprecated = 23 [default = false];
413
+
414
+ // Enables the use of arenas for the proto messages in this file. This applies
415
+ // only to generated classes for C++.
416
+ optional bool cc_enable_arenas = 31 [default = true];
417
+
418
+ // Sets the objective c class prefix which is prepended to all objective c
419
+ // generated classes from this .proto. There is no default.
420
+ optional string objc_class_prefix = 36;
421
+
422
+ // Namespace for generated classes; defaults to the package.
423
+ optional string csharp_namespace = 37;
424
+
425
+ // By default Swift generators will take the proto package and CamelCase it
426
+ // replacing '.' with underscore and use that to prefix the types/symbols
427
+ // defined. When this options is provided, they will use this value instead
428
+ // to prefix the types/symbols defined.
429
+ optional string swift_prefix = 39;
430
+
431
+ // Sets the php class prefix which is prepended to all php generated classes
432
+ // from this .proto. Default is empty.
433
+ optional string php_class_prefix = 40;
434
+
435
+ // Use this option to change the namespace of php generated classes. Default
436
+ // is empty. When this option is empty, the package name will be used for
437
+ // determining the namespace.
438
+ optional string php_namespace = 41;
439
+
440
+ // Use this option to change the namespace of php generated metadata classes.
441
+ // Default is empty. When this option is empty, the proto file name will be
442
+ // used for determining the namespace.
443
+ optional string php_metadata_namespace = 44;
444
+
445
+ // Use this option to change the package of ruby generated classes. Default
446
+ // is empty. When this option is not set, the package name will be used for
447
+ // determining the ruby package.
448
+ optional string ruby_package = 45;
449
+
450
+ // The parser stores options it doesn't recognize here.
451
+ // See the documentation for the "Options" section above.
452
+ repeated UninterpretedOption uninterpreted_option = 999;
453
+
454
+ // Clients can define custom options in extensions of this message.
455
+ // See the documentation for the "Options" section above.
456
+ extensions 1000 to max;
457
+
458
+ reserved 38;
459
+ }
460
+
461
+ message MessageOptions {
462
+ // Set true to use the old proto1 MessageSet wire format for extensions.
463
+ // This is provided for backwards-compatibility with the MessageSet wire
464
+ // format. You should not use this for any other reason: It's less
465
+ // efficient, has fewer features, and is more complicated.
466
+ //
467
+ // The message must be defined exactly as follows:
468
+ // message Foo {
469
+ // option message_set_wire_format = true;
470
+ // extensions 4 to max;
471
+ // }
472
+ // Note that the message cannot have any defined fields; MessageSets only
473
+ // have extensions.
474
+ //
475
+ // All extensions of your type must be singular messages; e.g. they cannot
476
+ // be int32s, enums, or repeated messages.
477
+ //
478
+ // Because this is an option, the above two restrictions are not enforced by
479
+ // the protocol compiler.
480
+ optional bool message_set_wire_format = 1 [default = false];
481
+
482
+ // Disables the generation of the standard "descriptor()" accessor, which can
483
+ // conflict with a field of the same name. This is meant to make migration
484
+ // from proto1 easier; new code should avoid fields named "descriptor".
485
+ optional bool no_standard_descriptor_accessor = 2 [default = false];
486
+
487
+ // Is this message deprecated?
488
+ // Depending on the target platform, this can emit Deprecated annotations
489
+ // for the message, or it will be completely ignored; in the very least,
490
+ // this is a formalization for deprecating messages.
491
+ optional bool deprecated = 3 [default = false];
492
+
493
+ reserved 4, 5, 6;
494
+
495
+ // NOTE: Do not set the option in .proto files. Always use the maps syntax
496
+ // instead. The option should only be implicitly set by the proto compiler
497
+ // parser.
498
+ //
499
+ // Whether the message is an automatically generated map entry type for the
500
+ // maps field.
501
+ //
502
+ // For maps fields:
503
+ // map<KeyType, ValueType> map_field = 1;
504
+ // The parsed descriptor looks like:
505
+ // message MapFieldEntry {
506
+ // option map_entry = true;
507
+ // optional KeyType key = 1;
508
+ // optional ValueType value = 2;
509
+ // }
510
+ // repeated MapFieldEntry map_field = 1;
511
+ //
512
+ // Implementations may choose not to generate the map_entry=true message, but
513
+ // use a native map in the target language to hold the keys and values.
514
+ // The reflection APIs in such implementations still need to work as
515
+ // if the field is a repeated message field.
516
+ optional bool map_entry = 7;
517
+
518
+ reserved 8; // javalite_serializable
519
+ reserved 9; // javanano_as_lite
520
+
521
+ // Enable the legacy handling of JSON field name conflicts. This lowercases
522
+ // and strips underscored from the fields before comparison in proto3 only.
523
+ // The new behavior takes `json_name` into account and applies to proto2 as
524
+ // well.
525
+ //
526
+ // This should only be used as a temporary measure against broken builds due
527
+ // to the change in behavior for JSON field name conflicts.
528
+ //
529
+ // TODO(b/261750190) This is legacy behavior we plan to remove once downstream
530
+ // teams have had time to migrate.
531
+ optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
532
+
533
+ // The parser stores options it doesn't recognize here. See above.
534
+ repeated UninterpretedOption uninterpreted_option = 999;
535
+
536
+ // Clients can define custom options in extensions of this message. See above.
537
+ extensions 1000 to max;
538
+ }
539
+
540
+ message FieldOptions {
541
+ // The ctype option instructs the C++ code generator to use a different
542
+ // representation of the field than it normally would. See the specific
543
+ // options below. This option is not yet implemented in the open source
544
+ // release -- sorry, we'll try to include it in a future version!
545
+ optional CType ctype = 1 [default = STRING];
546
+ enum CType {
547
+ // Default mode.
548
+ STRING = 0;
549
+
550
+ CORD = 1;
551
+
552
+ STRING_PIECE = 2;
553
+ }
554
+ // The packed option can be enabled for repeated primitive fields to enable
555
+ // a more efficient representation on the wire. Rather than repeatedly
556
+ // writing the tag and type for each element, the entire array is encoded as
557
+ // a single length-delimited blob. In proto3, only explicit setting it to
558
+ // false will avoid using packed encoding.
559
+ optional bool packed = 2;
560
+
561
+ // The jstype option determines the JavaScript type used for values of the
562
+ // field. The option is permitted only for 64 bit integral and fixed types
563
+ // (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
564
+ // is represented as JavaScript string, which avoids loss of precision that
565
+ // can happen when a large value is converted to a floating point JavaScript.
566
+ // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
567
+ // use the JavaScript "number" type. The behavior of the default option
568
+ // JS_NORMAL is implementation dependent.
569
+ //
570
+ // This option is an enum to permit additional types to be added, e.g.
571
+ // goog.math.Integer.
572
+ optional JSType jstype = 6 [default = JS_NORMAL];
573
+ enum JSType {
574
+ // Use the default type.
575
+ JS_NORMAL = 0;
576
+
577
+ // Use JavaScript strings.
578
+ JS_STRING = 1;
579
+
580
+ // Use JavaScript numbers.
581
+ JS_NUMBER = 2;
582
+ }
583
+
584
+ // Should this field be parsed lazily? Lazy applies only to message-type
585
+ // fields. It means that when the outer message is initially parsed, the
586
+ // inner message's contents will not be parsed but instead stored in encoded
587
+ // form. The inner message will actually be parsed when it is first accessed.
588
+ //
589
+ // This is only a hint. Implementations are free to choose whether to use
590
+ // eager or lazy parsing regardless of the value of this option. However,
591
+ // setting this option true suggests that the protocol author believes that
592
+ // using lazy parsing on this field is worth the additional bookkeeping
593
+ // overhead typically needed to implement it.
594
+ //
595
+ // This option does not affect the public interface of any generated code;
596
+ // all method signatures remain the same. Furthermore, thread-safety of the
597
+ // interface is not affected by this option; const methods remain safe to
598
+ // call from multiple threads concurrently, while non-const methods continue
599
+ // to require exclusive access.
600
+ //
601
+ // Note that implementations may choose not to check required fields within
602
+ // a lazy sub-message. That is, calling IsInitialized() on the outer message
603
+ // may return true even if the inner message has missing required fields.
604
+ // This is necessary because otherwise the inner message would have to be
605
+ // parsed in order to perform the check, defeating the purpose of lazy
606
+ // parsing. An implementation which chooses not to check required fields
607
+ // must be consistent about it. That is, for any particular sub-message, the
608
+ // implementation must either *always* check its required fields, or *never*
609
+ // check its required fields, regardless of whether or not the message has
610
+ // been parsed.
611
+ //
612
+ // As of May 2022, lazy verifies the contents of the byte stream during
613
+ // parsing. An invalid byte stream will cause the overall parsing to fail.
614
+ optional bool lazy = 5 [default = false];
615
+
616
+ // unverified_lazy does no correctness checks on the byte stream. This should
617
+ // only be used where lazy with verification is prohibitive for performance
618
+ // reasons.
619
+ optional bool unverified_lazy = 15 [default = false];
620
+
621
+ // Is this field deprecated?
622
+ // Depending on the target platform, this can emit Deprecated annotations
623
+ // for accessors, or it will be completely ignored; in the very least, this
624
+ // is a formalization for deprecating fields.
625
+ optional bool deprecated = 3 [default = false];
626
+
627
+ // For Google-internal migration only. Do not use.
628
+ optional bool weak = 10 [default = false];
629
+
630
+ // Indicate that the field value should not be printed out when using debug
631
+ // formats, e.g. when the field contains sensitive credentials.
632
+ optional bool debug_redact = 16 [default = false];
633
+
634
+ // If set to RETENTION_SOURCE, the option will be omitted from the binary.
635
+ // Note: as of January 2023, support for this is in progress and does not yet
636
+ // have an effect (b/264593489).
637
+ enum OptionRetention {
638
+ RETENTION_UNKNOWN = 0;
639
+ RETENTION_RUNTIME = 1;
640
+ RETENTION_SOURCE = 2;
641
+ }
642
+
643
+ optional OptionRetention retention = 17;
644
+
645
+ // This indicates the types of entities that the field may apply to when used
646
+ // as an option. If it is unset, then the field may be freely used as an
647
+ // option on any kind of entity. Note: as of January 2023, support for this is
648
+ // in progress and does not yet have an effect (b/264593489).
649
+ enum OptionTargetType {
650
+ TARGET_TYPE_UNKNOWN = 0;
651
+ TARGET_TYPE_FILE = 1;
652
+ TARGET_TYPE_EXTENSION_RANGE = 2;
653
+ TARGET_TYPE_MESSAGE = 3;
654
+ TARGET_TYPE_FIELD = 4;
655
+ TARGET_TYPE_ONEOF = 5;
656
+ TARGET_TYPE_ENUM = 6;
657
+ TARGET_TYPE_ENUM_ENTRY = 7;
658
+ TARGET_TYPE_SERVICE = 8;
659
+ TARGET_TYPE_METHOD = 9;
660
+ }
661
+
662
+ optional OptionTargetType target = 18;
663
+
664
+ // The parser stores options it doesn't recognize here. See above.
665
+ repeated UninterpretedOption uninterpreted_option = 999;
666
+
667
+ // Clients can define custom options in extensions of this message. See above.
668
+ extensions 1000 to max;
669
+
670
+ reserved 4; // removed jtype
671
+ }
672
+
673
+ message OneofOptions {
674
+ // The parser stores options it doesn't recognize here. See above.
675
+ repeated UninterpretedOption uninterpreted_option = 999;
676
+
677
+ // Clients can define custom options in extensions of this message. See above.
678
+ extensions 1000 to max;
679
+ }
680
+
681
+ message EnumOptions {
682
+
683
+ // Set this option to true to allow mapping different tag names to the same
684
+ // value.
685
+ optional bool allow_alias = 2;
686
+
687
+ // Is this enum deprecated?
688
+ // Depending on the target platform, this can emit Deprecated annotations
689
+ // for the enum, or it will be completely ignored; in the very least, this
690
+ // is a formalization for deprecating enums.
691
+ optional bool deprecated = 3 [default = false];
692
+
693
+ reserved 5; // javanano_as_lite
694
+
695
+ // Enable the legacy handling of JSON field name conflicts. This lowercases
696
+ // and strips underscored from the fields before comparison in proto3 only.
697
+ // The new behavior takes `json_name` into account and applies to proto2 as
698
+ // well.
699
+ // TODO(b/261750190) Remove this legacy behavior once downstream teams have
700
+ // had time to migrate.
701
+ optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
702
+
703
+ // The parser stores options it doesn't recognize here. See above.
704
+ repeated UninterpretedOption uninterpreted_option = 999;
705
+
706
+ // Clients can define custom options in extensions of this message. See above.
707
+ extensions 1000 to max;
708
+ }
709
+
710
+ message EnumValueOptions {
711
+ // Is this enum value deprecated?
712
+ // Depending on the target platform, this can emit Deprecated annotations
713
+ // for the enum value, or it will be completely ignored; in the very least,
714
+ // this is a formalization for deprecating enum values.
715
+ optional bool deprecated = 1 [default = false];
716
+
717
+ // The parser stores options it doesn't recognize here. See above.
718
+ repeated UninterpretedOption uninterpreted_option = 999;
719
+
720
+ // Clients can define custom options in extensions of this message. See above.
721
+ extensions 1000 to max;
722
+ }
723
+
724
+ message ServiceOptions {
725
+
726
+ // Note: Field numbers 1 through 32 are reserved for Google's internal RPC
727
+ // framework. We apologize for hoarding these numbers to ourselves, but
728
+ // we were already using them long before we decided to release Protocol
729
+ // Buffers.
730
+
731
+ // Is this service deprecated?
732
+ // Depending on the target platform, this can emit Deprecated annotations
733
+ // for the service, or it will be completely ignored; in the very least,
734
+ // this is a formalization for deprecating services.
735
+ optional bool deprecated = 33 [default = false];
736
+
737
+ // The parser stores options it doesn't recognize here. See above.
738
+ repeated UninterpretedOption uninterpreted_option = 999;
739
+
740
+ // Clients can define custom options in extensions of this message. See above.
741
+ extensions 1000 to max;
742
+ }
743
+
744
+ message MethodOptions {
745
+
746
+ // Note: Field numbers 1 through 32 are reserved for Google's internal RPC
747
+ // framework. We apologize for hoarding these numbers to ourselves, but
748
+ // we were already using them long before we decided to release Protocol
749
+ // Buffers.
750
+
751
+ // Is this method deprecated?
752
+ // Depending on the target platform, this can emit Deprecated annotations
753
+ // for the method, or it will be completely ignored; in the very least,
754
+ // this is a formalization for deprecating methods.
755
+ optional bool deprecated = 33 [default = false];
756
+
757
+ // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
758
+ // or neither? HTTP based RPC implementation may choose GET verb for safe
759
+ // methods, and PUT verb for idempotent methods instead of the default POST.
760
+ enum IdempotencyLevel {
761
+ IDEMPOTENCY_UNKNOWN = 0;
762
+ NO_SIDE_EFFECTS = 1; // implies idempotent
763
+ IDEMPOTENT = 2; // idempotent, but may have side effects
764
+ }
765
+ optional IdempotencyLevel idempotency_level = 34
766
+ [default = IDEMPOTENCY_UNKNOWN];
767
+
768
+ // The parser stores options it doesn't recognize here. See above.
769
+ repeated UninterpretedOption uninterpreted_option = 999;
770
+
771
+ // Clients can define custom options in extensions of this message. See above.
772
+ extensions 1000 to max;
773
+ }
774
+
775
+ // A message representing a option the parser does not recognize. This only
776
+ // appears in options protos created by the compiler::Parser class.
777
+ // DescriptorPool resolves these when building Descriptor objects. Therefore,
778
+ // options protos in descriptor objects (e.g. returned by Descriptor::options(),
779
+ // or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
780
+ // in them.
781
+ message UninterpretedOption {
782
+ // The name of the uninterpreted option. Each string represents a segment in
783
+ // a dot-separated name. is_extension is true iff a segment represents an
784
+ // extension (denoted with parentheses in options specs in .proto files).
785
+ // E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
786
+ // "foo.(bar.baz).moo".
787
+ message NamePart {
788
+ required string name_part = 1;
789
+ required bool is_extension = 2;
790
+ }
791
+ repeated NamePart name = 2;
792
+
793
+ // The value of the uninterpreted option, in whatever type the tokenizer
794
+ // identified it as during parsing. Exactly one of these should be set.
795
+ optional string identifier_value = 3;
796
+ optional uint64 positive_int_value = 4;
797
+ optional int64 negative_int_value = 5;
798
+ optional double double_value = 6;
799
+ optional bytes string_value = 7;
800
+ optional string aggregate_value = 8;
801
+ }
802
+
803
+ // ===================================================================
804
+ // Optional source code info
805
+
806
+ // Encapsulates information about the original source file from which a
807
+ // FileDescriptorProto was generated.
808
+ message SourceCodeInfo {
809
+ // A Location identifies a piece of source code in a .proto file which
810
+ // corresponds to a particular definition. This information is intended
811
+ // to be useful to IDEs, code indexers, documentation generators, and similar
812
+ // tools.
813
+ //
814
+ // For example, say we have a file like:
815
+ // message Foo {
816
+ // optional string foo = 1;
817
+ // }
818
+ // Let's look at just the field definition:
819
+ // optional string foo = 1;
820
+ // ^ ^^ ^^ ^ ^^^
821
+ // a bc de f ghi
822
+ // We have the following locations:
823
+ // span path represents
824
+ // [a,i) [ 4, 0, 2, 0 ] The whole field definition.
825
+ // [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
826
+ // [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
827
+ // [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
828
+ // [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
829
+ //
830
+ // Notes:
831
+ // - A location may refer to a repeated field itself (i.e. not to any
832
+ // particular index within it). This is used whenever a set of elements are
833
+ // logically enclosed in a single code segment. For example, an entire
834
+ // extend block (possibly containing multiple extension definitions) will
835
+ // have an outer location whose path refers to the "extensions" repeated
836
+ // field without an index.
837
+ // - Multiple locations may have the same path. This happens when a single
838
+ // logical declaration is spread out across multiple places. The most
839
+ // obvious example is the "extend" block again -- there may be multiple
840
+ // extend blocks in the same scope, each of which will have the same path.
841
+ // - A location's span is not always a subset of its parent's span. For
842
+ // example, the "extendee" of an extension declaration appears at the
843
+ // beginning of the "extend" block and is shared by all extensions within
844
+ // the block.
845
+ // - Just because a location's span is a subset of some other location's span
846
+ // does not mean that it is a descendant. For example, a "group" defines
847
+ // both a type and a field in a single declaration. Thus, the locations
848
+ // corresponding to the type and field and their components will overlap.
849
+ // - Code which tries to interpret locations should probably be designed to
850
+ // ignore those that it doesn't understand, as more types of locations could
851
+ // be recorded in the future.
852
+ repeated Location location = 1;
853
+ message Location {
854
+ // Identifies which part of the FileDescriptorProto was defined at this
855
+ // location.
856
+ //
857
+ // Each element is a field number or an index. They form a path from
858
+ // the root FileDescriptorProto to the place where the definition occurs.
859
+ // For example, this path:
860
+ // [ 4, 3, 2, 7, 1 ]
861
+ // refers to:
862
+ // file.message_type(3) // 4, 3
863
+ // .field(7) // 2, 7
864
+ // .name() // 1
865
+ // This is because FileDescriptorProto.message_type has field number 4:
866
+ // repeated DescriptorProto message_type = 4;
867
+ // and DescriptorProto.field has field number 2:
868
+ // repeated FieldDescriptorProto field = 2;
869
+ // and FieldDescriptorProto.name has field number 1:
870
+ // optional string name = 1;
871
+ //
872
+ // Thus, the above path gives the location of a field name. If we removed
873
+ // the last element:
874
+ // [ 4, 3, 2, 7 ]
875
+ // this path refers to the whole field declaration (from the beginning
876
+ // of the label to the terminating semicolon).
877
+ repeated int32 path = 1 [packed = true];
878
+
879
+ // Always has exactly three or four elements: start line, start column,
880
+ // end line (optional, otherwise assumed same as start line), end column.
881
+ // These are packed into a single field for efficiency. Note that line
882
+ // and column numbers are zero-based -- typically you will want to add
883
+ // 1 to each before displaying to a user.
884
+ repeated int32 span = 2 [packed = true];
885
+
886
+ // If this SourceCodeInfo represents a complete declaration, these are any
887
+ // comments appearing before and after the declaration which appear to be
888
+ // attached to the declaration.
889
+ //
890
+ // A series of line comments appearing on consecutive lines, with no other
891
+ // tokens appearing on those lines, will be treated as a single comment.
892
+ //
893
+ // leading_detached_comments will keep paragraphs of comments that appear
894
+ // before (but not connected to) the current element. Each paragraph,
895
+ // separated by empty lines, will be one comment element in the repeated
896
+ // field.
897
+ //
898
+ // Only the comment content is provided; comment markers (e.g. //) are
899
+ // stripped out. For block comments, leading whitespace and an asterisk
900
+ // will be stripped from the beginning of each line other than the first.
901
+ // Newlines are included in the output.
902
+ //
903
+ // Examples:
904
+ //
905
+ // optional int32 foo = 1; // Comment attached to foo.
906
+ // // Comment attached to bar.
907
+ // optional int32 bar = 2;
908
+ //
909
+ // optional string baz = 3;
910
+ // // Comment attached to baz.
911
+ // // Another line attached to baz.
912
+ //
913
+ // // Comment attached to moo.
914
+ // //
915
+ // // Another line attached to moo.
916
+ // optional double moo = 4;
917
+ //
918
+ // // Detached comment for corge. This is not leading or trailing comments
919
+ // // to moo or corge because there are blank lines separating it from
920
+ // // both.
921
+ //
922
+ // // Detached comment for corge paragraph 2.
923
+ //
924
+ // optional string corge = 5;
925
+ // /* Block comment attached
926
+ // * to corge. Leading asterisks
927
+ // * will be removed. */
928
+ // /* Block comment attached to
929
+ // * grault. */
930
+ // optional int32 grault = 6;
931
+ //
932
+ // // ignored detached comments.
933
+ optional string leading_comments = 3;
934
+ optional string trailing_comments = 4;
935
+ repeated string leading_detached_comments = 6;
936
+ }
937
+ }
938
+
939
+ // Describes the relationship between generated code and its original source
940
+ // file. A GeneratedCodeInfo message is associated with only one generated
941
+ // source file, but may contain references to different source .proto files.
942
+ message GeneratedCodeInfo {
943
+ // An Annotation connects some span of text in generated code to an element
944
+ // of its generating .proto file.
945
+ repeated Annotation annotation = 1;
946
+ message Annotation {
947
+ // Identifies the element in the original source .proto file. This field
948
+ // is formatted the same as SourceCodeInfo.Location.path.
949
+ repeated int32 path = 1 [packed = true];
950
+
951
+ // Identifies the filesystem path to the original source .proto.
952
+ optional string source_file = 2;
953
+
954
+ // Identifies the starting offset in bytes in the generated code
955
+ // that relates to the identified object.
956
+ optional int32 begin = 3;
957
+
958
+ // Identifies the ending offset in bytes in the generated code that
959
+ // relates to the identified object. The end offset should be one past
960
+ // the last relevant byte (so the length of the text = end - begin).
961
+ optional int32 end = 4;
962
+
963
+ // Represents the identified object's effect on the element in the original
964
+ // .proto file.
965
+ enum Semantic {
966
+ // There is no effect or the effect is indescribable.
967
+ NONE = 0;
968
+ // The element is set or otherwise mutated.
969
+ SET = 1;
970
+ // An alias to the element is returned.
971
+ ALIAS = 2;
972
+ }
973
+ optional Semantic semantic = 5;
974
+ }
975
+ }