📂 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: FieldTransform.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 FieldTransform extends \Google\Model
{
  /**
   * Unspecified. This value must not be used.
   */
  public const SET_TO_SERVER_VALUE_SERVER_VALUE_UNSPECIFIED = 'SERVER_VALUE_UNSPECIFIED';
  /**
   * The time at which the server processed the request, with millisecond
   * precision. If used on multiple fields (same or different documents) in a
   * transaction, all the fields will get the same server timestamp.
   */
  public const SET_TO_SERVER_VALUE_REQUEST_TIME = 'REQUEST_TIME';
  protected $appendMissingElementsType = ArrayValue::class;
  protected $appendMissingElementsDataType = '';
  /**
   * The path of the field. See Document.fields for the field path syntax
   * reference.
   *
   * @var string
   */
  public $fieldPath;
  protected $incrementType = Value::class;
  protected $incrementDataType = '';
  protected $maximumType = Value::class;
  protected $maximumDataType = '';
  protected $minimumType = Value::class;
  protected $minimumDataType = '';
  protected $removeAllFromArrayType = ArrayValue::class;
  protected $removeAllFromArrayDataType = '';
  /**
   * Sets the field to the given server value.
   *
   * @var string
   */
  public $setToServerValue;

  /**
   * Append the given elements in order if they are not already present in the
   * current field value. If the field is not an array, or if the field does not
   * yet exist, it is first set to the empty array. Equivalent numbers of
   * different types (e.g. 3L and 3.0) are considered equal when checking if a
   * value is missing. NaN is equal to NaN, and Null is equal to Null. If the
   * input contains multiple equivalent values, only the first will be
   * considered. The corresponding transform_result will be the null value.
   *
   * @param ArrayValue $appendMissingElements
   */
  public function setAppendMissingElements(ArrayValue $appendMissingElements)
  {
    $this->appendMissingElements = $appendMissingElements;
  }
  /**
   * @return ArrayValue
   */
  public function getAppendMissingElements()
  {
    return $this->appendMissingElements;
  }
  /**
   * The path of the field. See Document.fields for the field path syntax
   * reference.
   *
   * @param string $fieldPath
   */
  public function setFieldPath($fieldPath)
  {
    $this->fieldPath = $fieldPath;
  }
  /**
   * @return string
   */
  public function getFieldPath()
  {
    return $this->fieldPath;
  }
  /**
   * Adds the given value to the field's current value. This must be an integer
   * or a double value. If the field is not an integer or double, or if the
   * field does not yet exist, the transformation will set the field to the
   * given value. If either of the given value or the current field value are
   * doubles, both values will be interpreted as doubles. Double arithmetic and
   * representation of double values follow IEEE 754 semantics. If there is
   * positive/negative integer overflow, the field is resolved to the largest
   * magnitude positive/negative integer.
   *
   * @param Value $increment
   */
  public function setIncrement(Value $increment)
  {
    $this->increment = $increment;
  }
  /**
   * @return Value
   */
  public function getIncrement()
  {
    return $this->increment;
  }
  /**
   * Sets the field to the maximum of its current value and the given value.
   * This must be an integer or a double value. If the field is not an integer
   * or double, or if the field does not yet exist, the transformation will set
   * the field to the given value. If a maximum operation is applied where the
   * field and the input value are of mixed types (that is - one is an integer
   * and one is a double) the field takes on the type of the larger operand. If
   * the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0,
   * 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero
   * input value is always the stored value. The maximum of any numeric value x
   * and NaN is NaN.
   *
   * @param Value $maximum
   */
  public function setMaximum(Value $maximum)
  {
    $this->maximum = $maximum;
  }
  /**
   * @return Value
   */
  public function getMaximum()
  {
    return $this->maximum;
  }
  /**
   * Sets the field to the minimum of its current value and the given value.
   * This must be an integer or a double value. If the field is not an integer
   * or double, or if the field does not yet exist, the transformation will set
   * the field to the input value. If a minimum operation is applied where the
   * field and the input value are of mixed types (that is - one is an integer
   * and one is a double) the field takes on the type of the smaller operand. If
   * the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0,
   * 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero
   * input value is always the stored value. The minimum of any numeric value x
   * and NaN is NaN.
   *
   * @param Value $minimum
   */
  public function setMinimum(Value $minimum)
  {
    $this->minimum = $minimum;
  }
  /**
   * @return Value
   */
  public function getMinimum()
  {
    return $this->minimum;
  }
  /**
   * Remove all of the given elements from the array in the field. If the field
   * is not an array, or if the field does not yet exist, it is set to the empty
   * array. Equivalent numbers of the different types (e.g. 3L and 3.0) are
   * considered equal when deciding whether an element should be removed. NaN is
   * equal to NaN, and Null is equal to Null. This will remove all equivalent
   * values if there are duplicates. The corresponding transform_result will be
   * the null value.
   *
   * @param ArrayValue $removeAllFromArray
   */
  public function setRemoveAllFromArray(ArrayValue $removeAllFromArray)
  {
    $this->removeAllFromArray = $removeAllFromArray;
  }
  /**
   * @return ArrayValue
   */
  public function getRemoveAllFromArray()
  {
    return $this->removeAllFromArray;
  }
  /**
   * Sets the field to the given server value.
   *
   * Accepted values: SERVER_VALUE_UNSPECIFIED, REQUEST_TIME
   *
   * @param self::SET_TO_SERVER_VALUE_* $setToServerValue
   */
  public function setSetToServerValue($setToServerValue)
  {
    $this->setToServerValue = $setToServerValue;
  }
  /**
   * @return self::SET_TO_SERVER_VALUE_*
   */
  public function getSetToServerValue()
  {
    return $this->setToServerValue;
  }
}

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