temporalio 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/bridge/Cargo.lock +20 -20
  3. data/bridge/Cargo.toml +3 -3
  4. data/lib/temporalio/bridge.rb +1 -1
  5. data/lib/temporalio/version.rb +1 -1
  6. data/lib/thermite_patch.rb +10 -0
  7. data/sig/async.rbs +17 -0
  8. data/sig/protobuf.rbs +16 -0
  9. data/sig/protos/dependencies/gogoproto/gogo.rbs +914 -0
  10. data/sig/protos/google/protobuf/any.rbs +157 -0
  11. data/sig/protos/google/protobuf/descriptor.rbs +2825 -0
  12. data/sig/protos/google/protobuf/duration.rbs +114 -0
  13. data/sig/protos/google/protobuf/empty.rbs +36 -0
  14. data/sig/protos/google/protobuf/timestamp.rbs +145 -0
  15. data/sig/protos/google/protobuf/wrappers.rbs +358 -0
  16. data/sig/protos/temporal/api/batch/v1/message.rbs +300 -0
  17. data/sig/protos/temporal/api/command/v1/message.rbs +1399 -0
  18. data/sig/protos/temporal/api/common/v1/message.rbs +528 -0
  19. data/sig/protos/temporal/api/enums/v1/batch_operation.rbs +79 -0
  20. data/sig/protos/temporal/api/enums/v1/command_type.rbs +68 -0
  21. data/sig/protos/temporal/api/enums/v1/common.rbs +118 -0
  22. data/sig/protos/temporal/api/enums/v1/event_type.rbs +264 -0
  23. data/sig/protos/temporal/api/enums/v1/failed_cause.rbs +277 -0
  24. data/sig/protos/temporal/api/enums/v1/namespace.rbs +108 -0
  25. data/sig/protos/temporal/api/enums/v1/query.rbs +81 -0
  26. data/sig/protos/temporal/api/enums/v1/reset.rbs +44 -0
  27. data/sig/protos/temporal/api/enums/v1/schedule.rbs +72 -0
  28. data/sig/protos/temporal/api/enums/v1/task_queue.rbs +92 -0
  29. data/sig/protos/temporal/api/enums/v1/update.rbs +64 -0
  30. data/sig/protos/temporal/api/enums/v1/workflow.rbs +371 -0
  31. data/sig/protos/temporal/api/errordetails/v1/message.rbs +551 -0
  32. data/sig/protos/temporal/api/failure/v1/message.rbs +581 -0
  33. data/sig/protos/temporal/api/filter/v1/message.rbs +171 -0
  34. data/sig/protos/temporal/api/history/v1/message.rbs +4609 -0
  35. data/sig/protos/temporal/api/namespace/v1/message.rbs +410 -0
  36. data/sig/protos/temporal/api/operatorservice/v1/request_response.rbs +643 -0
  37. data/sig/protos/temporal/api/operatorservice/v1/service.rbs +17 -0
  38. data/sig/protos/temporal/api/protocol/v1/message.rbs +84 -0
  39. data/sig/protos/temporal/api/query/v1/message.rbs +182 -0
  40. data/sig/protos/temporal/api/replication/v1/message.rbs +148 -0
  41. data/sig/protos/temporal/api/schedule/v1/message.rbs +1488 -0
  42. data/sig/protos/temporal/api/sdk/v1/task_complete_metadata.rbs +110 -0
  43. data/sig/protos/temporal/api/taskqueue/v1/message.rbs +486 -0
  44. data/sig/protos/temporal/api/testservice/v1/request_response.rbs +249 -0
  45. data/sig/protos/temporal/api/testservice/v1/service.rbs +15 -0
  46. data/sig/protos/temporal/api/update/v1/message.rbs +489 -0
  47. data/sig/protos/temporal/api/version/v1/message.rbs +184 -0
  48. data/sig/protos/temporal/api/workflow/v1/message.rbs +824 -0
  49. data/sig/protos/temporal/api/workflowservice/v1/request_response.rbs +7250 -0
  50. data/sig/protos/temporal/api/workflowservice/v1/service.rbs +22 -0
  51. data/sig/protos/temporal/sdk/core/activity_result/activity_result.rbs +380 -0
  52. data/sig/protos/temporal/sdk/core/activity_task/activity_task.rbs +386 -0
  53. data/sig/protos/temporal/sdk/core/child_workflow/child_workflow.rbs +323 -0
  54. data/sig/protos/temporal/sdk/core/common/common.rbs +62 -0
  55. data/sig/protos/temporal/sdk/core/core_interface.rbs +101 -0
  56. data/sig/protos/temporal/sdk/core/external_data/external_data.rbs +119 -0
  57. data/sig/protos/temporal/sdk/core/workflow_activation/workflow_activation.rbs +1473 -0
  58. data/sig/protos/temporal/sdk/core/workflow_commands/workflow_commands.rbs +1784 -0
  59. data/sig/protos/temporal/sdk/core/workflow_completion/workflow_completion.rbs +180 -0
  60. data/sig/ruby.rbs +12 -0
  61. data/sig/temporalio/activity/context.rbs +29 -0
  62. data/sig/temporalio/activity/info.rbs +43 -0
  63. data/sig/temporalio/activity.rbs +19 -0
  64. data/sig/temporalio/bridge/connect_options.rbs +19 -0
  65. data/sig/temporalio/bridge/error.rbs +8 -0
  66. data/sig/temporalio/bridge/retry_config.rbs +21 -0
  67. data/sig/temporalio/bridge/tls_options.rbs +17 -0
  68. data/sig/temporalio/bridge.rbs +71 -0
  69. data/sig/temporalio/client/implementation.rbs +38 -0
  70. data/sig/temporalio/client/workflow_handle.rbs +41 -0
  71. data/sig/temporalio/client.rbs +35 -0
  72. data/sig/temporalio/connection/retry_config.rbs +37 -0
  73. data/sig/temporalio/connection/service.rbs +14 -0
  74. data/sig/temporalio/connection/test_service.rbs +13 -0
  75. data/sig/temporalio/connection/tls_options.rbs +43 -0
  76. data/sig/temporalio/connection/workflow_service.rbs +48 -0
  77. data/sig/temporalio/connection.rbs +30 -0
  78. data/sig/temporalio/data_converter.rbs +35 -0
  79. data/sig/temporalio/error/failure.rbs +121 -0
  80. data/sig/temporalio/error/workflow_failure.rbs +9 -0
  81. data/sig/temporalio/errors.rbs +36 -0
  82. data/sig/temporalio/failure_converter/base.rbs +12 -0
  83. data/sig/temporalio/failure_converter/basic.rbs +86 -0
  84. data/sig/temporalio/failure_converter.rbs +5 -0
  85. data/sig/temporalio/interceptor/activity_inbound.rbs +21 -0
  86. data/sig/temporalio/interceptor/activity_outbound.rbs +10 -0
  87. data/sig/temporalio/interceptor/chain.rbs +24 -0
  88. data/sig/temporalio/interceptor/client.rbs +148 -0
  89. data/sig/temporalio/interceptor.rbs +6 -0
  90. data/sig/temporalio/payload_codec/base.rbs +12 -0
  91. data/sig/temporalio/payload_converter/base.rbs +12 -0
  92. data/sig/temporalio/payload_converter/bytes.rbs +9 -0
  93. data/sig/temporalio/payload_converter/composite.rbs +19 -0
  94. data/sig/temporalio/payload_converter/encoding_base.rbs +14 -0
  95. data/sig/temporalio/payload_converter/json.rbs +9 -0
  96. data/sig/temporalio/payload_converter/nil.rbs +9 -0
  97. data/sig/temporalio/payload_converter.rbs +5 -0
  98. data/sig/temporalio/retry_policy.rbs +25 -0
  99. data/sig/temporalio/retry_state.rbs +20 -0
  100. data/sig/temporalio/runtime.rbs +12 -0
  101. data/sig/temporalio/testing/time_skipping_handle.rbs +15 -0
  102. data/sig/temporalio/testing/time_skipping_interceptor.rbs +13 -0
  103. data/sig/temporalio/testing/workflow_environment.rbs +22 -0
  104. data/sig/temporalio/testing.rbs +35 -0
  105. data/sig/temporalio/timeout_type.rbs +15 -0
  106. data/sig/temporalio/version.rbs +3 -0
  107. data/sig/temporalio/worker/activity_runner.rbs +35 -0
  108. data/sig/temporalio/worker/activity_worker.rbs +44 -0
  109. data/sig/temporalio/worker/reactor.rbs +22 -0
  110. data/sig/temporalio/worker/runner.rbs +21 -0
  111. data/sig/temporalio/worker/sync_worker.rbs +23 -0
  112. data/sig/temporalio/worker/thread_pool_executor.rbs +23 -0
  113. data/sig/temporalio/worker.rbs +46 -0
  114. data/sig/temporalio/workflow/async.rbs +9 -0
  115. data/sig/temporalio/workflow/execution_info.rbs +55 -0
  116. data/sig/temporalio/workflow/execution_status.rbs +21 -0
  117. data/sig/temporalio/workflow/future.rbs +40 -0
  118. data/sig/temporalio/workflow/id_reuse_policy.rbs +15 -0
  119. data/sig/temporalio/workflow/info.rbs +55 -0
  120. data/sig/temporalio/workflow/query_reject_condition.rbs +14 -0
  121. data/sig/temporalio.rbs +2 -0
  122. data/sig/thermite_patch.rbs +15 -0
  123. data/temporalio.gemspec +2 -1
  124. metadata +118 -2
@@ -0,0 +1,2825 @@
1
+ module Google
2
+ module Protobuf
3
+ # The protocol compiler can output a FileDescriptorSet containing the .proto
4
+ # files it parses.
5
+ #
6
+ class FileDescriptorSet < ::Protobuf::Message
7
+ # Encode the message to a binary string
8
+ #
9
+ def self.encode: (FileDescriptorSet) -> String
10
+
11
+ attr_accessor file(): ::Google::Protobuf::FileDescriptorProto::field_array
12
+
13
+ def file=: (::Google::Protobuf::FileDescriptorProto::array) -> ::Google::Protobuf::FileDescriptorProto::array
14
+ | ...
15
+
16
+ def file!: () -> ::Google::Protobuf::FileDescriptorProto::field_array?
17
+
18
+ def initialize: (?file: ::Google::Protobuf::FileDescriptorProto::array) -> void
19
+
20
+ def []: (:file) -> ::Google::Protobuf::FileDescriptorProto::field_array
21
+ | (::Symbol) -> untyped
22
+
23
+ def []=: (:file, ::Google::Protobuf::FileDescriptorProto::field_array) -> ::Google::Protobuf::FileDescriptorProto::field_array
24
+ | (:file, ::Google::Protobuf::FileDescriptorProto::array) -> ::Google::Protobuf::FileDescriptorProto::array
25
+ | (::Symbol, untyped) -> untyped
26
+
27
+ interface _ToProto
28
+ def to_proto: () -> FileDescriptorSet
29
+ end
30
+
31
+ # The type of `#initialize` parameter.
32
+ type init = FileDescriptorSet | _ToProto
33
+
34
+ # The type of `repeated` field.
35
+ type field_array = ::Protobuf::Field::FieldArray[FileDescriptorSet, FileDescriptorSet | _ToProto]
36
+
37
+ # The type of `map` field.
38
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, FileDescriptorSet, FileDescriptorSet | _ToProto]
39
+
40
+ type array = ::Array[FileDescriptorSet | _ToProto]
41
+
42
+ type hash[KEY] = ::Hash[KEY, FileDescriptorSet | _ToProto]
43
+ end
44
+
45
+ # Describes a complete .proto file.
46
+ #
47
+ class FileDescriptorProto < ::Protobuf::Message
48
+ # Encode the message to a binary string
49
+ #
50
+ def self.encode: (FileDescriptorProto) -> String
51
+
52
+ # file name, relative to root of source tree
53
+ #
54
+ attr_accessor name(): ::String
55
+
56
+ def name!: () -> ::String?
57
+
58
+ # e.g. "foo", "foo.bar", etc.
59
+ #
60
+ attr_accessor package(): ::String
61
+
62
+ def package!: () -> ::String?
63
+
64
+ # Names of files imported by this file.
65
+ #
66
+ attr_accessor dependency(): ::Protobuf::field_array[::String]
67
+
68
+ # Names of files imported by this file.
69
+ #
70
+ def dependency=: (::Array[::String]) -> ::Array[::String]
71
+ | ...
72
+
73
+ def dependency!: () -> ::Protobuf::field_array[::String]?
74
+
75
+ # Indexes of the public imported files in the dependency list above.
76
+ #
77
+ attr_accessor public_dependency(): ::Protobuf::field_array[::Integer]
78
+
79
+ # Indexes of the public imported files in the dependency list above.
80
+ #
81
+ def public_dependency=: (::Array[::Integer]) -> ::Array[::Integer]
82
+ | ...
83
+
84
+ def public_dependency!: () -> ::Protobuf::field_array[::Integer]?
85
+
86
+ # Indexes of the weak imported files in the dependency list.
87
+ # For Google-internal migration only. Do not use.
88
+ #
89
+ attr_accessor weak_dependency(): ::Protobuf::field_array[::Integer]
90
+
91
+ # Indexes of the weak imported files in the dependency list.
92
+ # For Google-internal migration only. Do not use.
93
+ #
94
+ def weak_dependency=: (::Array[::Integer]) -> ::Array[::Integer]
95
+ | ...
96
+
97
+ def weak_dependency!: () -> ::Protobuf::field_array[::Integer]?
98
+
99
+ # All top-level definitions in this file.
100
+ #
101
+ attr_accessor message_type(): ::Google::Protobuf::DescriptorProto::field_array
102
+
103
+ # All top-level definitions in this file.
104
+ #
105
+ def message_type=: (::Google::Protobuf::DescriptorProto::array) -> ::Google::Protobuf::DescriptorProto::array
106
+ | ...
107
+
108
+ def message_type!: () -> ::Google::Protobuf::DescriptorProto::field_array?
109
+
110
+ attr_accessor enum_type(): ::Google::Protobuf::EnumDescriptorProto::field_array
111
+
112
+ def enum_type=: (::Google::Protobuf::EnumDescriptorProto::array) -> ::Google::Protobuf::EnumDescriptorProto::array
113
+ | ...
114
+
115
+ def enum_type!: () -> ::Google::Protobuf::EnumDescriptorProto::field_array?
116
+
117
+ attr_accessor service(): ::Google::Protobuf::ServiceDescriptorProto::field_array
118
+
119
+ def service=: (::Google::Protobuf::ServiceDescriptorProto::array) -> ::Google::Protobuf::ServiceDescriptorProto::array
120
+ | ...
121
+
122
+ def service!: () -> ::Google::Protobuf::ServiceDescriptorProto::field_array?
123
+
124
+ attr_accessor extension(): ::Google::Protobuf::FieldDescriptorProto::field_array
125
+
126
+ def extension=: (::Google::Protobuf::FieldDescriptorProto::array) -> ::Google::Protobuf::FieldDescriptorProto::array
127
+ | ...
128
+
129
+ def extension!: () -> ::Google::Protobuf::FieldDescriptorProto::field_array?
130
+
131
+ attr_accessor options(): ::Google::Protobuf::FileOptions?
132
+
133
+ def options=: [M < ::Google::Protobuf::FileOptions::_ToProto] (M?) -> M?
134
+ | ...
135
+
136
+ def options!: () -> ::Google::Protobuf::FileOptions?
137
+
138
+ # This field contains optional information about the original source code.
139
+ # You may safely remove this entire field without harming runtime
140
+ # functionality of the descriptors -- the information is needed only by
141
+ # development tools.
142
+ #
143
+ attr_accessor source_code_info(): ::Google::Protobuf::SourceCodeInfo?
144
+
145
+ # This field contains optional information about the original source code.
146
+ # You may safely remove this entire field without harming runtime
147
+ # functionality of the descriptors -- the information is needed only by
148
+ # development tools.
149
+ #
150
+ def source_code_info=: [M < ::Google::Protobuf::SourceCodeInfo::_ToProto] (M?) -> M?
151
+ | ...
152
+
153
+ def source_code_info!: () -> ::Google::Protobuf::SourceCodeInfo?
154
+
155
+ # The syntax of the proto file.
156
+ # The supported values are "proto2" and "proto3".
157
+ #
158
+ attr_accessor syntax(): ::String
159
+
160
+ def syntax!: () -> ::String?
161
+
162
+ def initialize: (?name: ::String, ?package: ::String, ?dependency: ::Array[::String], ?public_dependency: ::Array[::Integer], ?weak_dependency: ::Array[::Integer], ?message_type: ::Google::Protobuf::DescriptorProto::array, ?enum_type: ::Google::Protobuf::EnumDescriptorProto::array, ?service: ::Google::Protobuf::ServiceDescriptorProto::array, ?extension: ::Google::Protobuf::FieldDescriptorProto::array, ?options: ::Google::Protobuf::FileOptions::init?, ?source_code_info: ::Google::Protobuf::SourceCodeInfo::init?, ?syntax: ::String) -> void
163
+
164
+ def []: (:name) -> ::String
165
+ | (:package) -> ::String
166
+ | (:dependency) -> ::Protobuf::field_array[::String]
167
+ | (:public_dependency) -> ::Protobuf::field_array[::Integer]
168
+ | (:weak_dependency) -> ::Protobuf::field_array[::Integer]
169
+ | (:message_type) -> ::Google::Protobuf::DescriptorProto::field_array
170
+ | (:enum_type) -> ::Google::Protobuf::EnumDescriptorProto::field_array
171
+ | (:service) -> ::Google::Protobuf::ServiceDescriptorProto::field_array
172
+ | (:extension) -> ::Google::Protobuf::FieldDescriptorProto::field_array
173
+ | (:options) -> ::Google::Protobuf::FileOptions?
174
+ | (:source_code_info) -> ::Google::Protobuf::SourceCodeInfo?
175
+ | (:syntax) -> ::String
176
+ | (::Symbol) -> untyped
177
+
178
+ def []=: (:name, ::String) -> ::String
179
+ | (:package, ::String) -> ::String
180
+ | (:dependency, ::Protobuf::field_array[::String]) -> ::Protobuf::field_array[::String]
181
+ | (:dependency, ::Array[::String]) -> ::Array[::String]
182
+ | (:public_dependency, ::Protobuf::field_array[::Integer]) -> ::Protobuf::field_array[::Integer]
183
+ | (:public_dependency, ::Array[::Integer]) -> ::Array[::Integer]
184
+ | (:weak_dependency, ::Protobuf::field_array[::Integer]) -> ::Protobuf::field_array[::Integer]
185
+ | (:weak_dependency, ::Array[::Integer]) -> ::Array[::Integer]
186
+ | (:message_type, ::Google::Protobuf::DescriptorProto::field_array) -> ::Google::Protobuf::DescriptorProto::field_array
187
+ | (:message_type, ::Google::Protobuf::DescriptorProto::array) -> ::Google::Protobuf::DescriptorProto::array
188
+ | (:enum_type, ::Google::Protobuf::EnumDescriptorProto::field_array) -> ::Google::Protobuf::EnumDescriptorProto::field_array
189
+ | (:enum_type, ::Google::Protobuf::EnumDescriptorProto::array) -> ::Google::Protobuf::EnumDescriptorProto::array
190
+ | (:service, ::Google::Protobuf::ServiceDescriptorProto::field_array) -> ::Google::Protobuf::ServiceDescriptorProto::field_array
191
+ | (:service, ::Google::Protobuf::ServiceDescriptorProto::array) -> ::Google::Protobuf::ServiceDescriptorProto::array
192
+ | (:extension, ::Google::Protobuf::FieldDescriptorProto::field_array) -> ::Google::Protobuf::FieldDescriptorProto::field_array
193
+ | (:extension, ::Google::Protobuf::FieldDescriptorProto::array) -> ::Google::Protobuf::FieldDescriptorProto::array
194
+ | (:options, ::Google::Protobuf::FileOptions?) -> ::Google::Protobuf::FileOptions?
195
+ | [M < ::Google::Protobuf::FileOptions::_ToProto] (:options, M?) -> M?
196
+ | (:source_code_info, ::Google::Protobuf::SourceCodeInfo?) -> ::Google::Protobuf::SourceCodeInfo?
197
+ | [M < ::Google::Protobuf::SourceCodeInfo::_ToProto] (:source_code_info, M?) -> M?
198
+ | (:syntax, ::String) -> ::String
199
+ | (::Symbol, untyped) -> untyped
200
+
201
+ interface _ToProto
202
+ def to_proto: () -> FileDescriptorProto
203
+ end
204
+
205
+ # The type of `#initialize` parameter.
206
+ type init = FileDescriptorProto | _ToProto
207
+
208
+ # The type of `repeated` field.
209
+ type field_array = ::Protobuf::Field::FieldArray[FileDescriptorProto, FileDescriptorProto | _ToProto]
210
+
211
+ # The type of `map` field.
212
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, FileDescriptorProto, FileDescriptorProto | _ToProto]
213
+
214
+ type array = ::Array[FileDescriptorProto | _ToProto]
215
+
216
+ type hash[KEY] = ::Hash[KEY, FileDescriptorProto | _ToProto]
217
+ end
218
+
219
+ # Describes a message type.
220
+ #
221
+ class DescriptorProto < ::Protobuf::Message
222
+ # Encode the message to a binary string
223
+ #
224
+ def self.encode: (DescriptorProto) -> String
225
+
226
+ class ExtensionRange < ::Protobuf::Message
227
+ # Encode the message to a binary string
228
+ #
229
+ def self.encode: (ExtensionRange) -> String
230
+
231
+ # Inclusive.
232
+ #
233
+ attr_accessor start(): ::Integer
234
+
235
+ def start!: () -> ::Integer?
236
+
237
+ # Exclusive.
238
+ #
239
+ attr_accessor end(): ::Integer
240
+
241
+ def end!: () -> ::Integer?
242
+
243
+ attr_accessor options(): ::Google::Protobuf::ExtensionRangeOptions?
244
+
245
+ def options=: [M < ::Google::Protobuf::ExtensionRangeOptions::_ToProto] (M?) -> M?
246
+ | ...
247
+
248
+ def options!: () -> ::Google::Protobuf::ExtensionRangeOptions?
249
+
250
+ def initialize: (?start: ::Integer, ?end: ::Integer, ?options: ::Google::Protobuf::ExtensionRangeOptions::init?) -> void
251
+
252
+ def []: (:start) -> ::Integer
253
+ | (:end) -> ::Integer
254
+ | (:options) -> ::Google::Protobuf::ExtensionRangeOptions?
255
+ | (::Symbol) -> untyped
256
+
257
+ def []=: (:start, ::Integer) -> ::Integer
258
+ | (:end, ::Integer) -> ::Integer
259
+ | (:options, ::Google::Protobuf::ExtensionRangeOptions?) -> ::Google::Protobuf::ExtensionRangeOptions?
260
+ | [M < ::Google::Protobuf::ExtensionRangeOptions::_ToProto] (:options, M?) -> M?
261
+ | (::Symbol, untyped) -> untyped
262
+
263
+ interface _ToProto
264
+ def to_proto: () -> ExtensionRange
265
+ end
266
+
267
+ # The type of `#initialize` parameter.
268
+ type init = ExtensionRange | _ToProto
269
+
270
+ # The type of `repeated` field.
271
+ type field_array = ::Protobuf::Field::FieldArray[ExtensionRange, ExtensionRange | _ToProto]
272
+
273
+ # The type of `map` field.
274
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ExtensionRange, ExtensionRange | _ToProto]
275
+
276
+ type array = ::Array[ExtensionRange | _ToProto]
277
+
278
+ type hash[KEY] = ::Hash[KEY, ExtensionRange | _ToProto]
279
+ end
280
+
281
+ # Range of reserved tag numbers. Reserved tag numbers may not be used by
282
+ # fields or extension ranges in the same message. Reserved ranges may
283
+ # not overlap.
284
+ #
285
+ class ReservedRange < ::Protobuf::Message
286
+ # Encode the message to a binary string
287
+ #
288
+ def self.encode: (ReservedRange) -> String
289
+
290
+ # Inclusive.
291
+ #
292
+ attr_accessor start(): ::Integer
293
+
294
+ def start!: () -> ::Integer?
295
+
296
+ # Exclusive.
297
+ #
298
+ attr_accessor end(): ::Integer
299
+
300
+ def end!: () -> ::Integer?
301
+
302
+ def initialize: (?start: ::Integer, ?end: ::Integer) -> void
303
+
304
+ def []: (:start) -> ::Integer
305
+ | (:end) -> ::Integer
306
+ | (::Symbol) -> untyped
307
+
308
+ def []=: (:start, ::Integer) -> ::Integer
309
+ | (:end, ::Integer) -> ::Integer
310
+ | (::Symbol, untyped) -> untyped
311
+
312
+ interface _ToProto
313
+ def to_proto: () -> ReservedRange
314
+ end
315
+
316
+ # The type of `#initialize` parameter.
317
+ type init = ReservedRange | _ToProto
318
+
319
+ # The type of `repeated` field.
320
+ type field_array = ::Protobuf::Field::FieldArray[ReservedRange, ReservedRange | _ToProto]
321
+
322
+ # The type of `map` field.
323
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ReservedRange, ReservedRange | _ToProto]
324
+
325
+ type array = ::Array[ReservedRange | _ToProto]
326
+
327
+ type hash[KEY] = ::Hash[KEY, ReservedRange | _ToProto]
328
+ end
329
+
330
+ attr_accessor name(): ::String
331
+
332
+ def name!: () -> ::String?
333
+
334
+ attr_accessor field(): ::Google::Protobuf::FieldDescriptorProto::field_array
335
+
336
+ def field=: (::Google::Protobuf::FieldDescriptorProto::array) -> ::Google::Protobuf::FieldDescriptorProto::array
337
+ | ...
338
+
339
+ def field!: () -> ::Google::Protobuf::FieldDescriptorProto::field_array?
340
+
341
+ attr_accessor extension(): ::Google::Protobuf::FieldDescriptorProto::field_array
342
+
343
+ def extension=: (::Google::Protobuf::FieldDescriptorProto::array) -> ::Google::Protobuf::FieldDescriptorProto::array
344
+ | ...
345
+
346
+ def extension!: () -> ::Google::Protobuf::FieldDescriptorProto::field_array?
347
+
348
+ attr_accessor nested_type(): ::Google::Protobuf::DescriptorProto::field_array
349
+
350
+ def nested_type=: (::Google::Protobuf::DescriptorProto::array) -> ::Google::Protobuf::DescriptorProto::array
351
+ | ...
352
+
353
+ def nested_type!: () -> ::Google::Protobuf::DescriptorProto::field_array?
354
+
355
+ attr_accessor enum_type(): ::Google::Protobuf::EnumDescriptorProto::field_array
356
+
357
+ def enum_type=: (::Google::Protobuf::EnumDescriptorProto::array) -> ::Google::Protobuf::EnumDescriptorProto::array
358
+ | ...
359
+
360
+ def enum_type!: () -> ::Google::Protobuf::EnumDescriptorProto::field_array?
361
+
362
+ attr_accessor extension_range(): ::Google::Protobuf::DescriptorProto::ExtensionRange::field_array
363
+
364
+ def extension_range=: (::Google::Protobuf::DescriptorProto::ExtensionRange::array) -> ::Google::Protobuf::DescriptorProto::ExtensionRange::array
365
+ | ...
366
+
367
+ def extension_range!: () -> ::Google::Protobuf::DescriptorProto::ExtensionRange::field_array?
368
+
369
+ attr_accessor oneof_decl(): ::Google::Protobuf::OneofDescriptorProto::field_array
370
+
371
+ def oneof_decl=: (::Google::Protobuf::OneofDescriptorProto::array) -> ::Google::Protobuf::OneofDescriptorProto::array
372
+ | ...
373
+
374
+ def oneof_decl!: () -> ::Google::Protobuf::OneofDescriptorProto::field_array?
375
+
376
+ attr_accessor options(): ::Google::Protobuf::MessageOptions?
377
+
378
+ def options=: [M < ::Google::Protobuf::MessageOptions::_ToProto] (M?) -> M?
379
+ | ...
380
+
381
+ def options!: () -> ::Google::Protobuf::MessageOptions?
382
+
383
+ attr_accessor reserved_range(): ::Google::Protobuf::DescriptorProto::ReservedRange::field_array
384
+
385
+ def reserved_range=: (::Google::Protobuf::DescriptorProto::ReservedRange::array) -> ::Google::Protobuf::DescriptorProto::ReservedRange::array
386
+ | ...
387
+
388
+ def reserved_range!: () -> ::Google::Protobuf::DescriptorProto::ReservedRange::field_array?
389
+
390
+ # Reserved field names, which may not be used by fields in the same message.
391
+ # A given name may only be reserved once.
392
+ #
393
+ attr_accessor reserved_name(): ::Protobuf::field_array[::String]
394
+
395
+ # Reserved field names, which may not be used by fields in the same message.
396
+ # A given name may only be reserved once.
397
+ #
398
+ def reserved_name=: (::Array[::String]) -> ::Array[::String]
399
+ | ...
400
+
401
+ def reserved_name!: () -> ::Protobuf::field_array[::String]?
402
+
403
+ def initialize: (?name: ::String, ?field: ::Google::Protobuf::FieldDescriptorProto::array, ?extension: ::Google::Protobuf::FieldDescriptorProto::array, ?nested_type: ::Google::Protobuf::DescriptorProto::array, ?enum_type: ::Google::Protobuf::EnumDescriptorProto::array, ?extension_range: ::Google::Protobuf::DescriptorProto::ExtensionRange::array, ?oneof_decl: ::Google::Protobuf::OneofDescriptorProto::array, ?options: ::Google::Protobuf::MessageOptions::init?, ?reserved_range: ::Google::Protobuf::DescriptorProto::ReservedRange::array, ?reserved_name: ::Array[::String]) -> void
404
+
405
+ def []: (:name) -> ::String
406
+ | (:field) -> ::Google::Protobuf::FieldDescriptorProto::field_array
407
+ | (:extension) -> ::Google::Protobuf::FieldDescriptorProto::field_array
408
+ | (:nested_type) -> ::Google::Protobuf::DescriptorProto::field_array
409
+ | (:enum_type) -> ::Google::Protobuf::EnumDescriptorProto::field_array
410
+ | (:extension_range) -> ::Google::Protobuf::DescriptorProto::ExtensionRange::field_array
411
+ | (:oneof_decl) -> ::Google::Protobuf::OneofDescriptorProto::field_array
412
+ | (:options) -> ::Google::Protobuf::MessageOptions?
413
+ | (:reserved_range) -> ::Google::Protobuf::DescriptorProto::ReservedRange::field_array
414
+ | (:reserved_name) -> ::Protobuf::field_array[::String]
415
+ | (::Symbol) -> untyped
416
+
417
+ def []=: (:name, ::String) -> ::String
418
+ | (:field, ::Google::Protobuf::FieldDescriptorProto::field_array) -> ::Google::Protobuf::FieldDescriptorProto::field_array
419
+ | (:field, ::Google::Protobuf::FieldDescriptorProto::array) -> ::Google::Protobuf::FieldDescriptorProto::array
420
+ | (:extension, ::Google::Protobuf::FieldDescriptorProto::field_array) -> ::Google::Protobuf::FieldDescriptorProto::field_array
421
+ | (:extension, ::Google::Protobuf::FieldDescriptorProto::array) -> ::Google::Protobuf::FieldDescriptorProto::array
422
+ | (:nested_type, ::Google::Protobuf::DescriptorProto::field_array) -> ::Google::Protobuf::DescriptorProto::field_array
423
+ | (:nested_type, ::Google::Protobuf::DescriptorProto::array) -> ::Google::Protobuf::DescriptorProto::array
424
+ | (:enum_type, ::Google::Protobuf::EnumDescriptorProto::field_array) -> ::Google::Protobuf::EnumDescriptorProto::field_array
425
+ | (:enum_type, ::Google::Protobuf::EnumDescriptorProto::array) -> ::Google::Protobuf::EnumDescriptorProto::array
426
+ | (:extension_range, ::Google::Protobuf::DescriptorProto::ExtensionRange::field_array) -> ::Google::Protobuf::DescriptorProto::ExtensionRange::field_array
427
+ | (:extension_range, ::Google::Protobuf::DescriptorProto::ExtensionRange::array) -> ::Google::Protobuf::DescriptorProto::ExtensionRange::array
428
+ | (:oneof_decl, ::Google::Protobuf::OneofDescriptorProto::field_array) -> ::Google::Protobuf::OneofDescriptorProto::field_array
429
+ | (:oneof_decl, ::Google::Protobuf::OneofDescriptorProto::array) -> ::Google::Protobuf::OneofDescriptorProto::array
430
+ | (:options, ::Google::Protobuf::MessageOptions?) -> ::Google::Protobuf::MessageOptions?
431
+ | [M < ::Google::Protobuf::MessageOptions::_ToProto] (:options, M?) -> M?
432
+ | (:reserved_range, ::Google::Protobuf::DescriptorProto::ReservedRange::field_array) -> ::Google::Protobuf::DescriptorProto::ReservedRange::field_array
433
+ | (:reserved_range, ::Google::Protobuf::DescriptorProto::ReservedRange::array) -> ::Google::Protobuf::DescriptorProto::ReservedRange::array
434
+ | (:reserved_name, ::Protobuf::field_array[::String]) -> ::Protobuf::field_array[::String]
435
+ | (:reserved_name, ::Array[::String]) -> ::Array[::String]
436
+ | (::Symbol, untyped) -> untyped
437
+
438
+ interface _ToProto
439
+ def to_proto: () -> DescriptorProto
440
+ end
441
+
442
+ # The type of `#initialize` parameter.
443
+ type init = DescriptorProto | _ToProto
444
+
445
+ # The type of `repeated` field.
446
+ type field_array = ::Protobuf::Field::FieldArray[DescriptorProto, DescriptorProto | _ToProto]
447
+
448
+ # The type of `map` field.
449
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, DescriptorProto, DescriptorProto | _ToProto]
450
+
451
+ type array = ::Array[DescriptorProto | _ToProto]
452
+
453
+ type hash[KEY] = ::Hash[KEY, DescriptorProto | _ToProto]
454
+ end
455
+
456
+ class ExtensionRangeOptions < ::Protobuf::Message
457
+ # Encode the message to a binary string
458
+ #
459
+ def self.encode: (ExtensionRangeOptions) -> String
460
+
461
+ # The parser stores options it doesn't recognize here. See above.
462
+ #
463
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
464
+
465
+ # The parser stores options it doesn't recognize here. See above.
466
+ #
467
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
468
+ | ...
469
+
470
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
471
+
472
+ def initialize: (?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
473
+
474
+ def []: (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
475
+ | (::Symbol) -> untyped
476
+
477
+ def []=: (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
478
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
479
+ | (::Symbol, untyped) -> untyped
480
+
481
+ interface _ToProto
482
+ def to_proto: () -> ExtensionRangeOptions
483
+ end
484
+
485
+ # The type of `#initialize` parameter.
486
+ type init = ExtensionRangeOptions | _ToProto
487
+
488
+ # The type of `repeated` field.
489
+ type field_array = ::Protobuf::Field::FieldArray[ExtensionRangeOptions, ExtensionRangeOptions | _ToProto]
490
+
491
+ # The type of `map` field.
492
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ExtensionRangeOptions, ExtensionRangeOptions | _ToProto]
493
+
494
+ type array = ::Array[ExtensionRangeOptions | _ToProto]
495
+
496
+ type hash[KEY] = ::Hash[KEY, ExtensionRangeOptions | _ToProto]
497
+ end
498
+
499
+ # Describes a field within a message.
500
+ #
501
+ class FieldDescriptorProto < ::Protobuf::Message
502
+ # Encode the message to a binary string
503
+ #
504
+ def self.encode: (FieldDescriptorProto) -> String
505
+
506
+ class Type < ::Protobuf::Enum
507
+ type names = :TYPE_DOUBLE | :TYPE_FLOAT | :TYPE_INT64 | :TYPE_UINT64 | :TYPE_INT32 | :TYPE_FIXED64 | :TYPE_FIXED32 | :TYPE_BOOL | :TYPE_STRING | :TYPE_GROUP | :TYPE_MESSAGE | :TYPE_BYTES | :TYPE_UINT32 | :TYPE_ENUM | :TYPE_SFIXED32 | :TYPE_SFIXED64 | :TYPE_SINT32 | :TYPE_SINT64
508
+
509
+ type strings = "TYPE_DOUBLE" | "TYPE_FLOAT" | "TYPE_INT64" | "TYPE_UINT64" | "TYPE_INT32" | "TYPE_FIXED64" | "TYPE_FIXED32" | "TYPE_BOOL" | "TYPE_STRING" | "TYPE_GROUP" | "TYPE_MESSAGE" | "TYPE_BYTES" | "TYPE_UINT32" | "TYPE_ENUM" | "TYPE_SFIXED32" | "TYPE_SFIXED64" | "TYPE_SINT32" | "TYPE_SINT64"
510
+
511
+ type tags = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18
512
+
513
+ type values = names | strings | tags
514
+
515
+ attr_reader name(): names
516
+
517
+ attr_reader tag(): tags
518
+
519
+ # 0 is reserved for errors.
520
+ # Order is weird for historical reasons.
521
+ #
522
+ TYPE_DOUBLE: Type
523
+
524
+ TYPE_FLOAT: Type
525
+
526
+ # Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
527
+ # negative values are likely.
528
+ #
529
+ TYPE_INT64: Type
530
+
531
+ TYPE_UINT64: Type
532
+
533
+ # Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
534
+ # negative values are likely.
535
+ #
536
+ TYPE_INT32: Type
537
+
538
+ TYPE_FIXED64: Type
539
+
540
+ TYPE_FIXED32: Type
541
+
542
+ TYPE_BOOL: Type
543
+
544
+ TYPE_STRING: Type
545
+
546
+ # Tag-delimited aggregate.
547
+ # Group type is deprecated and not supported in proto3. However, Proto3
548
+ # implementations should still be able to parse the group wire format and
549
+ # treat group fields as unknown fields.
550
+ #
551
+ TYPE_GROUP: Type
552
+
553
+ # Length-delimited aggregate.
554
+ #
555
+ TYPE_MESSAGE: Type
556
+
557
+ # New in version 2.
558
+ #
559
+ TYPE_BYTES: Type
560
+
561
+ TYPE_UINT32: Type
562
+
563
+ TYPE_ENUM: Type
564
+
565
+ TYPE_SFIXED32: Type
566
+
567
+ TYPE_SFIXED64: Type
568
+
569
+ # Uses ZigZag encoding.
570
+ #
571
+ TYPE_SINT32: Type
572
+
573
+ # Uses ZigZag encoding.
574
+ #
575
+ TYPE_SINT64: Type
576
+
577
+ # The type of `#initialize` parameter.
578
+ type init = Type | values
579
+
580
+ # The type of `repeated` field.
581
+ type field_array = ::Protobuf::Field::FieldArray[Type, Type | values]
582
+
583
+ # The type of `map` field.
584
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, Type, Type | values]
585
+
586
+ type array = ::Array[Type | values]
587
+
588
+ type hash[KEY] = ::Hash[KEY, Type | values]
589
+ end
590
+
591
+ class Label < ::Protobuf::Enum
592
+ type names = :LABEL_OPTIONAL | :LABEL_REQUIRED | :LABEL_REPEATED
593
+
594
+ type strings = "LABEL_OPTIONAL" | "LABEL_REQUIRED" | "LABEL_REPEATED"
595
+
596
+ type tags = 1 | 2 | 3
597
+
598
+ type values = names | strings | tags
599
+
600
+ attr_reader name(): names
601
+
602
+ attr_reader tag(): tags
603
+
604
+ # 0 is reserved for errors
605
+ #
606
+ LABEL_OPTIONAL: Label
607
+
608
+ LABEL_REQUIRED: Label
609
+
610
+ LABEL_REPEATED: Label
611
+
612
+ # The type of `#initialize` parameter.
613
+ type init = Label | values
614
+
615
+ # The type of `repeated` field.
616
+ type field_array = ::Protobuf::Field::FieldArray[Label, Label | values]
617
+
618
+ # The type of `map` field.
619
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, Label, Label | values]
620
+
621
+ type array = ::Array[Label | values]
622
+
623
+ type hash[KEY] = ::Hash[KEY, Label | values]
624
+ end
625
+
626
+ attr_accessor name(): ::String
627
+
628
+ def name!: () -> ::String?
629
+
630
+ attr_accessor number(): ::Integer
631
+
632
+ def number!: () -> ::Integer?
633
+
634
+ attr_accessor label(): ::Google::Protobuf::FieldDescriptorProto::Label
635
+
636
+ def label=: (::Google::Protobuf::FieldDescriptorProto::Label::values) -> ::Google::Protobuf::FieldDescriptorProto::Label::values
637
+ | ...
638
+
639
+ def label!: () -> ::Google::Protobuf::FieldDescriptorProto::Label?
640
+
641
+ # If type_name is set, this need not be set. If both this and type_name
642
+ # are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
643
+ #
644
+ attr_accessor type(): ::Google::Protobuf::FieldDescriptorProto::Type
645
+
646
+ # If type_name is set, this need not be set. If both this and type_name
647
+ # are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
648
+ #
649
+ def type=: (::Google::Protobuf::FieldDescriptorProto::Type::values) -> ::Google::Protobuf::FieldDescriptorProto::Type::values
650
+ | ...
651
+
652
+ def type!: () -> ::Google::Protobuf::FieldDescriptorProto::Type?
653
+
654
+ # For message and enum types, this is the name of the type. If the name
655
+ # starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
656
+ # rules are used to find the type (i.e. first the nested types within this
657
+ # message are searched, then within the parent, on up to the root
658
+ # namespace).
659
+ #
660
+ attr_accessor type_name(): ::String
661
+
662
+ def type_name!: () -> ::String?
663
+
664
+ # For extensions, this is the name of the type being extended. It is
665
+ # resolved in the same manner as type_name.
666
+ #
667
+ attr_accessor extendee(): ::String
668
+
669
+ def extendee!: () -> ::String?
670
+
671
+ # For numeric types, contains the original text representation of the value.
672
+ # For booleans, "true" or "false".
673
+ # For strings, contains the default text contents (not escaped in any way).
674
+ # For bytes, contains the C escaped value. All bytes >= 128 are escaped.
675
+ #
676
+ attr_accessor default_value(): ::String
677
+
678
+ def default_value!: () -> ::String?
679
+
680
+ # If set, gives the index of a oneof in the containing type's oneof_decl
681
+ # list. This field is a member of that oneof.
682
+ #
683
+ attr_accessor oneof_index(): ::Integer
684
+
685
+ def oneof_index!: () -> ::Integer?
686
+
687
+ # JSON name of this field. The value is set by protocol compiler. If the
688
+ # user has set a "json_name" option on this field, that option's value
689
+ # will be used. Otherwise, it's deduced from the field's name by converting
690
+ # it to camelCase.
691
+ #
692
+ attr_accessor json_name(): ::String
693
+
694
+ def json_name!: () -> ::String?
695
+
696
+ attr_accessor options(): ::Google::Protobuf::FieldOptions?
697
+
698
+ def options=: [M < ::Google::Protobuf::FieldOptions::_ToProto] (M?) -> M?
699
+ | ...
700
+
701
+ def options!: () -> ::Google::Protobuf::FieldOptions?
702
+
703
+ # If true, this is a proto3 "optional". When a proto3 field is optional, it
704
+ # tracks presence regardless of field type.
705
+ #
706
+ # When proto3_optional is true, this field must be belong to a oneof to
707
+ # signal to old proto3 clients that presence is tracked for this field. This
708
+ # oneof is known as a "synthetic" oneof, and this field must be its sole
709
+ # member (each proto3 optional field gets its own synthetic oneof). Synthetic
710
+ # oneofs exist in the descriptor only, and do not generate any API. Synthetic
711
+ # oneofs must be ordered after all "real" oneofs.
712
+ #
713
+ # For message fields, proto3_optional doesn't create any semantic change,
714
+ # since non-repeated message fields always track presence. However it still
715
+ # indicates the semantic detail of whether the user wrote "optional" or not.
716
+ # This can be useful for round-tripping the .proto file. For consistency we
717
+ # give message fields a synthetic oneof also, even though it is not required
718
+ # to track presence. This is especially important because the parser can't
719
+ # tell if a field is a message or an enum, so it must always create a
720
+ # synthetic oneof.
721
+ #
722
+ # Proto2 optional fields do not set this flag, because they already indicate
723
+ # optional with `LABEL_OPTIONAL`.
724
+ #
725
+ attr_accessor proto3_optional(): bool
726
+
727
+ def proto3_optional!: () -> bool?
728
+
729
+ def initialize: (?name: ::String, ?number: ::Integer, ?label: ::Google::Protobuf::FieldDescriptorProto::Label::init, ?type: ::Google::Protobuf::FieldDescriptorProto::Type::init, ?type_name: ::String, ?extendee: ::String, ?default_value: ::String, ?oneof_index: ::Integer, ?json_name: ::String, ?options: ::Google::Protobuf::FieldOptions::init?, ?proto3_optional: bool) -> void
730
+
731
+ def []: (:name) -> ::String
732
+ | (:number) -> ::Integer
733
+ | (:label) -> ::Google::Protobuf::FieldDescriptorProto::Label
734
+ | (:type) -> ::Google::Protobuf::FieldDescriptorProto::Type
735
+ | (:type_name) -> ::String
736
+ | (:extendee) -> ::String
737
+ | (:default_value) -> ::String
738
+ | (:oneof_index) -> ::Integer
739
+ | (:json_name) -> ::String
740
+ | (:options) -> ::Google::Protobuf::FieldOptions?
741
+ | (:proto3_optional) -> bool
742
+ | (::Symbol) -> untyped
743
+
744
+ def []=: (:name, ::String) -> ::String
745
+ | (:number, ::Integer) -> ::Integer
746
+ | (:label, ::Google::Protobuf::FieldDescriptorProto::Label) -> ::Google::Protobuf::FieldDescriptorProto::Label
747
+ | (:label, ::Google::Protobuf::FieldDescriptorProto::Label::values) -> ::Google::Protobuf::FieldDescriptorProto::Label::values
748
+ | (:type, ::Google::Protobuf::FieldDescriptorProto::Type) -> ::Google::Protobuf::FieldDescriptorProto::Type
749
+ | (:type, ::Google::Protobuf::FieldDescriptorProto::Type::values) -> ::Google::Protobuf::FieldDescriptorProto::Type::values
750
+ | (:type_name, ::String) -> ::String
751
+ | (:extendee, ::String) -> ::String
752
+ | (:default_value, ::String) -> ::String
753
+ | (:oneof_index, ::Integer) -> ::Integer
754
+ | (:json_name, ::String) -> ::String
755
+ | (:options, ::Google::Protobuf::FieldOptions?) -> ::Google::Protobuf::FieldOptions?
756
+ | [M < ::Google::Protobuf::FieldOptions::_ToProto] (:options, M?) -> M?
757
+ | (:proto3_optional, bool) -> bool
758
+ | (::Symbol, untyped) -> untyped
759
+
760
+ def proto3_optional?: () -> bool
761
+
762
+ interface _ToProto
763
+ def to_proto: () -> FieldDescriptorProto
764
+ end
765
+
766
+ # The type of `#initialize` parameter.
767
+ type init = FieldDescriptorProto | _ToProto
768
+
769
+ # The type of `repeated` field.
770
+ type field_array = ::Protobuf::Field::FieldArray[FieldDescriptorProto, FieldDescriptorProto | _ToProto]
771
+
772
+ # The type of `map` field.
773
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, FieldDescriptorProto, FieldDescriptorProto | _ToProto]
774
+
775
+ type array = ::Array[FieldDescriptorProto | _ToProto]
776
+
777
+ type hash[KEY] = ::Hash[KEY, FieldDescriptorProto | _ToProto]
778
+ end
779
+
780
+ # Describes a oneof.
781
+ #
782
+ class OneofDescriptorProto < ::Protobuf::Message
783
+ # Encode the message to a binary string
784
+ #
785
+ def self.encode: (OneofDescriptorProto) -> String
786
+
787
+ attr_accessor name(): ::String
788
+
789
+ def name!: () -> ::String?
790
+
791
+ attr_accessor options(): ::Google::Protobuf::OneofOptions?
792
+
793
+ def options=: [M < ::Google::Protobuf::OneofOptions::_ToProto] (M?) -> M?
794
+ | ...
795
+
796
+ def options!: () -> ::Google::Protobuf::OneofOptions?
797
+
798
+ def initialize: (?name: ::String, ?options: ::Google::Protobuf::OneofOptions::init?) -> void
799
+
800
+ def []: (:name) -> ::String
801
+ | (:options) -> ::Google::Protobuf::OneofOptions?
802
+ | (::Symbol) -> untyped
803
+
804
+ def []=: (:name, ::String) -> ::String
805
+ | (:options, ::Google::Protobuf::OneofOptions?) -> ::Google::Protobuf::OneofOptions?
806
+ | [M < ::Google::Protobuf::OneofOptions::_ToProto] (:options, M?) -> M?
807
+ | (::Symbol, untyped) -> untyped
808
+
809
+ interface _ToProto
810
+ def to_proto: () -> OneofDescriptorProto
811
+ end
812
+
813
+ # The type of `#initialize` parameter.
814
+ type init = OneofDescriptorProto | _ToProto
815
+
816
+ # The type of `repeated` field.
817
+ type field_array = ::Protobuf::Field::FieldArray[OneofDescriptorProto, OneofDescriptorProto | _ToProto]
818
+
819
+ # The type of `map` field.
820
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, OneofDescriptorProto, OneofDescriptorProto | _ToProto]
821
+
822
+ type array = ::Array[OneofDescriptorProto | _ToProto]
823
+
824
+ type hash[KEY] = ::Hash[KEY, OneofDescriptorProto | _ToProto]
825
+ end
826
+
827
+ # Describes an enum type.
828
+ #
829
+ class EnumDescriptorProto < ::Protobuf::Message
830
+ # Encode the message to a binary string
831
+ #
832
+ def self.encode: (EnumDescriptorProto) -> String
833
+
834
+ # Range of reserved numeric values. Reserved values may not be used by
835
+ # entries in the same enum. Reserved ranges may not overlap.
836
+ #
837
+ # Note that this is distinct from DescriptorProto.ReservedRange in that it
838
+ # is inclusive such that it can appropriately represent the entire int32
839
+ # domain.
840
+ #
841
+ class EnumReservedRange < ::Protobuf::Message
842
+ # Encode the message to a binary string
843
+ #
844
+ def self.encode: (EnumReservedRange) -> String
845
+
846
+ # Inclusive.
847
+ #
848
+ attr_accessor start(): ::Integer
849
+
850
+ def start!: () -> ::Integer?
851
+
852
+ # Inclusive.
853
+ #
854
+ attr_accessor end(): ::Integer
855
+
856
+ def end!: () -> ::Integer?
857
+
858
+ def initialize: (?start: ::Integer, ?end: ::Integer) -> void
859
+
860
+ def []: (:start) -> ::Integer
861
+ | (:end) -> ::Integer
862
+ | (::Symbol) -> untyped
863
+
864
+ def []=: (:start, ::Integer) -> ::Integer
865
+ | (:end, ::Integer) -> ::Integer
866
+ | (::Symbol, untyped) -> untyped
867
+
868
+ interface _ToProto
869
+ def to_proto: () -> EnumReservedRange
870
+ end
871
+
872
+ # The type of `#initialize` parameter.
873
+ type init = EnumReservedRange | _ToProto
874
+
875
+ # The type of `repeated` field.
876
+ type field_array = ::Protobuf::Field::FieldArray[EnumReservedRange, EnumReservedRange | _ToProto]
877
+
878
+ # The type of `map` field.
879
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, EnumReservedRange, EnumReservedRange | _ToProto]
880
+
881
+ type array = ::Array[EnumReservedRange | _ToProto]
882
+
883
+ type hash[KEY] = ::Hash[KEY, EnumReservedRange | _ToProto]
884
+ end
885
+
886
+ attr_accessor name(): ::String
887
+
888
+ def name!: () -> ::String?
889
+
890
+ attr_accessor value(): ::Google::Protobuf::EnumValueDescriptorProto::field_array
891
+
892
+ def value=: (::Google::Protobuf::EnumValueDescriptorProto::array) -> ::Google::Protobuf::EnumValueDescriptorProto::array
893
+ | ...
894
+
895
+ def value!: () -> ::Google::Protobuf::EnumValueDescriptorProto::field_array?
896
+
897
+ attr_accessor options(): ::Google::Protobuf::EnumOptions?
898
+
899
+ def options=: [M < ::Google::Protobuf::EnumOptions::_ToProto] (M?) -> M?
900
+ | ...
901
+
902
+ def options!: () -> ::Google::Protobuf::EnumOptions?
903
+
904
+ # Range of reserved numeric values. Reserved numeric values may not be used
905
+ # by enum values in the same enum declaration. Reserved ranges may not
906
+ # overlap.
907
+ #
908
+ attr_accessor reserved_range(): ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::field_array
909
+
910
+ # Range of reserved numeric values. Reserved numeric values may not be used
911
+ # by enum values in the same enum declaration. Reserved ranges may not
912
+ # overlap.
913
+ #
914
+ def reserved_range=: (::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::array) -> ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::array
915
+ | ...
916
+
917
+ def reserved_range!: () -> ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::field_array?
918
+
919
+ # Reserved enum value names, which may not be reused. A given name may only
920
+ # be reserved once.
921
+ #
922
+ attr_accessor reserved_name(): ::Protobuf::field_array[::String]
923
+
924
+ # Reserved enum value names, which may not be reused. A given name may only
925
+ # be reserved once.
926
+ #
927
+ def reserved_name=: (::Array[::String]) -> ::Array[::String]
928
+ | ...
929
+
930
+ def reserved_name!: () -> ::Protobuf::field_array[::String]?
931
+
932
+ def initialize: (?name: ::String, ?value: ::Google::Protobuf::EnumValueDescriptorProto::array, ?options: ::Google::Protobuf::EnumOptions::init?, ?reserved_range: ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::array, ?reserved_name: ::Array[::String]) -> void
933
+
934
+ def []: (:name) -> ::String
935
+ | (:value) -> ::Google::Protobuf::EnumValueDescriptorProto::field_array
936
+ | (:options) -> ::Google::Protobuf::EnumOptions?
937
+ | (:reserved_range) -> ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::field_array
938
+ | (:reserved_name) -> ::Protobuf::field_array[::String]
939
+ | (::Symbol) -> untyped
940
+
941
+ def []=: (:name, ::String) -> ::String
942
+ | (:value, ::Google::Protobuf::EnumValueDescriptorProto::field_array) -> ::Google::Protobuf::EnumValueDescriptorProto::field_array
943
+ | (:value, ::Google::Protobuf::EnumValueDescriptorProto::array) -> ::Google::Protobuf::EnumValueDescriptorProto::array
944
+ | (:options, ::Google::Protobuf::EnumOptions?) -> ::Google::Protobuf::EnumOptions?
945
+ | [M < ::Google::Protobuf::EnumOptions::_ToProto] (:options, M?) -> M?
946
+ | (:reserved_range, ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::field_array) -> ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::field_array
947
+ | (:reserved_range, ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::array) -> ::Google::Protobuf::EnumDescriptorProto::EnumReservedRange::array
948
+ | (:reserved_name, ::Protobuf::field_array[::String]) -> ::Protobuf::field_array[::String]
949
+ | (:reserved_name, ::Array[::String]) -> ::Array[::String]
950
+ | (::Symbol, untyped) -> untyped
951
+
952
+ interface _ToProto
953
+ def to_proto: () -> EnumDescriptorProto
954
+ end
955
+
956
+ # The type of `#initialize` parameter.
957
+ type init = EnumDescriptorProto | _ToProto
958
+
959
+ # The type of `repeated` field.
960
+ type field_array = ::Protobuf::Field::FieldArray[EnumDescriptorProto, EnumDescriptorProto | _ToProto]
961
+
962
+ # The type of `map` field.
963
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, EnumDescriptorProto, EnumDescriptorProto | _ToProto]
964
+
965
+ type array = ::Array[EnumDescriptorProto | _ToProto]
966
+
967
+ type hash[KEY] = ::Hash[KEY, EnumDescriptorProto | _ToProto]
968
+ end
969
+
970
+ # Describes a value within an enum.
971
+ #
972
+ class EnumValueDescriptorProto < ::Protobuf::Message
973
+ # Encode the message to a binary string
974
+ #
975
+ def self.encode: (EnumValueDescriptorProto) -> String
976
+
977
+ attr_accessor name(): ::String
978
+
979
+ def name!: () -> ::String?
980
+
981
+ attr_accessor number(): ::Integer
982
+
983
+ def number!: () -> ::Integer?
984
+
985
+ attr_accessor options(): ::Google::Protobuf::EnumValueOptions?
986
+
987
+ def options=: [M < ::Google::Protobuf::EnumValueOptions::_ToProto] (M?) -> M?
988
+ | ...
989
+
990
+ def options!: () -> ::Google::Protobuf::EnumValueOptions?
991
+
992
+ def initialize: (?name: ::String, ?number: ::Integer, ?options: ::Google::Protobuf::EnumValueOptions::init?) -> void
993
+
994
+ def []: (:name) -> ::String
995
+ | (:number) -> ::Integer
996
+ | (:options) -> ::Google::Protobuf::EnumValueOptions?
997
+ | (::Symbol) -> untyped
998
+
999
+ def []=: (:name, ::String) -> ::String
1000
+ | (:number, ::Integer) -> ::Integer
1001
+ | (:options, ::Google::Protobuf::EnumValueOptions?) -> ::Google::Protobuf::EnumValueOptions?
1002
+ | [M < ::Google::Protobuf::EnumValueOptions::_ToProto] (:options, M?) -> M?
1003
+ | (::Symbol, untyped) -> untyped
1004
+
1005
+ interface _ToProto
1006
+ def to_proto: () -> EnumValueDescriptorProto
1007
+ end
1008
+
1009
+ # The type of `#initialize` parameter.
1010
+ type init = EnumValueDescriptorProto | _ToProto
1011
+
1012
+ # The type of `repeated` field.
1013
+ type field_array = ::Protobuf::Field::FieldArray[EnumValueDescriptorProto, EnumValueDescriptorProto | _ToProto]
1014
+
1015
+ # The type of `map` field.
1016
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, EnumValueDescriptorProto, EnumValueDescriptorProto | _ToProto]
1017
+
1018
+ type array = ::Array[EnumValueDescriptorProto | _ToProto]
1019
+
1020
+ type hash[KEY] = ::Hash[KEY, EnumValueDescriptorProto | _ToProto]
1021
+ end
1022
+
1023
+ # Describes a service.
1024
+ #
1025
+ class ServiceDescriptorProto < ::Protobuf::Message
1026
+ # Encode the message to a binary string
1027
+ #
1028
+ def self.encode: (ServiceDescriptorProto) -> String
1029
+
1030
+ attr_accessor name(): ::String
1031
+
1032
+ def name!: () -> ::String?
1033
+
1034
+ attr_accessor method(): ::Google::Protobuf::MethodDescriptorProto::field_array
1035
+
1036
+ def method=: (::Google::Protobuf::MethodDescriptorProto::array) -> ::Google::Protobuf::MethodDescriptorProto::array
1037
+ | ...
1038
+
1039
+ def method!: () -> ::Google::Protobuf::MethodDescriptorProto::field_array?
1040
+
1041
+ attr_accessor options(): ::Google::Protobuf::ServiceOptions?
1042
+
1043
+ def options=: [M < ::Google::Protobuf::ServiceOptions::_ToProto] (M?) -> M?
1044
+ | ...
1045
+
1046
+ def options!: () -> ::Google::Protobuf::ServiceOptions?
1047
+
1048
+ def initialize: (?name: ::String, ?method: ::Google::Protobuf::MethodDescriptorProto::array, ?options: ::Google::Protobuf::ServiceOptions::init?) -> void
1049
+
1050
+ def []: (:name) -> ::String
1051
+ | (:method) -> ::Google::Protobuf::MethodDescriptorProto::field_array
1052
+ | (:options) -> ::Google::Protobuf::ServiceOptions?
1053
+ | (::Symbol) -> untyped
1054
+
1055
+ def []=: (:name, ::String) -> ::String
1056
+ | (:method, ::Google::Protobuf::MethodDescriptorProto::field_array) -> ::Google::Protobuf::MethodDescriptorProto::field_array
1057
+ | (:method, ::Google::Protobuf::MethodDescriptorProto::array) -> ::Google::Protobuf::MethodDescriptorProto::array
1058
+ | (:options, ::Google::Protobuf::ServiceOptions?) -> ::Google::Protobuf::ServiceOptions?
1059
+ | [M < ::Google::Protobuf::ServiceOptions::_ToProto] (:options, M?) -> M?
1060
+ | (::Symbol, untyped) -> untyped
1061
+
1062
+ interface _ToProto
1063
+ def to_proto: () -> ServiceDescriptorProto
1064
+ end
1065
+
1066
+ # The type of `#initialize` parameter.
1067
+ type init = ServiceDescriptorProto | _ToProto
1068
+
1069
+ # The type of `repeated` field.
1070
+ type field_array = ::Protobuf::Field::FieldArray[ServiceDescriptorProto, ServiceDescriptorProto | _ToProto]
1071
+
1072
+ # The type of `map` field.
1073
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ServiceDescriptorProto, ServiceDescriptorProto | _ToProto]
1074
+
1075
+ type array = ::Array[ServiceDescriptorProto | _ToProto]
1076
+
1077
+ type hash[KEY] = ::Hash[KEY, ServiceDescriptorProto | _ToProto]
1078
+ end
1079
+
1080
+ # Describes a method of a service.
1081
+ #
1082
+ class MethodDescriptorProto < ::Protobuf::Message
1083
+ # Encode the message to a binary string
1084
+ #
1085
+ def self.encode: (MethodDescriptorProto) -> String
1086
+
1087
+ attr_accessor name(): ::String
1088
+
1089
+ def name!: () -> ::String?
1090
+
1091
+ # Input and output type names. These are resolved in the same way as
1092
+ # FieldDescriptorProto.type_name, but must refer to a message type.
1093
+ #
1094
+ attr_accessor input_type(): ::String
1095
+
1096
+ def input_type!: () -> ::String?
1097
+
1098
+ attr_accessor output_type(): ::String
1099
+
1100
+ def output_type!: () -> ::String?
1101
+
1102
+ attr_accessor options(): ::Google::Protobuf::MethodOptions?
1103
+
1104
+ def options=: [M < ::Google::Protobuf::MethodOptions::_ToProto] (M?) -> M?
1105
+ | ...
1106
+
1107
+ def options!: () -> ::Google::Protobuf::MethodOptions?
1108
+
1109
+ # Identifies if client streams multiple client messages
1110
+ #
1111
+ attr_accessor client_streaming(): bool
1112
+
1113
+ def client_streaming!: () -> bool?
1114
+
1115
+ # Identifies if server streams multiple server messages
1116
+ #
1117
+ attr_accessor server_streaming(): bool
1118
+
1119
+ def server_streaming!: () -> bool?
1120
+
1121
+ def initialize: (?name: ::String, ?input_type: ::String, ?output_type: ::String, ?options: ::Google::Protobuf::MethodOptions::init?, ?client_streaming: bool, ?server_streaming: bool) -> void
1122
+
1123
+ def []: (:name) -> ::String
1124
+ | (:input_type) -> ::String
1125
+ | (:output_type) -> ::String
1126
+ | (:options) -> ::Google::Protobuf::MethodOptions?
1127
+ | (:client_streaming) -> bool
1128
+ | (:server_streaming) -> bool
1129
+ | (::Symbol) -> untyped
1130
+
1131
+ def []=: (:name, ::String) -> ::String
1132
+ | (:input_type, ::String) -> ::String
1133
+ | (:output_type, ::String) -> ::String
1134
+ | (:options, ::Google::Protobuf::MethodOptions?) -> ::Google::Protobuf::MethodOptions?
1135
+ | [M < ::Google::Protobuf::MethodOptions::_ToProto] (:options, M?) -> M?
1136
+ | (:client_streaming, bool) -> bool
1137
+ | (:server_streaming, bool) -> bool
1138
+ | (::Symbol, untyped) -> untyped
1139
+
1140
+ def client_streaming?: () -> bool
1141
+
1142
+ def server_streaming?: () -> bool
1143
+
1144
+ interface _ToProto
1145
+ def to_proto: () -> MethodDescriptorProto
1146
+ end
1147
+
1148
+ # The type of `#initialize` parameter.
1149
+ type init = MethodDescriptorProto | _ToProto
1150
+
1151
+ # The type of `repeated` field.
1152
+ type field_array = ::Protobuf::Field::FieldArray[MethodDescriptorProto, MethodDescriptorProto | _ToProto]
1153
+
1154
+ # The type of `map` field.
1155
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, MethodDescriptorProto, MethodDescriptorProto | _ToProto]
1156
+
1157
+ type array = ::Array[MethodDescriptorProto | _ToProto]
1158
+
1159
+ type hash[KEY] = ::Hash[KEY, MethodDescriptorProto | _ToProto]
1160
+ end
1161
+
1162
+ # ===================================================================
1163
+ # Options
1164
+ #
1165
+ #
1166
+ # Each of the definitions above may have "options" attached. These are
1167
+ # just annotations which may cause code to be generated slightly differently
1168
+ # or may contain hints for code that manipulates protocol messages.
1169
+ #
1170
+ # Clients may define custom options as extensions of the *Options messages.
1171
+ # These extensions may not yet be known at parsing time, so the parser cannot
1172
+ # store the values in them. Instead it stores them in a field in the *Options
1173
+ # message called uninterpreted_option. This field must have the same name
1174
+ # across all *Options messages. We then use this field to populate the
1175
+ # extensions when we build a descriptor, at which point all protos have been
1176
+ # parsed and so all extensions are known.
1177
+ #
1178
+ # Extension numbers for custom options may be chosen as follows:
1179
+ # * For options which will only be used within a single application or
1180
+ # organization, or for experimental options, use field numbers 50000
1181
+ # through 99999. It is up to you to ensure that you do not use the
1182
+ # same number for multiple options.
1183
+ # * For options which will be published and used publicly by multiple
1184
+ # independent entities, e-mail protobuf-global-extension-registry@google.com
1185
+ # to reserve extension numbers. Simply provide your project name (e.g.
1186
+ # Objective-C plugin) and your project website (if available) -- there's no
1187
+ # need to explain how you intend to use them. Usually you only need one
1188
+ # extension number. You can declare multiple options with only one extension
1189
+ # number by putting them in a sub-message. See the Custom Options section of
1190
+ # the docs for examples:
1191
+ # https://developers.google.com/protocol-buffers/docs/proto#options
1192
+ # If this turns out to be popular, a web service will be set up
1193
+ # to automatically assign option numbers.
1194
+ #
1195
+ class FileOptions < ::Protobuf::Message
1196
+ # Encode the message to a binary string
1197
+ #
1198
+ def self.encode: (FileOptions) -> String
1199
+
1200
+ # Generated classes can be optimized for speed or code size.
1201
+ #
1202
+ class OptimizeMode < ::Protobuf::Enum
1203
+ type names = :SPEED | :CODE_SIZE | :LITE_RUNTIME
1204
+
1205
+ type strings = "SPEED" | "CODE_SIZE" | "LITE_RUNTIME"
1206
+
1207
+ type tags = 1 | 2 | 3
1208
+
1209
+ type values = names | strings | tags
1210
+
1211
+ attr_reader name(): names
1212
+
1213
+ attr_reader tag(): tags
1214
+
1215
+ # Generate complete code for parsing, serialization,
1216
+ #
1217
+ SPEED: OptimizeMode
1218
+
1219
+ # etc.
1220
+ #
1221
+ # Use ReflectionOps to implement these methods.
1222
+ #
1223
+ CODE_SIZE: OptimizeMode
1224
+
1225
+ # Generate code using MessageLite and the lite runtime.
1226
+ #
1227
+ LITE_RUNTIME: OptimizeMode
1228
+
1229
+ # The type of `#initialize` parameter.
1230
+ type init = OptimizeMode | values
1231
+
1232
+ # The type of `repeated` field.
1233
+ type field_array = ::Protobuf::Field::FieldArray[OptimizeMode, OptimizeMode | values]
1234
+
1235
+ # The type of `map` field.
1236
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, OptimizeMode, OptimizeMode | values]
1237
+
1238
+ type array = ::Array[OptimizeMode | values]
1239
+
1240
+ type hash[KEY] = ::Hash[KEY, OptimizeMode | values]
1241
+ end
1242
+
1243
+ # Sets the Java package where classes generated from this .proto will be
1244
+ # placed. By default, the proto package is used, but this is often
1245
+ # inappropriate because proto packages do not normally start with backwards
1246
+ # domain names.
1247
+ #
1248
+ attr_accessor java_package(): ::String
1249
+
1250
+ def java_package!: () -> ::String?
1251
+
1252
+ # Controls the name of the wrapper Java class generated for the .proto file.
1253
+ # That class will always contain the .proto file's getDescriptor() method as
1254
+ # well as any top-level extensions defined in the .proto file.
1255
+ # If java_multiple_files is disabled, then all the other classes from the
1256
+ # .proto file will be nested inside the single wrapper outer class.
1257
+ #
1258
+ attr_accessor java_outer_classname(): ::String
1259
+
1260
+ def java_outer_classname!: () -> ::String?
1261
+
1262
+ # If enabled, then the Java code generator will generate a separate .java
1263
+ # file for each top-level message, enum, and service defined in the .proto
1264
+ # file. Thus, these types will *not* be nested inside the wrapper class
1265
+ # named by java_outer_classname. However, the wrapper class will still be
1266
+ # generated to contain the file's getDescriptor() method as well as any
1267
+ # top-level extensions defined in the file.
1268
+ #
1269
+ attr_accessor java_multiple_files(): bool
1270
+
1271
+ def java_multiple_files!: () -> bool?
1272
+
1273
+ # This option does nothing.
1274
+ #
1275
+ # ----
1276
+ #
1277
+ # Protobuf options:
1278
+ #
1279
+ # - `deprecated = true`
1280
+ #
1281
+ attr_accessor java_generate_equals_and_hash(): bool
1282
+
1283
+ def java_generate_equals_and_hash!: () -> bool?
1284
+
1285
+ # If set true, then the Java2 code generator will generate code that
1286
+ # throws an exception whenever an attempt is made to assign a non-UTF-8
1287
+ # byte sequence to a string field.
1288
+ # Message reflection will do the same.
1289
+ # However, an extension field still accepts non-UTF-8 byte sequences.
1290
+ # This option has no effect on when used with the lite runtime.
1291
+ #
1292
+ attr_accessor java_string_check_utf8(): bool
1293
+
1294
+ def java_string_check_utf8!: () -> bool?
1295
+
1296
+ attr_accessor optimize_for(): ::Google::Protobuf::FileOptions::OptimizeMode
1297
+
1298
+ def optimize_for=: (::Google::Protobuf::FileOptions::OptimizeMode::values) -> ::Google::Protobuf::FileOptions::OptimizeMode::values
1299
+ | ...
1300
+
1301
+ def optimize_for!: () -> ::Google::Protobuf::FileOptions::OptimizeMode?
1302
+
1303
+ # Sets the Go package where structs generated from this .proto will be
1304
+ # placed. If omitted, the Go package will be derived from the following:
1305
+ # - The basename of the package import path, if provided.
1306
+ # - Otherwise, the package statement in the .proto file, if present.
1307
+ # - Otherwise, the basename of the .proto file, without extension.
1308
+ #
1309
+ attr_accessor go_package(): ::String
1310
+
1311
+ def go_package!: () -> ::String?
1312
+
1313
+ # Should generic services be generated in each language? "Generic" services
1314
+ # are not specific to any particular RPC system. They are generated by the
1315
+ # main code generators in each language (without additional plugins).
1316
+ # Generic services were the only kind of service generation supported by
1317
+ # early versions of google.protobuf.
1318
+ #
1319
+ # Generic services are now considered deprecated in favor of using plugins
1320
+ # that generate code specific to your particular RPC system. Therefore,
1321
+ # these default to false. Old code which depends on generic services should
1322
+ # explicitly set them to true.
1323
+ #
1324
+ attr_accessor cc_generic_services(): bool
1325
+
1326
+ def cc_generic_services!: () -> bool?
1327
+
1328
+ attr_accessor java_generic_services(): bool
1329
+
1330
+ def java_generic_services!: () -> bool?
1331
+
1332
+ attr_accessor py_generic_services(): bool
1333
+
1334
+ def py_generic_services!: () -> bool?
1335
+
1336
+ attr_accessor php_generic_services(): bool
1337
+
1338
+ def php_generic_services!: () -> bool?
1339
+
1340
+ # Is this file deprecated?
1341
+ # Depending on the target platform, this can emit Deprecated annotations
1342
+ # for everything in the file, or it will be completely ignored; in the very
1343
+ # least, this is a formalization for deprecating files.
1344
+ #
1345
+ attr_accessor deprecated(): bool
1346
+
1347
+ def deprecated!: () -> bool?
1348
+
1349
+ # Enables the use of arenas for the proto messages in this file. This applies
1350
+ # only to generated classes for C++.
1351
+ #
1352
+ attr_accessor cc_enable_arenas(): bool
1353
+
1354
+ def cc_enable_arenas!: () -> bool?
1355
+
1356
+ # Sets the objective c class prefix which is prepended to all objective c
1357
+ # generated classes from this .proto. There is no default.
1358
+ #
1359
+ attr_accessor objc_class_prefix(): ::String
1360
+
1361
+ def objc_class_prefix!: () -> ::String?
1362
+
1363
+ # Namespace for generated classes; defaults to the package.
1364
+ #
1365
+ attr_accessor csharp_namespace(): ::String
1366
+
1367
+ def csharp_namespace!: () -> ::String?
1368
+
1369
+ # By default Swift generators will take the proto package and CamelCase it
1370
+ # replacing '.' with underscore and use that to prefix the types/symbols
1371
+ # defined. When this options is provided, they will use this value instead
1372
+ # to prefix the types/symbols defined.
1373
+ #
1374
+ attr_accessor swift_prefix(): ::String
1375
+
1376
+ def swift_prefix!: () -> ::String?
1377
+
1378
+ # Sets the php class prefix which is prepended to all php generated classes
1379
+ # from this .proto. Default is empty.
1380
+ #
1381
+ attr_accessor php_class_prefix(): ::String
1382
+
1383
+ def php_class_prefix!: () -> ::String?
1384
+
1385
+ # Use this option to change the namespace of php generated classes. Default
1386
+ # is empty. When this option is empty, the package name will be used for
1387
+ # determining the namespace.
1388
+ #
1389
+ attr_accessor php_namespace(): ::String
1390
+
1391
+ def php_namespace!: () -> ::String?
1392
+
1393
+ # Use this option to change the namespace of php generated metadata classes.
1394
+ # Default is empty. When this option is empty, the proto file name will be
1395
+ # used for determining the namespace.
1396
+ #
1397
+ attr_accessor php_metadata_namespace(): ::String
1398
+
1399
+ def php_metadata_namespace!: () -> ::String?
1400
+
1401
+ # Use this option to change the package of ruby generated classes. Default
1402
+ # is empty. When this option is not set, the package name will be used for
1403
+ # determining the ruby package.
1404
+ #
1405
+ attr_accessor ruby_package(): ::String
1406
+
1407
+ def ruby_package!: () -> ::String?
1408
+
1409
+ # The parser stores options it doesn't recognize here.
1410
+ # See the documentation for the "Options" section above.
1411
+ #
1412
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
1413
+
1414
+ # The parser stores options it doesn't recognize here.
1415
+ # See the documentation for the "Options" section above.
1416
+ #
1417
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1418
+ | ...
1419
+
1420
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
1421
+
1422
+ def initialize: (?java_package: ::String, ?java_outer_classname: ::String, ?java_multiple_files: bool, ?java_generate_equals_and_hash: bool, ?java_string_check_utf8: bool, ?optimize_for: ::Google::Protobuf::FileOptions::OptimizeMode::init, ?go_package: ::String, ?cc_generic_services: bool, ?java_generic_services: bool, ?py_generic_services: bool, ?php_generic_services: bool, ?deprecated: bool, ?cc_enable_arenas: bool, ?objc_class_prefix: ::String, ?csharp_namespace: ::String, ?swift_prefix: ::String, ?php_class_prefix: ::String, ?php_namespace: ::String, ?php_metadata_namespace: ::String, ?ruby_package: ::String, ?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
1423
+
1424
+ def []: (:java_package) -> ::String
1425
+ | (:java_outer_classname) -> ::String
1426
+ | (:java_multiple_files) -> bool
1427
+ | (:java_generate_equals_and_hash) -> bool
1428
+ | (:java_string_check_utf8) -> bool
1429
+ | (:optimize_for) -> ::Google::Protobuf::FileOptions::OptimizeMode
1430
+ | (:go_package) -> ::String
1431
+ | (:cc_generic_services) -> bool
1432
+ | (:java_generic_services) -> bool
1433
+ | (:py_generic_services) -> bool
1434
+ | (:php_generic_services) -> bool
1435
+ | (:deprecated) -> bool
1436
+ | (:cc_enable_arenas) -> bool
1437
+ | (:objc_class_prefix) -> ::String
1438
+ | (:csharp_namespace) -> ::String
1439
+ | (:swift_prefix) -> ::String
1440
+ | (:php_class_prefix) -> ::String
1441
+ | (:php_namespace) -> ::String
1442
+ | (:php_metadata_namespace) -> ::String
1443
+ | (:ruby_package) -> ::String
1444
+ | (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
1445
+ | (::Symbol) -> untyped
1446
+
1447
+ def []=: (:java_package, ::String) -> ::String
1448
+ | (:java_outer_classname, ::String) -> ::String
1449
+ | (:java_multiple_files, bool) -> bool
1450
+ | (:java_generate_equals_and_hash, bool) -> bool
1451
+ | (:java_string_check_utf8, bool) -> bool
1452
+ | (:optimize_for, ::Google::Protobuf::FileOptions::OptimizeMode) -> ::Google::Protobuf::FileOptions::OptimizeMode
1453
+ | (:optimize_for, ::Google::Protobuf::FileOptions::OptimizeMode::values) -> ::Google::Protobuf::FileOptions::OptimizeMode::values
1454
+ | (:go_package, ::String) -> ::String
1455
+ | (:cc_generic_services, bool) -> bool
1456
+ | (:java_generic_services, bool) -> bool
1457
+ | (:py_generic_services, bool) -> bool
1458
+ | (:php_generic_services, bool) -> bool
1459
+ | (:deprecated, bool) -> bool
1460
+ | (:cc_enable_arenas, bool) -> bool
1461
+ | (:objc_class_prefix, ::String) -> ::String
1462
+ | (:csharp_namespace, ::String) -> ::String
1463
+ | (:swift_prefix, ::String) -> ::String
1464
+ | (:php_class_prefix, ::String) -> ::String
1465
+ | (:php_namespace, ::String) -> ::String
1466
+ | (:php_metadata_namespace, ::String) -> ::String
1467
+ | (:ruby_package, ::String) -> ::String
1468
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
1469
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1470
+ | (::Symbol, untyped) -> untyped
1471
+
1472
+ def java_multiple_files?: () -> bool
1473
+
1474
+ def java_generate_equals_and_hash?: () -> bool
1475
+
1476
+ def java_string_check_utf8?: () -> bool
1477
+
1478
+ def cc_generic_services?: () -> bool
1479
+
1480
+ def java_generic_services?: () -> bool
1481
+
1482
+ def py_generic_services?: () -> bool
1483
+
1484
+ def php_generic_services?: () -> bool
1485
+
1486
+ def deprecated?: () -> bool
1487
+
1488
+ def cc_enable_arenas?: () -> bool
1489
+
1490
+ interface _ToProto
1491
+ def to_proto: () -> FileOptions
1492
+ end
1493
+
1494
+ # The type of `#initialize` parameter.
1495
+ type init = FileOptions | _ToProto
1496
+
1497
+ # The type of `repeated` field.
1498
+ type field_array = ::Protobuf::Field::FieldArray[FileOptions, FileOptions | _ToProto]
1499
+
1500
+ # The type of `map` field.
1501
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, FileOptions, FileOptions | _ToProto]
1502
+
1503
+ type array = ::Array[FileOptions | _ToProto]
1504
+
1505
+ type hash[KEY] = ::Hash[KEY, FileOptions | _ToProto]
1506
+ end
1507
+
1508
+ class MessageOptions < ::Protobuf::Message
1509
+ # Encode the message to a binary string
1510
+ #
1511
+ def self.encode: (MessageOptions) -> String
1512
+
1513
+ # Set true to use the old proto1 MessageSet wire format for extensions.
1514
+ # This is provided for backwards-compatibility with the MessageSet wire
1515
+ # format. You should not use this for any other reason: It's less
1516
+ # efficient, has fewer features, and is more complicated.
1517
+ #
1518
+ # The message must be defined exactly as follows:
1519
+ # message Foo {
1520
+ # option message_set_wire_format = true;
1521
+ # extensions 4 to max;
1522
+ # }
1523
+ # Note that the message cannot have any defined fields; MessageSets only
1524
+ # have extensions.
1525
+ #
1526
+ # All extensions of your type must be singular messages; e.g. they cannot
1527
+ # be int32s, enums, or repeated messages.
1528
+ #
1529
+ # Because this is an option, the above two restrictions are not enforced by
1530
+ # the protocol compiler.
1531
+ #
1532
+ attr_accessor message_set_wire_format(): bool
1533
+
1534
+ def message_set_wire_format!: () -> bool?
1535
+
1536
+ # Disables the generation of the standard "descriptor()" accessor, which can
1537
+ # conflict with a field of the same name. This is meant to make migration
1538
+ # from proto1 easier; new code should avoid fields named "descriptor".
1539
+ #
1540
+ attr_accessor no_standard_descriptor_accessor(): bool
1541
+
1542
+ def no_standard_descriptor_accessor!: () -> bool?
1543
+
1544
+ # Is this message deprecated?
1545
+ # Depending on the target platform, this can emit Deprecated annotations
1546
+ # for the message, or it will be completely ignored; in the very least,
1547
+ # this is a formalization for deprecating messages.
1548
+ #
1549
+ attr_accessor deprecated(): bool
1550
+
1551
+ def deprecated!: () -> bool?
1552
+
1553
+ # Whether the message is an automatically generated map entry type for the
1554
+ # maps field.
1555
+ #
1556
+ # For maps fields:
1557
+ # map<KeyType, ValueType> map_field = 1;
1558
+ # The parsed descriptor looks like:
1559
+ # message MapFieldEntry {
1560
+ # option map_entry = true;
1561
+ # optional KeyType key = 1;
1562
+ # optional ValueType value = 2;
1563
+ # }
1564
+ # repeated MapFieldEntry map_field = 1;
1565
+ #
1566
+ # Implementations may choose not to generate the map_entry=true message, but
1567
+ # use a native map in the target language to hold the keys and values.
1568
+ # The reflection APIs in such implementations still need to work as
1569
+ # if the field is a repeated message field.
1570
+ #
1571
+ # NOTE: Do not set the option in .proto files. Always use the maps syntax
1572
+ # instead. The option should only be implicitly set by the proto compiler
1573
+ # parser.
1574
+ #
1575
+ attr_accessor map_entry(): bool
1576
+
1577
+ def map_entry!: () -> bool?
1578
+
1579
+ # The parser stores options it doesn't recognize here. See above.
1580
+ #
1581
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
1582
+
1583
+ # The parser stores options it doesn't recognize here. See above.
1584
+ #
1585
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1586
+ | ...
1587
+
1588
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
1589
+
1590
+ def initialize: (?message_set_wire_format: bool, ?no_standard_descriptor_accessor: bool, ?deprecated: bool, ?map_entry: bool, ?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
1591
+
1592
+ def []: (:message_set_wire_format) -> bool
1593
+ | (:no_standard_descriptor_accessor) -> bool
1594
+ | (:deprecated) -> bool
1595
+ | (:map_entry) -> bool
1596
+ | (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
1597
+ | (::Symbol) -> untyped
1598
+
1599
+ def []=: (:message_set_wire_format, bool) -> bool
1600
+ | (:no_standard_descriptor_accessor, bool) -> bool
1601
+ | (:deprecated, bool) -> bool
1602
+ | (:map_entry, bool) -> bool
1603
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
1604
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1605
+ | (::Symbol, untyped) -> untyped
1606
+
1607
+ def message_set_wire_format?: () -> bool
1608
+
1609
+ def no_standard_descriptor_accessor?: () -> bool
1610
+
1611
+ def deprecated?: () -> bool
1612
+
1613
+ def map_entry?: () -> bool
1614
+
1615
+ interface _ToProto
1616
+ def to_proto: () -> MessageOptions
1617
+ end
1618
+
1619
+ # The type of `#initialize` parameter.
1620
+ type init = MessageOptions | _ToProto
1621
+
1622
+ # The type of `repeated` field.
1623
+ type field_array = ::Protobuf::Field::FieldArray[MessageOptions, MessageOptions | _ToProto]
1624
+
1625
+ # The type of `map` field.
1626
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, MessageOptions, MessageOptions | _ToProto]
1627
+
1628
+ type array = ::Array[MessageOptions | _ToProto]
1629
+
1630
+ type hash[KEY] = ::Hash[KEY, MessageOptions | _ToProto]
1631
+ end
1632
+
1633
+ class FieldOptions < ::Protobuf::Message
1634
+ # Encode the message to a binary string
1635
+ #
1636
+ def self.encode: (FieldOptions) -> String
1637
+
1638
+ class CType < ::Protobuf::Enum
1639
+ type names = :STRING | :CORD | :STRING_PIECE
1640
+
1641
+ type strings = "STRING" | "CORD" | "STRING_PIECE"
1642
+
1643
+ type tags = 0 | 1 | 2
1644
+
1645
+ type values = names | strings | tags
1646
+
1647
+ attr_reader name(): names
1648
+
1649
+ attr_reader tag(): tags
1650
+
1651
+ # Default mode.
1652
+ #
1653
+ STRING: CType
1654
+
1655
+ CORD: CType
1656
+
1657
+ STRING_PIECE: CType
1658
+
1659
+ # The type of `#initialize` parameter.
1660
+ type init = CType | values
1661
+
1662
+ # The type of `repeated` field.
1663
+ type field_array = ::Protobuf::Field::FieldArray[CType, CType | values]
1664
+
1665
+ # The type of `map` field.
1666
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, CType, CType | values]
1667
+
1668
+ type array = ::Array[CType | values]
1669
+
1670
+ type hash[KEY] = ::Hash[KEY, CType | values]
1671
+ end
1672
+
1673
+ class JSType < ::Protobuf::Enum
1674
+ type names = :JS_NORMAL | :JS_STRING | :JS_NUMBER
1675
+
1676
+ type strings = "JS_NORMAL" | "JS_STRING" | "JS_NUMBER"
1677
+
1678
+ type tags = 0 | 1 | 2
1679
+
1680
+ type values = names | strings | tags
1681
+
1682
+ attr_reader name(): names
1683
+
1684
+ attr_reader tag(): tags
1685
+
1686
+ # Use the default type.
1687
+ #
1688
+ JS_NORMAL: JSType
1689
+
1690
+ # Use JavaScript strings.
1691
+ #
1692
+ JS_STRING: JSType
1693
+
1694
+ # Use JavaScript numbers.
1695
+ #
1696
+ JS_NUMBER: JSType
1697
+
1698
+ # The type of `#initialize` parameter.
1699
+ type init = JSType | values
1700
+
1701
+ # The type of `repeated` field.
1702
+ type field_array = ::Protobuf::Field::FieldArray[JSType, JSType | values]
1703
+
1704
+ # The type of `map` field.
1705
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, JSType, JSType | values]
1706
+
1707
+ type array = ::Array[JSType | values]
1708
+
1709
+ type hash[KEY] = ::Hash[KEY, JSType | values]
1710
+ end
1711
+
1712
+ # The ctype option instructs the C++ code generator to use a different
1713
+ # representation of the field than it normally would. See the specific
1714
+ # options below. This option is not yet implemented in the open source
1715
+ # release -- sorry, we'll try to include it in a future version!
1716
+ #
1717
+ attr_accessor ctype(): ::Google::Protobuf::FieldOptions::CType
1718
+
1719
+ # The ctype option instructs the C++ code generator to use a different
1720
+ # representation of the field than it normally would. See the specific
1721
+ # options below. This option is not yet implemented in the open source
1722
+ # release -- sorry, we'll try to include it in a future version!
1723
+ #
1724
+ def ctype=: (::Google::Protobuf::FieldOptions::CType::values) -> ::Google::Protobuf::FieldOptions::CType::values
1725
+ | ...
1726
+
1727
+ def ctype!: () -> ::Google::Protobuf::FieldOptions::CType?
1728
+
1729
+ # The packed option can be enabled for repeated primitive fields to enable
1730
+ # a more efficient representation on the wire. Rather than repeatedly
1731
+ # writing the tag and type for each element, the entire array is encoded as
1732
+ # a single length-delimited blob. In proto3, only explicit setting it to
1733
+ # false will avoid using packed encoding.
1734
+ #
1735
+ attr_accessor packed(): bool
1736
+
1737
+ def packed!: () -> bool?
1738
+
1739
+ # The jstype option determines the JavaScript type used for values of the
1740
+ # field. The option is permitted only for 64 bit integral and fixed types
1741
+ # (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
1742
+ # is represented as JavaScript string, which avoids loss of precision that
1743
+ # can happen when a large value is converted to a floating point JavaScript.
1744
+ # Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
1745
+ # use the JavaScript "number" type. The behavior of the default option
1746
+ # JS_NORMAL is implementation dependent.
1747
+ #
1748
+ # This option is an enum to permit additional types to be added, e.g.
1749
+ # goog.math.Integer.
1750
+ #
1751
+ attr_accessor jstype(): ::Google::Protobuf::FieldOptions::JSType
1752
+
1753
+ # The jstype option determines the JavaScript type used for values of the
1754
+ # field. The option is permitted only for 64 bit integral and fixed types
1755
+ # (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
1756
+ # is represented as JavaScript string, which avoids loss of precision that
1757
+ # can happen when a large value is converted to a floating point JavaScript.
1758
+ # Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
1759
+ # use the JavaScript "number" type. The behavior of the default option
1760
+ # JS_NORMAL is implementation dependent.
1761
+ #
1762
+ # This option is an enum to permit additional types to be added, e.g.
1763
+ # goog.math.Integer.
1764
+ #
1765
+ def jstype=: (::Google::Protobuf::FieldOptions::JSType::values) -> ::Google::Protobuf::FieldOptions::JSType::values
1766
+ | ...
1767
+
1768
+ def jstype!: () -> ::Google::Protobuf::FieldOptions::JSType?
1769
+
1770
+ # Should this field be parsed lazily? Lazy applies only to message-type
1771
+ # fields. It means that when the outer message is initially parsed, the
1772
+ # inner message's contents will not be parsed but instead stored in encoded
1773
+ # form. The inner message will actually be parsed when it is first accessed.
1774
+ #
1775
+ # This is only a hint. Implementations are free to choose whether to use
1776
+ # eager or lazy parsing regardless of the value of this option. However,
1777
+ # setting this option true suggests that the protocol author believes that
1778
+ # using lazy parsing on this field is worth the additional bookkeeping
1779
+ # overhead typically needed to implement it.
1780
+ #
1781
+ # This option does not affect the public interface of any generated code;
1782
+ # all method signatures remain the same. Furthermore, thread-safety of the
1783
+ # interface is not affected by this option; const methods remain safe to
1784
+ # call from multiple threads concurrently, while non-const methods continue
1785
+ # to require exclusive access.
1786
+ #
1787
+ #
1788
+ # Note that implementations may choose not to check required fields within
1789
+ # a lazy sub-message. That is, calling IsInitialized() on the outer message
1790
+ # may return true even if the inner message has missing required fields.
1791
+ # This is necessary because otherwise the inner message would have to be
1792
+ # parsed in order to perform the check, defeating the purpose of lazy
1793
+ # parsing. An implementation which chooses not to check required fields
1794
+ # must be consistent about it. That is, for any particular sub-message, the
1795
+ # implementation must either *always* check its required fields, or *never*
1796
+ # check its required fields, regardless of whether or not the message has
1797
+ # been parsed.
1798
+ #
1799
+ # As of 2021, lazy does no correctness checks on the byte stream during
1800
+ # parsing. This may lead to crashes if and when an invalid byte stream is
1801
+ # finally parsed upon access.
1802
+ #
1803
+ # TODO(b/211906113): Enable validation on lazy fields.
1804
+ #
1805
+ attr_accessor lazy(): bool
1806
+
1807
+ def lazy!: () -> bool?
1808
+
1809
+ # unverified_lazy does no correctness checks on the byte stream. This should
1810
+ # only be used where lazy with verification is prohibitive for performance
1811
+ # reasons.
1812
+ #
1813
+ attr_accessor unverified_lazy(): bool
1814
+
1815
+ def unverified_lazy!: () -> bool?
1816
+
1817
+ # Is this field deprecated?
1818
+ # Depending on the target platform, this can emit Deprecated annotations
1819
+ # for accessors, or it will be completely ignored; in the very least, this
1820
+ # is a formalization for deprecating fields.
1821
+ #
1822
+ attr_accessor deprecated(): bool
1823
+
1824
+ def deprecated!: () -> bool?
1825
+
1826
+ # For Google-internal migration only. Do not use.
1827
+ #
1828
+ attr_accessor weak(): bool
1829
+
1830
+ def weak!: () -> bool?
1831
+
1832
+ # The parser stores options it doesn't recognize here. See above.
1833
+ #
1834
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
1835
+
1836
+ # The parser stores options it doesn't recognize here. See above.
1837
+ #
1838
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1839
+ | ...
1840
+
1841
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
1842
+
1843
+ def initialize: (?ctype: ::Google::Protobuf::FieldOptions::CType::init, ?packed: bool, ?jstype: ::Google::Protobuf::FieldOptions::JSType::init, ?lazy: bool, ?unverified_lazy: bool, ?deprecated: bool, ?weak: bool, ?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
1844
+
1845
+ def []: (:ctype) -> ::Google::Protobuf::FieldOptions::CType
1846
+ | (:packed) -> bool
1847
+ | (:jstype) -> ::Google::Protobuf::FieldOptions::JSType
1848
+ | (:lazy) -> bool
1849
+ | (:unverified_lazy) -> bool
1850
+ | (:deprecated) -> bool
1851
+ | (:weak) -> bool
1852
+ | (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
1853
+ | (::Symbol) -> untyped
1854
+
1855
+ def []=: (:ctype, ::Google::Protobuf::FieldOptions::CType) -> ::Google::Protobuf::FieldOptions::CType
1856
+ | (:ctype, ::Google::Protobuf::FieldOptions::CType::values) -> ::Google::Protobuf::FieldOptions::CType::values
1857
+ | (:packed, bool) -> bool
1858
+ | (:jstype, ::Google::Protobuf::FieldOptions::JSType) -> ::Google::Protobuf::FieldOptions::JSType
1859
+ | (:jstype, ::Google::Protobuf::FieldOptions::JSType::values) -> ::Google::Protobuf::FieldOptions::JSType::values
1860
+ | (:lazy, bool) -> bool
1861
+ | (:unverified_lazy, bool) -> bool
1862
+ | (:deprecated, bool) -> bool
1863
+ | (:weak, bool) -> bool
1864
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
1865
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1866
+ | (::Symbol, untyped) -> untyped
1867
+
1868
+ def packed?: () -> bool
1869
+
1870
+ def lazy?: () -> bool
1871
+
1872
+ def unverified_lazy?: () -> bool
1873
+
1874
+ def deprecated?: () -> bool
1875
+
1876
+ def weak?: () -> bool
1877
+
1878
+ interface _ToProto
1879
+ def to_proto: () -> FieldOptions
1880
+ end
1881
+
1882
+ # The type of `#initialize` parameter.
1883
+ type init = FieldOptions | _ToProto
1884
+
1885
+ # The type of `repeated` field.
1886
+ type field_array = ::Protobuf::Field::FieldArray[FieldOptions, FieldOptions | _ToProto]
1887
+
1888
+ # The type of `map` field.
1889
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, FieldOptions, FieldOptions | _ToProto]
1890
+
1891
+ type array = ::Array[FieldOptions | _ToProto]
1892
+
1893
+ type hash[KEY] = ::Hash[KEY, FieldOptions | _ToProto]
1894
+ end
1895
+
1896
+ class OneofOptions < ::Protobuf::Message
1897
+ # Encode the message to a binary string
1898
+ #
1899
+ def self.encode: (OneofOptions) -> String
1900
+
1901
+ # The parser stores options it doesn't recognize here. See above.
1902
+ #
1903
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
1904
+
1905
+ # The parser stores options it doesn't recognize here. See above.
1906
+ #
1907
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1908
+ | ...
1909
+
1910
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
1911
+
1912
+ def initialize: (?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
1913
+
1914
+ def []: (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
1915
+ | (::Symbol) -> untyped
1916
+
1917
+ def []=: (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
1918
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1919
+ | (::Symbol, untyped) -> untyped
1920
+
1921
+ interface _ToProto
1922
+ def to_proto: () -> OneofOptions
1923
+ end
1924
+
1925
+ # The type of `#initialize` parameter.
1926
+ type init = OneofOptions | _ToProto
1927
+
1928
+ # The type of `repeated` field.
1929
+ type field_array = ::Protobuf::Field::FieldArray[OneofOptions, OneofOptions | _ToProto]
1930
+
1931
+ # The type of `map` field.
1932
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, OneofOptions, OneofOptions | _ToProto]
1933
+
1934
+ type array = ::Array[OneofOptions | _ToProto]
1935
+
1936
+ type hash[KEY] = ::Hash[KEY, OneofOptions | _ToProto]
1937
+ end
1938
+
1939
+ class EnumOptions < ::Protobuf::Message
1940
+ # Encode the message to a binary string
1941
+ #
1942
+ def self.encode: (EnumOptions) -> String
1943
+
1944
+ # Set this option to true to allow mapping different tag names to the same
1945
+ # value.
1946
+ #
1947
+ attr_accessor allow_alias(): bool
1948
+
1949
+ def allow_alias!: () -> bool?
1950
+
1951
+ # Is this enum deprecated?
1952
+ # Depending on the target platform, this can emit Deprecated annotations
1953
+ # for the enum, or it will be completely ignored; in the very least, this
1954
+ # is a formalization for deprecating enums.
1955
+ #
1956
+ attr_accessor deprecated(): bool
1957
+
1958
+ def deprecated!: () -> bool?
1959
+
1960
+ # The parser stores options it doesn't recognize here. See above.
1961
+ #
1962
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
1963
+
1964
+ # The parser stores options it doesn't recognize here. See above.
1965
+ #
1966
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1967
+ | ...
1968
+
1969
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
1970
+
1971
+ def initialize: (?allow_alias: bool, ?deprecated: bool, ?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
1972
+
1973
+ def []: (:allow_alias) -> bool
1974
+ | (:deprecated) -> bool
1975
+ | (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
1976
+ | (::Symbol) -> untyped
1977
+
1978
+ def []=: (:allow_alias, bool) -> bool
1979
+ | (:deprecated, bool) -> bool
1980
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
1981
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
1982
+ | (::Symbol, untyped) -> untyped
1983
+
1984
+ def allow_alias?: () -> bool
1985
+
1986
+ def deprecated?: () -> bool
1987
+
1988
+ interface _ToProto
1989
+ def to_proto: () -> EnumOptions
1990
+ end
1991
+
1992
+ # The type of `#initialize` parameter.
1993
+ type init = EnumOptions | _ToProto
1994
+
1995
+ # The type of `repeated` field.
1996
+ type field_array = ::Protobuf::Field::FieldArray[EnumOptions, EnumOptions | _ToProto]
1997
+
1998
+ # The type of `map` field.
1999
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, EnumOptions, EnumOptions | _ToProto]
2000
+
2001
+ type array = ::Array[EnumOptions | _ToProto]
2002
+
2003
+ type hash[KEY] = ::Hash[KEY, EnumOptions | _ToProto]
2004
+ end
2005
+
2006
+ class EnumValueOptions < ::Protobuf::Message
2007
+ # Encode the message to a binary string
2008
+ #
2009
+ def self.encode: (EnumValueOptions) -> String
2010
+
2011
+ # Is this enum value deprecated?
2012
+ # Depending on the target platform, this can emit Deprecated annotations
2013
+ # for the enum value, or it will be completely ignored; in the very least,
2014
+ # this is a formalization for deprecating enum values.
2015
+ #
2016
+ attr_accessor deprecated(): bool
2017
+
2018
+ def deprecated!: () -> bool?
2019
+
2020
+ # The parser stores options it doesn't recognize here. See above.
2021
+ #
2022
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
2023
+
2024
+ # The parser stores options it doesn't recognize here. See above.
2025
+ #
2026
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
2027
+ | ...
2028
+
2029
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
2030
+
2031
+ def initialize: (?deprecated: bool, ?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
2032
+
2033
+ def []: (:deprecated) -> bool
2034
+ | (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
2035
+ | (::Symbol) -> untyped
2036
+
2037
+ def []=: (:deprecated, bool) -> bool
2038
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
2039
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
2040
+ | (::Symbol, untyped) -> untyped
2041
+
2042
+ def deprecated?: () -> bool
2043
+
2044
+ interface _ToProto
2045
+ def to_proto: () -> EnumValueOptions
2046
+ end
2047
+
2048
+ # The type of `#initialize` parameter.
2049
+ type init = EnumValueOptions | _ToProto
2050
+
2051
+ # The type of `repeated` field.
2052
+ type field_array = ::Protobuf::Field::FieldArray[EnumValueOptions, EnumValueOptions | _ToProto]
2053
+
2054
+ # The type of `map` field.
2055
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, EnumValueOptions, EnumValueOptions | _ToProto]
2056
+
2057
+ type array = ::Array[EnumValueOptions | _ToProto]
2058
+
2059
+ type hash[KEY] = ::Hash[KEY, EnumValueOptions | _ToProto]
2060
+ end
2061
+
2062
+ class ServiceOptions < ::Protobuf::Message
2063
+ # Encode the message to a binary string
2064
+ #
2065
+ def self.encode: (ServiceOptions) -> String
2066
+
2067
+ # Is this service deprecated?
2068
+ # Depending on the target platform, this can emit Deprecated annotations
2069
+ # for the service, or it will be completely ignored; in the very least,
2070
+ # this is a formalization for deprecating services.
2071
+ #
2072
+ attr_accessor deprecated(): bool
2073
+
2074
+ def deprecated!: () -> bool?
2075
+
2076
+ # The parser stores options it doesn't recognize here. See above.
2077
+ #
2078
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
2079
+
2080
+ # The parser stores options it doesn't recognize here. See above.
2081
+ #
2082
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
2083
+ | ...
2084
+
2085
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
2086
+
2087
+ def initialize: (?deprecated: bool, ?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
2088
+
2089
+ def []: (:deprecated) -> bool
2090
+ | (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
2091
+ | (::Symbol) -> untyped
2092
+
2093
+ def []=: (:deprecated, bool) -> bool
2094
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
2095
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
2096
+ | (::Symbol, untyped) -> untyped
2097
+
2098
+ def deprecated?: () -> bool
2099
+
2100
+ interface _ToProto
2101
+ def to_proto: () -> ServiceOptions
2102
+ end
2103
+
2104
+ # The type of `#initialize` parameter.
2105
+ type init = ServiceOptions | _ToProto
2106
+
2107
+ # The type of `repeated` field.
2108
+ type field_array = ::Protobuf::Field::FieldArray[ServiceOptions, ServiceOptions | _ToProto]
2109
+
2110
+ # The type of `map` field.
2111
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, ServiceOptions, ServiceOptions | _ToProto]
2112
+
2113
+ type array = ::Array[ServiceOptions | _ToProto]
2114
+
2115
+ type hash[KEY] = ::Hash[KEY, ServiceOptions | _ToProto]
2116
+ end
2117
+
2118
+ class MethodOptions < ::Protobuf::Message
2119
+ # Encode the message to a binary string
2120
+ #
2121
+ def self.encode: (MethodOptions) -> String
2122
+
2123
+ # Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
2124
+ # or neither? HTTP based RPC implementation may choose GET verb for safe
2125
+ # methods, and PUT verb for idempotent methods instead of the default POST.
2126
+ #
2127
+ class IdempotencyLevel < ::Protobuf::Enum
2128
+ type names = :IDEMPOTENCY_UNKNOWN | :NO_SIDE_EFFECTS | :IDEMPOTENT
2129
+
2130
+ type strings = "IDEMPOTENCY_UNKNOWN" | "NO_SIDE_EFFECTS" | "IDEMPOTENT"
2131
+
2132
+ type tags = 0 | 1 | 2
2133
+
2134
+ type values = names | strings | tags
2135
+
2136
+ attr_reader name(): names
2137
+
2138
+ attr_reader tag(): tags
2139
+
2140
+ IDEMPOTENCY_UNKNOWN: IdempotencyLevel
2141
+
2142
+ # implies idempotent
2143
+ #
2144
+ NO_SIDE_EFFECTS: IdempotencyLevel
2145
+
2146
+ # idempotent, but may have side effects
2147
+ #
2148
+ IDEMPOTENT: IdempotencyLevel
2149
+
2150
+ # The type of `#initialize` parameter.
2151
+ type init = IdempotencyLevel | values
2152
+
2153
+ # The type of `repeated` field.
2154
+ type field_array = ::Protobuf::Field::FieldArray[IdempotencyLevel, IdempotencyLevel | values]
2155
+
2156
+ # The type of `map` field.
2157
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, IdempotencyLevel, IdempotencyLevel | values]
2158
+
2159
+ type array = ::Array[IdempotencyLevel | values]
2160
+
2161
+ type hash[KEY] = ::Hash[KEY, IdempotencyLevel | values]
2162
+ end
2163
+
2164
+ # Is this method deprecated?
2165
+ # Depending on the target platform, this can emit Deprecated annotations
2166
+ # for the method, or it will be completely ignored; in the very least,
2167
+ # this is a formalization for deprecating methods.
2168
+ #
2169
+ attr_accessor deprecated(): bool
2170
+
2171
+ def deprecated!: () -> bool?
2172
+
2173
+ attr_accessor idempotency_level(): ::Google::Protobuf::MethodOptions::IdempotencyLevel
2174
+
2175
+ def idempotency_level=: (::Google::Protobuf::MethodOptions::IdempotencyLevel::values) -> ::Google::Protobuf::MethodOptions::IdempotencyLevel::values
2176
+ | ...
2177
+
2178
+ def idempotency_level!: () -> ::Google::Protobuf::MethodOptions::IdempotencyLevel?
2179
+
2180
+ # The parser stores options it doesn't recognize here. See above.
2181
+ #
2182
+ attr_accessor uninterpreted_option(): ::Google::Protobuf::UninterpretedOption::field_array
2183
+
2184
+ # The parser stores options it doesn't recognize here. See above.
2185
+ #
2186
+ def uninterpreted_option=: (::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
2187
+ | ...
2188
+
2189
+ def uninterpreted_option!: () -> ::Google::Protobuf::UninterpretedOption::field_array?
2190
+
2191
+ def initialize: (?deprecated: bool, ?idempotency_level: ::Google::Protobuf::MethodOptions::IdempotencyLevel::init, ?uninterpreted_option: ::Google::Protobuf::UninterpretedOption::array) -> void
2192
+
2193
+ def []: (:deprecated) -> bool
2194
+ | (:idempotency_level) -> ::Google::Protobuf::MethodOptions::IdempotencyLevel
2195
+ | (:uninterpreted_option) -> ::Google::Protobuf::UninterpretedOption::field_array
2196
+ | (::Symbol) -> untyped
2197
+
2198
+ def []=: (:deprecated, bool) -> bool
2199
+ | (:idempotency_level, ::Google::Protobuf::MethodOptions::IdempotencyLevel) -> ::Google::Protobuf::MethodOptions::IdempotencyLevel
2200
+ | (:idempotency_level, ::Google::Protobuf::MethodOptions::IdempotencyLevel::values) -> ::Google::Protobuf::MethodOptions::IdempotencyLevel::values
2201
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::field_array) -> ::Google::Protobuf::UninterpretedOption::field_array
2202
+ | (:uninterpreted_option, ::Google::Protobuf::UninterpretedOption::array) -> ::Google::Protobuf::UninterpretedOption::array
2203
+ | (::Symbol, untyped) -> untyped
2204
+
2205
+ def deprecated?: () -> bool
2206
+
2207
+ interface _ToProto
2208
+ def to_proto: () -> MethodOptions
2209
+ end
2210
+
2211
+ # The type of `#initialize` parameter.
2212
+ type init = MethodOptions | _ToProto
2213
+
2214
+ # The type of `repeated` field.
2215
+ type field_array = ::Protobuf::Field::FieldArray[MethodOptions, MethodOptions | _ToProto]
2216
+
2217
+ # The type of `map` field.
2218
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, MethodOptions, MethodOptions | _ToProto]
2219
+
2220
+ type array = ::Array[MethodOptions | _ToProto]
2221
+
2222
+ type hash[KEY] = ::Hash[KEY, MethodOptions | _ToProto]
2223
+ end
2224
+
2225
+ # A message representing a option the parser does not recognize. This only
2226
+ # appears in options protos created by the compiler::Parser class.
2227
+ # DescriptorPool resolves these when building Descriptor objects. Therefore,
2228
+ # options protos in descriptor objects (e.g. returned by Descriptor::options(),
2229
+ # or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
2230
+ # in them.
2231
+ #
2232
+ class UninterpretedOption < ::Protobuf::Message
2233
+ # Encode the message to a binary string
2234
+ #
2235
+ def self.encode: (UninterpretedOption) -> String
2236
+
2237
+ # The name of the uninterpreted option. Each string represents a segment in
2238
+ # a dot-separated name. is_extension is true iff a segment represents an
2239
+ # extension (denoted with parentheses in options specs in .proto files).
2240
+ # E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
2241
+ # "foo.(bar.baz).moo".
2242
+ #
2243
+ class NamePart < ::Protobuf::Message
2244
+ # Encode the message to a binary string
2245
+ #
2246
+ def self.encode: (NamePart) -> String
2247
+
2248
+ attr_accessor name_part(): ::String
2249
+
2250
+ def name_part!: () -> ::String?
2251
+
2252
+ attr_accessor is_extension(): bool
2253
+
2254
+ def is_extension!: () -> bool?
2255
+
2256
+ def initialize: (?name_part: ::String, ?is_extension: bool) -> void
2257
+
2258
+ def []: (:name_part) -> ::String
2259
+ | (:is_extension) -> bool
2260
+ | (::Symbol) -> untyped
2261
+
2262
+ def []=: (:name_part, ::String) -> ::String
2263
+ | (:is_extension, bool) -> bool
2264
+ | (::Symbol, untyped) -> untyped
2265
+
2266
+ def is_extension?: () -> bool
2267
+
2268
+ interface _ToProto
2269
+ def to_proto: () -> NamePart
2270
+ end
2271
+
2272
+ # The type of `#initialize` parameter.
2273
+ type init = NamePart | _ToProto
2274
+
2275
+ # The type of `repeated` field.
2276
+ type field_array = ::Protobuf::Field::FieldArray[NamePart, NamePart | _ToProto]
2277
+
2278
+ # The type of `map` field.
2279
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, NamePart, NamePart | _ToProto]
2280
+
2281
+ type array = ::Array[NamePart | _ToProto]
2282
+
2283
+ type hash[KEY] = ::Hash[KEY, NamePart | _ToProto]
2284
+ end
2285
+
2286
+ attr_accessor name(): ::Google::Protobuf::UninterpretedOption::NamePart::field_array
2287
+
2288
+ def name=: (::Google::Protobuf::UninterpretedOption::NamePart::array) -> ::Google::Protobuf::UninterpretedOption::NamePart::array
2289
+ | ...
2290
+
2291
+ def name!: () -> ::Google::Protobuf::UninterpretedOption::NamePart::field_array?
2292
+
2293
+ # The value of the uninterpreted option, in whatever type the tokenizer
2294
+ # identified it as during parsing. Exactly one of these should be set.
2295
+ #
2296
+ attr_accessor identifier_value(): ::String
2297
+
2298
+ def identifier_value!: () -> ::String?
2299
+
2300
+ attr_accessor positive_int_value(): ::Integer
2301
+
2302
+ def positive_int_value!: () -> ::Integer?
2303
+
2304
+ attr_accessor negative_int_value(): ::Integer
2305
+
2306
+ def negative_int_value!: () -> ::Integer?
2307
+
2308
+ attr_accessor double_value(): ::Float
2309
+
2310
+ def double_value!: () -> ::Float?
2311
+
2312
+ attr_accessor string_value(): ::String
2313
+
2314
+ def string_value!: () -> ::String?
2315
+
2316
+ attr_accessor aggregate_value(): ::String
2317
+
2318
+ def aggregate_value!: () -> ::String?
2319
+
2320
+ def initialize: (?name: ::Google::Protobuf::UninterpretedOption::NamePart::array, ?identifier_value: ::String, ?positive_int_value: ::Integer, ?negative_int_value: ::Integer, ?double_value: ::Float, ?string_value: ::String, ?aggregate_value: ::String) -> void
2321
+
2322
+ def []: (:name) -> ::Google::Protobuf::UninterpretedOption::NamePart::field_array
2323
+ | (:identifier_value) -> ::String
2324
+ | (:positive_int_value) -> ::Integer
2325
+ | (:negative_int_value) -> ::Integer
2326
+ | (:double_value) -> ::Float
2327
+ | (:string_value) -> ::String
2328
+ | (:aggregate_value) -> ::String
2329
+ | (::Symbol) -> untyped
2330
+
2331
+ def []=: (:name, ::Google::Protobuf::UninterpretedOption::NamePart::field_array) -> ::Google::Protobuf::UninterpretedOption::NamePart::field_array
2332
+ | (:name, ::Google::Protobuf::UninterpretedOption::NamePart::array) -> ::Google::Protobuf::UninterpretedOption::NamePart::array
2333
+ | (:identifier_value, ::String) -> ::String
2334
+ | (:positive_int_value, ::Integer) -> ::Integer
2335
+ | (:negative_int_value, ::Integer) -> ::Integer
2336
+ | (:double_value, ::Float) -> ::Float
2337
+ | (:string_value, ::String) -> ::String
2338
+ | (:aggregate_value, ::String) -> ::String
2339
+ | (::Symbol, untyped) -> untyped
2340
+
2341
+ interface _ToProto
2342
+ def to_proto: () -> UninterpretedOption
2343
+ end
2344
+
2345
+ # The type of `#initialize` parameter.
2346
+ type init = UninterpretedOption | _ToProto
2347
+
2348
+ # The type of `repeated` field.
2349
+ type field_array = ::Protobuf::Field::FieldArray[UninterpretedOption, UninterpretedOption | _ToProto]
2350
+
2351
+ # The type of `map` field.
2352
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, UninterpretedOption, UninterpretedOption | _ToProto]
2353
+
2354
+ type array = ::Array[UninterpretedOption | _ToProto]
2355
+
2356
+ type hash[KEY] = ::Hash[KEY, UninterpretedOption | _ToProto]
2357
+ end
2358
+
2359
+ # Encapsulates information about the original source file from which a
2360
+ # FileDescriptorProto was generated.
2361
+ #
2362
+ class SourceCodeInfo < ::Protobuf::Message
2363
+ # Encode the message to a binary string
2364
+ #
2365
+ def self.encode: (SourceCodeInfo) -> String
2366
+
2367
+ class Location < ::Protobuf::Message
2368
+ # Encode the message to a binary string
2369
+ #
2370
+ def self.encode: (Location) -> String
2371
+
2372
+ # Identifies which part of the FileDescriptorProto was defined at this
2373
+ # location.
2374
+ #
2375
+ # Each element is a field number or an index. They form a path from
2376
+ # the root FileDescriptorProto to the place where the definition occurs.
2377
+ # For example, this path:
2378
+ # [ 4, 3, 2, 7, 1 ]
2379
+ # refers to:
2380
+ # file.message_type(3) // 4, 3
2381
+ # .field(7) // 2, 7
2382
+ # .name() // 1
2383
+ # This is because FileDescriptorProto.message_type has field number 4:
2384
+ # repeated DescriptorProto message_type = 4;
2385
+ # and DescriptorProto.field has field number 2:
2386
+ # repeated FieldDescriptorProto field = 2;
2387
+ # and FieldDescriptorProto.name has field number 1:
2388
+ # optional string name = 1;
2389
+ #
2390
+ # Thus, the above path gives the location of a field name. If we removed
2391
+ # the last element:
2392
+ # [ 4, 3, 2, 7 ]
2393
+ # this path refers to the whole field declaration (from the beginning
2394
+ # of the label to the terminating semicolon).
2395
+ #
2396
+ # ----
2397
+ #
2398
+ # Protobuf options:
2399
+ #
2400
+ # - `packed = true`
2401
+ #
2402
+ attr_accessor path(): ::Protobuf::field_array[::Integer]
2403
+
2404
+ # Identifies which part of the FileDescriptorProto was defined at this
2405
+ # location.
2406
+ #
2407
+ # Each element is a field number or an index. They form a path from
2408
+ # the root FileDescriptorProto to the place where the definition occurs.
2409
+ # For example, this path:
2410
+ # [ 4, 3, 2, 7, 1 ]
2411
+ # refers to:
2412
+ # file.message_type(3) // 4, 3
2413
+ # .field(7) // 2, 7
2414
+ # .name() // 1
2415
+ # This is because FileDescriptorProto.message_type has field number 4:
2416
+ # repeated DescriptorProto message_type = 4;
2417
+ # and DescriptorProto.field has field number 2:
2418
+ # repeated FieldDescriptorProto field = 2;
2419
+ # and FieldDescriptorProto.name has field number 1:
2420
+ # optional string name = 1;
2421
+ #
2422
+ # Thus, the above path gives the location of a field name. If we removed
2423
+ # the last element:
2424
+ # [ 4, 3, 2, 7 ]
2425
+ # this path refers to the whole field declaration (from the beginning
2426
+ # of the label to the terminating semicolon).
2427
+ #
2428
+ # ----
2429
+ #
2430
+ # Protobuf options:
2431
+ #
2432
+ # - `packed = true`
2433
+ #
2434
+ def path=: (::Array[::Integer]) -> ::Array[::Integer]
2435
+ | ...
2436
+
2437
+ def path!: () -> ::Protobuf::field_array[::Integer]?
2438
+
2439
+ # Always has exactly three or four elements: start line, start column,
2440
+ # end line (optional, otherwise assumed same as start line), end column.
2441
+ # These are packed into a single field for efficiency. Note that line
2442
+ # and column numbers are zero-based -- typically you will want to add
2443
+ # 1 to each before displaying to a user.
2444
+ #
2445
+ # ----
2446
+ #
2447
+ # Protobuf options:
2448
+ #
2449
+ # - `packed = true`
2450
+ #
2451
+ attr_accessor span(): ::Protobuf::field_array[::Integer]
2452
+
2453
+ # Always has exactly three or four elements: start line, start column,
2454
+ # end line (optional, otherwise assumed same as start line), end column.
2455
+ # These are packed into a single field for efficiency. Note that line
2456
+ # and column numbers are zero-based -- typically you will want to add
2457
+ # 1 to each before displaying to a user.
2458
+ #
2459
+ # ----
2460
+ #
2461
+ # Protobuf options:
2462
+ #
2463
+ # - `packed = true`
2464
+ #
2465
+ def span=: (::Array[::Integer]) -> ::Array[::Integer]
2466
+ | ...
2467
+
2468
+ def span!: () -> ::Protobuf::field_array[::Integer]?
2469
+
2470
+ # If this SourceCodeInfo represents a complete declaration, these are any
2471
+ # comments appearing before and after the declaration which appear to be
2472
+ # attached to the declaration.
2473
+ #
2474
+ # A series of line comments appearing on consecutive lines, with no other
2475
+ # tokens appearing on those lines, will be treated as a single comment.
2476
+ #
2477
+ # leading_detached_comments will keep paragraphs of comments that appear
2478
+ # before (but not connected to) the current element. Each paragraph,
2479
+ # separated by empty lines, will be one comment element in the repeated
2480
+ # field.
2481
+ #
2482
+ # Only the comment content is provided; comment markers (e.g. //) are
2483
+ # stripped out. For block comments, leading whitespace and an asterisk
2484
+ # will be stripped from the beginning of each line other than the first.
2485
+ # Newlines are included in the output.
2486
+ #
2487
+ # Examples:
2488
+ #
2489
+ # optional int32 foo = 1; // Comment attached to foo.
2490
+ # // Comment attached to bar.
2491
+ # optional int32 bar = 2;
2492
+ #
2493
+ # optional string baz = 3;
2494
+ # // Comment attached to baz.
2495
+ # // Another line attached to baz.
2496
+ #
2497
+ # // Comment attached to moo.
2498
+ # //
2499
+ # // Another line attached to moo.
2500
+ # optional double moo = 4;
2501
+ #
2502
+ # // Detached comment for corge. This is not leading or trailing comments
2503
+ # // to moo or corge because there are blank lines separating it from
2504
+ # // both.
2505
+ #
2506
+ # // Detached comment for corge paragraph 2.
2507
+ #
2508
+ # optional string corge = 5;
2509
+ # /* Block comment attached
2510
+ # * to corge. Leading asterisks
2511
+ # * will be removed. */
2512
+ # /* Block comment attached to
2513
+ # * grault. */
2514
+ # optional int32 grault = 6;
2515
+ #
2516
+ # // ignored detached comments.
2517
+ #
2518
+ attr_accessor leading_comments(): ::String
2519
+
2520
+ def leading_comments!: () -> ::String?
2521
+
2522
+ attr_accessor trailing_comments(): ::String
2523
+
2524
+ def trailing_comments!: () -> ::String?
2525
+
2526
+ attr_accessor leading_detached_comments(): ::Protobuf::field_array[::String]
2527
+
2528
+ def leading_detached_comments=: (::Array[::String]) -> ::Array[::String]
2529
+ | ...
2530
+
2531
+ def leading_detached_comments!: () -> ::Protobuf::field_array[::String]?
2532
+
2533
+ def initialize: (?path: ::Array[::Integer], ?span: ::Array[::Integer], ?leading_comments: ::String, ?trailing_comments: ::String, ?leading_detached_comments: ::Array[::String]) -> void
2534
+
2535
+ def []: (:path) -> ::Protobuf::field_array[::Integer]
2536
+ | (:span) -> ::Protobuf::field_array[::Integer]
2537
+ | (:leading_comments) -> ::String
2538
+ | (:trailing_comments) -> ::String
2539
+ | (:leading_detached_comments) -> ::Protobuf::field_array[::String]
2540
+ | (::Symbol) -> untyped
2541
+
2542
+ def []=: (:path, ::Protobuf::field_array[::Integer]) -> ::Protobuf::field_array[::Integer]
2543
+ | (:path, ::Array[::Integer]) -> ::Array[::Integer]
2544
+ | (:span, ::Protobuf::field_array[::Integer]) -> ::Protobuf::field_array[::Integer]
2545
+ | (:span, ::Array[::Integer]) -> ::Array[::Integer]
2546
+ | (:leading_comments, ::String) -> ::String
2547
+ | (:trailing_comments, ::String) -> ::String
2548
+ | (:leading_detached_comments, ::Protobuf::field_array[::String]) -> ::Protobuf::field_array[::String]
2549
+ | (:leading_detached_comments, ::Array[::String]) -> ::Array[::String]
2550
+ | (::Symbol, untyped) -> untyped
2551
+
2552
+ interface _ToProto
2553
+ def to_proto: () -> Location
2554
+ end
2555
+
2556
+ # The type of `#initialize` parameter.
2557
+ type init = Location | _ToProto
2558
+
2559
+ # The type of `repeated` field.
2560
+ type field_array = ::Protobuf::Field::FieldArray[Location, Location | _ToProto]
2561
+
2562
+ # The type of `map` field.
2563
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, Location, Location | _ToProto]
2564
+
2565
+ type array = ::Array[Location | _ToProto]
2566
+
2567
+ type hash[KEY] = ::Hash[KEY, Location | _ToProto]
2568
+ end
2569
+
2570
+ # A Location identifies a piece of source code in a .proto file which
2571
+ # corresponds to a particular definition. This information is intended
2572
+ # to be useful to IDEs, code indexers, documentation generators, and similar
2573
+ # tools.
2574
+ #
2575
+ # For example, say we have a file like:
2576
+ # message Foo {
2577
+ # optional string foo = 1;
2578
+ # }
2579
+ # Let's look at just the field definition:
2580
+ # optional string foo = 1;
2581
+ # ^ ^^ ^^ ^ ^^^
2582
+ # a bc de f ghi
2583
+ # We have the following locations:
2584
+ # span path represents
2585
+ # [a,i) [ 4, 0, 2, 0 ] The whole field definition.
2586
+ # [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
2587
+ # [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
2588
+ # [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
2589
+ # [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
2590
+ #
2591
+ # Notes:
2592
+ # - A location may refer to a repeated field itself (i.e. not to any
2593
+ # particular index within it). This is used whenever a set of elements are
2594
+ # logically enclosed in a single code segment. For example, an entire
2595
+ # extend block (possibly containing multiple extension definitions) will
2596
+ # have an outer location whose path refers to the "extensions" repeated
2597
+ # field without an index.
2598
+ # - Multiple locations may have the same path. This happens when a single
2599
+ # logical declaration is spread out across multiple places. The most
2600
+ # obvious example is the "extend" block again -- there may be multiple
2601
+ # extend blocks in the same scope, each of which will have the same path.
2602
+ # - A location's span is not always a subset of its parent's span. For
2603
+ # example, the "extendee" of an extension declaration appears at the
2604
+ # beginning of the "extend" block and is shared by all extensions within
2605
+ # the block.
2606
+ # - Just because a location's span is a subset of some other location's span
2607
+ # does not mean that it is a descendant. For example, a "group" defines
2608
+ # both a type and a field in a single declaration. Thus, the locations
2609
+ # corresponding to the type and field and their components will overlap.
2610
+ # - Code which tries to interpret locations should probably be designed to
2611
+ # ignore those that it doesn't understand, as more types of locations could
2612
+ # be recorded in the future.
2613
+ #
2614
+ attr_accessor location(): ::Google::Protobuf::SourceCodeInfo::Location::field_array
2615
+
2616
+ # A Location identifies a piece of source code in a .proto file which
2617
+ # corresponds to a particular definition. This information is intended
2618
+ # to be useful to IDEs, code indexers, documentation generators, and similar
2619
+ # tools.
2620
+ #
2621
+ # For example, say we have a file like:
2622
+ # message Foo {
2623
+ # optional string foo = 1;
2624
+ # }
2625
+ # Let's look at just the field definition:
2626
+ # optional string foo = 1;
2627
+ # ^ ^^ ^^ ^ ^^^
2628
+ # a bc de f ghi
2629
+ # We have the following locations:
2630
+ # span path represents
2631
+ # [a,i) [ 4, 0, 2, 0 ] The whole field definition.
2632
+ # [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
2633
+ # [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
2634
+ # [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
2635
+ # [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
2636
+ #
2637
+ # Notes:
2638
+ # - A location may refer to a repeated field itself (i.e. not to any
2639
+ # particular index within it). This is used whenever a set of elements are
2640
+ # logically enclosed in a single code segment. For example, an entire
2641
+ # extend block (possibly containing multiple extension definitions) will
2642
+ # have an outer location whose path refers to the "extensions" repeated
2643
+ # field without an index.
2644
+ # - Multiple locations may have the same path. This happens when a single
2645
+ # logical declaration is spread out across multiple places. The most
2646
+ # obvious example is the "extend" block again -- there may be multiple
2647
+ # extend blocks in the same scope, each of which will have the same path.
2648
+ # - A location's span is not always a subset of its parent's span. For
2649
+ # example, the "extendee" of an extension declaration appears at the
2650
+ # beginning of the "extend" block and is shared by all extensions within
2651
+ # the block.
2652
+ # - Just because a location's span is a subset of some other location's span
2653
+ # does not mean that it is a descendant. For example, a "group" defines
2654
+ # both a type and a field in a single declaration. Thus, the locations
2655
+ # corresponding to the type and field and their components will overlap.
2656
+ # - Code which tries to interpret locations should probably be designed to
2657
+ # ignore those that it doesn't understand, as more types of locations could
2658
+ # be recorded in the future.
2659
+ #
2660
+ def location=: (::Google::Protobuf::SourceCodeInfo::Location::array) -> ::Google::Protobuf::SourceCodeInfo::Location::array
2661
+ | ...
2662
+
2663
+ def location!: () -> ::Google::Protobuf::SourceCodeInfo::Location::field_array?
2664
+
2665
+ def initialize: (?location: ::Google::Protobuf::SourceCodeInfo::Location::array) -> void
2666
+
2667
+ def []: (:location) -> ::Google::Protobuf::SourceCodeInfo::Location::field_array
2668
+ | (::Symbol) -> untyped
2669
+
2670
+ def []=: (:location, ::Google::Protobuf::SourceCodeInfo::Location::field_array) -> ::Google::Protobuf::SourceCodeInfo::Location::field_array
2671
+ | (:location, ::Google::Protobuf::SourceCodeInfo::Location::array) -> ::Google::Protobuf::SourceCodeInfo::Location::array
2672
+ | (::Symbol, untyped) -> untyped
2673
+
2674
+ interface _ToProto
2675
+ def to_proto: () -> SourceCodeInfo
2676
+ end
2677
+
2678
+ # The type of `#initialize` parameter.
2679
+ type init = SourceCodeInfo | _ToProto
2680
+
2681
+ # The type of `repeated` field.
2682
+ type field_array = ::Protobuf::Field::FieldArray[SourceCodeInfo, SourceCodeInfo | _ToProto]
2683
+
2684
+ # The type of `map` field.
2685
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, SourceCodeInfo, SourceCodeInfo | _ToProto]
2686
+
2687
+ type array = ::Array[SourceCodeInfo | _ToProto]
2688
+
2689
+ type hash[KEY] = ::Hash[KEY, SourceCodeInfo | _ToProto]
2690
+ end
2691
+
2692
+ # Describes the relationship between generated code and its original source
2693
+ # file. A GeneratedCodeInfo message is associated with only one generated
2694
+ # source file, but may contain references to different source .proto files.
2695
+ #
2696
+ class GeneratedCodeInfo < ::Protobuf::Message
2697
+ # Encode the message to a binary string
2698
+ #
2699
+ def self.encode: (GeneratedCodeInfo) -> String
2700
+
2701
+ class Annotation < ::Protobuf::Message
2702
+ # Encode the message to a binary string
2703
+ #
2704
+ def self.encode: (Annotation) -> String
2705
+
2706
+ # Identifies the element in the original source .proto file. This field
2707
+ # is formatted the same as SourceCodeInfo.Location.path.
2708
+ #
2709
+ # ----
2710
+ #
2711
+ # Protobuf options:
2712
+ #
2713
+ # - `packed = true`
2714
+ #
2715
+ attr_accessor path(): ::Protobuf::field_array[::Integer]
2716
+
2717
+ # Identifies the element in the original source .proto file. This field
2718
+ # is formatted the same as SourceCodeInfo.Location.path.
2719
+ #
2720
+ # ----
2721
+ #
2722
+ # Protobuf options:
2723
+ #
2724
+ # - `packed = true`
2725
+ #
2726
+ def path=: (::Array[::Integer]) -> ::Array[::Integer]
2727
+ | ...
2728
+
2729
+ def path!: () -> ::Protobuf::field_array[::Integer]?
2730
+
2731
+ # Identifies the filesystem path to the original source .proto.
2732
+ #
2733
+ attr_accessor source_file(): ::String
2734
+
2735
+ def source_file!: () -> ::String?
2736
+
2737
+ # Identifies the starting offset in bytes in the generated code
2738
+ # that relates to the identified object.
2739
+ #
2740
+ attr_accessor begin(): ::Integer
2741
+
2742
+ def begin!: () -> ::Integer?
2743
+
2744
+ # Identifies the ending offset in bytes in the generated code that
2745
+ # relates to the identified offset. The end offset should be one past
2746
+ # the last relevant byte (so the length of the text = end - begin).
2747
+ #
2748
+ attr_accessor end(): ::Integer
2749
+
2750
+ def end!: () -> ::Integer?
2751
+
2752
+ def initialize: (?path: ::Array[::Integer], ?source_file: ::String, ?begin: ::Integer, ?end: ::Integer) -> void
2753
+
2754
+ def []: (:path) -> ::Protobuf::field_array[::Integer]
2755
+ | (:source_file) -> ::String
2756
+ | (:begin) -> ::Integer
2757
+ | (:end) -> ::Integer
2758
+ | (::Symbol) -> untyped
2759
+
2760
+ def []=: (:path, ::Protobuf::field_array[::Integer]) -> ::Protobuf::field_array[::Integer]
2761
+ | (:path, ::Array[::Integer]) -> ::Array[::Integer]
2762
+ | (:source_file, ::String) -> ::String
2763
+ | (:begin, ::Integer) -> ::Integer
2764
+ | (:end, ::Integer) -> ::Integer
2765
+ | (::Symbol, untyped) -> untyped
2766
+
2767
+ interface _ToProto
2768
+ def to_proto: () -> Annotation
2769
+ end
2770
+
2771
+ # The type of `#initialize` parameter.
2772
+ type init = Annotation | _ToProto
2773
+
2774
+ # The type of `repeated` field.
2775
+ type field_array = ::Protobuf::Field::FieldArray[Annotation, Annotation | _ToProto]
2776
+
2777
+ # The type of `map` field.
2778
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, Annotation, Annotation | _ToProto]
2779
+
2780
+ type array = ::Array[Annotation | _ToProto]
2781
+
2782
+ type hash[KEY] = ::Hash[KEY, Annotation | _ToProto]
2783
+ end
2784
+
2785
+ # An Annotation connects some span of text in generated code to an element
2786
+ # of its generating .proto file.
2787
+ #
2788
+ attr_accessor annotation(): ::Google::Protobuf::GeneratedCodeInfo::Annotation::field_array
2789
+
2790
+ # An Annotation connects some span of text in generated code to an element
2791
+ # of its generating .proto file.
2792
+ #
2793
+ def annotation=: (::Google::Protobuf::GeneratedCodeInfo::Annotation::array) -> ::Google::Protobuf::GeneratedCodeInfo::Annotation::array
2794
+ | ...
2795
+
2796
+ def annotation!: () -> ::Google::Protobuf::GeneratedCodeInfo::Annotation::field_array?
2797
+
2798
+ def initialize: (?annotation: ::Google::Protobuf::GeneratedCodeInfo::Annotation::array) -> void
2799
+
2800
+ def []: (:annotation) -> ::Google::Protobuf::GeneratedCodeInfo::Annotation::field_array
2801
+ | (::Symbol) -> untyped
2802
+
2803
+ def []=: (:annotation, ::Google::Protobuf::GeneratedCodeInfo::Annotation::field_array) -> ::Google::Protobuf::GeneratedCodeInfo::Annotation::field_array
2804
+ | (:annotation, ::Google::Protobuf::GeneratedCodeInfo::Annotation::array) -> ::Google::Protobuf::GeneratedCodeInfo::Annotation::array
2805
+ | (::Symbol, untyped) -> untyped
2806
+
2807
+ interface _ToProto
2808
+ def to_proto: () -> GeneratedCodeInfo
2809
+ end
2810
+
2811
+ # The type of `#initialize` parameter.
2812
+ type init = GeneratedCodeInfo | _ToProto
2813
+
2814
+ # The type of `repeated` field.
2815
+ type field_array = ::Protobuf::Field::FieldArray[GeneratedCodeInfo, GeneratedCodeInfo | _ToProto]
2816
+
2817
+ # The type of `map` field.
2818
+ type field_hash[KEY] = ::Protobuf::Field::FieldHash[KEY, GeneratedCodeInfo, GeneratedCodeInfo | _ToProto]
2819
+
2820
+ type array = ::Array[GeneratedCodeInfo | _ToProto]
2821
+
2822
+ type hash[KEY] = ::Hash[KEY, GeneratedCodeInfo | _ToProto]
2823
+ end
2824
+ end
2825
+ end