Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,92 @@
<?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\Datastore;
class Aggregation extends \Google\Model
{
/**
* @var string
*/
public $alias;
protected $avgType = Avg::class;
protected $avgDataType = '';
protected $countType = Count::class;
protected $countDataType = '';
protected $sumType = Sum::class;
protected $sumDataType = '';
/**
* @param string
*/
public function setAlias($alias)
{
$this->alias = $alias;
}
/**
* @return string
*/
public function getAlias()
{
return $this->alias;
}
/**
* @param Avg
*/
public function setAvg(Avg $avg)
{
$this->avg = $avg;
}
/**
* @return Avg
*/
public function getAvg()
{
return $this->avg;
}
/**
* @param Count
*/
public function setCount(Count $count)
{
$this->count = $count;
}
/**
* @return Count
*/
public function getCount()
{
return $this->count;
}
/**
* @param Sum
*/
public function setSum(Sum $sum)
{
$this->sum = $sum;
}
/**
* @return Sum
*/
public function getSum()
{
return $this->sum;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Aggregation::class, 'Google_Service_Datastore_Aggregation');
@@ -0,0 +1,59 @@
<?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\Datastore;
class AggregationQuery extends \Google\Collection
{
protected $collection_key = 'aggregations';
protected $aggregationsType = Aggregation::class;
protected $aggregationsDataType = 'array';
protected $nestedQueryType = Query::class;
protected $nestedQueryDataType = '';
/**
* @param Aggregation[]
*/
public function setAggregations($aggregations)
{
$this->aggregations = $aggregations;
}
/**
* @return Aggregation[]
*/
public function getAggregations()
{
return $this->aggregations;
}
/**
* @param Query
*/
public function setNestedQuery(Query $nestedQuery)
{
$this->nestedQuery = $nestedQuery;
}
/**
* @return Query
*/
public function getNestedQuery()
{
return $this->nestedQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregationQuery::class, 'Google_Service_Datastore_AggregationQuery');
@@ -0,0 +1,42 @@
<?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\Datastore;
class AggregationResult extends \Google\Model
{
protected $aggregatePropertiesType = Value::class;
protected $aggregatePropertiesDataType = 'map';
/**
* @param Value[]
*/
public function setAggregateProperties($aggregateProperties)
{
$this->aggregateProperties = $aggregateProperties;
}
/**
* @return Value[]
*/
public function getAggregateProperties()
{
return $this->aggregateProperties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregationResult::class, 'Google_Service_Datastore_AggregationResult');
@@ -0,0 +1,79 @@
<?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\Datastore;
class AggregationResultBatch extends \Google\Collection
{
protected $collection_key = 'aggregationResults';
protected $aggregationResultsType = AggregationResult::class;
protected $aggregationResultsDataType = 'array';
/**
* @var string
*/
public $moreResults;
/**
* @var string
*/
public $readTime;
/**
* @param AggregationResult[]
*/
public function setAggregationResults($aggregationResults)
{
$this->aggregationResults = $aggregationResults;
}
/**
* @return AggregationResult[]
*/
public function getAggregationResults()
{
return $this->aggregationResults;
}
/**
* @param string
*/
public function setMoreResults($moreResults)
{
$this->moreResults = $moreResults;
}
/**
* @return string
*/
public function getMoreResults()
{
return $this->moreResults;
}
/**
* @param string
*/
public function setReadTime($readTime)
{
$this->readTime = $readTime;
}
/**
* @return string
*/
public function getReadTime()
{
return $this->readTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregationResultBatch::class, 'Google_Service_Datastore_AggregationResultBatch');
@@ -0,0 +1,61 @@
<?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\Datastore;
class AllocateIdsRequest extends \Google\Collection
{
protected $collection_key = 'keys';
/**
* @var string
*/
public $databaseId;
protected $keysType = Key::class;
protected $keysDataType = 'array';
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param Key[]
*/
public function setKeys($keys)
{
$this->keys = $keys;
}
/**
* @return Key[]
*/
public function getKeys()
{
return $this->keys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocateIdsRequest::class, 'Google_Service_Datastore_AllocateIdsRequest');
@@ -0,0 +1,43 @@
<?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\Datastore;
class AllocateIdsResponse extends \Google\Collection
{
protected $collection_key = 'keys';
protected $keysType = Key::class;
protected $keysDataType = 'array';
/**
* @param Key[]
*/
public function setKeys($keys)
{
$this->keys = $keys;
}
/**
* @return Key[]
*/
public function getKeys()
{
return $this->keys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocateIdsResponse::class, 'Google_Service_Datastore_AllocateIdsResponse');
@@ -0,0 +1,43 @@
<?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\Datastore;
class ArrayValue extends \Google\Collection
{
protected $collection_key = 'values';
protected $valuesType = Value::class;
protected $valuesDataType = 'array';
/**
* @param Value[]
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return Value[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArrayValue::class, 'Google_Service_Datastore_ArrayValue');
@@ -0,0 +1,42 @@
<?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\Datastore;
class Avg extends \Google\Model
{
protected $propertyType = PropertyReference::class;
protected $propertyDataType = '';
/**
* @param PropertyReference
*/
public function setProperty(PropertyReference $property)
{
$this->property = $property;
}
/**
* @return PropertyReference
*/
public function getProperty()
{
return $this->property;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Avg::class, 'Google_Service_Datastore_Avg');
@@ -0,0 +1,60 @@
<?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\Datastore;
class BeginTransactionRequest extends \Google\Model
{
/**
* @var string
*/
public $databaseId;
protected $transactionOptionsType = TransactionOptions::class;
protected $transactionOptionsDataType = '';
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param TransactionOptions
*/
public function setTransactionOptions(TransactionOptions $transactionOptions)
{
$this->transactionOptions = $transactionOptions;
}
/**
* @return TransactionOptions
*/
public function getTransactionOptions()
{
return $this->transactionOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BeginTransactionRequest::class, 'Google_Service_Datastore_BeginTransactionRequest');
@@ -0,0 +1,44 @@
<?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\Datastore;
class BeginTransactionResponse extends \Google\Model
{
/**
* @var string
*/
public $transaction;
/**
* @param string
*/
public function setTransaction($transaction)
{
$this->transaction = $transaction;
}
/**
* @return string
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BeginTransactionResponse::class, 'Google_Service_Datastore_BeginTransactionResponse');
@@ -0,0 +1,113 @@
<?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\Datastore;
class CommitRequest extends \Google\Collection
{
protected $collection_key = 'mutations';
/**
* @var string
*/
public $databaseId;
/**
* @var string
*/
public $mode;
protected $mutationsType = Mutation::class;
protected $mutationsDataType = 'array';
protected $singleUseTransactionType = TransactionOptions::class;
protected $singleUseTransactionDataType = '';
/**
* @var string
*/
public $transaction;
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param string
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* @param Mutation[]
*/
public function setMutations($mutations)
{
$this->mutations = $mutations;
}
/**
* @return Mutation[]
*/
public function getMutations()
{
return $this->mutations;
}
/**
* @param TransactionOptions
*/
public function setSingleUseTransaction(TransactionOptions $singleUseTransaction)
{
$this->singleUseTransaction = $singleUseTransaction;
}
/**
* @return TransactionOptions
*/
public function getSingleUseTransaction()
{
return $this->singleUseTransaction;
}
/**
* @param string
*/
public function setTransaction($transaction)
{
$this->transaction = $transaction;
}
/**
* @return string
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitRequest::class, 'Google_Service_Datastore_CommitRequest');
@@ -0,0 +1,79 @@
<?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\Datastore;
class CommitResponse extends \Google\Collection
{
protected $collection_key = 'mutationResults';
/**
* @var string
*/
public $commitTime;
/**
* @var int
*/
public $indexUpdates;
protected $mutationResultsType = MutationResult::class;
protected $mutationResultsDataType = 'array';
/**
* @param string
*/
public function setCommitTime($commitTime)
{
$this->commitTime = $commitTime;
}
/**
* @return string
*/
public function getCommitTime()
{
return $this->commitTime;
}
/**
* @param int
*/
public function setIndexUpdates($indexUpdates)
{
$this->indexUpdates = $indexUpdates;
}
/**
* @return int
*/
public function getIndexUpdates()
{
return $this->indexUpdates;
}
/**
* @param MutationResult[]
*/
public function setMutationResults($mutationResults)
{
$this->mutationResults = $mutationResults;
}
/**
* @return MutationResult[]
*/
public function getMutationResults()
{
return $this->mutationResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CommitResponse::class, 'Google_Service_Datastore_CommitResponse');
@@ -0,0 +1,61 @@
<?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\Datastore;
class CompositeFilter extends \Google\Collection
{
protected $collection_key = 'filters';
protected $filtersType = Filter::class;
protected $filtersDataType = 'array';
/**
* @var string
*/
public $op;
/**
* @param Filter[]
*/
public function setFilters($filters)
{
$this->filters = $filters;
}
/**
* @return Filter[]
*/
public function getFilters()
{
return $this->filters;
}
/**
* @param string
*/
public function setOp($op)
{
$this->op = $op;
}
/**
* @return string
*/
public function getOp()
{
return $this->op;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompositeFilter::class, 'Google_Service_Datastore_CompositeFilter');
@@ -0,0 +1,44 @@
<?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\Datastore;
class Count extends \Google\Model
{
/**
* @var string
*/
public $upTo;
/**
* @param string
*/
public function setUpTo($upTo)
{
$this->upTo = $upTo;
}
/**
* @return string
*/
public function getUpTo()
{
return $this->upTo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Count::class, 'Google_Service_Datastore_Count');
@@ -0,0 +1,25 @@
<?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\Datastore;
class DatastoreEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatastoreEmpty::class, 'Google_Service_Datastore_DatastoreEmpty');
@@ -0,0 +1,44 @@
<?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\Datastore;
class DatastoreReadOnly extends \Google\Model
{
/**
* @var string
*/
public $readTime;
/**
* @param string
*/
public function setReadTime($readTime)
{
$this->readTime = $readTime;
}
/**
* @return string
*/
public function getReadTime()
{
return $this->readTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatastoreReadOnly::class, 'Google_Service_Datastore_DatastoreReadOnly');
@@ -0,0 +1,58 @@
<?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\Datastore;
class Entity extends \Google\Model
{
protected $keyType = Key::class;
protected $keyDataType = '';
protected $propertiesType = Value::class;
protected $propertiesDataType = 'map';
/**
* @param Key
*/
public function setKey(Key $key)
{
$this->key = $key;
}
/**
* @return Key
*/
public function getKey()
{
return $this->key;
}
/**
* @param Value[]
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return Value[]
*/
public function getProperties()
{
return $this->properties;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entity::class, 'Google_Service_Datastore_Entity');
@@ -0,0 +1,114 @@
<?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\Datastore;
class EntityResult extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $cursor;
protected $entityType = Entity::class;
protected $entityDataType = '';
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setCursor($cursor)
{
$this->cursor = $cursor;
}
/**
* @return string
*/
public function getCursor()
{
return $this->cursor;
}
/**
* @param Entity
*/
public function setEntity(Entity $entity)
{
$this->entity = $entity;
}
/**
* @return Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityResult::class, 'Google_Service_Datastore_EntityResult');
@@ -0,0 +1,98 @@
<?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\Datastore;
class ExecutionStats extends \Google\Model
{
/**
* @var array[]
*/
public $debugStats;
/**
* @var string
*/
public $executionDuration;
/**
* @var string
*/
public $readOperations;
/**
* @var string
*/
public $resultsReturned;
/**
* @param array[]
*/
public function setDebugStats($debugStats)
{
$this->debugStats = $debugStats;
}
/**
* @return array[]
*/
public function getDebugStats()
{
return $this->debugStats;
}
/**
* @param string
*/
public function setExecutionDuration($executionDuration)
{
$this->executionDuration = $executionDuration;
}
/**
* @return string
*/
public function getExecutionDuration()
{
return $this->executionDuration;
}
/**
* @param string
*/
public function setReadOperations($readOperations)
{
$this->readOperations = $readOperations;
}
/**
* @return string
*/
public function getReadOperations()
{
return $this->readOperations;
}
/**
* @param string
*/
public function setResultsReturned($resultsReturned)
{
$this->resultsReturned = $resultsReturned;
}
/**
* @return string
*/
public function getResultsReturned()
{
return $this->resultsReturned;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecutionStats::class, 'Google_Service_Datastore_ExecutionStats');
@@ -0,0 +1,58 @@
<?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\Datastore;
class ExplainMetrics extends \Google\Model
{
protected $executionStatsType = ExecutionStats::class;
protected $executionStatsDataType = '';
protected $planSummaryType = PlanSummary::class;
protected $planSummaryDataType = '';
/**
* @param ExecutionStats
*/
public function setExecutionStats(ExecutionStats $executionStats)
{
$this->executionStats = $executionStats;
}
/**
* @return ExecutionStats
*/
public function getExecutionStats()
{
return $this->executionStats;
}
/**
* @param PlanSummary
*/
public function setPlanSummary(PlanSummary $planSummary)
{
$this->planSummary = $planSummary;
}
/**
* @return PlanSummary
*/
public function getPlanSummary()
{
return $this->planSummary;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExplainMetrics::class, 'Google_Service_Datastore_ExplainMetrics');
@@ -0,0 +1,44 @@
<?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\Datastore;
class ExplainOptions extends \Google\Model
{
/**
* @var bool
*/
public $analyze;
/**
* @param bool
*/
public function setAnalyze($analyze)
{
$this->analyze = $analyze;
}
/**
* @return bool
*/
public function getAnalyze()
{
return $this->analyze;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExplainOptions::class, 'Google_Service_Datastore_ExplainOptions');
@@ -0,0 +1,58 @@
<?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\Datastore;
class Filter extends \Google\Model
{
protected $compositeFilterType = CompositeFilter::class;
protected $compositeFilterDataType = '';
protected $propertyFilterType = PropertyFilter::class;
protected $propertyFilterDataType = '';
/**
* @param CompositeFilter
*/
public function setCompositeFilter(CompositeFilter $compositeFilter)
{
$this->compositeFilter = $compositeFilter;
}
/**
* @return CompositeFilter
*/
public function getCompositeFilter()
{
return $this->compositeFilter;
}
/**
* @param PropertyFilter
*/
public function setPropertyFilter(PropertyFilter $propertyFilter)
{
$this->propertyFilter = $propertyFilter;
}
/**
* @return PropertyFilter
*/
public function getPropertyFilter()
{
return $this->propertyFilter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Filter::class, 'Google_Service_Datastore_Filter');
@@ -0,0 +1,121 @@
<?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\Datastore;
class FindNearest extends \Google\Model
{
/**
* @var string
*/
public $distanceMeasure;
/**
* @var string
*/
public $distanceResultProperty;
public $distanceThreshold;
/**
* @var int
*/
public $limit;
protected $queryVectorType = Value::class;
protected $queryVectorDataType = '';
protected $vectorPropertyType = PropertyReference::class;
protected $vectorPropertyDataType = '';
/**
* @param string
*/
public function setDistanceMeasure($distanceMeasure)
{
$this->distanceMeasure = $distanceMeasure;
}
/**
* @return string
*/
public function getDistanceMeasure()
{
return $this->distanceMeasure;
}
/**
* @param string
*/
public function setDistanceResultProperty($distanceResultProperty)
{
$this->distanceResultProperty = $distanceResultProperty;
}
/**
* @return string
*/
public function getDistanceResultProperty()
{
return $this->distanceResultProperty;
}
public function setDistanceThreshold($distanceThreshold)
{
$this->distanceThreshold = $distanceThreshold;
}
public function getDistanceThreshold()
{
return $this->distanceThreshold;
}
/**
* @param int
*/
public function setLimit($limit)
{
$this->limit = $limit;
}
/**
* @return int
*/
public function getLimit()
{
return $this->limit;
}
/**
* @param Value
*/
public function setQueryVector(Value $queryVector)
{
$this->queryVector = $queryVector;
}
/**
* @return Value
*/
public function getQueryVector()
{
return $this->queryVector;
}
/**
* @param PropertyReference
*/
public function setVectorProperty(PropertyReference $vectorProperty)
{
$this->vectorProperty = $vectorProperty;
}
/**
* @return PropertyReference
*/
public function getVectorProperty()
{
return $this->vectorProperty;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FindNearest::class, 'Google_Service_Datastore_FindNearest');
@@ -0,0 +1,116 @@
<?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\Datastore;
class GoogleDatastoreAdminV1CommonMetadata extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $operationType;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return string
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1CommonMetadata::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1CommonMetadata');
@@ -0,0 +1,62 @@
<?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\Datastore;
class GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata extends \Google\Model
{
/**
* @var string
*/
public $migrationState;
/**
* @var string
*/
public $migrationStep;
/**
* @param string
*/
public function setMigrationState($migrationState)
{
$this->migrationState = $migrationState;
}
/**
* @return string
*/
public function getMigrationState()
{
return $this->migrationState;
}
/**
* @param string
*/
public function setMigrationStep($migrationStep)
{
$this->migrationStep = $migrationStep;
}
/**
* @return string
*/
public function getMigrationStep()
{
return $this->migrationStep;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1DatastoreFirestoreMigrationMetadata');
@@ -0,0 +1,63 @@
<?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\Datastore;
class GoogleDatastoreAdminV1EntityFilter extends \Google\Collection
{
protected $collection_key = 'namespaceIds';
/**
* @var string[]
*/
public $kinds;
/**
* @var string[]
*/
public $namespaceIds;
/**
* @param string[]
*/
public function setKinds($kinds)
{
$this->kinds = $kinds;
}
/**
* @return string[]
*/
public function getKinds()
{
return $this->kinds;
}
/**
* @param string[]
*/
public function setNamespaceIds($namespaceIds)
{
$this->namespaceIds = $namespaceIds;
}
/**
* @return string[]
*/
public function getNamespaceIds()
{
return $this->namespaceIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1EntityFilter::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1EntityFilter');
@@ -0,0 +1,108 @@
<?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\Datastore;
class GoogleDatastoreAdminV1ExportEntitiesMetadata extends \Google\Model
{
protected $commonType = GoogleDatastoreAdminV1CommonMetadata::class;
protected $commonDataType = '';
protected $entityFilterType = GoogleDatastoreAdminV1EntityFilter::class;
protected $entityFilterDataType = '';
/**
* @var string
*/
public $outputUrlPrefix;
protected $progressBytesType = GoogleDatastoreAdminV1Progress::class;
protected $progressBytesDataType = '';
protected $progressEntitiesType = GoogleDatastoreAdminV1Progress::class;
protected $progressEntitiesDataType = '';
/**
* @param GoogleDatastoreAdminV1CommonMetadata
*/
public function setCommon(GoogleDatastoreAdminV1CommonMetadata $common)
{
$this->common = $common;
}
/**
* @return GoogleDatastoreAdminV1CommonMetadata
*/
public function getCommon()
{
return $this->common;
}
/**
* @param GoogleDatastoreAdminV1EntityFilter
*/
public function setEntityFilter(GoogleDatastoreAdminV1EntityFilter $entityFilter)
{
$this->entityFilter = $entityFilter;
}
/**
* @return GoogleDatastoreAdminV1EntityFilter
*/
public function getEntityFilter()
{
return $this->entityFilter;
}
/**
* @param string
*/
public function setOutputUrlPrefix($outputUrlPrefix)
{
$this->outputUrlPrefix = $outputUrlPrefix;
}
/**
* @return string
*/
public function getOutputUrlPrefix()
{
return $this->outputUrlPrefix;
}
/**
* @param GoogleDatastoreAdminV1Progress
*/
public function setProgressBytes(GoogleDatastoreAdminV1Progress $progressBytes)
{
$this->progressBytes = $progressBytes;
}
/**
* @return GoogleDatastoreAdminV1Progress
*/
public function getProgressBytes()
{
return $this->progressBytes;
}
/**
* @param GoogleDatastoreAdminV1Progress
*/
public function setProgressEntities(GoogleDatastoreAdminV1Progress $progressEntities)
{
$this->progressEntities = $progressEntities;
}
/**
* @return GoogleDatastoreAdminV1Progress
*/
public function getProgressEntities()
{
return $this->progressEntities;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1ExportEntitiesMetadata::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1ExportEntitiesMetadata');
@@ -0,0 +1,78 @@
<?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\Datastore;
class GoogleDatastoreAdminV1ExportEntitiesRequest extends \Google\Model
{
protected $entityFilterType = GoogleDatastoreAdminV1EntityFilter::class;
protected $entityFilterDataType = '';
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $outputUrlPrefix;
/**
* @param GoogleDatastoreAdminV1EntityFilter
*/
public function setEntityFilter(GoogleDatastoreAdminV1EntityFilter $entityFilter)
{
$this->entityFilter = $entityFilter;
}
/**
* @return GoogleDatastoreAdminV1EntityFilter
*/
public function getEntityFilter()
{
return $this->entityFilter;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setOutputUrlPrefix($outputUrlPrefix)
{
$this->outputUrlPrefix = $outputUrlPrefix;
}
/**
* @return string
*/
public function getOutputUrlPrefix()
{
return $this->outputUrlPrefix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1ExportEntitiesRequest::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1ExportEntitiesRequest');
@@ -0,0 +1,44 @@
<?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\Datastore;
class GoogleDatastoreAdminV1ExportEntitiesResponse extends \Google\Model
{
/**
* @var string
*/
public $outputUrl;
/**
* @param string
*/
public function setOutputUrl($outputUrl)
{
$this->outputUrl = $outputUrl;
}
/**
* @return string
*/
public function getOutputUrl()
{
return $this->outputUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1ExportEntitiesResponse::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1ExportEntitiesResponse');
@@ -0,0 +1,108 @@
<?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\Datastore;
class GoogleDatastoreAdminV1ImportEntitiesMetadata extends \Google\Model
{
protected $commonType = GoogleDatastoreAdminV1CommonMetadata::class;
protected $commonDataType = '';
protected $entityFilterType = GoogleDatastoreAdminV1EntityFilter::class;
protected $entityFilterDataType = '';
/**
* @var string
*/
public $inputUrl;
protected $progressBytesType = GoogleDatastoreAdminV1Progress::class;
protected $progressBytesDataType = '';
protected $progressEntitiesType = GoogleDatastoreAdminV1Progress::class;
protected $progressEntitiesDataType = '';
/**
* @param GoogleDatastoreAdminV1CommonMetadata
*/
public function setCommon(GoogleDatastoreAdminV1CommonMetadata $common)
{
$this->common = $common;
}
/**
* @return GoogleDatastoreAdminV1CommonMetadata
*/
public function getCommon()
{
return $this->common;
}
/**
* @param GoogleDatastoreAdminV1EntityFilter
*/
public function setEntityFilter(GoogleDatastoreAdminV1EntityFilter $entityFilter)
{
$this->entityFilter = $entityFilter;
}
/**
* @return GoogleDatastoreAdminV1EntityFilter
*/
public function getEntityFilter()
{
return $this->entityFilter;
}
/**
* @param string
*/
public function setInputUrl($inputUrl)
{
$this->inputUrl = $inputUrl;
}
/**
* @return string
*/
public function getInputUrl()
{
return $this->inputUrl;
}
/**
* @param GoogleDatastoreAdminV1Progress
*/
public function setProgressBytes(GoogleDatastoreAdminV1Progress $progressBytes)
{
$this->progressBytes = $progressBytes;
}
/**
* @return GoogleDatastoreAdminV1Progress
*/
public function getProgressBytes()
{
return $this->progressBytes;
}
/**
* @param GoogleDatastoreAdminV1Progress
*/
public function setProgressEntities(GoogleDatastoreAdminV1Progress $progressEntities)
{
$this->progressEntities = $progressEntities;
}
/**
* @return GoogleDatastoreAdminV1Progress
*/
public function getProgressEntities()
{
return $this->progressEntities;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1ImportEntitiesMetadata::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1ImportEntitiesMetadata');
@@ -0,0 +1,78 @@
<?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\Datastore;
class GoogleDatastoreAdminV1ImportEntitiesRequest extends \Google\Model
{
protected $entityFilterType = GoogleDatastoreAdminV1EntityFilter::class;
protected $entityFilterDataType = '';
/**
* @var string
*/
public $inputUrl;
/**
* @var string[]
*/
public $labels;
/**
* @param GoogleDatastoreAdminV1EntityFilter
*/
public function setEntityFilter(GoogleDatastoreAdminV1EntityFilter $entityFilter)
{
$this->entityFilter = $entityFilter;
}
/**
* @return GoogleDatastoreAdminV1EntityFilter
*/
public function getEntityFilter()
{
return $this->entityFilter;
}
/**
* @param string
*/
public function setInputUrl($inputUrl)
{
$this->inputUrl = $inputUrl;
}
/**
* @return string
*/
public function getInputUrl()
{
return $this->inputUrl;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1ImportEntitiesRequest::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1ImportEntitiesRequest');
@@ -0,0 +1,133 @@
<?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\Datastore;
class GoogleDatastoreAdminV1Index extends \Google\Collection
{
protected $collection_key = 'properties';
/**
* @var string
*/
public $ancestor;
/**
* @var string
*/
public $indexId;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $projectId;
protected $propertiesType = GoogleDatastoreAdminV1IndexedProperty::class;
protected $propertiesDataType = 'array';
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setAncestor($ancestor)
{
$this->ancestor = $ancestor;
}
/**
* @return string
*/
public function getAncestor()
{
return $this->ancestor;
}
/**
* @param string
*/
public function setIndexId($indexId)
{
$this->indexId = $indexId;
}
/**
* @return string
*/
public function getIndexId()
{
return $this->indexId;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param GoogleDatastoreAdminV1IndexedProperty[]
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return GoogleDatastoreAdminV1IndexedProperty[]
*/
public function getProperties()
{
return $this->properties;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1Index::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1Index');
@@ -0,0 +1,76 @@
<?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\Datastore;
class GoogleDatastoreAdminV1IndexOperationMetadata extends \Google\Model
{
protected $commonType = GoogleDatastoreAdminV1CommonMetadata::class;
protected $commonDataType = '';
/**
* @var string
*/
public $indexId;
protected $progressEntitiesType = GoogleDatastoreAdminV1Progress::class;
protected $progressEntitiesDataType = '';
/**
* @param GoogleDatastoreAdminV1CommonMetadata
*/
public function setCommon(GoogleDatastoreAdminV1CommonMetadata $common)
{
$this->common = $common;
}
/**
* @return GoogleDatastoreAdminV1CommonMetadata
*/
public function getCommon()
{
return $this->common;
}
/**
* @param string
*/
public function setIndexId($indexId)
{
$this->indexId = $indexId;
}
/**
* @return string
*/
public function getIndexId()
{
return $this->indexId;
}
/**
* @param GoogleDatastoreAdminV1Progress
*/
public function setProgressEntities(GoogleDatastoreAdminV1Progress $progressEntities)
{
$this->progressEntities = $progressEntities;
}
/**
* @return GoogleDatastoreAdminV1Progress
*/
public function getProgressEntities()
{
return $this->progressEntities;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1IndexOperationMetadata::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1IndexOperationMetadata');
@@ -0,0 +1,62 @@
<?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\Datastore;
class GoogleDatastoreAdminV1IndexedProperty extends \Google\Model
{
/**
* @var string
*/
public $direction;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDirection($direction)
{
$this->direction = $direction;
}
/**
* @return string
*/
public function getDirection()
{
return $this->direction;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1IndexedProperty::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1IndexedProperty');
@@ -0,0 +1,61 @@
<?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\Datastore;
class GoogleDatastoreAdminV1ListIndexesResponse extends \Google\Collection
{
protected $collection_key = 'indexes';
protected $indexesType = GoogleDatastoreAdminV1Index::class;
protected $indexesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleDatastoreAdminV1Index[]
*/
public function setIndexes($indexes)
{
$this->indexes = $indexes;
}
/**
* @return GoogleDatastoreAdminV1Index[]
*/
public function getIndexes()
{
return $this->indexes;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1ListIndexesResponse::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1ListIndexesResponse');
@@ -0,0 +1,76 @@
<?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\Datastore;
class GoogleDatastoreAdminV1MigrationProgressEvent extends \Google\Model
{
protected $prepareStepDetailsType = GoogleDatastoreAdminV1PrepareStepDetails::class;
protected $prepareStepDetailsDataType = '';
protected $redirectWritesStepDetailsType = GoogleDatastoreAdminV1RedirectWritesStepDetails::class;
protected $redirectWritesStepDetailsDataType = '';
/**
* @var string
*/
public $step;
/**
* @param GoogleDatastoreAdminV1PrepareStepDetails
*/
public function setPrepareStepDetails(GoogleDatastoreAdminV1PrepareStepDetails $prepareStepDetails)
{
$this->prepareStepDetails = $prepareStepDetails;
}
/**
* @return GoogleDatastoreAdminV1PrepareStepDetails
*/
public function getPrepareStepDetails()
{
return $this->prepareStepDetails;
}
/**
* @param GoogleDatastoreAdminV1RedirectWritesStepDetails
*/
public function setRedirectWritesStepDetails(GoogleDatastoreAdminV1RedirectWritesStepDetails $redirectWritesStepDetails)
{
$this->redirectWritesStepDetails = $redirectWritesStepDetails;
}
/**
* @return GoogleDatastoreAdminV1RedirectWritesStepDetails
*/
public function getRedirectWritesStepDetails()
{
return $this->redirectWritesStepDetails;
}
/**
* @param string
*/
public function setStep($step)
{
$this->step = $step;
}
/**
* @return string
*/
public function getStep()
{
return $this->step;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1MigrationProgressEvent::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1MigrationProgressEvent');
@@ -0,0 +1,44 @@
<?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\Datastore;
class GoogleDatastoreAdminV1MigrationStateEvent extends \Google\Model
{
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1MigrationStateEvent::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1MigrationStateEvent');
@@ -0,0 +1,44 @@
<?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\Datastore;
class GoogleDatastoreAdminV1PrepareStepDetails extends \Google\Model
{
/**
* @var string
*/
public $concurrencyMode;
/**
* @param string
*/
public function setConcurrencyMode($concurrencyMode)
{
$this->concurrencyMode = $concurrencyMode;
}
/**
* @return string
*/
public function getConcurrencyMode()
{
return $this->concurrencyMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1PrepareStepDetails::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1PrepareStepDetails');
@@ -0,0 +1,62 @@
<?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\Datastore;
class GoogleDatastoreAdminV1Progress extends \Google\Model
{
/**
* @var string
*/
public $workCompleted;
/**
* @var string
*/
public $workEstimated;
/**
* @param string
*/
public function setWorkCompleted($workCompleted)
{
$this->workCompleted = $workCompleted;
}
/**
* @return string
*/
public function getWorkCompleted()
{
return $this->workCompleted;
}
/**
* @param string
*/
public function setWorkEstimated($workEstimated)
{
$this->workEstimated = $workEstimated;
}
/**
* @return string
*/
public function getWorkEstimated()
{
return $this->workEstimated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1Progress::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1Progress');
@@ -0,0 +1,44 @@
<?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\Datastore;
class GoogleDatastoreAdminV1RedirectWritesStepDetails extends \Google\Model
{
/**
* @var string
*/
public $concurrencyMode;
/**
* @param string
*/
public function setConcurrencyMode($concurrencyMode)
{
$this->concurrencyMode = $concurrencyMode;
}
/**
* @return string
*/
public function getConcurrencyMode()
{
return $this->concurrencyMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1RedirectWritesStepDetails::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1RedirectWritesStepDetails');
@@ -0,0 +1,116 @@
<?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\Datastore;
class GoogleDatastoreAdminV1beta1CommonMetadata extends \Google\Model
{
/**
* @var string
*/
public $endTime;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $operationType;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
/**
* @return string
*/
public function getOperationType()
{
return $this->operationType;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1beta1CommonMetadata::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1beta1CommonMetadata');
@@ -0,0 +1,63 @@
<?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\Datastore;
class GoogleDatastoreAdminV1beta1EntityFilter extends \Google\Collection
{
protected $collection_key = 'namespaceIds';
/**
* @var string[]
*/
public $kinds;
/**
* @var string[]
*/
public $namespaceIds;
/**
* @param string[]
*/
public function setKinds($kinds)
{
$this->kinds = $kinds;
}
/**
* @return string[]
*/
public function getKinds()
{
return $this->kinds;
}
/**
* @param string[]
*/
public function setNamespaceIds($namespaceIds)
{
$this->namespaceIds = $namespaceIds;
}
/**
* @return string[]
*/
public function getNamespaceIds()
{
return $this->namespaceIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1beta1EntityFilter::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1beta1EntityFilter');
@@ -0,0 +1,108 @@
<?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\Datastore;
class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata extends \Google\Model
{
protected $commonType = GoogleDatastoreAdminV1beta1CommonMetadata::class;
protected $commonDataType = '';
protected $entityFilterType = GoogleDatastoreAdminV1beta1EntityFilter::class;
protected $entityFilterDataType = '';
/**
* @var string
*/
public $outputUrlPrefix;
protected $progressBytesType = GoogleDatastoreAdminV1beta1Progress::class;
protected $progressBytesDataType = '';
protected $progressEntitiesType = GoogleDatastoreAdminV1beta1Progress::class;
protected $progressEntitiesDataType = '';
/**
* @param GoogleDatastoreAdminV1beta1CommonMetadata
*/
public function setCommon(GoogleDatastoreAdminV1beta1CommonMetadata $common)
{
$this->common = $common;
}
/**
* @return GoogleDatastoreAdminV1beta1CommonMetadata
*/
public function getCommon()
{
return $this->common;
}
/**
* @param GoogleDatastoreAdminV1beta1EntityFilter
*/
public function setEntityFilter(GoogleDatastoreAdminV1beta1EntityFilter $entityFilter)
{
$this->entityFilter = $entityFilter;
}
/**
* @return GoogleDatastoreAdminV1beta1EntityFilter
*/
public function getEntityFilter()
{
return $this->entityFilter;
}
/**
* @param string
*/
public function setOutputUrlPrefix($outputUrlPrefix)
{
$this->outputUrlPrefix = $outputUrlPrefix;
}
/**
* @return string
*/
public function getOutputUrlPrefix()
{
return $this->outputUrlPrefix;
}
/**
* @param GoogleDatastoreAdminV1beta1Progress
*/
public function setProgressBytes(GoogleDatastoreAdminV1beta1Progress $progressBytes)
{
$this->progressBytes = $progressBytes;
}
/**
* @return GoogleDatastoreAdminV1beta1Progress
*/
public function getProgressBytes()
{
return $this->progressBytes;
}
/**
* @param GoogleDatastoreAdminV1beta1Progress
*/
public function setProgressEntities(GoogleDatastoreAdminV1beta1Progress $progressEntities)
{
$this->progressEntities = $progressEntities;
}
/**
* @return GoogleDatastoreAdminV1beta1Progress
*/
public function getProgressEntities()
{
return $this->progressEntities;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1beta1ExportEntitiesMetadata::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1beta1ExportEntitiesMetadata');
@@ -0,0 +1,44 @@
<?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\Datastore;
class GoogleDatastoreAdminV1beta1ExportEntitiesResponse extends \Google\Model
{
/**
* @var string
*/
public $outputUrl;
/**
* @param string
*/
public function setOutputUrl($outputUrl)
{
$this->outputUrl = $outputUrl;
}
/**
* @return string
*/
public function getOutputUrl()
{
return $this->outputUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1beta1ExportEntitiesResponse::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1beta1ExportEntitiesResponse');
@@ -0,0 +1,108 @@
<?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\Datastore;
class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata extends \Google\Model
{
protected $commonType = GoogleDatastoreAdminV1beta1CommonMetadata::class;
protected $commonDataType = '';
protected $entityFilterType = GoogleDatastoreAdminV1beta1EntityFilter::class;
protected $entityFilterDataType = '';
/**
* @var string
*/
public $inputUrl;
protected $progressBytesType = GoogleDatastoreAdminV1beta1Progress::class;
protected $progressBytesDataType = '';
protected $progressEntitiesType = GoogleDatastoreAdminV1beta1Progress::class;
protected $progressEntitiesDataType = '';
/**
* @param GoogleDatastoreAdminV1beta1CommonMetadata
*/
public function setCommon(GoogleDatastoreAdminV1beta1CommonMetadata $common)
{
$this->common = $common;
}
/**
* @return GoogleDatastoreAdminV1beta1CommonMetadata
*/
public function getCommon()
{
return $this->common;
}
/**
* @param GoogleDatastoreAdminV1beta1EntityFilter
*/
public function setEntityFilter(GoogleDatastoreAdminV1beta1EntityFilter $entityFilter)
{
$this->entityFilter = $entityFilter;
}
/**
* @return GoogleDatastoreAdminV1beta1EntityFilter
*/
public function getEntityFilter()
{
return $this->entityFilter;
}
/**
* @param string
*/
public function setInputUrl($inputUrl)
{
$this->inputUrl = $inputUrl;
}
/**
* @return string
*/
public function getInputUrl()
{
return $this->inputUrl;
}
/**
* @param GoogleDatastoreAdminV1beta1Progress
*/
public function setProgressBytes(GoogleDatastoreAdminV1beta1Progress $progressBytes)
{
$this->progressBytes = $progressBytes;
}
/**
* @return GoogleDatastoreAdminV1beta1Progress
*/
public function getProgressBytes()
{
return $this->progressBytes;
}
/**
* @param GoogleDatastoreAdminV1beta1Progress
*/
public function setProgressEntities(GoogleDatastoreAdminV1beta1Progress $progressEntities)
{
$this->progressEntities = $progressEntities;
}
/**
* @return GoogleDatastoreAdminV1beta1Progress
*/
public function getProgressEntities()
{
return $this->progressEntities;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1beta1ImportEntitiesMetadata::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1beta1ImportEntitiesMetadata');
@@ -0,0 +1,62 @@
<?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\Datastore;
class GoogleDatastoreAdminV1beta1Progress extends \Google\Model
{
/**
* @var string
*/
public $workCompleted;
/**
* @var string
*/
public $workEstimated;
/**
* @param string
*/
public function setWorkCompleted($workCompleted)
{
$this->workCompleted = $workCompleted;
}
/**
* @return string
*/
public function getWorkCompleted()
{
return $this->workCompleted;
}
/**
* @param string
*/
public function setWorkEstimated($workEstimated)
{
$this->workEstimated = $workEstimated;
}
/**
* @return string
*/
public function getWorkEstimated()
{
return $this->workEstimated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleDatastoreAdminV1beta1Progress::class, 'Google_Service_Datastore_GoogleDatastoreAdminV1beta1Progress');
@@ -0,0 +1,61 @@
<?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\Datastore;
class GoogleLongrunningListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = GoogleLongrunningOperation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleLongrunningOperation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleLongrunningOperation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningListOperationsResponse::class, 'Google_Service_Datastore_GoogleLongrunningListOperationsResponse');
@@ -0,0 +1,114 @@
<?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\Datastore;
class GoogleLongrunningOperation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleLongrunningOperation::class, 'Google_Service_Datastore_GoogleLongrunningOperation');
@@ -0,0 +1,95 @@
<?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\Datastore;
class GqlQuery extends \Google\Collection
{
protected $collection_key = 'positionalBindings';
/**
* @var bool
*/
public $allowLiterals;
protected $namedBindingsType = GqlQueryParameter::class;
protected $namedBindingsDataType = 'map';
protected $positionalBindingsType = GqlQueryParameter::class;
protected $positionalBindingsDataType = 'array';
/**
* @var string
*/
public $queryString;
/**
* @param bool
*/
public function setAllowLiterals($allowLiterals)
{
$this->allowLiterals = $allowLiterals;
}
/**
* @return bool
*/
public function getAllowLiterals()
{
return $this->allowLiterals;
}
/**
* @param GqlQueryParameter[]
*/
public function setNamedBindings($namedBindings)
{
$this->namedBindings = $namedBindings;
}
/**
* @return GqlQueryParameter[]
*/
public function getNamedBindings()
{
return $this->namedBindings;
}
/**
* @param GqlQueryParameter[]
*/
public function setPositionalBindings($positionalBindings)
{
$this->positionalBindings = $positionalBindings;
}
/**
* @return GqlQueryParameter[]
*/
public function getPositionalBindings()
{
return $this->positionalBindings;
}
/**
* @param string
*/
public function setQueryString($queryString)
{
$this->queryString = $queryString;
}
/**
* @return string
*/
public function getQueryString()
{
return $this->queryString;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GqlQuery::class, 'Google_Service_Datastore_GqlQuery');
@@ -0,0 +1,60 @@
<?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\Datastore;
class GqlQueryParameter extends \Google\Model
{
/**
* @var string
*/
public $cursor;
protected $valueType = Value::class;
protected $valueDataType = '';
/**
* @param string
*/
public function setCursor($cursor)
{
$this->cursor = $cursor;
}
/**
* @return string
*/
public function getCursor()
{
return $this->cursor;
}
/**
* @param Value
*/
public function setValue(Value $value)
{
$this->value = $value;
}
/**
* @return Value
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GqlQueryParameter::class, 'Google_Service_Datastore_GqlQueryParameter');
@@ -0,0 +1,59 @@
<?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\Datastore;
class Key extends \Google\Collection
{
protected $collection_key = 'path';
protected $partitionIdType = PartitionId::class;
protected $partitionIdDataType = '';
protected $pathType = PathElement::class;
protected $pathDataType = 'array';
/**
* @param PartitionId
*/
public function setPartitionId(PartitionId $partitionId)
{
$this->partitionId = $partitionId;
}
/**
* @return PartitionId
*/
public function getPartitionId()
{
return $this->partitionId;
}
/**
* @param PathElement[]
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return PathElement[]
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Key::class, 'Google_Service_Datastore_Key');
@@ -0,0 +1,44 @@
<?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\Datastore;
class KindExpression extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KindExpression::class, 'Google_Service_Datastore_KindExpression');
@@ -0,0 +1,44 @@
<?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\Datastore;
class LatLng extends \Google\Model
{
public $latitude;
public $longitude;
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LatLng::class, 'Google_Service_Datastore_LatLng');
@@ -0,0 +1,93 @@
<?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\Datastore;
class LookupRequest extends \Google\Collection
{
protected $collection_key = 'keys';
/**
* @var string
*/
public $databaseId;
protected $keysType = Key::class;
protected $keysDataType = 'array';
protected $propertyMaskType = PropertyMask::class;
protected $propertyMaskDataType = '';
protected $readOptionsType = ReadOptions::class;
protected $readOptionsDataType = '';
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param Key[]
*/
public function setKeys($keys)
{
$this->keys = $keys;
}
/**
* @return Key[]
*/
public function getKeys()
{
return $this->keys;
}
/**
* @param PropertyMask
*/
public function setPropertyMask(PropertyMask $propertyMask)
{
$this->propertyMask = $propertyMask;
}
/**
* @return PropertyMask
*/
public function getPropertyMask()
{
return $this->propertyMask;
}
/**
* @param ReadOptions
*/
public function setReadOptions(ReadOptions $readOptions)
{
$this->readOptions = $readOptions;
}
/**
* @return ReadOptions
*/
public function getReadOptions()
{
return $this->readOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupRequest::class, 'Google_Service_Datastore_LookupRequest');
@@ -0,0 +1,111 @@
<?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\Datastore;
class LookupResponse extends \Google\Collection
{
protected $collection_key = 'missing';
protected $deferredType = Key::class;
protected $deferredDataType = 'array';
protected $foundType = EntityResult::class;
protected $foundDataType = 'array';
protected $missingType = EntityResult::class;
protected $missingDataType = 'array';
/**
* @var string
*/
public $readTime;
/**
* @var string
*/
public $transaction;
/**
* @param Key[]
*/
public function setDeferred($deferred)
{
$this->deferred = $deferred;
}
/**
* @return Key[]
*/
public function getDeferred()
{
return $this->deferred;
}
/**
* @param EntityResult[]
*/
public function setFound($found)
{
$this->found = $found;
}
/**
* @return EntityResult[]
*/
public function getFound()
{
return $this->found;
}
/**
* @param EntityResult[]
*/
public function setMissing($missing)
{
$this->missing = $missing;
}
/**
* @return EntityResult[]
*/
public function getMissing()
{
return $this->missing;
}
/**
* @param string
*/
public function setReadTime($readTime)
{
$this->readTime = $readTime;
}
/**
* @return string
*/
public function getReadTime()
{
return $this->readTime;
}
/**
* @param string
*/
public function setTransaction($transaction)
{
$this->transaction = $transaction;
}
/**
* @return string
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupResponse::class, 'Google_Service_Datastore_LookupResponse');
@@ -0,0 +1,177 @@
<?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\Datastore;
class Mutation extends \Google\Collection
{
protected $collection_key = 'propertyTransforms';
/**
* @var string
*/
public $baseVersion;
/**
* @var string
*/
public $conflictResolutionStrategy;
protected $deleteType = Key::class;
protected $deleteDataType = '';
protected $insertType = Entity::class;
protected $insertDataType = '';
protected $propertyMaskType = PropertyMask::class;
protected $propertyMaskDataType = '';
protected $propertyTransformsType = PropertyTransform::class;
protected $propertyTransformsDataType = 'array';
protected $updateType = Entity::class;
protected $updateDataType = '';
/**
* @var string
*/
public $updateTime;
protected $upsertType = Entity::class;
protected $upsertDataType = '';
/**
* @param string
*/
public function setBaseVersion($baseVersion)
{
$this->baseVersion = $baseVersion;
}
/**
* @return string
*/
public function getBaseVersion()
{
return $this->baseVersion;
}
/**
* @param string
*/
public function setConflictResolutionStrategy($conflictResolutionStrategy)
{
$this->conflictResolutionStrategy = $conflictResolutionStrategy;
}
/**
* @return string
*/
public function getConflictResolutionStrategy()
{
return $this->conflictResolutionStrategy;
}
/**
* @param Key
*/
public function setDelete(Key $delete)
{
$this->delete = $delete;
}
/**
* @return Key
*/
public function getDelete()
{
return $this->delete;
}
/**
* @param Entity
*/
public function setInsert(Entity $insert)
{
$this->insert = $insert;
}
/**
* @return Entity
*/
public function getInsert()
{
return $this->insert;
}
/**
* @param PropertyMask
*/
public function setPropertyMask(PropertyMask $propertyMask)
{
$this->propertyMask = $propertyMask;
}
/**
* @return PropertyMask
*/
public function getPropertyMask()
{
return $this->propertyMask;
}
/**
* @param PropertyTransform[]
*/
public function setPropertyTransforms($propertyTransforms)
{
$this->propertyTransforms = $propertyTransforms;
}
/**
* @return PropertyTransform[]
*/
public function getPropertyTransforms()
{
return $this->propertyTransforms;
}
/**
* @param Entity
*/
public function setUpdate(Entity $update)
{
$this->update = $update;
}
/**
* @return Entity
*/
public function getUpdate()
{
return $this->update;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param Entity
*/
public function setUpsert(Entity $upsert)
{
$this->upsert = $upsert;
}
/**
* @return Entity
*/
public function getUpsert()
{
return $this->upsert;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Mutation::class, 'Google_Service_Datastore_Mutation');
@@ -0,0 +1,131 @@
<?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\Datastore;
class MutationResult extends \Google\Collection
{
protected $collection_key = 'transformResults';
/**
* @var bool
*/
public $conflictDetected;
/**
* @var string
*/
public $createTime;
protected $keyType = Key::class;
protected $keyDataType = '';
protected $transformResultsType = Value::class;
protected $transformResultsDataType = 'array';
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $version;
/**
* @param bool
*/
public function setConflictDetected($conflictDetected)
{
$this->conflictDetected = $conflictDetected;
}
/**
* @return bool
*/
public function getConflictDetected()
{
return $this->conflictDetected;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param Key
*/
public function setKey(Key $key)
{
$this->key = $key;
}
/**
* @return Key
*/
public function getKey()
{
return $this->key;
}
/**
* @param Value[]
*/
public function setTransformResults($transformResults)
{
$this->transformResults = $transformResults;
}
/**
* @return Value[]
*/
public function getTransformResults()
{
return $this->transformResults;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MutationResult::class, 'Google_Service_Datastore_MutationResult');
@@ -0,0 +1,80 @@
<?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\Datastore;
class PartitionId extends \Google\Model
{
/**
* @var string
*/
public $databaseId;
/**
* @var string
*/
public $namespaceId;
/**
* @var string
*/
public $projectId;
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param string
*/
public function setNamespaceId($namespaceId)
{
$this->namespaceId = $namespaceId;
}
/**
* @return string
*/
public function getNamespaceId()
{
return $this->namespaceId;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartitionId::class, 'Google_Service_Datastore_PartitionId');
@@ -0,0 +1,80 @@
<?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\Datastore;
class PathElement extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $kind;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PathElement::class, 'Google_Service_Datastore_PathElement');
@@ -0,0 +1,45 @@
<?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\Datastore;
class PlanSummary extends \Google\Collection
{
protected $collection_key = 'indexesUsed';
/**
* @var array[]
*/
public $indexesUsed;
/**
* @param array[]
*/
public function setIndexesUsed($indexesUsed)
{
$this->indexesUsed = $indexesUsed;
}
/**
* @return array[]
*/
public function getIndexesUsed()
{
return $this->indexesUsed;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlanSummary::class, 'Google_Service_Datastore_PlanSummary');
@@ -0,0 +1,42 @@
<?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\Datastore;
class Projection extends \Google\Model
{
protected $propertyType = PropertyReference::class;
protected $propertyDataType = '';
/**
* @param PropertyReference
*/
public function setProperty(PropertyReference $property)
{
$this->property = $property;
}
/**
* @return PropertyReference
*/
public function getProperty()
{
return $this->property;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projection::class, 'Google_Service_Datastore_Projection');
@@ -0,0 +1,76 @@
<?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\Datastore;
class PropertyFilter extends \Google\Model
{
/**
* @var string
*/
public $op;
protected $propertyType = PropertyReference::class;
protected $propertyDataType = '';
protected $valueType = Value::class;
protected $valueDataType = '';
/**
* @param string
*/
public function setOp($op)
{
$this->op = $op;
}
/**
* @return string
*/
public function getOp()
{
return $this->op;
}
/**
* @param PropertyReference
*/
public function setProperty(PropertyReference $property)
{
$this->property = $property;
}
/**
* @return PropertyReference
*/
public function getProperty()
{
return $this->property;
}
/**
* @param Value
*/
public function setValue(Value $value)
{
$this->value = $value;
}
/**
* @return Value
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PropertyFilter::class, 'Google_Service_Datastore_PropertyFilter');
@@ -0,0 +1,45 @@
<?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\Datastore;
class PropertyMask extends \Google\Collection
{
protected $collection_key = 'paths';
/**
* @var string[]
*/
public $paths;
/**
* @param string[]
*/
public function setPaths($paths)
{
$this->paths = $paths;
}
/**
* @return string[]
*/
public function getPaths()
{
return $this->paths;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PropertyMask::class, 'Google_Service_Datastore_PropertyMask');
@@ -0,0 +1,60 @@
<?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\Datastore;
class PropertyOrder extends \Google\Model
{
/**
* @var string
*/
public $direction;
protected $propertyType = PropertyReference::class;
protected $propertyDataType = '';
/**
* @param string
*/
public function setDirection($direction)
{
$this->direction = $direction;
}
/**
* @return string
*/
public function getDirection()
{
return $this->direction;
}
/**
* @param PropertyReference
*/
public function setProperty(PropertyReference $property)
{
$this->property = $property;
}
/**
* @return PropertyReference
*/
public function getProperty()
{
return $this->property;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PropertyOrder::class, 'Google_Service_Datastore_PropertyOrder');
@@ -0,0 +1,44 @@
<?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\Datastore;
class PropertyReference extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PropertyReference::class, 'Google_Service_Datastore_PropertyReference');
@@ -0,0 +1,142 @@
<?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\Datastore;
class PropertyTransform extends \Google\Model
{
protected $appendMissingElementsType = ArrayValue::class;
protected $appendMissingElementsDataType = '';
protected $incrementType = Value::class;
protected $incrementDataType = '';
protected $maximumType = Value::class;
protected $maximumDataType = '';
protected $minimumType = Value::class;
protected $minimumDataType = '';
/**
* @var string
*/
public $property;
protected $removeAllFromArrayType = ArrayValue::class;
protected $removeAllFromArrayDataType = '';
/**
* @var string
*/
public $setToServerValue;
/**
* @param ArrayValue
*/
public function setAppendMissingElements(ArrayValue $appendMissingElements)
{
$this->appendMissingElements = $appendMissingElements;
}
/**
* @return ArrayValue
*/
public function getAppendMissingElements()
{
return $this->appendMissingElements;
}
/**
* @param Value
*/
public function setIncrement(Value $increment)
{
$this->increment = $increment;
}
/**
* @return Value
*/
public function getIncrement()
{
return $this->increment;
}
/**
* @param Value
*/
public function setMaximum(Value $maximum)
{
$this->maximum = $maximum;
}
/**
* @return Value
*/
public function getMaximum()
{
return $this->maximum;
}
/**
* @param Value
*/
public function setMinimum(Value $minimum)
{
$this->minimum = $minimum;
}
/**
* @return Value
*/
public function getMinimum()
{
return $this->minimum;
}
/**
* @param string
*/
public function setProperty($property)
{
$this->property = $property;
}
/**
* @return string
*/
public function getProperty()
{
return $this->property;
}
/**
* @param ArrayValue
*/
public function setRemoveAllFromArray(ArrayValue $removeAllFromArray)
{
$this->removeAllFromArray = $removeAllFromArray;
}
/**
* @return ArrayValue
*/
public function getRemoveAllFromArray()
{
return $this->removeAllFromArray;
}
/**
* @param string
*/
public function setSetToServerValue($setToServerValue)
{
$this->setToServerValue = $setToServerValue;
}
/**
* @return string
*/
public function getSetToServerValue()
{
return $this->setToServerValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PropertyTransform::class, 'Google_Service_Datastore_PropertyTransform');
@@ -0,0 +1,195 @@
<?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\Datastore;
class Query extends \Google\Collection
{
protected $collection_key = 'projection';
protected $distinctOnType = PropertyReference::class;
protected $distinctOnDataType = 'array';
/**
* @var string
*/
public $endCursor;
protected $filterType = Filter::class;
protected $filterDataType = '';
protected $findNearestType = FindNearest::class;
protected $findNearestDataType = '';
protected $kindType = KindExpression::class;
protected $kindDataType = 'array';
/**
* @var int
*/
public $limit;
/**
* @var int
*/
public $offset;
protected $orderType = PropertyOrder::class;
protected $orderDataType = 'array';
protected $projectionType = Projection::class;
protected $projectionDataType = 'array';
/**
* @var string
*/
public $startCursor;
/**
* @param PropertyReference[]
*/
public function setDistinctOn($distinctOn)
{
$this->distinctOn = $distinctOn;
}
/**
* @return PropertyReference[]
*/
public function getDistinctOn()
{
return $this->distinctOn;
}
/**
* @param string
*/
public function setEndCursor($endCursor)
{
$this->endCursor = $endCursor;
}
/**
* @return string
*/
public function getEndCursor()
{
return $this->endCursor;
}
/**
* @param Filter
*/
public function setFilter(Filter $filter)
{
$this->filter = $filter;
}
/**
* @return Filter
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param FindNearest
*/
public function setFindNearest(FindNearest $findNearest)
{
$this->findNearest = $findNearest;
}
/**
* @return FindNearest
*/
public function getFindNearest()
{
return $this->findNearest;
}
/**
* @param KindExpression[]
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return KindExpression[]
*/
public function getKind()
{
return $this->kind;
}
/**
* @param int
*/
public function setLimit($limit)
{
$this->limit = $limit;
}
/**
* @return int
*/
public function getLimit()
{
return $this->limit;
}
/**
* @param int
*/
public function setOffset($offset)
{
$this->offset = $offset;
}
/**
* @return int
*/
public function getOffset()
{
return $this->offset;
}
/**
* @param PropertyOrder[]
*/
public function setOrder($order)
{
$this->order = $order;
}
/**
* @return PropertyOrder[]
*/
public function getOrder()
{
return $this->order;
}
/**
* @param Projection[]
*/
public function setProjection($projection)
{
$this->projection = $projection;
}
/**
* @return Projection[]
*/
public function getProjection()
{
return $this->projection;
}
/**
* @param string
*/
public function setStartCursor($startCursor)
{
$this->startCursor = $startCursor;
}
/**
* @return string
*/
public function getStartCursor()
{
return $this->startCursor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Query::class, 'Google_Service_Datastore_Query');
@@ -0,0 +1,44 @@
<?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\Datastore;
class QueryPlan extends \Google\Model
{
/**
* @var array[]
*/
public $planInfo;
/**
* @param array[]
*/
public function setPlanInfo($planInfo)
{
$this->planInfo = $planInfo;
}
/**
* @return array[]
*/
public function getPlanInfo()
{
return $this->planInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryPlan::class, 'Google_Service_Datastore_QueryPlan');
@@ -0,0 +1,169 @@
<?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\Datastore;
class QueryResultBatch extends \Google\Collection
{
protected $collection_key = 'entityResults';
/**
* @var string
*/
public $endCursor;
/**
* @var string
*/
public $entityResultType;
protected $entityResultsType = EntityResult::class;
protected $entityResultsDataType = 'array';
/**
* @var string
*/
public $moreResults;
/**
* @var string
*/
public $readTime;
/**
* @var string
*/
public $skippedCursor;
/**
* @var int
*/
public $skippedResults;
/**
* @var string
*/
public $snapshotVersion;
/**
* @param string
*/
public function setEndCursor($endCursor)
{
$this->endCursor = $endCursor;
}
/**
* @return string
*/
public function getEndCursor()
{
return $this->endCursor;
}
/**
* @param string
*/
public function setEntityResultType($entityResultType)
{
$this->entityResultType = $entityResultType;
}
/**
* @return string
*/
public function getEntityResultType()
{
return $this->entityResultType;
}
/**
* @param EntityResult[]
*/
public function setEntityResults($entityResults)
{
$this->entityResults = $entityResults;
}
/**
* @return EntityResult[]
*/
public function getEntityResults()
{
return $this->entityResults;
}
/**
* @param string
*/
public function setMoreResults($moreResults)
{
$this->moreResults = $moreResults;
}
/**
* @return string
*/
public function getMoreResults()
{
return $this->moreResults;
}
/**
* @param string
*/
public function setReadTime($readTime)
{
$this->readTime = $readTime;
}
/**
* @return string
*/
public function getReadTime()
{
return $this->readTime;
}
/**
* @param string
*/
public function setSkippedCursor($skippedCursor)
{
$this->skippedCursor = $skippedCursor;
}
/**
* @return string
*/
public function getSkippedCursor()
{
return $this->skippedCursor;
}
/**
* @param int
*/
public function setSkippedResults($skippedResults)
{
$this->skippedResults = $skippedResults;
}
/**
* @return int
*/
public function getSkippedResults()
{
return $this->skippedResults;
}
/**
* @param string
*/
public function setSnapshotVersion($snapshotVersion)
{
$this->snapshotVersion = $snapshotVersion;
}
/**
* @return string
*/
public function getSnapshotVersion()
{
return $this->snapshotVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QueryResultBatch::class, 'Google_Service_Datastore_QueryResultBatch');
@@ -0,0 +1,96 @@
<?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\Datastore;
class ReadOptions extends \Google\Model
{
protected $newTransactionType = TransactionOptions::class;
protected $newTransactionDataType = '';
/**
* @var string
*/
public $readConsistency;
/**
* @var string
*/
public $readTime;
/**
* @var string
*/
public $transaction;
/**
* @param TransactionOptions
*/
public function setNewTransaction(TransactionOptions $newTransaction)
{
$this->newTransaction = $newTransaction;
}
/**
* @return TransactionOptions
*/
public function getNewTransaction()
{
return $this->newTransaction;
}
/**
* @param string
*/
public function setReadConsistency($readConsistency)
{
$this->readConsistency = $readConsistency;
}
/**
* @return string
*/
public function getReadConsistency()
{
return $this->readConsistency;
}
/**
* @param string
*/
public function setReadTime($readTime)
{
$this->readTime = $readTime;
}
/**
* @return string
*/
public function getReadTime()
{
return $this->readTime;
}
/**
* @param string
*/
public function setTransaction($transaction)
{
$this->transaction = $transaction;
}
/**
* @return string
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReadOptions::class, 'Google_Service_Datastore_ReadOptions');
@@ -0,0 +1,44 @@
<?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\Datastore;
class ReadWrite extends \Google\Model
{
/**
* @var string
*/
public $previousTransaction;
/**
* @param string
*/
public function setPreviousTransaction($previousTransaction)
{
$this->previousTransaction = $previousTransaction;
}
/**
* @return string
*/
public function getPreviousTransaction()
{
return $this->previousTransaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReadWrite::class, 'Google_Service_Datastore_ReadWrite');
@@ -0,0 +1,61 @@
<?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\Datastore;
class ReserveIdsRequest extends \Google\Collection
{
protected $collection_key = 'keys';
/**
* @var string
*/
public $databaseId;
protected $keysType = Key::class;
protected $keysDataType = 'array';
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param Key[]
*/
public function setKeys($keys)
{
$this->keys = $keys;
}
/**
* @return Key[]
*/
public function getKeys()
{
return $this->keys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReserveIdsRequest::class, 'Google_Service_Datastore_ReserveIdsRequest');
@@ -0,0 +1,25 @@
<?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\Datastore;
class ReserveIdsResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReserveIdsResponse::class, 'Google_Service_Datastore_ReserveIdsResponse');
@@ -0,0 +1,227 @@
<?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\Datastore\Resource;
use Google\Service\Datastore\AllocateIdsRequest;
use Google\Service\Datastore\AllocateIdsResponse;
use Google\Service\Datastore\BeginTransactionRequest;
use Google\Service\Datastore\BeginTransactionResponse;
use Google\Service\Datastore\CommitRequest;
use Google\Service\Datastore\CommitResponse;
use Google\Service\Datastore\GoogleDatastoreAdminV1ExportEntitiesRequest;
use Google\Service\Datastore\GoogleDatastoreAdminV1ImportEntitiesRequest;
use Google\Service\Datastore\GoogleLongrunningOperation;
use Google\Service\Datastore\LookupRequest;
use Google\Service\Datastore\LookupResponse;
use Google\Service\Datastore\ReserveIdsRequest;
use Google\Service\Datastore\ReserveIdsResponse;
use Google\Service\Datastore\RollbackRequest;
use Google\Service\Datastore\RollbackResponse;
use Google\Service\Datastore\RunAggregationQueryRequest;
use Google\Service\Datastore\RunAggregationQueryResponse;
use Google\Service\Datastore\RunQueryRequest;
use Google\Service\Datastore\RunQueryResponse;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $datastoreService = new Google\Service\Datastore(...);
* $projects = $datastoreService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Allocates IDs for the given keys, which is useful for referencing an entity
* before it is inserted. (projects.allocateIds)
*
* @param string $projectId Required. The ID of the project against which to
* make the request.
* @param AllocateIdsRequest $postBody
* @param array $optParams Optional parameters.
* @return AllocateIdsResponse
* @throws \Google\Service\Exception
*/
public function allocateIds($projectId, AllocateIdsRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('allocateIds', [$params], AllocateIdsResponse::class);
}
/**
* Begins a new transaction. (projects.beginTransaction)
*
* @param string $projectId Required. The ID of the project against which to
* make the request.
* @param BeginTransactionRequest $postBody
* @param array $optParams Optional parameters.
* @return BeginTransactionResponse
* @throws \Google\Service\Exception
*/
public function beginTransaction($projectId, BeginTransactionRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('beginTransaction', [$params], BeginTransactionResponse::class);
}
/**
* Commits a transaction, optionally creating, deleting or modifying some
* entities. (projects.commit)
*
* @param string $projectId Required. The ID of the project against which to
* make the request.
* @param CommitRequest $postBody
* @param array $optParams Optional parameters.
* @return CommitResponse
* @throws \Google\Service\Exception
*/
public function commit($projectId, CommitRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('commit', [$params], CommitResponse::class);
}
/**
* Exports a copy of all or a subset of entities from Google Cloud Datastore to
* another storage system, such as Google Cloud Storage. Recent updates to
* entities may not be reflected in the export. The export occurs in the
* background and its progress can be monitored and managed via the Operation
* resource that is created. The output of an export may only be used once the
* associated operation is done. If an export operation is cancelled before
* completion it may leave partial data behind in Google Cloud Storage.
* (projects.export)
*
* @param string $projectId Required. Project ID against which to make the
* request.
* @param GoogleDatastoreAdminV1ExportEntitiesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function export($projectId, GoogleDatastoreAdminV1ExportEntitiesRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('export', [$params], GoogleLongrunningOperation::class);
}
/**
* Imports entities into Google Cloud Datastore. Existing entities with the same
* key are overwritten. The import occurs in the background and its progress can
* be monitored and managed via the Operation resource that is created. If an
* ImportEntities operation is cancelled, it is possible that a subset of the
* data has already been imported to Cloud Datastore. (projects.import)
*
* @param string $projectId Required. Project ID against which to make the
* request.
* @param GoogleDatastoreAdminV1ImportEntitiesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function import($projectId, GoogleDatastoreAdminV1ImportEntitiesRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], GoogleLongrunningOperation::class);
}
/**
* Looks up entities by key. (projects.lookup)
*
* @param string $projectId Required. The ID of the project against which to
* make the request.
* @param LookupRequest $postBody
* @param array $optParams Optional parameters.
* @return LookupResponse
* @throws \Google\Service\Exception
*/
public function lookup($projectId, LookupRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('lookup', [$params], LookupResponse::class);
}
/**
* Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
* (projects.reserveIds)
*
* @param string $projectId Required. The ID of the project against which to
* make the request.
* @param ReserveIdsRequest $postBody
* @param array $optParams Optional parameters.
* @return ReserveIdsResponse
* @throws \Google\Service\Exception
*/
public function reserveIds($projectId, ReserveIdsRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reserveIds', [$params], ReserveIdsResponse::class);
}
/**
* Rolls back a transaction. (projects.rollback)
*
* @param string $projectId Required. The ID of the project against which to
* make the request.
* @param RollbackRequest $postBody
* @param array $optParams Optional parameters.
* @return RollbackResponse
* @throws \Google\Service\Exception
*/
public function rollback($projectId, RollbackRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rollback', [$params], RollbackResponse::class);
}
/**
* Runs an aggregation query. (projects.runAggregationQuery)
*
* @param string $projectId Required. The ID of the project against which to
* make the request.
* @param RunAggregationQueryRequest $postBody
* @param array $optParams Optional parameters.
* @return RunAggregationQueryResponse
* @throws \Google\Service\Exception
*/
public function runAggregationQuery($projectId, RunAggregationQueryRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('runAggregationQuery', [$params], RunAggregationQueryResponse::class);
}
/**
* Queries for entities. (projects.runQuery)
*
* @param string $projectId Required. The ID of the project against which to
* make the request.
* @param RunQueryRequest $postBody
* @param array $optParams Optional parameters.
* @return RunQueryResponse
* @throws \Google\Service\Exception
*/
public function runQuery($projectId, RunQueryRequest $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('runQuery', [$params], RunQueryResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Datastore_Resource_Projects');
@@ -0,0 +1,117 @@
<?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\Datastore\Resource;
use Google\Service\Datastore\GoogleDatastoreAdminV1Index;
use Google\Service\Datastore\GoogleDatastoreAdminV1ListIndexesResponse;
use Google\Service\Datastore\GoogleLongrunningOperation;
/**
* The "indexes" collection of methods.
* Typical usage is:
* <code>
* $datastoreService = new Google\Service\Datastore(...);
* $indexes = $datastoreService->projects_indexes;
* </code>
*/
class ProjectsIndexes extends \Google\Service\Resource
{
/**
* Creates the specified index. A newly created index's initial state is
* `CREATING`. On completion of the returned google.longrunning.Operation, the
* state will be `READY`. If the index already exists, the call will return an
* `ALREADY_EXISTS` status. During index creation, the process could result in
* an error, in which case the index will move to the `ERROR` state. The process
* can be recovered by fixing the data that caused the error, removing the index
* with delete, then re-creating the index with create. Indexes with a single
* property cannot be created. (indexes.create)
*
* @param string $projectId Project ID against which to make the request.
* @param GoogleDatastoreAdminV1Index $postBody
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function create($projectId, GoogleDatastoreAdminV1Index $postBody, $optParams = [])
{
$params = ['projectId' => $projectId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleLongrunningOperation::class);
}
/**
* Deletes an existing index. An index can only be deleted if it is in a `READY`
* or `ERROR` state. On successful execution of the request, the index will be
* in a `DELETING` state. And on completion of the returned
* google.longrunning.Operation, the index will be removed. During index
* deletion, the process could result in an error, in which case the index will
* move to the `ERROR` state. The process can be recovered by fixing the data
* that caused the error, followed by calling delete again. (indexes.delete)
*
* @param string $projectId Project ID against which to make the request.
* @param string $indexId The resource ID of the index to delete.
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function delete($projectId, $indexId, $optParams = [])
{
$params = ['projectId' => $projectId, 'indexId' => $indexId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleLongrunningOperation::class);
}
/**
* Gets an index. (indexes.get)
*
* @param string $projectId Project ID against which to make the request.
* @param string $indexId The resource ID of the index to get.
* @param array $optParams Optional parameters.
* @return GoogleDatastoreAdminV1Index
* @throws \Google\Service\Exception
*/
public function get($projectId, $indexId, $optParams = [])
{
$params = ['projectId' => $projectId, 'indexId' => $indexId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleDatastoreAdminV1Index::class);
}
/**
* Lists the indexes that match the specified filters. Datastore uses an
* eventually consistent query to fetch the list of indexes and may occasionally
* return stale results. (indexes.listProjectsIndexes)
*
* @param string $projectId Project ID against which to make the request.
* @param array $optParams Optional parameters.
*
* @opt_param string filter
* @opt_param int pageSize The maximum number of items to return. If zero, then
* all results will be returned.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return GoogleDatastoreAdminV1ListIndexesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsIndexes($projectId, $optParams = [])
{
$params = ['projectId' => $projectId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleDatastoreAdminV1ListIndexesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsIndexes::class, 'Google_Service_Datastore_Resource_ProjectsIndexes');
@@ -0,0 +1,112 @@
<?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\Datastore\Resource;
use Google\Service\Datastore\DatastoreEmpty;
use Google\Service\Datastore\GoogleLongrunningListOperationsResponse;
use Google\Service\Datastore\GoogleLongrunningOperation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $datastoreService = new Google\Service\Datastore(...);
* $operations = $datastoreService->projects_operations;
* </code>
*/
class ProjectsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param array $optParams Optional parameters.
* @return DatastoreEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], DatastoreEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return DatastoreEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], DatastoreEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return GoogleLongrunningOperation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleLongrunningOperation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return GoogleLongrunningListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleLongrunningListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsOperations::class, 'Google_Service_Datastore_Resource_ProjectsOperations');
@@ -0,0 +1,60 @@
<?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\Datastore;
class ResultSetStats extends \Google\Model
{
protected $queryPlanType = QueryPlan::class;
protected $queryPlanDataType = '';
/**
* @var array[]
*/
public $queryStats;
/**
* @param QueryPlan
*/
public function setQueryPlan(QueryPlan $queryPlan)
{
$this->queryPlan = $queryPlan;
}
/**
* @return QueryPlan
*/
public function getQueryPlan()
{
return $this->queryPlan;
}
/**
* @param array[]
*/
public function setQueryStats($queryStats)
{
$this->queryStats = $queryStats;
}
/**
* @return array[]
*/
public function getQueryStats()
{
return $this->queryStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResultSetStats::class, 'Google_Service_Datastore_ResultSetStats');
@@ -0,0 +1,62 @@
<?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\Datastore;
class RollbackRequest extends \Google\Model
{
/**
* @var string
*/
public $databaseId;
/**
* @var string
*/
public $transaction;
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param string
*/
public function setTransaction($transaction)
{
$this->transaction = $transaction;
}
/**
* @return string
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RollbackRequest::class, 'Google_Service_Datastore_RollbackRequest');
@@ -0,0 +1,25 @@
<?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\Datastore;
class RollbackResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RollbackResponse::class, 'Google_Service_Datastore_RollbackResponse');
@@ -0,0 +1,124 @@
<?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\Datastore;
class RunAggregationQueryRequest extends \Google\Model
{
protected $aggregationQueryType = AggregationQuery::class;
protected $aggregationQueryDataType = '';
/**
* @var string
*/
public $databaseId;
protected $explainOptionsType = ExplainOptions::class;
protected $explainOptionsDataType = '';
protected $gqlQueryType = GqlQuery::class;
protected $gqlQueryDataType = '';
protected $partitionIdType = PartitionId::class;
protected $partitionIdDataType = '';
protected $readOptionsType = ReadOptions::class;
protected $readOptionsDataType = '';
/**
* @param AggregationQuery
*/
public function setAggregationQuery(AggregationQuery $aggregationQuery)
{
$this->aggregationQuery = $aggregationQuery;
}
/**
* @return AggregationQuery
*/
public function getAggregationQuery()
{
return $this->aggregationQuery;
}
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param ExplainOptions
*/
public function setExplainOptions(ExplainOptions $explainOptions)
{
$this->explainOptions = $explainOptions;
}
/**
* @return ExplainOptions
*/
public function getExplainOptions()
{
return $this->explainOptions;
}
/**
* @param GqlQuery
*/
public function setGqlQuery(GqlQuery $gqlQuery)
{
$this->gqlQuery = $gqlQuery;
}
/**
* @return GqlQuery
*/
public function getGqlQuery()
{
return $this->gqlQuery;
}
/**
* @param PartitionId
*/
public function setPartitionId(PartitionId $partitionId)
{
$this->partitionId = $partitionId;
}
/**
* @return PartitionId
*/
public function getPartitionId()
{
return $this->partitionId;
}
/**
* @param ReadOptions
*/
public function setReadOptions(ReadOptions $readOptions)
{
$this->readOptions = $readOptions;
}
/**
* @return ReadOptions
*/
public function getReadOptions()
{
return $this->readOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunAggregationQueryRequest::class, 'Google_Service_Datastore_RunAggregationQueryRequest');
@@ -0,0 +1,92 @@
<?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\Datastore;
class RunAggregationQueryResponse extends \Google\Model
{
protected $batchType = AggregationResultBatch::class;
protected $batchDataType = '';
protected $explainMetricsType = ExplainMetrics::class;
protected $explainMetricsDataType = '';
protected $queryType = AggregationQuery::class;
protected $queryDataType = '';
/**
* @var string
*/
public $transaction;
/**
* @param AggregationResultBatch
*/
public function setBatch(AggregationResultBatch $batch)
{
$this->batch = $batch;
}
/**
* @return AggregationResultBatch
*/
public function getBatch()
{
return $this->batch;
}
/**
* @param ExplainMetrics
*/
public function setExplainMetrics(ExplainMetrics $explainMetrics)
{
$this->explainMetrics = $explainMetrics;
}
/**
* @return ExplainMetrics
*/
public function getExplainMetrics()
{
return $this->explainMetrics;
}
/**
* @param AggregationQuery
*/
public function setQuery(AggregationQuery $query)
{
$this->query = $query;
}
/**
* @return AggregationQuery
*/
public function getQuery()
{
return $this->query;
}
/**
* @param string
*/
public function setTransaction($transaction)
{
$this->transaction = $transaction;
}
/**
* @return string
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunAggregationQueryResponse::class, 'Google_Service_Datastore_RunAggregationQueryResponse');
@@ -0,0 +1,140 @@
<?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\Datastore;
class RunQueryRequest extends \Google\Model
{
/**
* @var string
*/
public $databaseId;
protected $explainOptionsType = ExplainOptions::class;
protected $explainOptionsDataType = '';
protected $gqlQueryType = GqlQuery::class;
protected $gqlQueryDataType = '';
protected $partitionIdType = PartitionId::class;
protected $partitionIdDataType = '';
protected $propertyMaskType = PropertyMask::class;
protected $propertyMaskDataType = '';
protected $queryType = Query::class;
protected $queryDataType = '';
protected $readOptionsType = ReadOptions::class;
protected $readOptionsDataType = '';
/**
* @param string
*/
public function setDatabaseId($databaseId)
{
$this->databaseId = $databaseId;
}
/**
* @return string
*/
public function getDatabaseId()
{
return $this->databaseId;
}
/**
* @param ExplainOptions
*/
public function setExplainOptions(ExplainOptions $explainOptions)
{
$this->explainOptions = $explainOptions;
}
/**
* @return ExplainOptions
*/
public function getExplainOptions()
{
return $this->explainOptions;
}
/**
* @param GqlQuery
*/
public function setGqlQuery(GqlQuery $gqlQuery)
{
$this->gqlQuery = $gqlQuery;
}
/**
* @return GqlQuery
*/
public function getGqlQuery()
{
return $this->gqlQuery;
}
/**
* @param PartitionId
*/
public function setPartitionId(PartitionId $partitionId)
{
$this->partitionId = $partitionId;
}
/**
* @return PartitionId
*/
public function getPartitionId()
{
return $this->partitionId;
}
/**
* @param PropertyMask
*/
public function setPropertyMask(PropertyMask $propertyMask)
{
$this->propertyMask = $propertyMask;
}
/**
* @return PropertyMask
*/
public function getPropertyMask()
{
return $this->propertyMask;
}
/**
* @param Query
*/
public function setQuery(Query $query)
{
$this->query = $query;
}
/**
* @return Query
*/
public function getQuery()
{
return $this->query;
}
/**
* @param ReadOptions
*/
public function setReadOptions(ReadOptions $readOptions)
{
$this->readOptions = $readOptions;
}
/**
* @return ReadOptions
*/
public function getReadOptions()
{
return $this->readOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunQueryRequest::class, 'Google_Service_Datastore_RunQueryRequest');
@@ -0,0 +1,92 @@
<?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\Datastore;
class RunQueryResponse extends \Google\Model
{
protected $batchType = QueryResultBatch::class;
protected $batchDataType = '';
protected $explainMetricsType = ExplainMetrics::class;
protected $explainMetricsDataType = '';
protected $queryType = Query::class;
protected $queryDataType = '';
/**
* @var string
*/
public $transaction;
/**
* @param QueryResultBatch
*/
public function setBatch(QueryResultBatch $batch)
{
$this->batch = $batch;
}
/**
* @return QueryResultBatch
*/
public function getBatch()
{
return $this->batch;
}
/**
* @param ExplainMetrics
*/
public function setExplainMetrics(ExplainMetrics $explainMetrics)
{
$this->explainMetrics = $explainMetrics;
}
/**
* @return ExplainMetrics
*/
public function getExplainMetrics()
{
return $this->explainMetrics;
}
/**
* @param Query
*/
public function setQuery(Query $query)
{
$this->query = $query;
}
/**
* @return Query
*/
public function getQuery()
{
return $this->query;
}
/**
* @param string
*/
public function setTransaction($transaction)
{
$this->transaction = $transaction;
}
/**
* @return string
*/
public function getTransaction()
{
return $this->transaction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RunQueryResponse::class, 'Google_Service_Datastore_RunQueryResponse');
@@ -0,0 +1,81 @@
<?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\Datastore;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_Datastore_Status');
@@ -0,0 +1,42 @@
<?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\Datastore;
class Sum extends \Google\Model
{
protected $propertyType = PropertyReference::class;
protected $propertyDataType = '';
/**
* @param PropertyReference
*/
public function setProperty(PropertyReference $property)
{
$this->property = $property;
}
/**
* @return PropertyReference
*/
public function getProperty()
{
return $this->property;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sum::class, 'Google_Service_Datastore_Sum');
@@ -0,0 +1,58 @@
<?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\Datastore;
class TransactionOptions extends \Google\Model
{
protected $readOnlyType = DatastoreReadOnly::class;
protected $readOnlyDataType = '';
protected $readWriteType = ReadWrite::class;
protected $readWriteDataType = '';
/**
* @param DatastoreReadOnly
*/
public function setReadOnly(DatastoreReadOnly $readOnly)
{
$this->readOnly = $readOnly;
}
/**
* @return DatastoreReadOnly
*/
public function getReadOnly()
{
return $this->readOnly;
}
/**
* @param ReadWrite
*/
public function setReadWrite(ReadWrite $readWrite)
{
$this->readWrite = $readWrite;
}
/**
* @return ReadWrite
*/
public function getReadWrite()
{
return $this->readWrite;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransactionOptions::class, 'Google_Service_Datastore_TransactionOptions');
@@ -0,0 +1,243 @@
<?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\Datastore;
class Value extends \Google\Model
{
protected $arrayValueType = ArrayValue::class;
protected $arrayValueDataType = '';
/**
* @var string
*/
public $blobValue;
/**
* @var bool
*/
public $booleanValue;
public $doubleValue;
protected $entityValueType = Entity::class;
protected $entityValueDataType = '';
/**
* @var bool
*/
public $excludeFromIndexes;
protected $geoPointValueType = LatLng::class;
protected $geoPointValueDataType = '';
/**
* @var string
*/
public $integerValue;
protected $keyValueType = Key::class;
protected $keyValueDataType = '';
/**
* @var int
*/
public $meaning;
/**
* @var string
*/
public $nullValue;
/**
* @var string
*/
public $stringValue;
/**
* @var string
*/
public $timestampValue;
/**
* @param ArrayValue
*/
public function setArrayValue(ArrayValue $arrayValue)
{
$this->arrayValue = $arrayValue;
}
/**
* @return ArrayValue
*/
public function getArrayValue()
{
return $this->arrayValue;
}
/**
* @param string
*/
public function setBlobValue($blobValue)
{
$this->blobValue = $blobValue;
}
/**
* @return string
*/
public function getBlobValue()
{
return $this->blobValue;
}
/**
* @param bool
*/
public function setBooleanValue($booleanValue)
{
$this->booleanValue = $booleanValue;
}
/**
* @return bool
*/
public function getBooleanValue()
{
return $this->booleanValue;
}
public function setDoubleValue($doubleValue)
{
$this->doubleValue = $doubleValue;
}
public function getDoubleValue()
{
return $this->doubleValue;
}
/**
* @param Entity
*/
public function setEntityValue(Entity $entityValue)
{
$this->entityValue = $entityValue;
}
/**
* @return Entity
*/
public function getEntityValue()
{
return $this->entityValue;
}
/**
* @param bool
*/
public function setExcludeFromIndexes($excludeFromIndexes)
{
$this->excludeFromIndexes = $excludeFromIndexes;
}
/**
* @return bool
*/
public function getExcludeFromIndexes()
{
return $this->excludeFromIndexes;
}
/**
* @param LatLng
*/
public function setGeoPointValue(LatLng $geoPointValue)
{
$this->geoPointValue = $geoPointValue;
}
/**
* @return LatLng
*/
public function getGeoPointValue()
{
return $this->geoPointValue;
}
/**
* @param string
*/
public function setIntegerValue($integerValue)
{
$this->integerValue = $integerValue;
}
/**
* @return string
*/
public function getIntegerValue()
{
return $this->integerValue;
}
/**
* @param Key
*/
public function setKeyValue(Key $keyValue)
{
$this->keyValue = $keyValue;
}
/**
* @return Key
*/
public function getKeyValue()
{
return $this->keyValue;
}
/**
* @param int
*/
public function setMeaning($meaning)
{
$this->meaning = $meaning;
}
/**
* @return int
*/
public function getMeaning()
{
return $this->meaning;
}
/**
* @param string
*/
public function setNullValue($nullValue)
{
$this->nullValue = $nullValue;
}
/**
* @return string
*/
public function getNullValue()
{
return $this->nullValue;
}
/**
* @param string
*/
public function setStringValue($stringValue)
{
$this->stringValue = $stringValue;
}
/**
* @return string
*/
public function getStringValue()
{
return $this->stringValue;
}
/**
* @param string
*/
public function setTimestampValue($timestampValue)
{
$this->timestampValue = $timestampValue;
}
/**
* @return string
*/
public function getTimestampValue()
{
return $this->timestampValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Value::class, 'Google_Service_Datastore_Value');