Skip to content

Commit 73f11af

Browse files
1 parent d08709c commit 73f11af

3 files changed

Lines changed: 3 additions & 67 deletions

File tree

src/Firestore/GoogleFirestoreAdminV1SearchConfig.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ class GoogleFirestoreAdminV1SearchConfig extends \Google\Model
2121
{
2222
protected $geoSpecType = GoogleFirestoreAdminV1SearchGeoSpec::class;
2323
protected $geoSpecDataType = '';
24-
protected $numberSpecType = GoogleFirestoreAdminV1SearchNumberSpec::class;
25-
protected $numberSpecDataType = '';
2624
protected $textSpecType = GoogleFirestoreAdminV1SearchTextSpec::class;
2725
protected $textSpecDataType = '';
2826

@@ -42,22 +40,6 @@ public function getGeoSpec()
4240
{
4341
return $this->geoSpec;
4442
}
45-
/**
46-
* Optional. The specification for building a number search index for a field.
47-
*
48-
* @param GoogleFirestoreAdminV1SearchNumberSpec $numberSpec
49-
*/
50-
public function setNumberSpec(GoogleFirestoreAdminV1SearchNumberSpec $numberSpec)
51-
{
52-
$this->numberSpec = $numberSpec;
53-
}
54-
/**
55-
* @return GoogleFirestoreAdminV1SearchNumberSpec
56-
*/
57-
public function getNumberSpec()
58-
{
59-
return $this->numberSpec;
60-
}
6143
/**
6244
* Optional. The specification for building a text search index for a field.
6345
*

src/Firestore/GoogleFirestoreAdminV1SearchIndexOptions.php

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,8 @@
1717

1818
namespace Google\Service\Firestore;
1919

20-
class GoogleFirestoreAdminV1SearchIndexOptions extends \Google\Collection
20+
class GoogleFirestoreAdminV1SearchIndexOptions extends \Google\Model
2121
{
22-
protected $collection_key = 'customPartitionFieldPaths';
23-
/**
24-
* Optional. Custom partition fields to use for the search index. If
25-
* unspecified, all indexed fields will be in the same default partition. If a
26-
* search index is created specifying custom partition fields, all search
27-
* queries using that index will be required to filter on the partition. For
28-
* indexes with MONGODB_COMPATIBLE_API ApiScope: This must refer to a top
29-
* level field name.
30-
*
31-
* @var string[]
32-
*/
33-
public $customPartitionFieldPaths;
3422
/**
3523
* Optional. The language to use for text search indexes. Used as the default
3624
* language if not overridden at the document level by specifying the
@@ -52,27 +40,6 @@ class GoogleFirestoreAdminV1SearchIndexOptions extends \Google\Collection
5240
*/
5341
public $textLanguageOverrideFieldPath;
5442

55-
/**
56-
* Optional. Custom partition fields to use for the search index. If
57-
* unspecified, all indexed fields will be in the same default partition. If a
58-
* search index is created specifying custom partition fields, all search
59-
* queries using that index will be required to filter on the partition. For
60-
* indexes with MONGODB_COMPATIBLE_API ApiScope: This must refer to a top
61-
* level field name.
62-
*
63-
* @param string[] $customPartitionFieldPaths
64-
*/
65-
public function setCustomPartitionFieldPaths($customPartitionFieldPaths)
66-
{
67-
$this->customPartitionFieldPaths = $customPartitionFieldPaths;
68-
}
69-
/**
70-
* @return string[]
71-
*/
72-
public function getCustomPartitionFieldPaths()
73-
{
74-
return $this->customPartitionFieldPaths;
75-
}
7643
/**
7744
* Optional. The language to use for text search indexes. Used as the default
7845
* language if not overridden at the document level by specifying the

src/Firestore/GoogleFirestoreAdminV1SearchTextIndexSpec.php

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ class GoogleFirestoreAdminV1SearchTextIndexSpec extends \Google\Model
2828
* MONGODB_COMPATIBLE_API.
2929
*/
3030
public const INDEX_TYPE_TOKENIZED = 'TOKENIZED';
31-
/**
32-
* Field values are indexed as n-grams.
33-
*/
34-
public const INDEX_TYPE_NGRAMS = 'NGRAMS';
35-
/**
36-
* Field values are indexed to allow fast equality checks.
37-
*/
38-
public const INDEX_TYPE_EXACT_MATCH = 'EXACT_MATCH';
3931
/**
4032
* The match type is unspecified. Not a valid option.
4133
*/
@@ -45,10 +37,6 @@ class GoogleFirestoreAdminV1SearchTextIndexSpec extends \Google\Model
4537
* MONGODB_COMPATIBLE_API.
4638
*/
4739
public const MATCH_TYPE_MATCH_GLOBALLY = 'MATCH_GLOBALLY';
48-
/**
49-
* Match on a specific field.
50-
*/
51-
public const MATCH_TYPE_MATCH_FIELD = 'MATCH_FIELD';
5240
/**
5341
* Required. How to index the text field value.
5442
*
@@ -65,8 +53,7 @@ class GoogleFirestoreAdminV1SearchTextIndexSpec extends \Google\Model
6553
/**
6654
* Required. How to index the text field value.
6755
*
68-
* Accepted values: TEXT_INDEX_TYPE_UNSPECIFIED, TOKENIZED, NGRAMS,
69-
* EXACT_MATCH
56+
* Accepted values: TEXT_INDEX_TYPE_UNSPECIFIED, TOKENIZED
7057
*
7158
* @param self::INDEX_TYPE_* $indexType
7259
*/
@@ -84,7 +71,7 @@ public function getIndexType()
8471
/**
8572
* Required. How to match the text field value.
8673
*
87-
* Accepted values: TEXT_MATCH_TYPE_UNSPECIFIED, MATCH_GLOBALLY, MATCH_FIELD
74+
* Accepted values: TEXT_MATCH_TYPE_UNSPECIFIED, MATCH_GLOBALLY
8875
*
8976
* @param self::MATCH_TYPE_* $matchType
9077
*/

0 commit comments

Comments
 (0)