📂 File Browser

AgentAI/vendor/google/apiclient-services/src/Firestore
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Aggregation.php
▶ Open 📄 View Source
🐘 AggregationResult.php
▶ Open 📄 View Source
🐘 ArrayValue.php
▶ Open 📄 View Source
🐘 Avg.php
▶ Open 📄 View Source
🐘 BatchGetDocumentsRequest.php
▶ Open 📄 View Source
🐘 BatchGetDocumentsResponse.php
▶ Open 📄 View Source
🐘 BatchWriteRequest.php
▶ Open 📄 View Source
🐘 BatchWriteResponse.php
▶ Open 📄 View Source
🐘 BeginTransactionRequest.php
▶ Open 📄 View Source
🐘 BeginTransactionResponse.php
▶ Open 📄 View Source
🐘 BitSequence.php
▶ Open 📄 View Source
🐘 BloomFilter.php
▶ Open 📄 View Source
🐘 CollectionSelector.php
▶ Open 📄 View Source
🐘 CommitRequest.php
▶ Open 📄 View Source
🐘 CommitResponse.php
▶ Open 📄 View Source
🐘 CompositeFilter.php
▶ Open 📄 View Source
🐘 Count.php
▶ Open 📄 View Source
🐘 Cursor.php
▶ Open 📄 View Source
🐘 Document.php
▶ Open 📄 View Source
🐘 DocumentChange.php
▶ Open 📄 View Source
🐘 DocumentDelete.php
▶ Open 📄 View Source
🐘 DocumentMask.php
▶ Open 📄 View Source
🐘 DocumentRemove.php
▶ Open 📄 View Source
🐘 DocumentTransform.php
▶ Open 📄 View Source
🐘 DocumentsTarget.php
▶ Open 📄 View Source
🐘 ExecutePipelineRequest.php
▶ Open 📄 View Source
🐘 ExecutePipelineResponse.php
▶ Open 📄 View Source
🐘 ExecutionStats.php
▶ Open 📄 View Source
🐘 ExistenceFilter.php
▶ Open 📄 View Source
🐘 ExplainMetrics.php
▶ Open 📄 View Source
🐘 ExplainOptions.php
▶ Open 📄 View Source
🐘 ExplainStats.php
▶ Open 📄 View Source
🐘 FieldFilter.php
▶ Open 📄 View Source
🐘 FieldReference.php
▶ Open 📄 View Source
🐘 FieldTransform.php
▶ Open 📄 View Source
🐘 Filter.php
▶ Open 📄 View Source
🐘 FindNearest.php
▶ Open 📄 View Source
🐘 FirestoreEmpty.php
▶ Open 📄 View Source
🐘 FirestoreFunction.php
▶ Open 📄 View Source
🐘 FirestoreReadOnly.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1Backup.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1BackupSchedule.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1BackupSource.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1BulkDeleteDocumentsRequest.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1CloneDatabaseMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1CloneDatabaseRequest.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1CmekConfig.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1CreateDatabaseMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1CustomerManagedEncryptionOptions.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1DailyRecurrence.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1Database.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1DatabaseSnapshot.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1DeleteDatabaseMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1DisableUserCredsRequest.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1EnableUserCredsRequest.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1EncryptionConfig.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ExportDocumentsMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ExportDocumentsRequest.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ExportDocumentsResponse.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1Field.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1FieldOperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1FlatIndex.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ImportDocumentsMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ImportDocumentsRequest.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1Index.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1IndexConfig.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1IndexConfigDelta.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1IndexField.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1IndexOperationMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ListBackupSchedulesResponse.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ListBackupsResponse.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ListDatabasesResponse.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ListFieldsResponse.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ListIndexesResponse.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ListUserCredsResponse.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1LocationMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1PitrSnapshot.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1Progress.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ResetUserPasswordRequest.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1ResourceIdentity.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1RestoreDatabaseMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1RestoreDatabaseRequest.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1SearchConfig.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1SearchGeoSpec.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1SearchIndexOptions.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1SearchNumberSpec.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1SearchTextIndexSpec.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1SearchTextSpec.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1SourceEncryptionOptions.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1SourceInfo.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1Stats.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1TtlConfig.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1TtlConfigDelta.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1UpdateDatabaseMetadata.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1UserCreds.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1VectorConfig.php
▶ Open 📄 View Source
🐘 GoogleFirestoreAdminV1WeeklyRecurrence.php
▶ Open 📄 View Source
🐘 GoogleLongrunningCancelOperationRequest.php
▶ Open 📄 View Source
🐘 GoogleLongrunningListOperationsResponse.php
▶ Open 📄 View Source
🐘 GoogleLongrunningOperation.php
▶ Open 📄 View Source
🐘 LatLng.php
▶ Open 📄 View Source
🐘 ListCollectionIdsRequest.php
▶ Open 📄 View Source
🐘 ListCollectionIdsResponse.php
▶ Open 📄 View Source
🐘 ListDocumentsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListenRequest.php
▶ Open 📄 View Source
🐘 ListenResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 MapValue.php
▶ Open 📄 View Source
🐘 Order.php
▶ Open 📄 View Source
🐘 PartitionQueryRequest.php
▶ Open 📄 View Source
🐘 PartitionQueryResponse.php
▶ Open 📄 View Source
🐘 Pipeline.php
▶ Open 📄 View Source
🐘 PlanSummary.php
▶ Open 📄 View Source
🐘 Precondition.php
▶ Open 📄 View Source
🐘 Projection.php
▶ Open 📄 View Source
🐘 QueryPlan.php
▶ Open 📄 View Source
🐘 QueryTarget.php
▶ Open 📄 View Source
🐘 ReadWrite.php
▶ Open 📄 View Source
🐘 ResultSetStats.php
▶ Open 📄 View Source
🐘 RollbackRequest.php
▶ Open 📄 View Source
🐘 RunAggregationQueryRequest.php
▶ Open 📄 View Source
🐘 RunAggregationQueryResponse.php
▶ Open 📄 View Source
🐘 RunQueryRequest.php
▶ Open 📄 View Source
🐘 RunQueryResponse.php
▶ Open 📄 View Source
🐘 Stage.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 StructuredAggregationQuery.php
▶ Open 📄 View Source
🐘 StructuredPipeline.php
▶ Open 📄 View Source
🐘 StructuredQuery.php
▶ Open 📄 View Source
🐘 Sum.php
▶ Open 📄 View Source
🐘 Target.php
▶ Open 📄 View Source
🐘 TargetChange.php
▶ Open 📄 View Source
🐘 TimeOfDay.php
▶ Open 📄 View Source
🐘 TransactionOptions.php
▶ Open 📄 View Source
🐘 UnaryFilter.php
▶ Open 📄 View Source
🐘 Value.php
▶ Open 📄 View Source
🐘 Write.php
▶ Open 📄 View Source
🐘 WriteRequest.php
▶ Open 📄 View Source
🐘 WriteResponse.php
▶ Open 📄 View Source
🐘 WriteResult.php
▶ Open 📄 View Source

📄 Source: GoogleFirestoreAdminV1Index.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Firestore;

class GoogleFirestoreAdminV1Index extends \Google\Collection
{
  /**
   * The index can only be used by the Firestore Native query API. This is the
   * default.
   */
  public const API_SCOPE_ANY_API = 'ANY_API';
  /**
   * The index can only be used by the Firestore in Datastore Mode query API.
   */
  public const API_SCOPE_DATASTORE_MODE_API = 'DATASTORE_MODE_API';
  /**
   * The index can only be used by the MONGODB_COMPATIBLE_API.
   */
  public const API_SCOPE_MONGODB_COMPATIBLE_API = 'MONGODB_COMPATIBLE_API';
  /**
   * Unspecified. It will use database default setting. This value is input
   * only.
   */
  public const DENSITY_DENSITY_UNSPECIFIED = 'DENSITY_UNSPECIFIED';
  /**
   * An index entry will only exist if ALL fields are present in the document.
   * This is both the default and only allowed value for Standard Edition
   * databases (for both Cloud Firestore `ANY_API` and Cloud Datastore
   * `DATASTORE_MODE_API`). Take for example the following document: ``` {
   * "__name__": "...", "a": 1, "b": 2, "c": 3 } ``` an index on `(a ASC, b ASC,
   * c ASC, __name__ ASC)` will generate an index entry for this document since
   * `a`, 'b', `c`, and `__name__` are all present but an index of `(a ASC, d
   * ASC, __name__ ASC)` will not generate an index entry for this document
   * since `d` is missing. This means that such indexes can only be used to
   * serve a query when the query has either implicit or explicit requirements
   * that all fields from the index are present.
   */
  public const DENSITY_SPARSE_ALL = 'SPARSE_ALL';
  /**
   * An index entry will exist if ANY field are present in the document. This is
   * used as the definition of a sparse index for Enterprise Edition databases.
   * Take for example the following document: ``` { "__name__": "...", "a": 1,
   * "b": 2, "c": 3 } ``` an index on `(a ASC, d ASC)` will generate an index
   * entry for this document since `a` is present, and will fill in an `unset`
   * value for `d`. An index on `(d ASC, e ASC)` will not generate any index
   * entry as neither `d` nor `e` are present. An index that contains `__name__`
   * will generate an index entry for all documents since Firestore guarantees
   * that all documents have a `__name__` field.
   */
  public const DENSITY_SPARSE_ANY = 'SPARSE_ANY';
  /**
   * An index entry will exist regardless of if the fields are present or not.
   * This is the default density for an Enterprise Edition database. The index
   * will store `unset` values for fields that are not present in the document.
   */
  public const DENSITY_DENSE = 'DENSE';
  /**
   * The query scope is unspecified. Not a valid option.
   */
  public const QUERY_SCOPE_QUERY_SCOPE_UNSPECIFIED = 'QUERY_SCOPE_UNSPECIFIED';
  /**
   * Indexes with a collection query scope specified allow queries against a
   * collection that is the child of a specific document, specified at query
   * time, and that has the collection ID specified by the index.
   */
  public const QUERY_SCOPE_COLLECTION = 'COLLECTION';
  /**
   * Indexes with a collection group query scope specified allow queries against
   * all collections that has the collection ID specified by the index.
   */
  public const QUERY_SCOPE_COLLECTION_GROUP = 'COLLECTION_GROUP';
  /**
   * Include all the collections's ancestor in the index. Only available for
   * Datastore Mode databases.
   */
  public const QUERY_SCOPE_COLLECTION_RECURSIVE = 'COLLECTION_RECURSIVE';
  /**
   * The state is unspecified.
   */
  public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  /**
   * The index is being created. There is an active long-running operation for
   * the index. The index is updated when writing a document. Some index data
   * may exist.
   */
  public const STATE_CREATING = 'CREATING';
  /**
   * The index is ready to be used. The index is updated when writing a
   * document. The index is fully populated from all stored documents it applies
   * to.
   */
  public const STATE_READY = 'READY';
  /**
   * The index was being created, but something went wrong. There is no active
   * long-running operation for the index, and the most recently finished long-
   * running operation failed. The index is not updated when writing a document.
   * Some index data may exist. Use the google.longrunning.Operations API to
   * determine why the operation that last attempted to create this index
   * failed, then re-create the index.
   */
  public const STATE_NEEDS_REPAIR = 'NEEDS_REPAIR';
  protected $collection_key = 'fields';
  /**
   * The API scope supported by this index.
   *
   * @var string
   */
  public $apiScope;
  /**
   * Immutable. The density configuration of the index.
   *
   * @var string
   */
  public $density;
  protected $fieldsType = GoogleFirestoreAdminV1IndexField::class;
  protected $fieldsDataType = 'array';
  /**
   * Optional. Whether the index is multikey. By default, the index is not
   * multikey. For non-multikey indexes, none of the paths in the index
   * definition reach or traverse an array, except via an explicit array index.
   * For multikey indexes, at most one of the paths in the index definition
   * reach or traverse an array, except via an explicit array index. Violations
   * will result in errors. Note this field only applies to index with
   * MONGODB_COMPATIBLE_API ApiScope.
   *
   * @var bool
   */
  public $multikey;
  /**
   * Output only. A server defined name for this index. The form of this name
   * for composite indexes will be: `projects/{project_id}/databases/{database_i
   * d}/collectionGroups/{collection_id}/indexes/{composite_index_id}` For
   * single field indexes, this field will be empty.
   *
   * @var string
   */
  public $name;
  /**
   * Indexes with a collection query scope specified allow queries against a
   * collection that is the child of a specific document, specified at query
   * time, and that has the same collection ID. Indexes with a collection group
   * query scope specified allow queries against all collections descended from
   * a specific document, specified at query time, and that have the same
   * collection ID as this index.
   *
   * @var string
   */
  public $queryScope;
  protected $searchIndexOptionsType = GoogleFirestoreAdminV1SearchIndexOptions::class;
  protected $searchIndexOptionsDataType = '';
  /**
   * Optional. The number of shards for the index.
   *
   * @var int
   */
  public $shardCount;
  /**
   * Output only. The serving state of the index.
   *
   * @var string
   */
  public $state;
  /**
   * Optional. Whether it is an unique index. Unique index ensures all values
   * for the indexed field(s) are unique across documents.
   *
   * @var bool
   */
  public $unique;

  /**
   * The API scope supported by this index.
   *
   * Accepted values: ANY_API, DATASTORE_MODE_API, MONGODB_COMPATIBLE_API
   *
   * @param self::API_SCOPE_* $apiScope
   */
  public function setApiScope($apiScope)
  {
    $this->apiScope = $apiScope;
  }
  /**
   * @return self::API_SCOPE_*
   */
  public function getApiScope()
  {
    return $this->apiScope;
  }
  /**
   * Immutable. The density configuration of the index.
   *
   * Accepted values: DENSITY_UNSPECIFIED, SPARSE_ALL, SPARSE_ANY, DENSE
   *
   * @param self::DENSITY_* $density
   */
  public function setDensity($density)
  {
    $this->density = $density;
  }
  /**
   * @return self::DENSITY_*
   */
  public function getDensity()
  {
    return $this->density;
  }
  /**
   * The fields supported by this index. For composite indexes, this requires a
   * minimum of 2 and a maximum of 100 fields. The last field entry is always
   * for the field path `__name__`. If, on creation, `__name__` was not
   * specified as the last field, it will be added automatically with the same
   * direction as that of the last field defined. If the final field in a
   * composite index is not directional, the `__name__` will be ordered
   * ASCENDING (unless explicitly specified). For single field indexes, this
   * will always be exactly one entry with a field path equal to the field path
   * of the associated field.
   *
   * @param GoogleFirestoreAdminV1IndexField[] $fields
   */
  public function setFields($fields)
  {
    $this->fields = $fields;
  }
  /**
   * @return GoogleFirestoreAdminV1IndexField[]
   */
  public function getFields()
  {
    return $this->fields;
  }
  /**
   * Optional. Whether the index is multikey. By default, the index is not
   * multikey. For non-multikey indexes, none of the paths in the index
   * definition reach or traverse an array, except via an explicit array index.
   * For multikey indexes, at most one of the paths in the index definition
   * reach or traverse an array, except via an explicit array index. Violations
   * will result in errors. Note this field only applies to index with
   * MONGODB_COMPATIBLE_API ApiScope.
   *
   * @param bool $multikey
   */
  public function setMultikey($multikey)
  {
    $this->multikey = $multikey;
  }
  /**
   * @return bool
   */
  public function getMultikey()
  {
    return $this->multikey;
  }
  /**
   * Output only. A server defined name for this index. The form of this name
   * for composite indexes will be: `projects/{project_id}/databases/{database_i
   * d}/collectionGroups/{collection_id}/indexes/{composite_index_id}` For
   * single field indexes, this field will be empty.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Indexes with a collection query scope specified allow queries against a
   * collection that is the child of a specific document, specified at query
   * time, and that has the same collection ID. Indexes with a collection group
   * query scope specified allow queries against all collections descended from
   * a specific document, specified at query time, and that have the same
   * collection ID as this index.
   *
   * Accepted values: QUERY_SCOPE_UNSPECIFIED, COLLECTION, COLLECTION_GROUP,
   * COLLECTION_RECURSIVE
   *
   * @param self::QUERY_SCOPE_* $queryScope
   */
  public function setQueryScope($queryScope)
  {
    $this->queryScope = $queryScope;
  }
  /**
   * @return self::QUERY_SCOPE_*
   */
  public function getQueryScope()
  {
    return $this->queryScope;
  }
  /**
   * Optional. Options for search indexes that are at the index definition
   * level. This field is only currently supported for indexes with
   * MONGODB_COMPATIBLE_API ApiScope.
   *
   * @param GoogleFirestoreAdminV1SearchIndexOptions $searchIndexOptions
   */
  public function setSearchIndexOptions(GoogleFirestoreAdminV1SearchIndexOptions $searchIndexOptions)
  {
    $this->searchIndexOptions = $searchIndexOptions;
  }
  /**
   * @return GoogleFirestoreAdminV1SearchIndexOptions
   */
  public function getSearchIndexOptions()
  {
    return $this->searchIndexOptions;
  }
  /**
   * Optional. The number of shards for the index.
   *
   * @param int $shardCount
   */
  public function setShardCount($shardCount)
  {
    $this->shardCount = $shardCount;
  }
  /**
   * @return int
   */
  public function getShardCount()
  {
    return $this->shardCount;
  }
  /**
   * Output only. The serving state of the index.
   *
   * Accepted values: STATE_UNSPECIFIED, CREATING, READY, NEEDS_REPAIR
   *
   * @param self::STATE_* $state
   */
  public function setState($state)
  {
    $this->state = $state;
  }
  /**
   * @return self::STATE_*
   */
  public function getState()
  {
    return $this->state;
  }
  /**
   * Optional. Whether it is an unique index. Unique index ensures all values
   * for the indexed field(s) are unique across documents.
   *
   * @param bool $unique
   */
  public function setUnique($unique)
  {
    $this->unique = $unique;
  }
  /**
   * @return bool
   */
  public function getUnique()
  {
    return $this->unique;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFirestoreAdminV1Index::class, 'Google_Service_Firestore_GoogleFirestoreAdminV1Index');
← Back