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.
- checksums.yaml +4 -4
- data/lib/api/db/continue_list_pb.rb +1 -1
- data/lib/api/db/continue_scan_pb.rb +1 -1
- data/lib/api/db/delete_pb.rb +1 -1
- data/lib/api/db/get_pb.rb +1 -1
- data/lib/api/db/list_pb.rb +1 -1
- data/lib/api/db/scan_pb.rb +1 -1
- data/lib/api/db/scan_root_paths_pb.rb +1 -1
- data/lib/api/db/sync_list_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 +314 -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 +1366 -0
- data/rbi/errors/error_details_pb.rbi +146 -0
- data/rbi/statelydb.rbi +12 -83
- data/sig/statelydb.rbs +8 -8
- metadata +20 -1
data/rbi/db/put_pb.rbi
ADDED
@@ -0,0 +1,314 @@
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
2
|
+
# source: db/put.proto
|
3
|
+
# typed: strict
|
4
|
+
|
5
|
+
class Stately::Db::PutRequest
|
6
|
+
include ::Google::Protobuf::MessageExts
|
7
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
8
|
+
|
9
|
+
sig do
|
10
|
+
params(
|
11
|
+
store_id: T.nilable(Integer),
|
12
|
+
puts: T.nilable(T::Array[T.nilable(Stately::Db::PutItem)]),
|
13
|
+
schema_version_id: T.nilable(Integer)
|
14
|
+
).void
|
15
|
+
end
|
16
|
+
def initialize(
|
17
|
+
store_id: 0,
|
18
|
+
puts: [],
|
19
|
+
schema_version_id: 0
|
20
|
+
)
|
21
|
+
end
|
22
|
+
|
23
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
24
|
+
# console or CLI.
|
25
|
+
sig { returns(Integer) }
|
26
|
+
def store_id
|
27
|
+
end
|
28
|
+
|
29
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
30
|
+
# console or CLI.
|
31
|
+
sig { params(value: Integer).void }
|
32
|
+
def store_id=(value)
|
33
|
+
end
|
34
|
+
|
35
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
36
|
+
# console or CLI.
|
37
|
+
sig { void }
|
38
|
+
def clear_store_id
|
39
|
+
end
|
40
|
+
|
41
|
+
# puts is up to 50 items to be put into the Store.
|
42
|
+
sig { returns(T::Array[T.nilable(Stately::Db::PutItem)]) }
|
43
|
+
def puts
|
44
|
+
end
|
45
|
+
|
46
|
+
# puts is up to 50 items to be put into the Store.
|
47
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
48
|
+
def puts=(value)
|
49
|
+
end
|
50
|
+
|
51
|
+
# puts is up to 50 items to be put into the Store.
|
52
|
+
sig { void }
|
53
|
+
def clear_puts
|
54
|
+
end
|
55
|
+
|
56
|
+
# schema_version_id refers to the item version to return.
|
57
|
+
#
|
58
|
+
# If the store's schema does not have this version, the operation will error
|
59
|
+
# with SchemaVersionNotFound error. You should not have to set this manually
|
60
|
+
# as your generated SDK should know its schema version and wire this in for
|
61
|
+
# you.
|
62
|
+
sig { returns(Integer) }
|
63
|
+
def schema_version_id
|
64
|
+
end
|
65
|
+
|
66
|
+
# schema_version_id refers to the item version to return.
|
67
|
+
#
|
68
|
+
# If the store's schema does not have this version, the operation will error
|
69
|
+
# with SchemaVersionNotFound error. You should not have to set this manually
|
70
|
+
# as your generated SDK should know its schema version and wire this in for
|
71
|
+
# you.
|
72
|
+
sig { params(value: Integer).void }
|
73
|
+
def schema_version_id=(value)
|
74
|
+
end
|
75
|
+
|
76
|
+
# schema_version_id refers to the item version to return.
|
77
|
+
#
|
78
|
+
# If the store's schema does not have this version, the operation will error
|
79
|
+
# with SchemaVersionNotFound error. You should not have to set this manually
|
80
|
+
# as your generated SDK should know its schema version and wire this in for
|
81
|
+
# you.
|
82
|
+
sig { void }
|
83
|
+
def clear_schema_version_id
|
84
|
+
end
|
85
|
+
|
86
|
+
sig { params(field: String).returns(T.untyped) }
|
87
|
+
def [](field)
|
88
|
+
end
|
89
|
+
|
90
|
+
sig { params(field: String, value: T.untyped).void }
|
91
|
+
def []=(field, value)
|
92
|
+
end
|
93
|
+
|
94
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
95
|
+
def to_h
|
96
|
+
end
|
97
|
+
|
98
|
+
sig { params(str: String).returns(Stately::Db::PutRequest) }
|
99
|
+
def self.decode(str)
|
100
|
+
end
|
101
|
+
|
102
|
+
sig { params(msg: Stately::Db::PutRequest).returns(String) }
|
103
|
+
def self.encode(msg)
|
104
|
+
end
|
105
|
+
|
106
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::PutRequest) }
|
107
|
+
def self.decode_json(str, **kw)
|
108
|
+
end
|
109
|
+
|
110
|
+
sig { params(msg: Stately::Db::PutRequest, kw: T.untyped).returns(String) }
|
111
|
+
def self.encode_json(msg, **kw)
|
112
|
+
end
|
113
|
+
|
114
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
115
|
+
def self.descriptor
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
class Stately::Db::PutItem
|
120
|
+
include ::Google::Protobuf::MessageExts
|
121
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
122
|
+
|
123
|
+
sig do
|
124
|
+
params(
|
125
|
+
item: T.nilable(Stately::Db::Item),
|
126
|
+
overwrite_metadata_timestamps: T.nilable(T::Boolean),
|
127
|
+
must_not_exist: T.nilable(T::Boolean)
|
128
|
+
).void
|
129
|
+
end
|
130
|
+
def initialize(
|
131
|
+
item: nil,
|
132
|
+
overwrite_metadata_timestamps: false,
|
133
|
+
must_not_exist: false
|
134
|
+
)
|
135
|
+
end
|
136
|
+
|
137
|
+
# item is the data to be put, including its item_type.
|
138
|
+
sig { returns(T.nilable(Stately::Db::Item)) }
|
139
|
+
def item
|
140
|
+
end
|
141
|
+
|
142
|
+
# item is the data to be put, including its item_type.
|
143
|
+
sig { params(value: T.nilable(Stately::Db::Item)).void }
|
144
|
+
def item=(value)
|
145
|
+
end
|
146
|
+
|
147
|
+
# item is the data to be put, including its item_type.
|
148
|
+
sig { void }
|
149
|
+
def clear_item
|
150
|
+
end
|
151
|
+
|
152
|
+
# overwrite_metadata_timestamps indicates that any "fromMetadata" timestamp
|
153
|
+
# fields in the incoming payload should be saved as provided in the database.
|
154
|
+
# Normally these would be ignored as they are automatically maintained, but
|
155
|
+
# this flag can be useful for migrations from other systems. Note that this
|
156
|
+
# only works for timestamps (createdAtTime and lastModifiedAtTime) - versions
|
157
|
+
# cannot be overridden.
|
158
|
+
sig { returns(T::Boolean) }
|
159
|
+
def overwrite_metadata_timestamps
|
160
|
+
end
|
161
|
+
|
162
|
+
# overwrite_metadata_timestamps indicates that any "fromMetadata" timestamp
|
163
|
+
# fields in the incoming payload should be saved as provided in the database.
|
164
|
+
# Normally these would be ignored as they are automatically maintained, but
|
165
|
+
# this flag can be useful for migrations from other systems. Note that this
|
166
|
+
# only works for timestamps (createdAtTime and lastModifiedAtTime) - versions
|
167
|
+
# cannot be overridden.
|
168
|
+
sig { params(value: T::Boolean).void }
|
169
|
+
def overwrite_metadata_timestamps=(value)
|
170
|
+
end
|
171
|
+
|
172
|
+
# overwrite_metadata_timestamps indicates that any "fromMetadata" timestamp
|
173
|
+
# fields in the incoming payload should be saved as provided in the database.
|
174
|
+
# Normally these would be ignored as they are automatically maintained, but
|
175
|
+
# this flag can be useful for migrations from other systems. Note that this
|
176
|
+
# only works for timestamps (createdAtTime and lastModifiedAtTime) - versions
|
177
|
+
# cannot be overridden.
|
178
|
+
sig { void }
|
179
|
+
def clear_overwrite_metadata_timestamps
|
180
|
+
end
|
181
|
+
|
182
|
+
# must_not_exist is a condition that indicates this item must not already
|
183
|
+
# exist at any of its key paths. If there is already an item at one of those
|
184
|
+
# paths, the Put operation will fail with a ConditionalCheckFailed error.
|
185
|
+
# Note that if the item has an `initialValue` field in its key, that initial
|
186
|
+
# value will automatically be chosen not to conflict with existing items, so
|
187
|
+
# this condition only applies to key paths that do not contain the
|
188
|
+
# `initialValue` field.
|
189
|
+
sig { returns(T::Boolean) }
|
190
|
+
def must_not_exist
|
191
|
+
end
|
192
|
+
|
193
|
+
# must_not_exist is a condition that indicates this item must not already
|
194
|
+
# exist at any of its key paths. If there is already an item at one of those
|
195
|
+
# paths, the Put operation will fail with a ConditionalCheckFailed error.
|
196
|
+
# Note that if the item has an `initialValue` field in its key, that initial
|
197
|
+
# value will automatically be chosen not to conflict with existing items, so
|
198
|
+
# this condition only applies to key paths that do not contain the
|
199
|
+
# `initialValue` field.
|
200
|
+
sig { params(value: T::Boolean).void }
|
201
|
+
def must_not_exist=(value)
|
202
|
+
end
|
203
|
+
|
204
|
+
# must_not_exist is a condition that indicates this item must not already
|
205
|
+
# exist at any of its key paths. If there is already an item at one of those
|
206
|
+
# paths, the Put operation will fail with a ConditionalCheckFailed error.
|
207
|
+
# Note that if the item has an `initialValue` field in its key, that initial
|
208
|
+
# value will automatically be chosen not to conflict with existing items, so
|
209
|
+
# this condition only applies to key paths that do not contain the
|
210
|
+
# `initialValue` field.
|
211
|
+
sig { void }
|
212
|
+
def clear_must_not_exist
|
213
|
+
end
|
214
|
+
|
215
|
+
sig { params(field: String).returns(T.untyped) }
|
216
|
+
def [](field)
|
217
|
+
end
|
218
|
+
|
219
|
+
sig { params(field: String, value: T.untyped).void }
|
220
|
+
def []=(field, value)
|
221
|
+
end
|
222
|
+
|
223
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
224
|
+
def to_h
|
225
|
+
end
|
226
|
+
|
227
|
+
sig { params(str: String).returns(Stately::Db::PutItem) }
|
228
|
+
def self.decode(str)
|
229
|
+
end
|
230
|
+
|
231
|
+
sig { params(msg: Stately::Db::PutItem).returns(String) }
|
232
|
+
def self.encode(msg)
|
233
|
+
end
|
234
|
+
|
235
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::PutItem) }
|
236
|
+
def self.decode_json(str, **kw)
|
237
|
+
end
|
238
|
+
|
239
|
+
sig { params(msg: Stately::Db::PutItem, kw: T.untyped).returns(String) }
|
240
|
+
def self.encode_json(msg, **kw)
|
241
|
+
end
|
242
|
+
|
243
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
244
|
+
def self.descriptor
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
class Stately::Db::PutResponse
|
249
|
+
include ::Google::Protobuf::MessageExts
|
250
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
251
|
+
|
252
|
+
sig do
|
253
|
+
params(
|
254
|
+
items: T.nilable(T::Array[T.nilable(Stately::Db::Item)])
|
255
|
+
).void
|
256
|
+
end
|
257
|
+
def initialize(
|
258
|
+
items: []
|
259
|
+
)
|
260
|
+
end
|
261
|
+
|
262
|
+
# items is the full result of each put operation. The response items are in
|
263
|
+
# the same order as the request items. Each item is fully "filled out" - for
|
264
|
+
# example, `initialValue` and `fromMetadata` fields are resolved.
|
265
|
+
sig { returns(T::Array[T.nilable(Stately::Db::Item)]) }
|
266
|
+
def items
|
267
|
+
end
|
268
|
+
|
269
|
+
# items is the full result of each put operation. The response items are in
|
270
|
+
# the same order as the request items. Each item is fully "filled out" - for
|
271
|
+
# example, `initialValue` and `fromMetadata` fields are resolved.
|
272
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
273
|
+
def items=(value)
|
274
|
+
end
|
275
|
+
|
276
|
+
# items is the full result of each put operation. The response items are in
|
277
|
+
# the same order as the request items. Each item is fully "filled out" - for
|
278
|
+
# example, `initialValue` and `fromMetadata` fields are resolved.
|
279
|
+
sig { void }
|
280
|
+
def clear_items
|
281
|
+
end
|
282
|
+
|
283
|
+
sig { params(field: String).returns(T.untyped) }
|
284
|
+
def [](field)
|
285
|
+
end
|
286
|
+
|
287
|
+
sig { params(field: String, value: T.untyped).void }
|
288
|
+
def []=(field, value)
|
289
|
+
end
|
290
|
+
|
291
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
292
|
+
def to_h
|
293
|
+
end
|
294
|
+
|
295
|
+
sig { params(str: String).returns(Stately::Db::PutResponse) }
|
296
|
+
def self.decode(str)
|
297
|
+
end
|
298
|
+
|
299
|
+
sig { params(msg: Stately::Db::PutResponse).returns(String) }
|
300
|
+
def self.encode(msg)
|
301
|
+
end
|
302
|
+
|
303
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::PutResponse) }
|
304
|
+
def self.decode_json(str, **kw)
|
305
|
+
end
|
306
|
+
|
307
|
+
sig { params(msg: Stately::Db::PutResponse, kw: T.untyped).returns(String) }
|
308
|
+
def self.encode_json(msg, **kw)
|
309
|
+
end
|
310
|
+
|
311
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
312
|
+
def self.descriptor
|
313
|
+
end
|
314
|
+
end
|
data/rbi/db/scan_pb.rbi
ADDED
@@ -0,0 +1,370 @@
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
2
|
+
# source: db/scan.proto
|
3
|
+
# typed: strict
|
4
|
+
|
5
|
+
class Stately::Db::FilterCondition
|
6
|
+
include ::Google::Protobuf::MessageExts
|
7
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
8
|
+
|
9
|
+
sig do
|
10
|
+
params(
|
11
|
+
item_type: T.nilable(String)
|
12
|
+
).void
|
13
|
+
end
|
14
|
+
def initialize(
|
15
|
+
item_type: ""
|
16
|
+
)
|
17
|
+
end
|
18
|
+
|
19
|
+
# item_type is the type of item to filter by.
|
20
|
+
sig { returns(String) }
|
21
|
+
def item_type
|
22
|
+
end
|
23
|
+
|
24
|
+
# item_type is the type of item to filter by.
|
25
|
+
sig { params(value: String).void }
|
26
|
+
def item_type=(value)
|
27
|
+
end
|
28
|
+
|
29
|
+
# item_type is the type of item to filter by.
|
30
|
+
sig { void }
|
31
|
+
def clear_item_type
|
32
|
+
end
|
33
|
+
|
34
|
+
sig { returns(T.nilable(Symbol)) }
|
35
|
+
def value
|
36
|
+
end
|
37
|
+
|
38
|
+
sig { params(field: String).returns(T.untyped) }
|
39
|
+
def [](field)
|
40
|
+
end
|
41
|
+
|
42
|
+
sig { params(field: String, value: T.untyped).void }
|
43
|
+
def []=(field, value)
|
44
|
+
end
|
45
|
+
|
46
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
47
|
+
def to_h
|
48
|
+
end
|
49
|
+
|
50
|
+
sig { params(str: String).returns(Stately::Db::FilterCondition) }
|
51
|
+
def self.decode(str)
|
52
|
+
end
|
53
|
+
|
54
|
+
sig { params(msg: Stately::Db::FilterCondition).returns(String) }
|
55
|
+
def self.encode(msg)
|
56
|
+
end
|
57
|
+
|
58
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::FilterCondition) }
|
59
|
+
def self.decode_json(str, **kw)
|
60
|
+
end
|
61
|
+
|
62
|
+
sig { params(msg: Stately::Db::FilterCondition, kw: T.untyped).returns(String) }
|
63
|
+
def self.encode_json(msg, **kw)
|
64
|
+
end
|
65
|
+
|
66
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
67
|
+
def self.descriptor
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
class Stately::Db::BeginScanRequest
|
72
|
+
include ::Google::Protobuf::MessageExts
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
|
75
|
+
sig do
|
76
|
+
params(
|
77
|
+
store_id: T.nilable(Integer),
|
78
|
+
filter_condition: T.nilable(T::Array[T.nilable(Stately::Db::FilterCondition)]),
|
79
|
+
limit: T.nilable(Integer),
|
80
|
+
segmentation_params: T.nilable(Stately::Db::SegmentationParams),
|
81
|
+
schema_version_id: T.nilable(Integer),
|
82
|
+
schema_id: T.nilable(Integer)
|
83
|
+
).void
|
84
|
+
end
|
85
|
+
def initialize(
|
86
|
+
store_id: 0,
|
87
|
+
filter_condition: [],
|
88
|
+
limit: 0,
|
89
|
+
segmentation_params: nil,
|
90
|
+
schema_version_id: 0,
|
91
|
+
schema_id: 0
|
92
|
+
)
|
93
|
+
end
|
94
|
+
|
95
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
96
|
+
# console or CLI.
|
97
|
+
sig { returns(Integer) }
|
98
|
+
def store_id
|
99
|
+
end
|
100
|
+
|
101
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
102
|
+
# console or CLI.
|
103
|
+
sig { params(value: Integer).void }
|
104
|
+
def store_id=(value)
|
105
|
+
end
|
106
|
+
|
107
|
+
# store_id is a globally unique Store ID, which can be looked up from the
|
108
|
+
# console or CLI.
|
109
|
+
sig { void }
|
110
|
+
def clear_store_id
|
111
|
+
end
|
112
|
+
|
113
|
+
# filter_condition is a set of conditions to filter the scan result by.
|
114
|
+
# If no conditions are provided, all items in the store will be returned.
|
115
|
+
# Filter conditions are combined with OR.
|
116
|
+
sig { returns(T::Array[T.nilable(Stately::Db::FilterCondition)]) }
|
117
|
+
def filter_condition
|
118
|
+
end
|
119
|
+
|
120
|
+
# filter_condition is a set of conditions to filter the scan result by.
|
121
|
+
# If no conditions are provided, all items in the store will be returned.
|
122
|
+
# Filter conditions are combined with OR.
|
123
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
124
|
+
def filter_condition=(value)
|
125
|
+
end
|
126
|
+
|
127
|
+
# filter_condition is a set of conditions to filter the scan result by.
|
128
|
+
# If no conditions are provided, all items in the store will be returned.
|
129
|
+
# Filter conditions are combined with OR.
|
130
|
+
sig { void }
|
131
|
+
def clear_filter_condition
|
132
|
+
end
|
133
|
+
|
134
|
+
# limit is the maximum number of items to return. If this is not specified or
|
135
|
+
# set to 0, it will return one server side page of items, which may contain zero of your selected
|
136
|
+
# item types and hence be an empty response.
|
137
|
+
# Be sure to check token.can_continue to see if you have more items left to fetch.
|
138
|
+
sig { returns(Integer) }
|
139
|
+
def limit
|
140
|
+
end
|
141
|
+
|
142
|
+
# limit is the maximum number of items to return. If this is not specified or
|
143
|
+
# set to 0, it will return one server side page of items, which may contain zero of your selected
|
144
|
+
# item types and hence be an empty response.
|
145
|
+
# Be sure to check token.can_continue to see if you have more items left to fetch.
|
146
|
+
sig { params(value: Integer).void }
|
147
|
+
def limit=(value)
|
148
|
+
end
|
149
|
+
|
150
|
+
# limit is the maximum number of items to return. If this is not specified or
|
151
|
+
# set to 0, it will return one server side page of items, which may contain zero of your selected
|
152
|
+
# item types and hence be an empty response.
|
153
|
+
# Be sure to check token.can_continue to see if you have more items left to fetch.
|
154
|
+
sig { void }
|
155
|
+
def clear_limit
|
156
|
+
end
|
157
|
+
|
158
|
+
# segmentation_params is used to enable parallelization of the list operation.
|
159
|
+
# This is useful for bulk processing of large stores.
|
160
|
+
# If this field is set then the list operation will be split into segment_params.total_segments
|
161
|
+
# and this request will process the segment defined in segmentation_params.segment_index.
|
162
|
+
# See SegmentationParams for more details.
|
163
|
+
# Please be warned that parallelization will result on increase throughput to your store
|
164
|
+
# which may result in throttling.
|
165
|
+
sig { returns(T.nilable(Stately::Db::SegmentationParams)) }
|
166
|
+
def segmentation_params
|
167
|
+
end
|
168
|
+
|
169
|
+
# segmentation_params is used to enable parallelization of the list operation.
|
170
|
+
# This is useful for bulk processing of large stores.
|
171
|
+
# If this field is set then the list operation will be split into segment_params.total_segments
|
172
|
+
# and this request will process the segment defined in segmentation_params.segment_index.
|
173
|
+
# See SegmentationParams for more details.
|
174
|
+
# Please be warned that parallelization will result on increase throughput to your store
|
175
|
+
# which may result in throttling.
|
176
|
+
sig { params(value: T.nilable(Stately::Db::SegmentationParams)).void }
|
177
|
+
def segmentation_params=(value)
|
178
|
+
end
|
179
|
+
|
180
|
+
# segmentation_params is used to enable parallelization of the list operation.
|
181
|
+
# This is useful for bulk processing of large stores.
|
182
|
+
# If this field is set then the list operation will be split into segment_params.total_segments
|
183
|
+
# and this request will process the segment defined in segmentation_params.segment_index.
|
184
|
+
# See SegmentationParams for more details.
|
185
|
+
# Please be warned that parallelization will result on increase throughput to your store
|
186
|
+
# which may result in throttling.
|
187
|
+
sig { void }
|
188
|
+
def clear_segmentation_params
|
189
|
+
end
|
190
|
+
|
191
|
+
# schema_version_id refers to the item version to return.
|
192
|
+
# If the store's schema does not have this version, the operation
|
193
|
+
# will error with SchemaVersionNotFound error. You should not have to
|
194
|
+
# set this manually as your generated SDK should know its schema version
|
195
|
+
# and wire this in for you.
|
196
|
+
sig { returns(Integer) }
|
197
|
+
def schema_version_id
|
198
|
+
end
|
199
|
+
|
200
|
+
# schema_version_id refers to the item version to return.
|
201
|
+
# If the store's schema does not have this version, the operation
|
202
|
+
# will error with SchemaVersionNotFound error. You should not have to
|
203
|
+
# set this manually as your generated SDK should know its schema version
|
204
|
+
# and wire this in for you.
|
205
|
+
sig { params(value: Integer).void }
|
206
|
+
def schema_version_id=(value)
|
207
|
+
end
|
208
|
+
|
209
|
+
# schema_version_id refers to the item version to return.
|
210
|
+
# If the store's schema does not have this version, the operation
|
211
|
+
# will error with SchemaVersionNotFound error. You should not have to
|
212
|
+
# set this manually as your generated SDK should know its schema version
|
213
|
+
# and wire this in for you.
|
214
|
+
sig { void }
|
215
|
+
def clear_schema_version_id
|
216
|
+
end
|
217
|
+
|
218
|
+
# schema_id refers to the schema to use for this operation.
|
219
|
+
# If the store_id does not have a schema with this ID, the operation will
|
220
|
+
# error with SchemaNotFound error. You should not have to set this manually
|
221
|
+
# as your generated SDK should know its schema and wire this in for you.
|
222
|
+
sig { returns(Integer) }
|
223
|
+
def schema_id
|
224
|
+
end
|
225
|
+
|
226
|
+
# schema_id refers to the schema to use for this operation.
|
227
|
+
# If the store_id does not have a schema with this ID, the operation will
|
228
|
+
# error with SchemaNotFound error. You should not have to set this manually
|
229
|
+
# as your generated SDK should know its schema and wire this in for you.
|
230
|
+
sig { params(value: Integer).void }
|
231
|
+
def schema_id=(value)
|
232
|
+
end
|
233
|
+
|
234
|
+
# schema_id refers to the schema to use for this operation.
|
235
|
+
# If the store_id does not have a schema with this ID, the operation will
|
236
|
+
# error with SchemaNotFound error. You should not have to set this manually
|
237
|
+
# as your generated SDK should know its schema and wire this in for you.
|
238
|
+
sig { void }
|
239
|
+
def clear_schema_id
|
240
|
+
end
|
241
|
+
|
242
|
+
sig { params(field: String).returns(T.untyped) }
|
243
|
+
def [](field)
|
244
|
+
end
|
245
|
+
|
246
|
+
sig { params(field: String, value: T.untyped).void }
|
247
|
+
def []=(field, value)
|
248
|
+
end
|
249
|
+
|
250
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
251
|
+
def to_h
|
252
|
+
end
|
253
|
+
|
254
|
+
sig { params(str: String).returns(Stately::Db::BeginScanRequest) }
|
255
|
+
def self.decode(str)
|
256
|
+
end
|
257
|
+
|
258
|
+
sig { params(msg: Stately::Db::BeginScanRequest).returns(String) }
|
259
|
+
def self.encode(msg)
|
260
|
+
end
|
261
|
+
|
262
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::BeginScanRequest) }
|
263
|
+
def self.decode_json(str, **kw)
|
264
|
+
end
|
265
|
+
|
266
|
+
sig { params(msg: Stately::Db::BeginScanRequest, kw: T.untyped).returns(String) }
|
267
|
+
def self.encode_json(msg, **kw)
|
268
|
+
end
|
269
|
+
|
270
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
271
|
+
def self.descriptor
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
class Stately::Db::SegmentationParams
|
276
|
+
include ::Google::Protobuf::MessageExts
|
277
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
278
|
+
|
279
|
+
sig do
|
280
|
+
params(
|
281
|
+
total_segments: T.nilable(Integer),
|
282
|
+
segment_index: T.nilable(Integer)
|
283
|
+
).void
|
284
|
+
end
|
285
|
+
def initialize(
|
286
|
+
total_segments: 0,
|
287
|
+
segment_index: 0
|
288
|
+
)
|
289
|
+
end
|
290
|
+
|
291
|
+
# total_segments is used to determine the number of segments the store will be split into.
|
292
|
+
# The segment_index field will then be used to determine which segment to process.
|
293
|
+
# For example, if total_segments is set to 5 then the store will be split into 5 segments
|
294
|
+
# and by setting segment_index to 0, 1, 2, 3, or 4 the request will process the corresponding
|
295
|
+
# segment.
|
296
|
+
sig { returns(Integer) }
|
297
|
+
def total_segments
|
298
|
+
end
|
299
|
+
|
300
|
+
# total_segments is used to determine the number of segments the store will be split into.
|
301
|
+
# The segment_index field will then be used to determine which segment to process.
|
302
|
+
# For example, if total_segments is set to 5 then the store will be split into 5 segments
|
303
|
+
# and by setting segment_index to 0, 1, 2, 3, or 4 the request will process the corresponding
|
304
|
+
# segment.
|
305
|
+
sig { params(value: Integer).void }
|
306
|
+
def total_segments=(value)
|
307
|
+
end
|
308
|
+
|
309
|
+
# total_segments is used to determine the number of segments the store will be split into.
|
310
|
+
# The segment_index field will then be used to determine which segment to process.
|
311
|
+
# For example, if total_segments is set to 5 then the store will be split into 5 segments
|
312
|
+
# and by setting segment_index to 0, 1, 2, 3, or 4 the request will process the corresponding
|
313
|
+
# segment.
|
314
|
+
sig { void }
|
315
|
+
def clear_total_segments
|
316
|
+
end
|
317
|
+
|
318
|
+
# segment_index is used to determine which segment of the store to process
|
319
|
+
# with this request.
|
320
|
+
# Segments are zero-indexed so the value of segment_index must be less than total_segments.
|
321
|
+
sig { returns(Integer) }
|
322
|
+
def segment_index
|
323
|
+
end
|
324
|
+
|
325
|
+
# segment_index is used to determine which segment of the store to process
|
326
|
+
# with this request.
|
327
|
+
# Segments are zero-indexed so the value of segment_index must be less than total_segments.
|
328
|
+
sig { params(value: Integer).void }
|
329
|
+
def segment_index=(value)
|
330
|
+
end
|
331
|
+
|
332
|
+
# segment_index is used to determine which segment of the store to process
|
333
|
+
# with this request.
|
334
|
+
# Segments are zero-indexed so the value of segment_index must be less than total_segments.
|
335
|
+
sig { void }
|
336
|
+
def clear_segment_index
|
337
|
+
end
|
338
|
+
|
339
|
+
sig { params(field: String).returns(T.untyped) }
|
340
|
+
def [](field)
|
341
|
+
end
|
342
|
+
|
343
|
+
sig { params(field: String, value: T.untyped).void }
|
344
|
+
def []=(field, value)
|
345
|
+
end
|
346
|
+
|
347
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
348
|
+
def to_h
|
349
|
+
end
|
350
|
+
|
351
|
+
sig { params(str: String).returns(Stately::Db::SegmentationParams) }
|
352
|
+
def self.decode(str)
|
353
|
+
end
|
354
|
+
|
355
|
+
sig { params(msg: Stately::Db::SegmentationParams).returns(String) }
|
356
|
+
def self.encode(msg)
|
357
|
+
end
|
358
|
+
|
359
|
+
sig { params(str: String, kw: T.untyped).returns(Stately::Db::SegmentationParams) }
|
360
|
+
def self.decode_json(str, **kw)
|
361
|
+
end
|
362
|
+
|
363
|
+
sig { params(msg: Stately::Db::SegmentationParams, kw: T.untyped).returns(String) }
|
364
|
+
def self.encode_json(msg, **kw)
|
365
|
+
end
|
366
|
+
|
367
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
368
|
+
def self.descriptor
|
369
|
+
end
|
370
|
+
end
|