statelydb 0.22.0 → 0.24.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.
- checksums.yaml +4 -4
- data/lib/api/db/put_pb.rb +1 -1
- data/lib/api/db/transaction_pb.rb +1 -1
- data/lib/common/auth/interceptor.rb +1 -1
- data/lib/common/auth/token_fetcher.rb +2 -2
- data/lib/key_path.rb +2 -2
- data/lib/statelydb.rb +2 -2
- data/lib/transaction/transaction.rb +4 -4
- data/rbi/auth/get_auth_token_pb.rbi +169 -0
- data/rbi/auth/service_pb.rbi +3 -0
- data/rbi/auth/service_services_pb.rbi +31 -0
- data/rbi/db/continue_list_pb.rbi +163 -0
- data/rbi/db/continue_scan_pb.rbi +123 -0
- data/rbi/db/delete_pb.rbi +329 -0
- data/rbi/db/get_pb.rbi +293 -0
- data/rbi/db/item_pb.rbi +125 -0
- data/rbi/db/item_property_pb.rbi +24 -0
- data/rbi/db/list_pb.rbi +472 -0
- data/rbi/db/list_token_pb.rbi +154 -0
- data/rbi/db/put_pb.rbi +340 -0
- data/rbi/db/scan_pb.rbi +370 -0
- data/rbi/db/scan_root_paths_pb.rbi +301 -0
- data/rbi/db/service_pb.rbi +3 -0
- data/rbi/db/service_services_pb.rbi +184 -0
- data/rbi/db/sync_list_pb.rbi +452 -0
- data/rbi/db/transaction_pb.rbi +1392 -0
- data/rbi/errors/error_details_pb.rbi +146 -0
- data/rbi/statelydb.rbi +12 -83
- data/sig/statelydb.rbs +8 -8
- metadata +21 -2
@@ -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
|
data/rbi/db/get_pb.rbi
ADDED
@@ -0,0 +1,293 @@
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
2
|
+
# source: db/get.proto
|
3
|
+
# typed: strict
|
4
|
+
|
5
|
+
class Stately::Db::GetRequest
|
6
|
+
include ::Google::Protobuf::MessageExts
|
7
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
8
|
+
|
9
|
+
sig do
|
10
|
+
params(
|
11
|
+
store_id: T.nilable(Integer),
|
12
|
+
gets: T.nilable(T::Array[T.nilable(Stately::Db::GetItem)]),
|
13
|
+
allow_stale: T.nilable(T::Boolean),
|
14
|
+
schema_version_id: T.nilable(Integer),
|
15
|
+
schema_id: T.nilable(Integer)
|
16
|
+
).void
|
17
|
+
end
|
18
|
+
def initialize(
|
19
|
+
store_id: 0,
|
20
|
+
gets: [],
|
21
|
+
allow_stale: false,
|
22
|
+
schema_version_id: 0,
|
23
|
+
schema_id: 0
|
24
|
+
)
|
25
|
+
end
|
26
|
+
|
27
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
28
|
+
# console or CLI.
|
29
|
+
sig { returns(Integer) }
|
30
|
+
def store_id
|
31
|
+
end
|
32
|
+
|
33
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
34
|
+
# console or CLI.
|
35
|
+
sig { params(value: Integer).void }
|
36
|
+
def store_id=(value)
|
37
|
+
end
|
38
|
+
|
39
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
40
|
+
# console or CLI.
|
41
|
+
sig { void }
|
42
|
+
def clear_store_id
|
43
|
+
end
|
44
|
+
|
45
|
+
# gets is up to 100 requests to get an item by its key path.
|
46
|
+
sig { returns(T::Array[T.nilable(Stately::Db::GetItem)]) }
|
47
|
+
def gets
|
48
|
+
end
|
49
|
+
|
50
|
+
# gets is up to 100 requests to get an item by its key path.
|
51
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
52
|
+
def gets=(value)
|
53
|
+
end
|
54
|
+
|
55
|
+
# gets is up to 100 requests to get an item by its key path.
|
56
|
+
sig { void }
|
57
|
+
def clear_gets
|
58
|
+
end
|
59
|
+
|
60
|
+
# allow_stale indicates that you're okay with getting a slightly stale item -
|
61
|
+
# that is, if you had just changed an item and then call GetItem, you might
|
62
|
+
# get the old version of the item. This can result in improved performance,
|
63
|
+
# availability, and cost.
|
64
|
+
sig { returns(T::Boolean) }
|
65
|
+
def allow_stale
|
66
|
+
end
|
67
|
+
|
68
|
+
# allow_stale indicates that you're okay with getting a slightly stale item -
|
69
|
+
# that is, if you had just changed an item and then call GetItem, you might
|
70
|
+
# get the old version of the item. This can result in improved performance,
|
71
|
+
# availability, and cost.
|
72
|
+
sig { params(value: T::Boolean).void }
|
73
|
+
def allow_stale=(value)
|
74
|
+
end
|
75
|
+
|
76
|
+
# allow_stale indicates that you're okay with getting a slightly stale item -
|
77
|
+
# that is, if you had just changed an item and then call GetItem, you might
|
78
|
+
# get the old version of the item. This can result in improved performance,
|
79
|
+
# availability, and cost.
|
80
|
+
sig { void }
|
81
|
+
def clear_allow_stale
|
82
|
+
end
|
83
|
+
|
84
|
+
# schema_version_id refers to the item version to return.
|
85
|
+
#
|
86
|
+
# If the store's schema does not have a version with this version, the operation
|
87
|
+
# will error with SchemaVersionNotFound error. You should not have to
|
88
|
+
# set this manually as your generated SDK should know its schema version
|
89
|
+
# and wire this in for you.
|
90
|
+
sig { returns(Integer) }
|
91
|
+
def schema_version_id
|
92
|
+
end
|
93
|
+
|
94
|
+
# schema_version_id refers to the item version to return.
|
95
|
+
#
|
96
|
+
# If the store's schema does not have a version with this version, the operation
|
97
|
+
# will error with SchemaVersionNotFound error. You should not have to
|
98
|
+
# set this manually as your generated SDK should know its schema version
|
99
|
+
# and wire this in for you.
|
100
|
+
sig { params(value: Integer).void }
|
101
|
+
def schema_version_id=(value)
|
102
|
+
end
|
103
|
+
|
104
|
+
# schema_version_id refers to the item version to return.
|
105
|
+
#
|
106
|
+
# If the store's schema does not have a version with this version, the operation
|
107
|
+
# will error with SchemaVersionNotFound error. You should not have to
|
108
|
+
# set this manually as your generated SDK should know its schema version
|
109
|
+
# and wire this in for you.
|
110
|
+
sig { void }
|
111
|
+
def clear_schema_version_id
|
112
|
+
end
|
113
|
+
|
114
|
+
# schema_id refers to the schema to use for this operation.
|
115
|
+
# If the store_id does not have a schema with this ID, the operation will
|
116
|
+
# error with SchemaNotFound error. You should not have to set this manually
|
117
|
+
# as your generated SDK should know its schema and wire this in for you.
|
118
|
+
sig { returns(Integer) }
|
119
|
+
def schema_id
|
120
|
+
end
|
121
|
+
|
122
|
+
# schema_id refers to the schema to use for this operation.
|
123
|
+
# If the store_id does not have a schema with this ID, the operation will
|
124
|
+
# error with SchemaNotFound error. You should not have to set this manually
|
125
|
+
# as your generated SDK should know its schema and wire this in for you.
|
126
|
+
sig { params(value: Integer).void }
|
127
|
+
def schema_id=(value)
|
128
|
+
end
|
129
|
+
|
130
|
+
# schema_id refers to the schema to use for this operation.
|
131
|
+
# If the store_id does not have a schema with this ID, the operation will
|
132
|
+
# error with SchemaNotFound error. You should not have to set this manually
|
133
|
+
# as your generated SDK should know its schema and wire this in for you.
|
134
|
+
sig { void }
|
135
|
+
def clear_schema_id
|
136
|
+
end
|
137
|
+
|
138
|
+
sig { params(field: String).returns(T.untyped) }
|
139
|
+
def [](field)
|
140
|
+
end
|
141
|
+
|
142
|
+
sig { params(field: String, value: T.untyped).void }
|
143
|
+
def []=(field, value)
|
144
|
+
end
|
145
|
+
|
146
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
147
|
+
def to_h
|
148
|
+
end
|
149
|
+
|
150
|
+
sig { params(str: String).returns(Stately::Db::GetRequest) }
|
151
|
+
def self.decode(str)
|
152
|
+
end
|
153
|
+
|
154
|
+
sig { params(msg: Stately::Db::GetRequest).returns(String) }
|
155
|
+
def self.encode(msg)
|
156
|
+
end
|
157
|
+
|
158
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::GetRequest) }
|
159
|
+
def self.decode_json(str, **kw)
|
160
|
+
end
|
161
|
+
|
162
|
+
sig { params(msg: Stately::Db::GetRequest, kw: T.untyped).returns(String) }
|
163
|
+
def self.encode_json(msg, **kw)
|
164
|
+
end
|
165
|
+
|
166
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
167
|
+
def self.descriptor
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
class Stately::Db::GetItem
|
172
|
+
include ::Google::Protobuf::MessageExts
|
173
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
|
+
|
175
|
+
sig do
|
176
|
+
params(
|
177
|
+
key_path: T.nilable(String)
|
178
|
+
).void
|
179
|
+
end
|
180
|
+
def initialize(
|
181
|
+
key_path: ""
|
182
|
+
)
|
183
|
+
end
|
184
|
+
|
185
|
+
# key_path is the full path to the item. See Item#key_path for more details.
|
186
|
+
sig { returns(String) }
|
187
|
+
def key_path
|
188
|
+
end
|
189
|
+
|
190
|
+
# key_path is the full path to the item. See Item#key_path for more details.
|
191
|
+
sig { params(value: String).void }
|
192
|
+
def key_path=(value)
|
193
|
+
end
|
194
|
+
|
195
|
+
# key_path is the full path to the item. See Item#key_path for more details.
|
196
|
+
sig { void }
|
197
|
+
def clear_key_path
|
198
|
+
end
|
199
|
+
|
200
|
+
sig { params(field: String).returns(T.untyped) }
|
201
|
+
def [](field)
|
202
|
+
end
|
203
|
+
|
204
|
+
sig { params(field: String, value: T.untyped).void }
|
205
|
+
def []=(field, value)
|
206
|
+
end
|
207
|
+
|
208
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
209
|
+
def to_h
|
210
|
+
end
|
211
|
+
|
212
|
+
sig { params(str: String).returns(Stately::Db::GetItem) }
|
213
|
+
def self.decode(str)
|
214
|
+
end
|
215
|
+
|
216
|
+
sig { params(msg: Stately::Db::GetItem).returns(String) }
|
217
|
+
def self.encode(msg)
|
218
|
+
end
|
219
|
+
|
220
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::GetItem) }
|
221
|
+
def self.decode_json(str, **kw)
|
222
|
+
end
|
223
|
+
|
224
|
+
sig { params(msg: Stately::Db::GetItem, kw: T.untyped).returns(String) }
|
225
|
+
def self.encode_json(msg, **kw)
|
226
|
+
end
|
227
|
+
|
228
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
229
|
+
def self.descriptor
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
class Stately::Db::GetResponse
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
|
+
|
237
|
+
sig do
|
238
|
+
params(
|
239
|
+
items: T.nilable(T::Array[T.nilable(Stately::Db::Item)])
|
240
|
+
).void
|
241
|
+
end
|
242
|
+
def initialize(
|
243
|
+
items: []
|
244
|
+
)
|
245
|
+
end
|
246
|
+
|
247
|
+
# results is a list that contains one entry for each Item that was found.
|
248
|
+
sig { returns(T::Array[T.nilable(Stately::Db::Item)]) }
|
249
|
+
def items
|
250
|
+
end
|
251
|
+
|
252
|
+
# results is a list that contains one entry for each Item that was found.
|
253
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
254
|
+
def items=(value)
|
255
|
+
end
|
256
|
+
|
257
|
+
# results is a list that contains one entry for each Item that was found.
|
258
|
+
sig { void }
|
259
|
+
def clear_items
|
260
|
+
end
|
261
|
+
|
262
|
+
sig { params(field: String).returns(T.untyped) }
|
263
|
+
def [](field)
|
264
|
+
end
|
265
|
+
|
266
|
+
sig { params(field: String, value: T.untyped).void }
|
267
|
+
def []=(field, value)
|
268
|
+
end
|
269
|
+
|
270
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
271
|
+
def to_h
|
272
|
+
end
|
273
|
+
|
274
|
+
sig { params(str: String).returns(Stately::Db::GetResponse) }
|
275
|
+
def self.decode(str)
|
276
|
+
end
|
277
|
+
|
278
|
+
sig { params(msg: Stately::Db::GetResponse).returns(String) }
|
279
|
+
def self.encode(msg)
|
280
|
+
end
|
281
|
+
|
282
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::GetResponse) }
|
283
|
+
def self.decode_json(str, **kw)
|
284
|
+
end
|
285
|
+
|
286
|
+
sig { params(msg: Stately::Db::GetResponse, kw: T.untyped).returns(String) }
|
287
|
+
def self.encode_json(msg, **kw)
|
288
|
+
end
|
289
|
+
|
290
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
291
|
+
def self.descriptor
|
292
|
+
end
|
293
|
+
end
|