google-apis-firestore_v1beta1 0.26.0 → 0.27.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b051ed356505e83527c97f48e600ee2c03685d044b9a747895228c145fbd4b7
|
4
|
+
data.tar.gz: 49122a4234ac837a14c3e1bea1c99c7c9aa74090458cbb07cc06cb73646cd8a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d63d4cd960300c7f9eb0a344895d3fd108bf16beea0a0ed7ebadad37fb535c5042d2dfa24321482eeeb4227b6c67c4076339a736ab8b9f167f914ae21764eaae
|
7
|
+
data.tar.gz: e18fdce2d2b00c6456043133ef12394b021b85f6f223d10d8d8f906d5238a59cc9ff509ef55b695cabd0d64ceccb892db6a28a38a310bcd78e5d931f4f50b28b
|
data/CHANGELOG.md
CHANGED
@@ -284,6 +284,88 @@ module Google
|
|
284
284
|
end
|
285
285
|
end
|
286
286
|
|
287
|
+
# A sequence of bits, encoded in a byte array. Each byte in the `bitmap` byte
|
288
|
+
# array stores 8 bits of the sequence. The only exception is the last byte,
|
289
|
+
# which may store 8 _or fewer_ bits. The `padding` defines the number of bits of
|
290
|
+
# the last byte to be ignored as "padding". The values of these "padding" bits
|
291
|
+
# are unspecified and must be ignored. To retrieve the first bit, bit 0,
|
292
|
+
# calculate: `(bitmap[0] & 0x01) != 0`. To retrieve the second bit, bit 1,
|
293
|
+
# calculate: `(bitmap[0] & 0x02) != 0`. To retrieve the third bit, bit 2,
|
294
|
+
# calculate: `(bitmap[0] & 0x04) != 0`. To retrieve the fourth bit, bit 3,
|
295
|
+
# calculate: `(bitmap[0] & 0x08) != 0`. To retrieve bit n, calculate: `(bitmap[n
|
296
|
+
# / 8] & (0x01 << (n % 8))) != 0`. The "size" of a `BitSequence` (the number of
|
297
|
+
# bits it contains) is calculated by this formula: `(bitmap.length * 8) -
|
298
|
+
# padding`.
|
299
|
+
class BitSequence
|
300
|
+
include Google::Apis::Core::Hashable
|
301
|
+
|
302
|
+
# The bytes that encode the bit sequence. May have a length of zero.
|
303
|
+
# Corresponds to the JSON property `bitmap`
|
304
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
305
|
+
# @return [String]
|
306
|
+
attr_accessor :bitmap
|
307
|
+
|
308
|
+
# The number of bits of the last byte in `bitmap` to ignore as "padding". If the
|
309
|
+
# length of `bitmap` is zero, then this value must be `0`. Otherwise, this value
|
310
|
+
# must be between 0 and 7, inclusive.
|
311
|
+
# Corresponds to the JSON property `padding`
|
312
|
+
# @return [Fixnum]
|
313
|
+
attr_accessor :padding
|
314
|
+
|
315
|
+
def initialize(**args)
|
316
|
+
update!(**args)
|
317
|
+
end
|
318
|
+
|
319
|
+
# Update properties of this object
|
320
|
+
def update!(**args)
|
321
|
+
@bitmap = args[:bitmap] if args.key?(:bitmap)
|
322
|
+
@padding = args[:padding] if args.key?(:padding)
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
# A bloom filter (https://en.wikipedia.org/wiki/Bloom_filter). The bloom filter
|
327
|
+
# hashes the entries with MD5 and treats the resulting 128-bit hash as 2
|
328
|
+
# distinct 64-bit hash values, interpreted as unsigned integers using 2's
|
329
|
+
# complement encoding. These two hash values, named `h1` and `h2`, are then used
|
330
|
+
# to compute the `hash_count` hash values using the formula, starting at `i=0`:
|
331
|
+
# h(i) = h1 + (i * h2) These resulting values are then taken modulo the number
|
332
|
+
# of bits in the bloom filter to get the bits of the bloom filter to test for
|
333
|
+
# the given entry.
|
334
|
+
class BloomFilter
|
335
|
+
include Google::Apis::Core::Hashable
|
336
|
+
|
337
|
+
# A sequence of bits, encoded in a byte array. Each byte in the `bitmap` byte
|
338
|
+
# array stores 8 bits of the sequence. The only exception is the last byte,
|
339
|
+
# which may store 8 _or fewer_ bits. The `padding` defines the number of bits of
|
340
|
+
# the last byte to be ignored as "padding". The values of these "padding" bits
|
341
|
+
# are unspecified and must be ignored. To retrieve the first bit, bit 0,
|
342
|
+
# calculate: `(bitmap[0] & 0x01) != 0`. To retrieve the second bit, bit 1,
|
343
|
+
# calculate: `(bitmap[0] & 0x02) != 0`. To retrieve the third bit, bit 2,
|
344
|
+
# calculate: `(bitmap[0] & 0x04) != 0`. To retrieve the fourth bit, bit 3,
|
345
|
+
# calculate: `(bitmap[0] & 0x08) != 0`. To retrieve bit n, calculate: `(bitmap[n
|
346
|
+
# / 8] & (0x01 << (n % 8))) != 0`. The "size" of a `BitSequence` (the number of
|
347
|
+
# bits it contains) is calculated by this formula: `(bitmap.length * 8) -
|
348
|
+
# padding`.
|
349
|
+
# Corresponds to the JSON property `bits`
|
350
|
+
# @return [Google::Apis::FirestoreV1beta1::BitSequence]
|
351
|
+
attr_accessor :bits
|
352
|
+
|
353
|
+
# The number of hashes used by the algorithm.
|
354
|
+
# Corresponds to the JSON property `hashCount`
|
355
|
+
# @return [Fixnum]
|
356
|
+
attr_accessor :hash_count
|
357
|
+
|
358
|
+
def initialize(**args)
|
359
|
+
update!(**args)
|
360
|
+
end
|
361
|
+
|
362
|
+
# Update properties of this object
|
363
|
+
def update!(**args)
|
364
|
+
@bits = args[:bits] if args.key?(:bits)
|
365
|
+
@hash_count = args[:hash_count] if args.key?(:hash_count)
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
287
369
|
# A selection of a collection, such as `messages as m1`.
|
288
370
|
class CollectionSelector
|
289
371
|
include Google::Apis::Core::Hashable
|
@@ -707,6 +789,18 @@ module Google
|
|
707
789
|
# @return [Fixnum]
|
708
790
|
attr_accessor :target_id
|
709
791
|
|
792
|
+
# A bloom filter (https://en.wikipedia.org/wiki/Bloom_filter). The bloom filter
|
793
|
+
# hashes the entries with MD5 and treats the resulting 128-bit hash as 2
|
794
|
+
# distinct 64-bit hash values, interpreted as unsigned integers using 2's
|
795
|
+
# complement encoding. These two hash values, named `h1` and `h2`, are then used
|
796
|
+
# to compute the `hash_count` hash values using the formula, starting at `i=0`:
|
797
|
+
# h(i) = h1 + (i * h2) These resulting values are then taken modulo the number
|
798
|
+
# of bits in the bloom filter to get the bits of the bloom filter to test for
|
799
|
+
# the given entry.
|
800
|
+
# Corresponds to the JSON property `unchangedNames`
|
801
|
+
# @return [Google::Apis::FirestoreV1beta1::BloomFilter]
|
802
|
+
attr_accessor :unchanged_names
|
803
|
+
|
710
804
|
def initialize(**args)
|
711
805
|
update!(**args)
|
712
806
|
end
|
@@ -715,6 +809,7 @@ module Google
|
|
715
809
|
def update!(**args)
|
716
810
|
@count = args[:count] if args.key?(:count)
|
717
811
|
@target_id = args[:target_id] if args.key?(:target_id)
|
812
|
+
@unchanged_names = args[:unchanged_names] if args.key?(:unchanged_names)
|
718
813
|
end
|
719
814
|
end
|
720
815
|
|
@@ -2105,6 +2200,14 @@ module Google
|
|
2105
2200
|
# @return [Google::Apis::FirestoreV1beta1::DocumentsTarget]
|
2106
2201
|
attr_accessor :documents
|
2107
2202
|
|
2203
|
+
# The number of documents that last matched the query at the resume token or
|
2204
|
+
# read time. This value is only relevant when a `resume_type` is provided. This
|
2205
|
+
# value being present and greater than zero signals that the client wants `
|
2206
|
+
# ExistenceFilter.unchanged_names` to be included in the response.
|
2207
|
+
# Corresponds to the JSON property `expectedCount`
|
2208
|
+
# @return [Fixnum]
|
2209
|
+
attr_accessor :expected_count
|
2210
|
+
|
2108
2211
|
# If the target should be removed once it is current and consistent.
|
2109
2212
|
# Corresponds to the JSON property `once`
|
2110
2213
|
# @return [Boolean]
|
@@ -2142,6 +2245,7 @@ module Google
|
|
2142
2245
|
# Update properties of this object
|
2143
2246
|
def update!(**args)
|
2144
2247
|
@documents = args[:documents] if args.key?(:documents)
|
2248
|
+
@expected_count = args[:expected_count] if args.key?(:expected_count)
|
2145
2249
|
@once = args[:once] if args.key?(:once)
|
2146
2250
|
@query = args[:query] if args.key?(:query)
|
2147
2251
|
@read_time = args[:read_time] if args.key?(:read_time)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module FirestoreV1beta1
|
18
18
|
# Version of the google-apis-firestore_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.27.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230508"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,18 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class BitSequence
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class BloomFilter
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
79
91
|
class CollectionSelector
|
80
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
93
|
|
@@ -543,6 +555,23 @@ module Google
|
|
543
555
|
end
|
544
556
|
end
|
545
557
|
|
558
|
+
class BitSequence
|
559
|
+
# @private
|
560
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
561
|
+
property :bitmap, :base64 => true, as: 'bitmap'
|
562
|
+
property :padding, as: 'padding'
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
566
|
+
class BloomFilter
|
567
|
+
# @private
|
568
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
569
|
+
property :bits, as: 'bits', class: Google::Apis::FirestoreV1beta1::BitSequence, decorator: Google::Apis::FirestoreV1beta1::BitSequence::Representation
|
570
|
+
|
571
|
+
property :hash_count, as: 'hashCount'
|
572
|
+
end
|
573
|
+
end
|
574
|
+
|
546
575
|
class CollectionSelector
|
547
576
|
# @private
|
548
577
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -667,6 +696,8 @@ module Google
|
|
667
696
|
class Representation < Google::Apis::Core::JsonRepresentation
|
668
697
|
property :count, as: 'count'
|
669
698
|
property :target_id, as: 'targetId'
|
699
|
+
property :unchanged_names, as: 'unchangedNames', class: Google::Apis::FirestoreV1beta1::BloomFilter, decorator: Google::Apis::FirestoreV1beta1::BloomFilter::Representation
|
700
|
+
|
670
701
|
end
|
671
702
|
end
|
672
703
|
|
@@ -1078,6 +1109,7 @@ module Google
|
|
1078
1109
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1079
1110
|
property :documents, as: 'documents', class: Google::Apis::FirestoreV1beta1::DocumentsTarget, decorator: Google::Apis::FirestoreV1beta1::DocumentsTarget::Representation
|
1080
1111
|
|
1112
|
+
property :expected_count, as: 'expectedCount'
|
1081
1113
|
property :once, as: 'once'
|
1082
1114
|
property :query, as: 'query', class: Google::Apis::FirestoreV1beta1::QueryTarget, decorator: Google::Apis::FirestoreV1beta1::QueryTarget::Representation
|
1083
1115
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-firestore_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firestore_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firestore_v1beta1/v0.27.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firestore_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|