📂 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: TargetChange.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 TargetChange extends \Google\Collection
{
  /**
   * No change has occurred. Used only to send an updated `resume_token`.
   */
  public const TARGET_CHANGE_TYPE_NO_CHANGE = 'NO_CHANGE';
  /**
   * The targets have been added.
   */
  public const TARGET_CHANGE_TYPE_ADD = 'ADD';
  /**
   * The targets have been removed.
   */
  public const TARGET_CHANGE_TYPE_REMOVE = 'REMOVE';
  /**
   * The targets reflect all changes committed before the targets were added to
   * the stream. This will be sent after or with a `read_time` that is greater
   * than or equal to the time at which the targets were added. Listeners can
   * wait for this change if read-after-write semantics are desired.
   */
  public const TARGET_CHANGE_TYPE_CURRENT = 'CURRENT';
  /**
   * The targets have been reset, and a new initial state for the targets will
   * be returned in subsequent changes. After the initial state is complete,
   * `CURRENT` will be returned even if the target was previously indicated to
   * be `CURRENT`.
   */
  public const TARGET_CHANGE_TYPE_RESET = 'RESET';
  protected $collection_key = 'targetIds';
  protected $causeType = Status::class;
  protected $causeDataType = '';
  /**
   * The consistent `read_time` for the given `target_ids` (omitted when the
   * target_ids are not at a consistent snapshot). The stream is guaranteed to
   * send a `read_time` with `target_ids` empty whenever the entire stream
   * reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are
   * guaranteed to (eventually) result in a new consistent snapshot (while
   * NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is
   * guaranteed to be monotonically increasing.
   *
   * @var string
   */
  public $readTime;
  /**
   * A token that can be used to resume the stream for the given `target_ids`,
   * or all targets if `target_ids` is empty. Not set on every target change.
   *
   * @var string
   */
  public $resumeToken;
  /**
   * The type of change that occurred.
   *
   * @var string
   */
  public $targetChangeType;
  /**
   * The target IDs of targets that have changed. If empty, the change applies
   * to all targets. The order of the target IDs is not defined.
   *
   * @var int[]
   */
  public $targetIds;

  /**
   * The error that resulted in this change, if applicable.
   *
   * @param Status $cause
   */
  public function setCause(Status $cause)
  {
    $this->cause = $cause;
  }
  /**
   * @return Status
   */
  public function getCause()
  {
    return $this->cause;
  }
  /**
   * The consistent `read_time` for the given `target_ids` (omitted when the
   * target_ids are not at a consistent snapshot). The stream is guaranteed to
   * send a `read_time` with `target_ids` empty whenever the entire stream
   * reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are
   * guaranteed to (eventually) result in a new consistent snapshot (while
   * NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is
   * guaranteed to be monotonically increasing.
   *
   * @param string $readTime
   */
  public function setReadTime($readTime)
  {
    $this->readTime = $readTime;
  }
  /**
   * @return string
   */
  public function getReadTime()
  {
    return $this->readTime;
  }
  /**
   * A token that can be used to resume the stream for the given `target_ids`,
   * or all targets if `target_ids` is empty. Not set on every target change.
   *
   * @param string $resumeToken
   */
  public function setResumeToken($resumeToken)
  {
    $this->resumeToken = $resumeToken;
  }
  /**
   * @return string
   */
  public function getResumeToken()
  {
    return $this->resumeToken;
  }
  /**
   * The type of change that occurred.
   *
   * Accepted values: NO_CHANGE, ADD, REMOVE, CURRENT, RESET
   *
   * @param self::TARGET_CHANGE_TYPE_* $targetChangeType
   */
  public function setTargetChangeType($targetChangeType)
  {
    $this->targetChangeType = $targetChangeType;
  }
  /**
   * @return self::TARGET_CHANGE_TYPE_*
   */
  public function getTargetChangeType()
  {
    return $this->targetChangeType;
  }
  /**
   * The target IDs of targets that have changed. If empty, the change applies
   * to all targets. The order of the target IDs is not defined.
   *
   * @param int[] $targetIds
   */
  public function setTargetIds($targetIds)
  {
    $this->targetIds = $targetIds;
  }
  /**
   * @return int[]
   */
  public function getTargetIds()
  {
    return $this->targetIds;
  }
}

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