google-cloud-firestore-admin-v1 1.12.1 → 1.14.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/README.md +1 -1
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/client.rb +2 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/operations.rb +2 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/client.rb +2 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/operations.rb +2 -0
- data/lib/google/cloud/firestore/admin/v1/version.rb +1 -1
- data/lib/google/firestore/admin/v1/index_pb.rb +8 -1
- data/proto_docs/google/firestore/admin/v1/backup.rb +5 -0
- data/proto_docs/google/firestore/admin/v1/index.rb +105 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8756a2b463a1eb513db2c8e1ab5318faa71ea2a9148585457eabaabdc97c8960
|
|
4
|
+
data.tar.gz: 787cde960593ad49ac9c258cb718c5efc33ad89f012c62d3575e0322da83d517
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ef351958e123273eadcb4bee836ccbf0bfca5df4856695788660c5c15592b55aa3d8955f7864d2b287f1ec226ca9deac6d211fe1991dca387ef9a9265f3939a
|
|
7
|
+
data.tar.gz: 5bbe351441204170ef64f6ba48e703fca68cdb8a653615e31aa04c64fdecc327f09f51e6816f8f2ab4b8edf186206cceebe75013d1617cdb5c6a7f245057f704
|
data/README.md
CHANGED
|
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
86
86
|
|
|
87
87
|
## Supported Ruby Versions
|
|
88
88
|
|
|
89
|
-
This library is supported on Ruby 3.
|
|
89
|
+
This library is supported on Ruby 3.2+.
|
|
90
90
|
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -3522,6 +3522,7 @@ module Google
|
|
|
3522
3522
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
3523
3523
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
3524
3524
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
3525
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
3525
3526
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
3526
3527
|
# trigger a retry.
|
|
3527
3528
|
# @return [::Hash]
|
|
@@ -3605,6 +3606,7 @@ module Google
|
|
|
3605
3606
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
3606
3607
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
3607
3608
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
3609
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
3608
3610
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
3609
3611
|
# trigger a retry.
|
|
3610
3612
|
#
|
|
@@ -704,6 +704,7 @@ module Google
|
|
|
704
704
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
705
705
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
706
706
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
707
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
707
708
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
708
709
|
# trigger a retry.
|
|
709
710
|
# @return [::Hash]
|
|
@@ -787,6 +788,7 @@ module Google
|
|
|
787
788
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
788
789
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
789
790
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
791
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
790
792
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
791
793
|
# trigger a retry.
|
|
792
794
|
#
|
|
@@ -3256,6 +3256,7 @@ module Google
|
|
|
3256
3256
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
3257
3257
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
3258
3258
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
3259
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
3259
3260
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
3260
3261
|
# trigger a retry.
|
|
3261
3262
|
# @return [::Hash]
|
|
@@ -3328,6 +3329,7 @@ module Google
|
|
|
3328
3329
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
3329
3330
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
3330
3331
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
3332
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
3331
3333
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
3332
3334
|
# trigger a retry.
|
|
3333
3335
|
#
|
|
@@ -542,6 +542,7 @@ module Google
|
|
|
542
542
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
543
543
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
544
544
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
545
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
545
546
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
546
547
|
# trigger a retry.
|
|
547
548
|
# @return [::Hash]
|
|
@@ -614,6 +615,7 @@ module Google
|
|
|
614
615
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
615
616
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
616
617
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
618
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
617
619
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
618
620
|
# trigger a retry.
|
|
619
621
|
#
|
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
|
8
8
|
require 'google/api/resource_pb'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
descriptor_data = "\n%google/firestore/admin/v1/index.proto\x12\x19google.firestore.admin.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\
|
|
11
|
+
descriptor_data = "\n%google/firestore/admin/v1/index.proto\x12\x19google.firestore.admin.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf5\x12\n\x05Index\x12\x0c\n\x04name\x18\x01 \x01(\t\x12@\n\x0bquery_scope\x18\x02 \x01(\x0e\x32+.google.firestore.admin.v1.Index.QueryScope\x12<\n\tapi_scope\x18\x05 \x01(\x0e\x32).google.firestore.admin.v1.Index.ApiScope\x12;\n\x06\x66ields\x18\x03 \x03(\x0b\x32+.google.firestore.admin.v1.Index.IndexField\x12\x35\n\x05state\x18\x04 \x01(\x0e\x32&.google.firestore.admin.v1.Index.State\x12>\n\x07\x64\x65nsity\x18\x06 \x01(\x0e\x32(.google.firestore.admin.v1.Index.DensityB\x03\xe0\x41\x05\x12\x15\n\x08multikey\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0bshard_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06unique\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12V\n\x14search_index_options\x18\t \x01(\x0b\x32\x33.google.firestore.admin.v1.Index.SearchIndexOptionsB\x03\xe0\x41\x01\x1a\xdb\n\n\nIndexField\x12\x12\n\nfield_path\x18\x01 \x01(\t\x12\x42\n\x05order\x18\x02 \x01(\x0e\x32\x31.google.firestore.admin.v1.Index.IndexField.OrderH\x00\x12O\n\x0c\x61rray_config\x18\x03 \x01(\x0e\x32\x37.google.firestore.admin.v1.Index.IndexField.ArrayConfigH\x00\x12Q\n\rvector_config\x18\x04 \x01(\x0b\x32\x38.google.firestore.admin.v1.Index.IndexField.VectorConfigH\x00\x12Q\n\rsearch_config\x18\x05 \x01(\x0b\x32\x38.google.firestore.admin.v1.Index.IndexField.SearchConfigH\x00\x1a\x8f\x01\n\x0cVectorConfig\x12\x16\n\tdimension\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12R\n\x04\x66lat\x18\x02 \x01(\x0b\x32\x42.google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndexH\x00\x1a\x0b\n\tFlatIndexB\x06\n\x04type\x1a\xe3\x05\n\x0cSearchConfig\x12_\n\ttext_spec\x18\x01 \x01(\x0b\x32G.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpecB\x03\xe0\x41\x01\x12]\n\x08geo_spec\x18\x02 \x01(\x0b\x32\x46.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpecB\x03\xe0\x41\x01\x1a\xd7\x01\n\x13SearchTextIndexSpec\x12_\n\nindex_type\x18\x01 \x01(\x0e\x32\x46.google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexTypeB\x03\xe0\x41\x02\x12_\n\nmatch_type\x18\x02 \x01(\x0e\x32\x46.google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchTypeB\x03\xe0\x41\x02\x1ax\n\x0eSearchTextSpec\x12\x66\n\x0bindex_specs\x18\x01 \x03(\x0b\x32L.google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpecB\x03\xe0\x41\x02\x1a\x38\n\rSearchGeoSpec\x12\'\n\x1ageo_json_indexing_disabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\"?\n\rTextIndexType\x12\x1f\n\x1bTEXT_INDEX_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tTOKENIZED\x10\x01\"D\n\rTextMatchType\x12\x1f\n\x1bTEXT_MATCH_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eMATCH_GLOBALLY\x10\x01\"=\n\x05Order\x12\x15\n\x11ORDER_UNSPECIFIED\x10\x00\x12\r\n\tASCENDING\x10\x01\x12\x0e\n\nDESCENDING\x10\x02\"9\n\x0b\x41rrayConfig\x12\x1c\n\x18\x41RRAY_CONFIG_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43ONTAINS\x10\x01\x42\x0c\n\nvalue_mode\x1a`\n\x12SearchIndexOptions\x12\x1a\n\rtext_language\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12.\n!text_language_override_field_path\x18\x02 \x01(\tB\x03\xe0\x41\x01\"i\n\nQueryScope\x12\x1b\n\x17QUERY_SCOPE_UNSPECIFIED\x10\x00\x12\x0e\n\nCOLLECTION\x10\x01\x12\x14\n\x10\x43OLLECTION_GROUP\x10\x02\x12\x18\n\x14\x43OLLECTION_RECURSIVE\x10\x03\"K\n\x08\x41piScope\x12\x0b\n\x07\x41NY_API\x10\x00\x12\x16\n\x12\x44\x41TASTORE_MODE_API\x10\x01\x12\x1a\n\x16MONGODB_COMPATIBLE_API\x10\x02\"I\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\t\n\x05READY\x10\x02\x12\x10\n\x0cNEEDS_REPAIR\x10\x03\"M\n\x07\x44\x65nsity\x12\x17\n\x13\x44\x45NSITY_UNSPECIFIED\x10\x00\x12\x0e\n\nSPARSE_ALL\x10\x01\x12\x0e\n\nSPARSE_ANY\x10\x02\x12\t\n\x05\x44\x45NSE\x10\x03:z\xea\x41w\n\x1e\x66irestore.googleapis.com/Index\x12Uprojects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}B\xd9\x01\n\x1d\x63om.google.firestore.admin.v1B\nIndexProtoP\x01Z9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb\xa2\x02\x04GCFS\xaa\x02\x1fGoogle.Cloud.Firestore.Admin.V1\xca\x02\x1fGoogle\\Cloud\\Firestore\\Admin\\V1\xea\x02#Google::Cloud::Firestore::Admin::V1b\x06proto3"
|
|
12
12
|
|
|
13
13
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
14
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -22,8 +22,15 @@ module Google
|
|
|
22
22
|
Index::IndexField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField").msgclass
|
|
23
23
|
Index::IndexField::VectorConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.VectorConfig").msgclass
|
|
24
24
|
Index::IndexField::VectorConfig::FlatIndex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex").msgclass
|
|
25
|
+
Index::IndexField::SearchConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.SearchConfig").msgclass
|
|
26
|
+
Index::IndexField::SearchConfig::SearchTextIndexSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextIndexSpec").msgclass
|
|
27
|
+
Index::IndexField::SearchConfig::SearchTextSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchTextSpec").msgclass
|
|
28
|
+
Index::IndexField::SearchConfig::SearchGeoSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.SearchConfig.SearchGeoSpec").msgclass
|
|
29
|
+
Index::IndexField::SearchConfig::TextIndexType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.SearchConfig.TextIndexType").enummodule
|
|
30
|
+
Index::IndexField::SearchConfig::TextMatchType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.SearchConfig.TextMatchType").enummodule
|
|
25
31
|
Index::IndexField::Order = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.Order").enummodule
|
|
26
32
|
Index::IndexField::ArrayConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.IndexField.ArrayConfig").enummodule
|
|
33
|
+
Index::SearchIndexOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.SearchIndexOptions").msgclass
|
|
27
34
|
Index::QueryScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.QueryScope").enummodule
|
|
28
35
|
Index::ApiScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.ApiScope").enummodule
|
|
29
36
|
Index::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.admin.v1.Index.State").enummodule
|
|
@@ -31,6 +31,11 @@ module Google
|
|
|
31
31
|
# Output only. The unique resource name of the Backup.
|
|
32
32
|
#
|
|
33
33
|
# Format is `projects/{project}/locations/{location}/backups/{backup}`.
|
|
34
|
+
#
|
|
35
|
+
# The location in the name will be the Standard Managed Multi-Region (SMMR)
|
|
36
|
+
# location (e.g. `us`) if the backup was created with an SMMR location, or
|
|
37
|
+
# the Google Managed Multi-Region (GMMR) location (e.g. `nam5`) if the backup
|
|
38
|
+
# was created with a GMMR location.
|
|
34
39
|
# @!attribute [r] database
|
|
35
40
|
# @return [::String]
|
|
36
41
|
# Output only. Name of the Firestore database that the backup is from.
|
|
@@ -78,6 +78,11 @@ module Google
|
|
|
78
78
|
# @return [::Boolean]
|
|
79
79
|
# Optional. Whether it is an unique index. Unique index ensures all values
|
|
80
80
|
# for the indexed field(s) are unique across documents.
|
|
81
|
+
# @!attribute [rw] search_index_options
|
|
82
|
+
# @return [::Google::Cloud::Firestore::Admin::V1::Index::SearchIndexOptions]
|
|
83
|
+
# Optional. Options for search indexes that are at the index definition
|
|
84
|
+
# level. This field is only currently supported for indexes with
|
|
85
|
+
# MONGODB_COMPATIBLE_API ApiScope.
|
|
81
86
|
class Index
|
|
82
87
|
include ::Google::Protobuf::MessageExts
|
|
83
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -95,18 +100,25 @@ module Google
|
|
|
95
100
|
# Indicates that this field supports ordering by the specified order or
|
|
96
101
|
# comparing using =, !=, <, <=, >, >=.
|
|
97
102
|
#
|
|
98
|
-
# Note: The following fields are mutually exclusive: `order`, `array_config`, `vector_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
103
|
+
# Note: The following fields are mutually exclusive: `order`, `array_config`, `vector_config`, `search_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
99
104
|
# @!attribute [rw] array_config
|
|
100
105
|
# @return [::Google::Cloud::Firestore::Admin::V1::Index::IndexField::ArrayConfig]
|
|
101
106
|
# Indicates that this field supports operations on `array_value`s.
|
|
102
107
|
#
|
|
103
|
-
# Note: The following fields are mutually exclusive: `array_config`, `order`, `vector_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
108
|
+
# Note: The following fields are mutually exclusive: `array_config`, `order`, `vector_config`, `search_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
104
109
|
# @!attribute [rw] vector_config
|
|
105
110
|
# @return [::Google::Cloud::Firestore::Admin::V1::Index::IndexField::VectorConfig]
|
|
106
111
|
# Indicates that this field supports nearest neighbor and distance
|
|
107
112
|
# operations on vector.
|
|
108
113
|
#
|
|
109
|
-
# Note: The following fields are mutually exclusive: `vector_config`, `order`, `array_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
114
|
+
# Note: The following fields are mutually exclusive: `vector_config`, `order`, `array_config`, `search_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
115
|
+
# @!attribute [rw] search_config
|
|
116
|
+
# @return [::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig]
|
|
117
|
+
# Indicates that this field supports search operations. This field
|
|
118
|
+
# is only currently supported for indexes with MONGODB_COMPATIBLE_API
|
|
119
|
+
# ApiScope.
|
|
120
|
+
#
|
|
121
|
+
# Note: The following fields are mutually exclusive: `search_config`, `order`, `array_config`, `vector_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
110
122
|
class IndexField
|
|
111
123
|
include ::Google::Protobuf::MessageExts
|
|
112
124
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -133,6 +145,74 @@ module Google
|
|
|
133
145
|
end
|
|
134
146
|
end
|
|
135
147
|
|
|
148
|
+
# The configuration for how to index a field for search.
|
|
149
|
+
# @!attribute [rw] text_spec
|
|
150
|
+
# @return [::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig::SearchTextSpec]
|
|
151
|
+
# Optional. The specification for building a text search index for a
|
|
152
|
+
# field.
|
|
153
|
+
# @!attribute [rw] geo_spec
|
|
154
|
+
# @return [::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig::SearchGeoSpec]
|
|
155
|
+
# Optional. The specification for building a geo search index for a
|
|
156
|
+
# field.
|
|
157
|
+
class SearchConfig
|
|
158
|
+
include ::Google::Protobuf::MessageExts
|
|
159
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
160
|
+
|
|
161
|
+
# Specification of how the field should be indexed for search text
|
|
162
|
+
# indexes.
|
|
163
|
+
# @!attribute [rw] index_type
|
|
164
|
+
# @return [::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig::TextIndexType]
|
|
165
|
+
# Required. How to index the text field value.
|
|
166
|
+
# @!attribute [rw] match_type
|
|
167
|
+
# @return [::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig::TextMatchType]
|
|
168
|
+
# Required. How to match the text field value.
|
|
169
|
+
class SearchTextIndexSpec
|
|
170
|
+
include ::Google::Protobuf::MessageExts
|
|
171
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# The specification for how to build a text search index for a field.
|
|
175
|
+
# @!attribute [rw] index_specs
|
|
176
|
+
# @return [::Array<::Google::Cloud::Firestore::Admin::V1::Index::IndexField::SearchConfig::SearchTextIndexSpec>]
|
|
177
|
+
# Required. Specifications for how the field should be indexed.
|
|
178
|
+
# Repeated so that the field can be indexed in multiple ways.
|
|
179
|
+
class SearchTextSpec
|
|
180
|
+
include ::Google::Protobuf::MessageExts
|
|
181
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# The specification for how to build a geo search index for a field.
|
|
185
|
+
# @!attribute [rw] geo_json_indexing_disabled
|
|
186
|
+
# @return [::Boolean]
|
|
187
|
+
# Optional. Disables geoJSON indexing for the field. By default,
|
|
188
|
+
# geoJSON points are indexed.
|
|
189
|
+
class SearchGeoSpec
|
|
190
|
+
include ::Google::Protobuf::MessageExts
|
|
191
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Ways to index the text field value.
|
|
195
|
+
module TextIndexType
|
|
196
|
+
# The index type is unspecified. Not a valid option.
|
|
197
|
+
TEXT_INDEX_TYPE_UNSPECIFIED = 0
|
|
198
|
+
|
|
199
|
+
# Field values are tokenized. This is the only way currently supported
|
|
200
|
+
# for MONGODB_COMPATIBLE_API.
|
|
201
|
+
TOKENIZED = 1
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Types of text matches that are supported for the
|
|
205
|
+
# field.
|
|
206
|
+
module TextMatchType
|
|
207
|
+
# The match type is unspecified. Not a valid option.
|
|
208
|
+
TEXT_MATCH_TYPE_UNSPECIFIED = 0
|
|
209
|
+
|
|
210
|
+
# Match on any indexed field. This is the only way currently supported
|
|
211
|
+
# for MONGODB_COMPATIBLE_API.
|
|
212
|
+
MATCH_GLOBALLY = 1
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
136
216
|
# The supported orderings.
|
|
137
217
|
module Order
|
|
138
218
|
# The ordering is unspecified. Not a valid option.
|
|
@@ -155,6 +235,28 @@ module Google
|
|
|
155
235
|
end
|
|
156
236
|
end
|
|
157
237
|
|
|
238
|
+
# Options for search indexes at the definition level.
|
|
239
|
+
# @!attribute [rw] text_language
|
|
240
|
+
# @return [::String]
|
|
241
|
+
# Optional. The language to use for text search indexes. Used as the
|
|
242
|
+
# default language if not overridden at the document level by specifying
|
|
243
|
+
# the `text_language_override_field`. The language is specified as a BCP 47
|
|
244
|
+
# language code.
|
|
245
|
+
# For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the
|
|
246
|
+
# default language is English.
|
|
247
|
+
# For indexes with `ANY_API` ApiScope: If unspecified, the default behavior
|
|
248
|
+
# is autodetect.
|
|
249
|
+
# @!attribute [rw] text_language_override_field_path
|
|
250
|
+
# @return [::String]
|
|
251
|
+
# Optional. The field in the document that specifies which language to use
|
|
252
|
+
# for that specific document. For indexes with MONGODB_COMPATIBLE_API
|
|
253
|
+
# ApiScope: if unspecified, the language is taken from the "language" field
|
|
254
|
+
# if it exists or from `text_language` if it does not.
|
|
255
|
+
class SearchIndexOptions
|
|
256
|
+
include ::Google::Protobuf::MessageExts
|
|
257
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
258
|
+
end
|
|
259
|
+
|
|
158
260
|
# Query Scope defines the scope at which a query is run. This is specified on
|
|
159
261
|
# a StructuredQuery's `from` field.
|
|
160
262
|
module QueryScope
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-firestore-admin-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.3'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.3'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-cloud-errors
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|