statelydb 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,123 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: db/continue_scan.proto
3
+ # typed: strict
4
+
5
+ class Stately::Db::ContinueScanRequest
6
+ include ::Google::Protobuf::MessageExts
7
+ extend ::Google::Protobuf::MessageExts::ClassMethods
8
+
9
+ sig do
10
+ params(
11
+ token_data: T.nilable(String),
12
+ schema_version_id: T.nilable(Integer),
13
+ schema_id: T.nilable(Integer)
14
+ ).void
15
+ end
16
+ def initialize(
17
+ token_data: "",
18
+ schema_version_id: 0,
19
+ schema_id: 0
20
+ )
21
+ end
22
+
23
+ # token_data is an opaque list continuation token returned by a previous call
24
+ # to BeginScan or ContinueScan.
25
+ sig { returns(String) }
26
+ def token_data
27
+ end
28
+
29
+ # token_data is an opaque list continuation token returned by a previous call
30
+ # to BeginScan or ContinueScan.
31
+ sig { params(value: String).void }
32
+ def token_data=(value)
33
+ end
34
+
35
+ # token_data is an opaque list continuation token returned by a previous call
36
+ # to BeginScan or ContinueScan.
37
+ sig { void }
38
+ def clear_token_data
39
+ end
40
+
41
+ # schema_version_id is the schema version id the client is using. This is
42
+ # used to ensure the same schema version is used across each page of the list.
43
+ # If the version the token was created with is different from the client's
44
+ # current version, the operation will error with SchemaVersionMismatch error,
45
+ # in which case you should start over with a fresh BeginScan call.
46
+ sig { returns(Integer) }
47
+ def schema_version_id
48
+ end
49
+
50
+ # schema_version_id is the schema version id the client is using. This is
51
+ # used to ensure the same schema version is used across each page of the list.
52
+ # If the version the token was created with is different from the client's
53
+ # current version, the operation will error with SchemaVersionMismatch error,
54
+ # in which case you should start over with a fresh BeginScan call.
55
+ sig { params(value: Integer).void }
56
+ def schema_version_id=(value)
57
+ end
58
+
59
+ # schema_version_id is the schema version id the client is using. This is
60
+ # used to ensure the same schema version is used across each page of the list.
61
+ # If the version the token was created with is different from the client's
62
+ # current version, the operation will error with SchemaVersionMismatch error,
63
+ # in which case you should start over with a fresh BeginScan call.
64
+ sig { void }
65
+ def clear_schema_version_id
66
+ end
67
+
68
+ # schema_id refers to the schema to use for this operation.
69
+ # If the store_id does not have a schema with this ID, the operation will
70
+ # error with SchemaNotFound error. You should not have to set this manually
71
+ # as your generated SDK should know its schema and wire this in for you.
72
+ sig { returns(Integer) }
73
+ def schema_id
74
+ end
75
+
76
+ # schema_id refers to the schema to use for this operation.
77
+ # If the store_id does not have a schema with this ID, the operation will
78
+ # error with SchemaNotFound error. You should not have to set this manually
79
+ # as your generated SDK should know its schema and wire this in for you.
80
+ sig { params(value: Integer).void }
81
+ def schema_id=(value)
82
+ end
83
+
84
+ # schema_id refers to the schema to use for this operation.
85
+ # If the store_id does not have a schema with this ID, the operation will
86
+ # error with SchemaNotFound error. You should not have to set this manually
87
+ # as your generated SDK should know its schema and wire this in for you.
88
+ sig { void }
89
+ def clear_schema_id
90
+ end
91
+
92
+ sig { params(field: String).returns(T.untyped) }
93
+ def [](field)
94
+ end
95
+
96
+ sig { params(field: String, value: T.untyped).void }
97
+ def []=(field, value)
98
+ end
99
+
100
+ sig { returns(T::Hash[Symbol, T.untyped]) }
101
+ def to_h
102
+ end
103
+
104
+ sig { params(str: String).returns(Stately::Db::ContinueScanRequest) }
105
+ def self.decode(str)
106
+ end
107
+
108
+ sig { params(msg: Stately::Db::ContinueScanRequest).returns(String) }
109
+ def self.encode(msg)
110
+ end
111
+
112
+ sig { params(str: String, kw: T.untyped).returns(Stately::Db::ContinueScanRequest) }
113
+ def self.decode_json(str, **kw)
114
+ end
115
+
116
+ sig { params(msg: Stately::Db::ContinueScanRequest, kw: T.untyped).returns(String) }
117
+ def self.encode_json(msg, **kw)
118
+ end
119
+
120
+ sig { returns(::Google::Protobuf::Descriptor) }
121
+ def self.descriptor
122
+ end
123
+ end
@@ -0,0 +1,329 @@
1
+ # Code generated by protoc-gen-rbi. DO NOT EDIT.
2
+ # source: db/delete.proto
3
+ # typed: strict
4
+
5
+ class Stately::Db::DeleteRequest
6
+ include ::Google::Protobuf::MessageExts
7
+ extend ::Google::Protobuf::MessageExts::ClassMethods
8
+
9
+ sig do
10
+ params(
11
+ store_id: T.nilable(Integer),
12
+ deletes: T.nilable(T::Array[T.nilable(Stately::Db::DeleteItem)]),
13
+ schema_version_id: T.nilable(Integer),
14
+ schema_id: T.nilable(Integer)
15
+ ).void
16
+ end
17
+ def initialize(
18
+ store_id: 0,
19
+ deletes: [],
20
+ schema_version_id: 0,
21
+ schema_id: 0
22
+ )
23
+ end
24
+
25
+ # store_id is a globally unique Store ID, which can be looked up from the
26
+ # console or CLI.
27
+ sig { returns(Integer) }
28
+ def store_id
29
+ end
30
+
31
+ # store_id is a globally unique Store ID, which can be looked up from the
32
+ # console or CLI.
33
+ sig { params(value: Integer).void }
34
+ def store_id=(value)
35
+ end
36
+
37
+ # store_id is a globally unique Store ID, which can be looked up from the
38
+ # console or CLI.
39
+ sig { void }
40
+ def clear_store_id
41
+ end
42
+
43
+ # deletes is up to 50 items to be deleted from the Group.
44
+ sig { returns(T::Array[T.nilable(Stately::Db::DeleteItem)]) }
45
+ def deletes
46
+ end
47
+
48
+ # deletes is up to 50 items to be deleted from the Group.
49
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
50
+ def deletes=(value)
51
+ end
52
+
53
+ # deletes is up to 50 items to be deleted from the Group.
54
+ sig { void }
55
+ def clear_deletes
56
+ end
57
+
58
+ # schema_version_id refers to the item version to delete from.
59
+ #
60
+ # If the store's schema does not have this version, the operation
61
+ # will error with SchemaVersionNotFound error. You should not have to
62
+ # set this manually as your generated SDK should know its schema version
63
+ # and wire this in for you.
64
+ sig { returns(Integer) }
65
+ def schema_version_id
66
+ end
67
+
68
+ # schema_version_id refers to the item version to delete from.
69
+ #
70
+ # If the store's schema does not have this version, the operation
71
+ # will error with SchemaVersionNotFound error. You should not have to
72
+ # set this manually as your generated SDK should know its schema version
73
+ # and wire this in for you.
74
+ sig { params(value: Integer).void }
75
+ def schema_version_id=(value)
76
+ end
77
+
78
+ # schema_version_id refers to the item version to delete from.
79
+ #
80
+ # If the store's schema does not have this version, the operation
81
+ # will error with SchemaVersionNotFound error. You should not have to
82
+ # set this manually as your generated SDK should know its schema version
83
+ # and wire this in for you.
84
+ sig { void }
85
+ def clear_schema_version_id
86
+ end
87
+
88
+ # schema_id refers to the schema to use for this operation.
89
+ # If the store_id does not have a schema with this ID, the operation will
90
+ # error with SchemaNotFound error. You should not have to set this manually
91
+ # as your generated SDK should know its schema and wire this in for you.
92
+ sig { returns(Integer) }
93
+ def schema_id
94
+ end
95
+
96
+ # schema_id refers to the schema to use for this operation.
97
+ # If the store_id does not have a schema with this ID, the operation will
98
+ # error with SchemaNotFound error. You should not have to set this manually
99
+ # as your generated SDK should know its schema and wire this in for you.
100
+ sig { params(value: Integer).void }
101
+ def schema_id=(value)
102
+ end
103
+
104
+ # schema_id refers to the schema to use for this operation.
105
+ # If the store_id does not have a schema with this ID, the operation will
106
+ # error with SchemaNotFound error. You should not have to set this manually
107
+ # as your generated SDK should know its schema and wire this in for you.
108
+ sig { void }
109
+ def clear_schema_id
110
+ end
111
+
112
+ sig { params(field: String).returns(T.untyped) }
113
+ def [](field)
114
+ end
115
+
116
+ sig { params(field: String, value: T.untyped).void }
117
+ def []=(field, value)
118
+ end
119
+
120
+ sig { returns(T::Hash[Symbol, T.untyped]) }
121
+ def to_h
122
+ end
123
+
124
+ sig { params(str: String).returns(Stately::Db::DeleteRequest) }
125
+ def self.decode(str)
126
+ end
127
+
128
+ sig { params(msg: Stately::Db::DeleteRequest).returns(String) }
129
+ def self.encode(msg)
130
+ end
131
+
132
+ sig { params(str: String, kw: T.untyped).returns(Stately::Db::DeleteRequest) }
133
+ def self.decode_json(str, **kw)
134
+ end
135
+
136
+ sig { params(msg: Stately::Db::DeleteRequest, kw: T.untyped).returns(String) }
137
+ def self.encode_json(msg, **kw)
138
+ end
139
+
140
+ sig { returns(::Google::Protobuf::Descriptor) }
141
+ def self.descriptor
142
+ end
143
+ end
144
+
145
+ class Stately::Db::DeleteItem
146
+ include ::Google::Protobuf::MessageExts
147
+ extend ::Google::Protobuf::MessageExts::ClassMethods
148
+
149
+ sig do
150
+ params(
151
+ key_path: T.nilable(String)
152
+ ).void
153
+ end
154
+ def initialize(
155
+ key_path: ""
156
+ )
157
+ end
158
+
159
+ # key_path is the full path to the item. See Item#key_path for more details.
160
+ sig { returns(String) }
161
+ def key_path
162
+ end
163
+
164
+ # key_path is the full path to the item. See Item#key_path for more details.
165
+ sig { params(value: String).void }
166
+ def key_path=(value)
167
+ end
168
+
169
+ # key_path is the full path to the item. See Item#key_path for more details.
170
+ sig { void }
171
+ def clear_key_path
172
+ end
173
+
174
+ sig { params(field: String).returns(T.untyped) }
175
+ def [](field)
176
+ end
177
+
178
+ sig { params(field: String, value: T.untyped).void }
179
+ def []=(field, value)
180
+ end
181
+
182
+ sig { returns(T::Hash[Symbol, T.untyped]) }
183
+ def to_h
184
+ end
185
+
186
+ sig { params(str: String).returns(Stately::Db::DeleteItem) }
187
+ def self.decode(str)
188
+ end
189
+
190
+ sig { params(msg: Stately::Db::DeleteItem).returns(String) }
191
+ def self.encode(msg)
192
+ end
193
+
194
+ sig { params(str: String, kw: T.untyped).returns(Stately::Db::DeleteItem) }
195
+ def self.decode_json(str, **kw)
196
+ end
197
+
198
+ sig { params(msg: Stately::Db::DeleteItem, kw: T.untyped).returns(String) }
199
+ def self.encode_json(msg, **kw)
200
+ end
201
+
202
+ sig { returns(::Google::Protobuf::Descriptor) }
203
+ def self.descriptor
204
+ end
205
+ end
206
+
207
+ class Stately::Db::DeleteResult
208
+ include ::Google::Protobuf::MessageExts
209
+ extend ::Google::Protobuf::MessageExts::ClassMethods
210
+
211
+ sig do
212
+ params(
213
+ key_path: T.nilable(String)
214
+ ).void
215
+ end
216
+ def initialize(
217
+ key_path: ""
218
+ )
219
+ end
220
+
221
+ # The key_path of the item that was deleted.
222
+ sig { returns(String) }
223
+ def key_path
224
+ end
225
+
226
+ # The key_path of the item that was deleted.
227
+ sig { params(value: String).void }
228
+ def key_path=(value)
229
+ end
230
+
231
+ # The key_path of the item that was deleted.
232
+ sig { void }
233
+ def clear_key_path
234
+ end
235
+
236
+ sig { params(field: String).returns(T.untyped) }
237
+ def [](field)
238
+ end
239
+
240
+ sig { params(field: String, value: T.untyped).void }
241
+ def []=(field, value)
242
+ end
243
+
244
+ sig { returns(T::Hash[Symbol, T.untyped]) }
245
+ def to_h
246
+ end
247
+
248
+ sig { params(str: String).returns(Stately::Db::DeleteResult) }
249
+ def self.decode(str)
250
+ end
251
+
252
+ sig { params(msg: Stately::Db::DeleteResult).returns(String) }
253
+ def self.encode(msg)
254
+ end
255
+
256
+ sig { params(str: String, kw: T.untyped).returns(Stately::Db::DeleteResult) }
257
+ def self.decode_json(str, **kw)
258
+ end
259
+
260
+ sig { params(msg: Stately::Db::DeleteResult, kw: T.untyped).returns(String) }
261
+ def self.encode_json(msg, **kw)
262
+ end
263
+
264
+ sig { returns(::Google::Protobuf::Descriptor) }
265
+ def self.descriptor
266
+ end
267
+ end
268
+
269
+ class Stately::Db::DeleteResponse
270
+ include ::Google::Protobuf::MessageExts
271
+ extend ::Google::Protobuf::MessageExts::ClassMethods
272
+
273
+ sig do
274
+ params(
275
+ results: T.nilable(T::Array[T.nilable(Stately::Db::DeleteResult)])
276
+ ).void
277
+ end
278
+ def initialize(
279
+ results: []
280
+ )
281
+ end
282
+
283
+ # results is the result of each delete operation, whether it succeeded or failed.
284
+ sig { returns(T::Array[T.nilable(Stately::Db::DeleteResult)]) }
285
+ def results
286
+ end
287
+
288
+ # results is the result of each delete operation, whether it succeeded or failed.
289
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
290
+ def results=(value)
291
+ end
292
+
293
+ # results is the result of each delete operation, whether it succeeded or failed.
294
+ sig { void }
295
+ def clear_results
296
+ end
297
+
298
+ sig { params(field: String).returns(T.untyped) }
299
+ def [](field)
300
+ end
301
+
302
+ sig { params(field: String, value: T.untyped).void }
303
+ def []=(field, value)
304
+ end
305
+
306
+ sig { returns(T::Hash[Symbol, T.untyped]) }
307
+ def to_h
308
+ end
309
+
310
+ sig { params(str: String).returns(Stately::Db::DeleteResponse) }
311
+ def self.decode(str)
312
+ end
313
+
314
+ sig { params(msg: Stately::Db::DeleteResponse).returns(String) }
315
+ def self.encode(msg)
316
+ end
317
+
318
+ sig { params(str: String, kw: T.untyped).returns(Stately::Db::DeleteResponse) }
319
+ def self.decode_json(str, **kw)
320
+ end
321
+
322
+ sig { params(msg: Stately::Db::DeleteResponse, kw: T.untyped).returns(String) }
323
+ def self.encode_json(msg, **kw)
324
+ end
325
+
326
+ sig { returns(::Google::Protobuf::Descriptor) }
327
+ def self.descriptor
328
+ end
329
+ end