blob: 7b8c49427dd4fd457f8c76c6b8d3b274d2c1510a [file] [log] [blame]
<?php
/**
* Copyright 2007 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.
*/
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/appengine/datastore/datastore_v3.proto
namespace dummy {
require_once 'google/appengine/runtime/proto/ProtocolMessage.php';
require_once 'google/appengine/api/api_base_pb.php';
require_once 'google/appengine/datastore/action_pb.php';
require_once 'google/appengine/datastore/entity_pb.php';
require_once 'google/appengine/datastore/snapshot_pb.php';
}
namespace google\appengine_datastore_v3 {
class InternalHeader extends \google\net\ProtocolMessage {
public function getQos() {
if (!isset($this->qos)) {
return '';
}
return $this->qos;
}
public function setQos($val) {
$this->qos = $val;
return $this;
}
public function clearQos() {
unset($this->qos);
return $this;
}
public function hasQos() {
return isset($this->qos);
}
public function clear() {
$this->clearQos();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->qos)) {
$res += 1;
$res += $this->lengthString(strlen($this->qos));
}
return $res;
}
public function outputPartial($out) {
if (isset($this->qos)) {
$out->putVarInt32(10);
$out->putPrefixedString($this->qos);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 10:
$length = $d->getVarInt32();
$this->setQos(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasQos()) {
$this->setQos($x->getQos());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->qos) !== isset($x->qos)) return false;
if (isset($this->qos) && $this->qos !== $x->qos) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->qos)) {
$res .= $prefix . "qos: " . $this->debugFormatString($this->qos) . "\n";
}
return $res;
}
}
}
namespace google\appengine_datastore_v3 {
class Transaction extends \google\net\ProtocolMessage {
public function getHandle() {
if (!isset($this->handle)) {
return "0";
}
return $this->handle;
}
public function setHandle($val) {
if (is_double($val)) {
$this->handle = sprintf('%0.0F', $val);
} else {
$this->handle = $val;
}
return $this;
}
public function clearHandle() {
unset($this->handle);
return $this;
}
public function hasHandle() {
return isset($this->handle);
}
public function getApp() {
if (!isset($this->app)) {
return '';
}
return $this->app;
}
public function setApp($val) {
$this->app = $val;
return $this;
}
public function clearApp() {
unset($this->app);
return $this;
}
public function hasApp() {
return isset($this->app);
}
public function getMarkChanges() {
if (!isset($this->mark_changes)) {
return false;
}
return $this->mark_changes;
}
public function setMarkChanges($val) {
$this->mark_changes = $val;
return $this;
}
public function clearMarkChanges() {
unset($this->mark_changes);
return $this;
}
public function hasMarkChanges() {
return isset($this->mark_changes);
}
public function getHeader() {
if (!isset($this->header)) {
return new \google\appengine_datastore_v3\InternalHeader();
}
return $this->header;
}
public function mutableHeader() {
if (!isset($this->header)) {
$res = new \google\appengine_datastore_v3\InternalHeader();
$this->header = $res;
return $res;
}
return $this->header;
}
public function clearHeader() {
if (isset($this->header)) {
unset($this->header);
}
}
public function hasHeader() {
return isset($this->header);
}
public function clear() {
$this->clearHandle();
$this->clearApp();
$this->clearMarkChanges();
$this->clearHeader();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->handle)) {
$res += 9;
}
if (isset($this->app)) {
$res += 1;
$res += $this->lengthString(strlen($this->app));
}
if (isset($this->mark_changes)) {
$res += 2;
}
if (isset($this->header)) {
$res += 1;
$res += $this->lengthString($this->header->byteSizePartial());
}
return $res;
}
public function outputPartial($out) {
if (isset($this->handle)) {
$out->putVarInt32(9);
$out->put64($this->handle);
}
if (isset($this->app)) {
$out->putVarInt32(18);
$out->putPrefixedString($this->app);
}
if (isset($this->mark_changes)) {
$out->putVarInt32(24);
$out->putBoolean($this->mark_changes);
}
if (isset($this->header)) {
$out->putVarInt32(34);
$out->putVarInt32($this->header->byteSizePartial());
$this->header->outputPartial($out);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 9:
$this->setHandle($d->getFixed64());
break;
case 18:
$length = $d->getVarInt32();
$this->setApp(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 24:
$this->setMarkChanges($d->getBoolean());
break;
case 34:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->mutableHeader()->tryMerge($tmp);
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
if (!isset($this->handle)) return 'handle';
if (!isset($this->app)) return 'app';
if (isset($this->header) && (!$this->header->isInitialized())) return 'header';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasHandle()) {
$this->setHandle($x->getHandle());
}
if ($x->hasApp()) {
$this->setApp($x->getApp());
}
if ($x->hasMarkChanges()) {
$this->setMarkChanges($x->getMarkChanges());
}
if ($x->hasHeader()) {
$this->mutableHeader()->mergeFrom($x->getHeader());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->handle) !== isset($x->handle)) return false;
if (isset($this->handle) && !$this->integerEquals($this->handle, $x->handle)) return false;
if (isset($this->app) !== isset($x->app)) return false;
if (isset($this->app) && $this->app !== $x->app) return false;
if (isset($this->mark_changes) !== isset($x->mark_changes)) return false;
if (isset($this->mark_changes) && $this->mark_changes !== $x->mark_changes) return false;
if (isset($this->header) !== isset($x->header)) return false;
if (isset($this->header) && !$this->header->equals($x->header)) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->handle)) {
$res .= $prefix . "handle: " . $this->debugFormatFixed64($this->handle) . "\n";
}
if (isset($this->app)) {
$res .= $prefix . "app: " . $this->debugFormatString($this->app) . "\n";
}
if (isset($this->mark_changes)) {
$res .= $prefix . "mark_changes: " . $this->debugFormatBool($this->mark_changes) . "\n";
}
if (isset($this->header)) {
$res .= $prefix . "header <\n" . $this->header->shortDebugString($prefix . " ") . $prefix . ">\n";
}
return $res;
}
}
}
namespace google\appengine_datastore_v3\Query {
class Hint {
const ORDER_FIRST = 1;
const ANCESTOR_FIRST = 2;
const FILTER_FIRST = 3;
}
}
namespace google\appengine_datastore_v3\Query\Filter {
class Operator {
const LESS_THAN = 1;
const LESS_THAN_OR_EQUAL = 2;
const GREATER_THAN = 3;
const GREATER_THAN_OR_EQUAL = 4;
const EQUAL = 5;
const IN = 6;
const EXISTS = 7;
}
}
namespace google\appengine_datastore_v3\Query {
class Filter extends \google\net\ProtocolMessage {
private $property = array();
public function getOp() {
if (!isset($this->op)) {
return 1;
}
return $this->op;
}
public function setOp($val) {
$this->op = $val;
return $this;
}
public function clearOp() {
unset($this->op);
return $this;
}
public function hasOp() {
return isset($this->op);
}
public function getPropertySize() {
return sizeof($this->property);
}
public function getPropertyList() {
return $this->property;
}
public function mutableProperty($idx) {
if (!isset($this->property[$idx])) {
$val = new \storage_onestore_v3\Property();
$this->property[$idx] = $val;
return $val;
}
return $this->property[$idx];
}
public function getProperty($idx) {
if (isset($this->property[$idx])) {
return $this->property[$idx];
}
if ($idx >= end(array_keys($this->property))) {
throw new \OutOfRangeException('index out of range: ' + $idx);
}
return new \storage_onestore_v3\Property();
}
public function addProperty() {
$val = new \storage_onestore_v3\Property();
$this->property[] = $val;
return $val;
}
public function clearProperty() {
$this->property = array();
}
public function clear() {
$this->clearOp();
$this->clearProperty();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->op)) {
$res += 1;
$res += $this->lengthVarInt64($this->op);
}
$this->checkProtoArray($this->property);
$res += 1 * sizeof($this->property);
foreach ($this->property as $value) {
$res += $this->lengthString($value->byteSizePartial());
}
return $res;
}
public function outputPartial($out) {
if (isset($this->op)) {
$out->putVarInt32(48);
$out->putVarInt32($this->op);
}
$this->checkProtoArray($this->property);
foreach ($this->property as $value) {
$out->putVarInt32(114);
$out->putVarInt32($value->byteSizePartial());
$value->outputPartial($out);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 36: return;
case 48:
$this->setOp($d->getVarInt32());
break;
case 114:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->addProperty()->tryMerge($tmp);
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
if (!isset($this->op)) return 'op';
foreach ($this->property as $value) {
if (!$value->isInitialized()) return 'property';
}
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasOp()) {
$this->setOp($x->getOp());
}
foreach ($x->getPropertyList() as $v) {
$this->addProperty()->copyFrom($v);
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->op) !== isset($x->op)) return false;
if (isset($this->op) && $this->op !== $x->op) return false;
if (sizeof($this->property) !== sizeof($x->property)) return false;
foreach (array_map(null, $this->property, $x->property) as $v) {
if (!$v[0]->equals($v[1])) return false;
}
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->op)) {
$res .= $prefix . "op: " . ($this->op) . "\n";
}
foreach ($this->property as $value) {
$res .= $prefix . "property <\n" . $value->shortDebugString($prefix . " ") . $prefix . ">\n";
}
return $res;
}
}
}
namespace google\appengine_datastore_v3\Query\Order {
class Direction {
const ASCENDING = 1;
const DESCENDING = 2;
}
}
namespace google\appengine_datastore_v3\Query {
class Order extends \google\net\ProtocolMessage {
public function getProperty() {
if (!isset($this->property)) {
return '';
}
return $this->property;
}
public function setProperty($val) {
$this->property = $val;
return $this;
}
public function clearProperty() {
unset($this->property);
return $this;
}
public function hasProperty() {
return isset($this->property);
}
public function getDirection() {
if (!isset($this->direction)) {
return 1;
}
return $this->direction;
}
public function setDirection($val) {
$this->direction = $val;
return $this;
}
public function clearDirection() {
unset($this->direction);
return $this;
}
public function hasDirection() {
return isset($this->direction);
}
public function clear() {
$this->clearProperty();
$this->clearDirection();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->property)) {
$res += 1;
$res += $this->lengthString(strlen($this->property));
}
if (isset($this->direction)) {
$res += 1;
$res += $this->lengthVarInt64($this->direction);
}
return $res;
}
public function outputPartial($out) {
if (isset($this->property)) {
$out->putVarInt32(82);
$out->putPrefixedString($this->property);
}
if (isset($this->direction)) {
$out->putVarInt32(88);
$out->putVarInt32($this->direction);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 76: return;
case 82:
$length = $d->getVarInt32();
$this->setProperty(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 88:
$this->setDirection($d->getVarInt32());
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
if (!isset($this->property)) return 'property';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasProperty()) {
$this->setProperty($x->getProperty());
}
if ($x->hasDirection()) {
$this->setDirection($x->getDirection());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->property) !== isset($x->property)) return false;
if (isset($this->property) && $this->property !== $x->property) return false;
if (isset($this->direction) !== isset($x->direction)) return false;
if (isset($this->direction) && $this->direction !== $x->direction) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->property)) {
$res .= $prefix . "property: " . $this->debugFormatString($this->property) . "\n";
}
if (isset($this->direction)) {
$res .= $prefix . "direction: " . ($this->direction) . "\n";
}
return $res;
}
}
}
namespace google\appengine_datastore_v3 {
class Query extends \google\net\ProtocolMessage {
private $filter = array();
private $order = array();
private $composite_index = array();
private $property_name = array();
private $group_by_property_name = array();
private $safe_replica_name = array();
public function getApp() {
if (!isset($this->app)) {
return '';
}
return $this->app;
}
public function setApp($val) {
$this->app = $val;
return $this;
}
public function clearApp() {
unset($this->app);
return $this;
}
public function hasApp() {
return isset($this->app);
}
public function getKind() {
if (!isset($this->kind)) {
return '';
}
return $this->kind;
}
public function setKind($val) {
$this->kind = $val;
return $this;
}
public function clearKind() {
unset($this->kind);
return $this;
}
public function hasKind() {
return isset($this->kind);
}
public function getFilterSize() {
return sizeof($this->filter);
}
public function getFilterList() {
return $this->filter;
}
public function mutableFilter($idx) {
if (!isset($this->filter[$idx])) {
$val = new \google\appengine_datastore_v3\Query\Filter();
$this->filter[$idx] = $val;
return $val;
}
return $this->filter[$idx];
}
public function getFilter($idx) {
if (isset($this->filter[$idx])) {
return $this->filter[$idx];
}
if ($idx >= end(array_keys($this->filter))) {
throw new \OutOfRangeException('index out of range: ' + $idx);
}
return new \google\appengine_datastore_v3\Query\Filter();
}
public function addFilter() {
$val = new \google\appengine_datastore_v3\Query\Filter();
$this->filter[] = $val;
return $val;
}
public function clearFilter() {
$this->filter = array();
}
public function getSearchQuery() {
if (!isset($this->search_query)) {
return '';
}
return $this->search_query;
}
public function setSearchQuery($val) {
$this->search_query = $val;
return $this;
}
public function clearSearchQuery() {
unset($this->search_query);
return $this;
}
public function hasSearchQuery() {
return isset($this->search_query);
}
public function getOrderSize() {
return sizeof($this->order);
}
public function getOrderList() {
return $this->order;
}
public function mutableOrder($idx) {
if (!isset($this->order[$idx])) {
$val = new \google\appengine_datastore_v3\Query\Order();
$this->order[$idx] = $val;
return $val;
}
return $this->order[$idx];
}
public function getOrder($idx) {
if (isset($this->order[$idx])) {
return $this->order[$idx];
}
if ($idx >= end(array_keys($this->order))) {
throw new \OutOfRangeException('index out of range: ' + $idx);
}
return new \google\appengine_datastore_v3\Query\Order();
}
public function addOrder() {
$val = new \google\appengine_datastore_v3\Query\Order();
$this->order[] = $val;
return $val;
}
public function clearOrder() {
$this->order = array();
}
public function getOffset() {
if (!isset($this->offset)) {
return 0;
}
return $this->offset;
}
public function setOffset($val) {
$this->offset = $val;
return $this;
}
public function clearOffset() {
unset($this->offset);
return $this;
}
public function hasOffset() {
return isset($this->offset);
}
public function getLimit() {
if (!isset($this->limit)) {
return 0;
}
return $this->limit;
}
public function setLimit($val) {
$this->limit = $val;
return $this;
}
public function clearLimit() {
unset($this->limit);
return $this;
}
public function hasLimit() {
return isset($this->limit);
}
public function getAncestor() {
if (!isset($this->ancestor)) {
return new \storage_onestore_v3\Reference();
}
return $this->ancestor;
}
public function mutableAncestor() {
if (!isset($this->ancestor)) {
$res = new \storage_onestore_v3\Reference();
$this->ancestor = $res;
return $res;
}
return $this->ancestor;
}
public function clearAncestor() {
if (isset($this->ancestor)) {
unset($this->ancestor);
}
}
public function hasAncestor() {
return isset($this->ancestor);
}
public function getHint() {
if (!isset($this->hint)) {
return 1;
}
return $this->hint;
}
public function setHint($val) {
$this->hint = $val;
return $this;
}
public function clearHint() {
unset($this->hint);
return $this;
}
public function hasHint() {
return isset($this->hint);
}
public function getCompositeIndexSize() {
return sizeof($this->composite_index);
}
public function getCompositeIndexList() {
return $this->composite_index;
}
public function mutableCompositeIndex($idx) {
if (!isset($this->composite_index[$idx])) {
$val = new \storage_onestore_v3\CompositeIndex();
$this->composite_index[$idx] = $val;
return $val;
}
return $this->composite_index[$idx];
}
public function getCompositeIndex($idx) {
if (isset($this->composite_index[$idx])) {
return $this->composite_index[$idx];
}
if ($idx >= end(array_keys($this->composite_index))) {
throw new \OutOfRangeException('index out of range: ' + $idx);
}
return new \storage_onestore_v3\CompositeIndex();
}
public function addCompositeIndex() {
$val = new \storage_onestore_v3\CompositeIndex();
$this->composite_index[] = $val;
return $val;
}
public function clearCompositeIndex() {
$this->composite_index = array();
}
public function getRequirePerfectPlan() {
if (!isset($this->require_perfect_plan)) {
return false;
}
return $this->require_perfect_plan;
}
public function setRequirePerfectPlan($val) {
$this->require_perfect_plan = $val;
return $this;
}
public function clearRequirePerfectPlan() {
unset($this->require_perfect_plan);
return $this;
}
public function hasRequirePerfectPlan() {
return isset($this->require_perfect_plan);
}
public function getKeysOnly() {
if (!isset($this->keys_only)) {
return false;
}
return $this->keys_only;
}
public function setKeysOnly($val) {
$this->keys_only = $val;
return $this;
}
public function clearKeysOnly() {
unset($this->keys_only);
return $this;
}
public function hasKeysOnly() {
return isset($this->keys_only);
}
public function getTransaction() {
if (!isset($this->transaction)) {
return new \google\appengine_datastore_v3\Transaction();
}
return $this->transaction;
}
public function mutableTransaction() {
if (!isset($this->transaction)) {
$res = new \google\appengine_datastore_v3\Transaction();
$this->transaction = $res;
return $res;
}
return $this->transaction;
}
public function clearTransaction() {
if (isset($this->transaction)) {
unset($this->transaction);
}
}
public function hasTransaction() {
return isset($this->transaction);
}
public function getCount() {
if (!isset($this->count)) {
return 0;
}
return $this->count;
}
public function setCount($val) {
$this->count = $val;
return $this;
}
public function clearCount() {
unset($this->count);
return $this;
}
public function hasCount() {
return isset($this->count);
}
public function getDistinct() {
if (!isset($this->distinct)) {
return false;
}
return $this->distinct;
}
public function setDistinct($val) {
$this->distinct = $val;
return $this;
}
public function clearDistinct() {
unset($this->distinct);
return $this;
}
public function hasDistinct() {
return isset($this->distinct);
}
public function getCompile() {
if (!isset($this->compile)) {
return false;
}
return $this->compile;
}
public function setCompile($val) {
$this->compile = $val;
return $this;
}
public function clearCompile() {
unset($this->compile);
return $this;
}
public function hasCompile() {
return isset($this->compile);
}
public function getFailoverMs() {
if (!isset($this->failover_ms)) {
return "0";
}
return $this->failover_ms;
}
public function setFailoverMs($val) {
if (is_double($val)) {
$this->failover_ms = sprintf('%0.0F', $val);
} else {
$this->failover_ms = $val;
}
return $this;
}
public function clearFailoverMs() {
unset($this->failover_ms);
return $this;
}
public function hasFailoverMs() {
return isset($this->failover_ms);
}
public function getNameSpace() {
if (!isset($this->name_space)) {
return '';
}
return $this->name_space;
}
public function setNameSpace($val) {
$this->name_space = $val;
return $this;
}
public function clearNameSpace() {
unset($this->name_space);
return $this;
}
public function hasNameSpace() {
return isset($this->name_space);
}
public function getCompiledCursor() {
if (!isset($this->compiled_cursor)) {
return new \google\appengine_datastore_v3\CompiledCursor();
}
return $this->compiled_cursor;
}
public function mutableCompiledCursor() {
if (!isset($this->compiled_cursor)) {
$res = new \google\appengine_datastore_v3\CompiledCursor();
$this->compiled_cursor = $res;
return $res;
}
return $this->compiled_cursor;
}
public function clearCompiledCursor() {
if (isset($this->compiled_cursor)) {
unset($this->compiled_cursor);
}
}
public function hasCompiledCursor() {
return isset($this->compiled_cursor);
}
public function getEndCompiledCursor() {
if (!isset($this->end_compiled_cursor)) {
return new \google\appengine_datastore_v3\CompiledCursor();
}
return $this->end_compiled_cursor;
}
public function mutableEndCompiledCursor() {
if (!isset($this->end_compiled_cursor)) {
$res = new \google\appengine_datastore_v3\CompiledCursor();
$this->end_compiled_cursor = $res;
return $res;
}
return $this->end_compiled_cursor;
}
public function clearEndCompiledCursor() {
if (isset($this->end_compiled_cursor)) {
unset($this->end_compiled_cursor);
}
}
public function hasEndCompiledCursor() {
return isset($this->end_compiled_cursor);
}
public function getStrong() {
if (!isset($this->strong)) {
return false;
}
return $this->strong;
}
public function setStrong($val) {
$this->strong = $val;
return $this;
}
public function clearStrong() {
unset($this->strong);
return $this;
}
public function hasStrong() {
return isset($this->strong);
}
public function getPropertyNameSize() {
return sizeof($this->property_name);
}
public function getPropertyNameList() {
return $this->property_name;
}
public function getPropertyName($idx) {
return $this->property_name[$idx];
}
public function setPropertyName($idx, $val) {
$this->property_name[$idx] = $val;
return $this;
}
public function addPropertyName($val) {
$this->property_name[] = $val;
return $this;
}
public function clearPropertyName() {
$this->property_name = array();
}
public function getGroupByPropertyNameSize() {
return sizeof($this->group_by_property_name);
}
public function getGroupByPropertyNameList() {
return $this->group_by_property_name;
}
public function getGroupByPropertyName($idx) {
return $this->group_by_property_name[$idx];
}
public function setGroupByPropertyName($idx, $val) {
$this->group_by_property_name[$idx] = $val;
return $this;
}
public function addGroupByPropertyName($val) {
$this->group_by_property_name[] = $val;
return $this;
}
public function clearGroupByPropertyName() {
$this->group_by_property_name = array();
}
public function getMinSafeTimeSeconds() {
if (!isset($this->min_safe_time_seconds)) {
return "0";
}
return $this->min_safe_time_seconds;
}
public function setMinSafeTimeSeconds($val) {
if (is_double($val)) {
$this->min_safe_time_seconds = sprintf('%0.0F', $val);
} else {
$this->min_safe_time_seconds = $val;
}
return $this;
}
public function clearMinSafeTimeSeconds() {
unset($this->min_safe_time_seconds);
return $this;
}
public function hasMinSafeTimeSeconds() {
return isset($this->min_safe_time_seconds);
}
public function getSafeReplicaNameSize() {
return sizeof($this->safe_replica_name);
}
public function getSafeReplicaNameList() {
return $this->safe_replica_name;
}
public function getSafeReplicaName($idx) {
return $this->safe_replica_name[$idx];
}
public function setSafeReplicaName($idx, $val) {
$this->safe_replica_name[$idx] = $val;
return $this;
}
public function addSafeReplicaName($val) {
$this->safe_replica_name[] = $val;
return $this;
}
public function clearSafeReplicaName() {
$this->safe_replica_name = array();
}
public function getPersistOffset() {
if (!isset($this->persist_offset)) {
return false;
}
return $this->persist_offset;
}
public function setPersistOffset($val) {
$this->persist_offset = $val;
return $this;
}
public function clearPersistOffset() {
unset($this->persist_offset);
return $this;
}
public function hasPersistOffset() {
return isset($this->persist_offset);
}
public function getHeader() {
if (!isset($this->header)) {
return new \google\appengine_datastore_v3\InternalHeader();
}
return $this->header;
}
public function mutableHeader() {
if (!isset($this->header)) {
$res = new \google\appengine_datastore_v3\InternalHeader();
$this->header = $res;
return $res;
}
return $this->header;
}
public function clearHeader() {
if (isset($this->header)) {
unset($this->header);
}
}
public function hasHeader() {
return isset($this->header);
}
public function clear() {
$this->clearApp();
$this->clearKind();
$this->clearFilter();
$this->clearSearchQuery();
$this->clearOrder();
$this->clearOffset();
$this->clearLimit();
$this->clearAncestor();
$this->clearHint();
$this->clearCompositeIndex();
$this->clearRequirePerfectPlan();
$this->clearKeysOnly();
$this->clearTransaction();
$this->clearCount();
$this->clearDistinct();
$this->clearCompile();
$this->clearFailoverMs();
$this->clearNameSpace();
$this->clearCompiledCursor();
$this->clearEndCompiledCursor();
$this->clearStrong();
$this->clearPropertyName();
$this->clearGroupByPropertyName();
$this->clearMinSafeTimeSeconds();
$this->clearSafeReplicaName();
$this->clearPersistOffset();
$this->clearHeader();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->app)) {
$res += 1;
$res += $this->lengthString(strlen($this->app));
}
if (isset($this->kind)) {
$res += 1;
$res += $this->lengthString(strlen($this->kind));
}
$this->checkProtoArray($this->filter);
$res += 2 * sizeof($this->filter);
foreach ($this->filter as $value) {
$res += $value->byteSizePartial();
}
if (isset($this->search_query)) {
$res += 1;
$res += $this->lengthString(strlen($this->search_query));
}
$this->checkProtoArray($this->order);
$res += 2 * sizeof($this->order);
foreach ($this->order as $value) {
$res += $value->byteSizePartial();
}
if (isset($this->offset)) {
$res += 1;
$res += $this->lengthVarInt64($this->offset);
}
if (isset($this->limit)) {
$res += 2;
$res += $this->lengthVarInt64($this->limit);
}
if (isset($this->ancestor)) {
$res += 2;
$res += $this->lengthString($this->ancestor->byteSizePartial());
}
if (isset($this->hint)) {
$res += 2;
$res += $this->lengthVarInt64($this->hint);
}
$this->checkProtoArray($this->composite_index);
$res += 2 * sizeof($this->composite_index);
foreach ($this->composite_index as $value) {
$res += $this->lengthString($value->byteSizePartial());
}
if (isset($this->require_perfect_plan)) {
$res += 3;
}
if (isset($this->keys_only)) {
$res += 3;
}
if (isset($this->transaction)) {
$res += 2;
$res += $this->lengthString($this->transaction->byteSizePartial());
}
if (isset($this->count)) {
$res += 2;
$res += $this->lengthVarInt64($this->count);
}
if (isset($this->distinct)) {
$res += 3;
}
if (isset($this->compile)) {
$res += 3;
}
if (isset($this->failover_ms)) {
$res += 2;
$res += $this->lengthVarInt64($this->failover_ms);
}
if (isset($this->name_space)) {
$res += 2;
$res += $this->lengthString(strlen($this->name_space));
}
if (isset($this->compiled_cursor)) {
$res += 2;
$res += $this->lengthString($this->compiled_cursor->byteSizePartial());
}
if (isset($this->end_compiled_cursor)) {
$res += 2;
$res += $this->lengthString($this->end_compiled_cursor->byteSizePartial());
}
if (isset($this->strong)) {
$res += 3;
}
$this->checkProtoArray($this->property_name);
$res += 2 * sizeof($this->property_name);
foreach ($this->property_name as $value) {
$res += $this->lengthString(strlen($value));
}
$this->checkProtoArray($this->group_by_property_name);
$res += 2 * sizeof($this->group_by_property_name);
foreach ($this->group_by_property_name as $value) {
$res += $this->lengthString(strlen($value));
}
if (isset($this->min_safe_time_seconds)) {
$res += 2;
$res += $this->lengthVarInt64($this->min_safe_time_seconds);
}
$this->checkProtoArray($this->safe_replica_name);
$res += 2 * sizeof($this->safe_replica_name);
foreach ($this->safe_replica_name as $value) {
$res += $this->lengthString(strlen($value));
}
if (isset($this->persist_offset)) {
$res += 3;
}
if (isset($this->header)) {
$res += 2;
$res += $this->lengthString($this->header->byteSizePartial());
}
return $res;
}
public function outputPartial($out) {
if (isset($this->app)) {
$out->putVarInt32(10);
$out->putPrefixedString($this->app);
}
if (isset($this->kind)) {
$out->putVarInt32(26);
$out->putPrefixedString($this->kind);
}
$this->checkProtoArray($this->filter);
foreach ($this->filter as $value) {
$out->putVarInt32(35);
$value->outputPartial($out);
$out->putVarInt32(36);
}
if (isset($this->search_query)) {
$out->putVarInt32(66);
$out->putPrefixedString($this->search_query);
}
$this->checkProtoArray($this->order);
foreach ($this->order as $value) {
$out->putVarInt32(75);
$value->outputPartial($out);
$out->putVarInt32(76);
}
if (isset($this->offset)) {
$out->putVarInt32(96);
$out->putVarInt32($this->offset);
}
if (isset($this->limit)) {
$out->putVarInt32(128);
$out->putVarInt32($this->limit);
}
if (isset($this->ancestor)) {
$out->putVarInt32(138);
$out->putVarInt32($this->ancestor->byteSizePartial());
$this->ancestor->outputPartial($out);
}
if (isset($this->hint)) {
$out->putVarInt32(144);
$out->putVarInt32($this->hint);
}
$this->checkProtoArray($this->composite_index);
foreach ($this->composite_index as $value) {
$out->putVarInt32(154);
$out->putVarInt32($value->byteSizePartial());
$value->outputPartial($out);
}
if (isset($this->require_perfect_plan)) {
$out->putVarInt32(160);
$out->putBoolean($this->require_perfect_plan);
}
if (isset($this->keys_only)) {
$out->putVarInt32(168);
$out->putBoolean($this->keys_only);
}
if (isset($this->transaction)) {
$out->putVarInt32(178);
$out->putVarInt32($this->transaction->byteSizePartial());
$this->transaction->outputPartial($out);
}
if (isset($this->count)) {
$out->putVarInt32(184);
$out->putVarInt32($this->count);
}
if (isset($this->distinct)) {
$out->putVarInt32(192);
$out->putBoolean($this->distinct);
}
if (isset($this->compile)) {
$out->putVarInt32(200);
$out->putBoolean($this->compile);
}
if (isset($this->failover_ms)) {
$out->putVarInt32(208);
$out->putVarInt64($this->failover_ms);
}
if (isset($this->name_space)) {
$out->putVarInt32(234);
$out->putPrefixedString($this->name_space);
}
if (isset($this->compiled_cursor)) {
$out->putVarInt32(242);
$out->putVarInt32($this->compiled_cursor->byteSizePartial());
$this->compiled_cursor->outputPartial($out);
}
if (isset($this->end_compiled_cursor)) {
$out->putVarInt32(250);
$out->putVarInt32($this->end_compiled_cursor->byteSizePartial());
$this->end_compiled_cursor->outputPartial($out);
}
if (isset($this->strong)) {
$out->putVarInt32(256);
$out->putBoolean($this->strong);
}
$this->checkProtoArray($this->property_name);
foreach ($this->property_name as $value) {
$out->putVarInt32(266);
$out->putPrefixedString($value);
}
$this->checkProtoArray($this->group_by_property_name);
foreach ($this->group_by_property_name as $value) {
$out->putVarInt32(274);
$out->putPrefixedString($value);
}
if (isset($this->min_safe_time_seconds)) {
$out->putVarInt32(280);
$out->putVarInt64($this->min_safe_time_seconds);
}
$this->checkProtoArray($this->safe_replica_name);
foreach ($this->safe_replica_name as $value) {
$out->putVarInt32(290);
$out->putPrefixedString($value);
}
if (isset($this->persist_offset)) {
$out->putVarInt32(296);
$out->putBoolean($this->persist_offset);
}
if (isset($this->header)) {
$out->putVarInt32(314);
$out->putVarInt32($this->header->byteSizePartial());
$this->header->outputPartial($out);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 10:
$length = $d->getVarInt32();
$this->setApp(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 26:
$length = $d->getVarInt32();
$this->setKind(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 35:
$this->addFilter()->tryMerge($d);
break;
case 66:
$length = $d->getVarInt32();
$this->setSearchQuery(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 75:
$this->addOrder()->tryMerge($d);
break;
case 96:
$this->setOffset($d->getVarInt32());
break;
case 128:
$this->setLimit($d->getVarInt32());
break;
case 138:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->mutableAncestor()->tryMerge($tmp);
break;
case 144:
$this->setHint($d->getVarInt32());
break;
case 154:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->addCompositeIndex()->tryMerge($tmp);
break;
case 160:
$this->setRequirePerfectPlan($d->getBoolean());
break;
case 168:
$this->setKeysOnly($d->getBoolean());
break;
case 178:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->mutableTransaction()->tryMerge($tmp);
break;
case 184:
$this->setCount($d->getVarInt32());
break;
case 192:
$this->setDistinct($d->getBoolean());
break;
case 200:
$this->setCompile($d->getBoolean());
break;
case 208:
$this->setFailoverMs($d->getVarInt64());
break;
case 234:
$length = $d->getVarInt32();
$this->setNameSpace(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 242:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->mutableCompiledCursor()->tryMerge($tmp);
break;
case 250:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->mutableEndCompiledCursor()->tryMerge($tmp);
break;
case 256:
$this->setStrong($d->getBoolean());
break;
case 266:
$length = $d->getVarInt32();
$this->addPropertyName(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 274:
$length = $d->getVarInt32();
$this->addGroupByPropertyName(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 280:
$this->setMinSafeTimeSeconds($d->getVarInt64());
break;
case 290:
$length = $d->getVarInt32();
$this->addSafeReplicaName(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 296:
$this->setPersistOffset($d->getBoolean());
break;
case 314:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->mutableHeader()->tryMerge($tmp);
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
if (!isset($this->app)) return 'app';
foreach ($this->filter as $value) {
if (!$value->isInitialized()) return 'filter';
}
foreach ($this->order as $value) {
if (!$value->isInitialized()) return 'order';
}
if (isset($this->ancestor) && (!$this->ancestor->isInitialized())) return 'ancestor';
foreach ($this->composite_index as $value) {
if (!$value->isInitialized()) return 'composite_index';
}
if (isset($this->transaction) && (!$this->transaction->isInitialized())) return 'transaction';
if (isset($this->compiled_cursor) && (!$this->compiled_cursor->isInitialized())) return 'compiled_cursor';
if (isset($this->end_compiled_cursor) && (!$this->end_compiled_cursor->isInitialized())) return 'end_compiled_cursor';
if (isset($this->header) && (!$this->header->isInitialized())) return 'header';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasApp()) {
$this->setApp($x->getApp());
}
if ($x->hasKind()) {
$this->setKind($x->getKind());
}
foreach ($x->getFilterList() as $v) {
$this->addFilter()->copyFrom($v);
}
if ($x->hasSearchQuery()) {
$this->setSearchQuery($x->getSearchQuery());
}
foreach ($x->getOrderList() as $v) {
$this->addOrder()->copyFrom($v);
}
if ($x->hasOffset()) {
$this->setOffset($x->getOffset());
}
if ($x->hasLimit()) {
$this->setLimit($x->getLimit());
}
if ($x->hasAncestor()) {
$this->mutableAncestor()->mergeFrom($x->getAncestor());
}
if ($x->hasHint()) {
$this->setHint($x->getHint());
}
foreach ($x->getCompositeIndexList() as $v) {
$this->addCompositeIndex()->copyFrom($v);
}
if ($x->hasRequirePerfectPlan()) {
$this->setRequirePerfectPlan($x->getRequirePerfectPlan());
}
if ($x->hasKeysOnly()) {
$this->setKeysOnly($x->getKeysOnly());
}
if ($x->hasTransaction()) {
$this->mutableTransaction()->mergeFrom($x->getTransaction());
}
if ($x->hasCount()) {
$this->setCount($x->getCount());
}
if ($x->hasDistinct()) {
$this->setDistinct($x->getDistinct());
}
if ($x->hasCompile()) {
$this->setCompile($x->getCompile());
}
if ($x->hasFailoverMs()) {
$this->setFailoverMs($x->getFailoverMs());
}
if ($x->hasNameSpace()) {
$this->setNameSpace($x->getNameSpace());
}
if ($x->hasCompiledCursor()) {
$this->mutableCompiledCursor()->mergeFrom($x->getCompiledCursor());
}
if ($x->hasEndCompiledCursor()) {
$this->mutableEndCompiledCursor()->mergeFrom($x->getEndCompiledCursor());
}
if ($x->hasStrong()) {
$this->setStrong($x->getStrong());
}
foreach ($x->getPropertyNameList() as $v) {
$this->addPropertyName($v);
}
foreach ($x->getGroupByPropertyNameList() as $v) {
$this->addGroupByPropertyName($v);
}
if ($x->hasMinSafeTimeSeconds()) {
$this->setMinSafeTimeSeconds($x->getMinSafeTimeSeconds());
}
foreach ($x->getSafeReplicaNameList() as $v) {
$this->addSafeReplicaName($v);
}
if ($x->hasPersistOffset()) {
$this->setPersistOffset($x->getPersistOffset());
}
if ($x->hasHeader()) {
$this->mutableHeader()->mergeFrom($x->getHeader());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->app) !== isset($x->app)) return false;
if (isset($this->app) && $this->app !== $x->app) return false;
if (isset($this->kind) !== isset($x->kind)) return false;
if (isset($this->kind) && $this->kind !== $x->kind) return false;
if (sizeof($this->filter) !== sizeof($x->filter)) return false;
foreach (array_map(null, $this->filter, $x->filter) as $v) {
if (!$v[0]->equals($v[1])) return false;
}
if (isset($this->search_query) !== isset($x->search_query)) return false;
if (isset($this->search_query) && $this->search_query !== $x->search_query) return false;
if (sizeof($this->order) !== sizeof($x->order)) return false;
foreach (array_map(null, $this->order, $x->order) as $v) {
if (!$v[0]->equals($v[1])) return false;
}
if (isset($this->offset) !== isset($x->offset)) return false;
if (isset($this->offset) && !$this->integerEquals($this->offset, $x->offset)) return false;
if (isset($this->limit) !== isset($x->limit)) return false;
if (isset($this->limit) && !$this->integerEquals($this->limit, $x->limit)) return false;
if (isset($this->ancestor) !== isset($x->ancestor)) return false;
if (isset($this->ancestor) && !$this->ancestor->equals($x->ancestor)) return false;
if (isset($this->hint) !== isset($x->hint)) return false;
if (isset($this->hint) && $this->hint !== $x->hint) return false;
if (sizeof($this->composite_index) !== sizeof($x->composite_index)) return false;
foreach (array_map(null, $this->composite_index, $x->composite_index) as $v) {
if (!$v[0]->equals($v[1])) return false;
}
if (isset($this->require_perfect_plan) !== isset($x->require_perfect_plan)) return false;
if (isset($this->require_perfect_plan) && $this->require_perfect_plan !== $x->require_perfect_plan) return false;
if (isset($this->keys_only) !== isset($x->keys_only)) return false;
if (isset($this->keys_only) && $this->keys_only !== $x->keys_only) return false;
if (isset($this->transaction) !== isset($x->transaction)) return false;
if (isset($this->transaction) && !$this->transaction->equals($x->transaction)) return false;
if (isset($this->count) !== isset($x->count)) return false;
if (isset($this->count) && !$this->integerEquals($this->count, $x->count)) return false;
if (isset($this->distinct) !== isset($x->distinct)) return false;
if (isset($this->distinct) && $this->distinct !== $x->distinct) return false;
if (isset($this->compile) !== isset($x->compile)) return false;
if (isset($this->compile) && $this->compile !== $x->compile) return false;
if (isset($this->failover_ms) !== isset($x->failover_ms)) return false;
if (isset($this->failover_ms) && !$this->integerEquals($this->failover_ms, $x->failover_ms)) return false;
if (isset($this->name_space) !== isset($x->name_space)) return false;
if (isset($this->name_space) && $this->name_space !== $x->name_space) return false;
if (isset($this->compiled_cursor) !== isset($x->compiled_cursor)) return false;
if (isset($this->compiled_cursor) && !$this->compiled_cursor->equals($x->compiled_cursor)) return false;
if (isset($this->end_compiled_cursor) !== isset($x->end_compiled_cursor)) return false;
if (isset($this->end_compiled_cursor) && !$this->end_compiled_cursor->equals($x->end_compiled_cursor)) return false;
if (isset($this->strong) !== isset($x->strong)) return false;
if (isset($this->strong) && $this->strong !== $x->strong) return false;
if (sizeof($this->property_name) !== sizeof($x->property_name)) return false;
foreach (array_map(null, $this->property_name, $x->property_name) as $v) {
if ($v[0] !== $v[1]) return false;
}
if (sizeof($this->group_by_property_name) !== sizeof($x->group_by_property_name)) return false;
foreach (array_map(null, $this->group_by_property_name, $x->group_by_property_name) as $v) {
if ($v[0] !== $v[1]) return false;
}
if (isset($this->min_safe_time_seconds) !== isset($x->min_safe_time_seconds)) return false;
if (isset($this->min_safe_time_seconds) && !$this->integerEquals($this->min_safe_time_seconds, $x->min_safe_time_seconds)) return false;
if (sizeof($this->safe_replica_name) !== sizeof($x->safe_replica_name)) return false;
foreach (array_map(null, $this->safe_replica_name, $x->safe_replica_name) as $v) {
if ($v[0] !== $v[1]) return false;
}
if (isset($this->persist_offset) !== isset($x->persist_offset)) return false;
if (isset($this->persist_offset) && $this->persist_offset !== $x->persist_offset) return false;
if (isset($this->header) !== isset($x->header)) return false;
if (isset($this->header) && !$this->header->equals($x->header)) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->app)) {
$res .= $prefix . "app: " . $this->debugFormatString($this->app) . "\n";
}
if (isset($this->kind)) {
$res .= $prefix . "kind: " . $this->debugFormatString($this->kind) . "\n";
}
foreach ($this->filter as $value) {
$res .= $prefix . "Filter {\n" . $value->shortDebugString($prefix . " ") . $prefix . "}\n";
}
if (isset($this->search_query)) {
$res .= $prefix . "search_query: " . $this->debugFormatString($this->search_query) . "\n";
}
foreach ($this->order as $value) {
$res .= $prefix . "Order {\n" . $value->shortDebugString($prefix . " ") . $prefix . "}\n";
}
if (isset($this->offset)) {
$res .= $prefix . "offset: " . $this->debugFormatInt32($this->offset) . "\n";
}
if (isset($this->limit)) {
$res .= $prefix . "limit: " . $this->debugFormatInt32($this->limit) . "\n";
}
if (isset($this->ancestor)) {
$res .= $prefix . "ancestor <\n" . $this->ancestor->shortDebugString($prefix . " ") . $prefix . ">\n";
}
if (isset($this->hint)) {
$res .= $prefix . "hint: " . ($this->hint) . "\n";
}
foreach ($this->composite_index as $value) {
$res .= $prefix . "composite_index <\n" . $value->shortDebugString($prefix . " ") . $prefix . ">\n";
}
if (isset($this->require_perfect_plan)) {
$res .= $prefix . "require_perfect_plan: " . $this->debugFormatBool($this->require_perfect_plan) . "\n";
}
if (isset($this->keys_only)) {
$res .= $prefix . "keys_only: " . $this->debugFormatBool($this->keys_only) . "\n";
}
if (isset($this->transaction)) {
$res .= $prefix . "transaction <\n" . $this->transaction->shortDebugString($prefix . " ") . $prefix . ">\n";
}
if (isset($this->count)) {
$res .= $prefix . "count: " . $this->debugFormatInt32($this->count) . "\n";
}
if (isset($this->distinct)) {
$res .= $prefix . "distinct: " . $this->debugFormatBool($this->distinct) . "\n";
}
if (isset($this->compile)) {
$res .= $prefix . "compile: " . $this->debugFormatBool($this->compile) . "\n";
}
if (isset($this->failover_ms)) {
$res .= $prefix . "failover_ms: " . $this->debugFormatInt64($this->failover_ms) . "\n";
}
if (isset($this->name_space)) {
$res .= $prefix . "name_space: " . $this->debugFormatString($this->name_space) . "\n";
}
if (isset($this->compiled_cursor)) {
$res .= $prefix . "compiled_cursor <\n" . $this->compiled_cursor->shortDebugString($prefix . " ") . $prefix . ">\n";
}
if (isset($this->end_compiled_cursor)) {
$res .= $prefix . "end_compiled_cursor <\n" . $this->end_compiled_cursor->shortDebugString($prefix . " ") . $prefix . ">\n";
}
if (isset($this->strong)) {
$res .= $prefix . "strong: " . $this->debugFormatBool($this->strong) . "\n";
}
foreach ($this->property_name as $value) {
$res .= $prefix . "property_name: " . $this->debugFormatString($value) . "\n";
}
foreach ($this->group_by_property_name as $value) {
$res .= $prefix . "group_by_property_name: " . $this->debugFormatString($value) . "\n";
}
if (isset($this->min_safe_time_seconds)) {
$res .= $prefix . "min_safe_time_seconds: " . $this->debugFormatInt64($this->min_safe_time_seconds) . "\n";
}
foreach ($this->safe_replica_name as $value) {
$res .= $prefix . "safe_replica_name: " . $this->debugFormatString($value) . "\n";
}
if (isset($this->persist_offset)) {
$res .= $prefix . "persist_offset: " . $this->debugFormatBool($this->persist_offset) . "\n";
}
if (isset($this->header)) {
$res .= $prefix . "header <\n" . $this->header->shortDebugString($prefix . " ") . $prefix . ">\n";
}
return $res;
}
}
}
namespace google\appengine_datastore_v3\CompiledQuery {
class PrimaryScan extends \google\net\ProtocolMessage {
private $start_postfix_value = array();
private $end_postfix_value = array();
public function getIndexName() {
if (!isset($this->index_name)) {
return '';
}
return $this->index_name;
}
public function setIndexName($val) {
$this->index_name = $val;
return $this;
}
public function clearIndexName() {
unset($this->index_name);
return $this;
}
public function hasIndexName() {
return isset($this->index_name);
}
public function getStartKey() {
if (!isset($this->start_key)) {
return '';
}
return $this->start_key;
}
public function setStartKey($val) {
$this->start_key = $val;
return $this;
}
public function clearStartKey() {
unset($this->start_key);
return $this;
}
public function hasStartKey() {
return isset($this->start_key);
}
public function getStartInclusive() {
if (!isset($this->start_inclusive)) {
return false;
}
return $this->start_inclusive;
}
public function setStartInclusive($val) {
$this->start_inclusive = $val;
return $this;
}
public function clearStartInclusive() {
unset($this->start_inclusive);
return $this;
}
public function hasStartInclusive() {
return isset($this->start_inclusive);
}
public function getEndKey() {
if (!isset($this->end_key)) {
return '';
}
return $this->end_key;
}
public function setEndKey($val) {
$this->end_key = $val;
return $this;
}
public function clearEndKey() {
unset($this->end_key);
return $this;
}
public function hasEndKey() {
return isset($this->end_key);
}
public function getEndInclusive() {
if (!isset($this->end_inclusive)) {
return false;
}
return $this->end_inclusive;
}
public function setEndInclusive($val) {
$this->end_inclusive = $val;
return $this;
}
public function clearEndInclusive() {
unset($this->end_inclusive);
return $this;
}
public function hasEndInclusive() {
return isset($this->end_inclusive);
}
public function getEndUnappliedLogTimestampUs() {
if (!isset($this->end_unapplied_log_timestamp_us)) {
return "0";
}
return $this->end_unapplied_log_timestamp_us;
}
public function setEndUnappliedLogTimestampUs($val) {
if (is_double($val)) {
$this->end_unapplied_log_timestamp_us = sprintf('%0.0F', $val);
} else {
$this->end_unapplied_log_timestamp_us = $val;
}
return $this;
}
public function clearEndUnappliedLogTimestampUs() {
unset($this->end_unapplied_log_timestamp_us);
return $this;
}
public function hasEndUnappliedLogTimestampUs() {
return isset($this->end_unapplied_log_timestamp_us);
}
public function getStartPostfixValueSize() {
return sizeof($this->start_postfix_value);
}
public function getStartPostfixValueList() {
return $this->start_postfix_value;
}
public function getStartPostfixValue($idx) {
return $this->start_postfix_value[$idx];
}
public function setStartPostfixValue($idx, $val) {
$this->start_postfix_value[$idx] = $val;
return $this;
}
public function addStartPostfixValue($val) {
$this->start_postfix_value[] = $val;
return $this;
}
public function clearStartPostfixValue() {
$this->start_postfix_value = array();
}
public function getEndPostfixValueSize() {
return sizeof($this->end_postfix_value);
}
public function getEndPostfixValueList() {
return $this->end_postfix_value;
}
public function getEndPostfixValue($idx) {
return $this->end_postfix_value[$idx];
}
public function setEndPostfixValue($idx, $val) {
$this->end_postfix_value[$idx] = $val;
return $this;
}
public function addEndPostfixValue($val) {
$this->end_postfix_value[] = $val;
return $this;
}
public function clearEndPostfixValue() {
$this->end_postfix_value = array();
}
public function clear() {
$this->clearIndexName();
$this->clearStartKey();
$this->clearStartInclusive();
$this->clearEndKey();
$this->clearEndInclusive();
$this->clearEndUnappliedLogTimestampUs();
$this->clearStartPostfixValue();
$this->clearEndPostfixValue();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->index_name)) {
$res += 1;
$res += $this->lengthString(strlen($this->index_name));
}
if (isset($this->start_key)) {
$res += 1;
$res += $this->lengthString(strlen($this->start_key));
}
if (isset($this->start_inclusive)) {
$res += 2;
}
if (isset($this->end_key)) {
$res += 1;
$res += $this->lengthString(strlen($this->end_key));
}
if (isset($this->end_inclusive)) {
$res += 2;
}
if (isset($this->end_unapplied_log_timestamp_us)) {
$res += 2;
$res += $this->lengthVarInt64($this->end_unapplied_log_timestamp_us);
}
$this->checkProtoArray($this->start_postfix_value);
$res += 2 * sizeof($this->start_postfix_value);
foreach ($this->start_postfix_value as $value) {
$res += $this->lengthString(strlen($value));
}
$this->checkProtoArray($this->end_postfix_value);
$res += 2 * sizeof($this->end_postfix_value);
foreach ($this->end_postfix_value as $value) {
$res += $this->lengthString(strlen($value));
}
return $res;
}
public function outputPartial($out) {
if (isset($this->index_name)) {
$out->putVarInt32(18);
$out->putPrefixedString($this->index_name);
}
if (isset($this->start_key)) {
$out->putVarInt32(26);
$out->putPrefixedString($this->start_key);
}
if (isset($this->start_inclusive)) {
$out->putVarInt32(32);
$out->putBoolean($this->start_inclusive);
}
if (isset($this->end_key)) {
$out->putVarInt32(42);
$out->putPrefixedString($this->end_key);
}
if (isset($this->end_inclusive)) {
$out->putVarInt32(48);
$out->putBoolean($this->end_inclusive);
}
if (isset($this->end_unapplied_log_timestamp_us)) {
$out->putVarInt32(152);
$out->putVarInt64($this->end_unapplied_log_timestamp_us);
}
$this->checkProtoArray($this->start_postfix_value);
foreach ($this->start_postfix_value as $value) {
$out->putVarInt32(178);
$out->putPrefixedString($value);
}
$this->checkProtoArray($this->end_postfix_value);
foreach ($this->end_postfix_value as $value) {
$out->putVarInt32(186);
$out->putPrefixedString($value);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 12: return;
case 18:
$length = $d->getVarInt32();
$this->setIndexName(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 26:
$length = $d->getVarInt32();
$this->setStartKey(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 32:
$this->setStartInclusive($d->getBoolean());
break;
case 42:
$length = $d->getVarInt32();
$this->setEndKey(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 48:
$this->setEndInclusive($d->getBoolean());
break;
case 152:
$this->setEndUnappliedLogTimestampUs($d->getVarInt64());
break;
case 178:
$length = $d->getVarInt32();
$this->addStartPostfixValue(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 186:
$length = $d->getVarInt32();
$this->addEndPostfixValue(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasIndexName()) {
$this->setIndexName($x->getIndexName());
}
if ($x->hasStartKey()) {
$this->setStartKey($x->getStartKey());
}
if ($x->hasStartInclusive()) {
$this->setStartInclusive($x->getStartInclusive());
}
if ($x->hasEndKey()) {
$this->setEndKey($x->getEndKey());
}
if ($x->hasEndInclusive()) {
$this->setEndInclusive($x->getEndInclusive());
}
if ($x->hasEndUnappliedLogTimestampUs()) {
$this->setEndUnappliedLogTimestampUs($x->getEndUnappliedLogTimestampUs());
}
foreach ($x->getStartPostfixValueList() as $v) {
$this->addStartPostfixValue($v);
}
foreach ($x->getEndPostfixValueList() as $v) {
$this->addEndPostfixValue($v);
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->index_name) !== isset($x->index_name)) return false;
if (isset($this->index_name) && $this->index_name !== $x->index_name) return false;
if (isset($this->start_key) !== isset($x->start_key)) return false;
if (isset($this->start_key) && $this->start_key !== $x->start_key) return false;
if (isset($this->start_inclusive) !== isset($x->start_inclusive)) return false;
if (isset($this->start_inclusive) && $this->start_inclusive !== $x->start_inclusive) return false;
if (isset($this->end_key) !== isset($x->end_key)) return false;
if (isset($this->end_key) && $this->end_key !== $x->end_key) return false;
if (isset($this->end_inclusive) !== isset($x->end_inclusive)) return false;
if (isset($this->end_inclusive) && $this->end_inclusive !== $x->end_inclusive) return false;
if (isset($this->end_unapplied_log_timestamp_us) !== isset($x->end_unapplied_log_timestamp_us)) return false;
if (isset($this->end_unapplied_log_timestamp_us) && !$this->integerEquals($this->end_unapplied_log_timestamp_us, $x->end_unapplied_log_timestamp_us)) return false;
if (sizeof($this->start_postfix_value) !== sizeof($x->start_postfix_value)) return false;
foreach (array_map(null, $this->start_postfix_value, $x->start_postfix_value) as $v) {
if ($v[0] !== $v[1]) return false;
}
if (sizeof($this->end_postfix_value) !== sizeof($x->end_postfix_value)) return false;
foreach (array_map(null, $this->end_postfix_value, $x->end_postfix_value) as $v) {
if ($v[0] !== $v[1]) return false;
}
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->index_name)) {
$res .= $prefix . "index_name: " . $this->debugFormatString($this->index_name) . "\n";
}
if (isset($this->start_key)) {
$res .= $prefix . "start_key: " . $this->debugFormatString($this->start_key) . "\n";
}
if (isset($this->start_inclusive)) {
$res .= $prefix . "start_inclusive: " . $this->debugFormatBool($this->start_inclusive) . "\n";
}
if (isset($this->end_key)) {
$res .= $prefix . "end_key: " . $this->debugFormatString($this->end_key) . "\n";
}
if (isset($this->end_inclusive)) {
$res .= $prefix . "end_inclusive: " . $this->debugFormatBool($this->end_inclusive) . "\n";
}
if (isset($this->end_unapplied_log_timestamp_us)) {
$res .= $prefix . "end_unapplied_log_timestamp_us: " . $this->debugFormatInt64($this->end_unapplied_log_timestamp_us) . "\n";
}
foreach ($this->start_postfix_value as $value) {
$res .= $prefix . "start_postfix_value: " . $this->debugFormatString($value) . "\n";
}
foreach ($this->end_postfix_value as $value) {
$res .= $prefix . "end_postfix_value: " . $this->debugFormatString($value) . "\n";
}
return $res;
}
}
}
namespace google\appengine_datastore_v3\CompiledQuery {
class MergeJoinScan extends \google\net\ProtocolMessage {
private $prefix_value = array();
public function getIndexName() {
if (!isset($this->index_name)) {
return '';
}
return $this->index_name;
}
public function setIndexName($val) {
$this->index_name = $val;
return $this;
}
public function clearIndexName() {
unset($this->index_name);
return $this;
}
public function hasIndexName() {
return isset($this->index_name);
}
public function getPrefixValueSize() {
return sizeof($this->prefix_value);
}
public function getPrefixValueList() {
return $this->prefix_value;
}
public function getPrefixValue($idx) {
return $this->prefix_value[$idx];
}
public function setPrefixValue($idx, $val) {
$this->prefix_value[$idx] = $val;
return $this;
}
public function addPrefixValue($val) {
$this->prefix_value[] = $val;
return $this;
}
public function clearPrefixValue() {
$this->prefix_value = array();
}
public function getValuePrefix() {
if (!isset($this->value_prefix)) {
return false;
}
return $this->value_prefix;
}
public function setValuePrefix($val) {
$this->value_prefix = $val;
return $this;
}
public function clearValuePrefix() {
unset($this->value_prefix);
return $this;
}
public function hasValuePrefix() {
return isset($this->value_prefix);
}
public function clear() {
$this->clearIndexName();
$this->clearPrefixValue();
$this->clearValuePrefix();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->index_name)) {
$res += 1;
$res += $this->lengthString(strlen($this->index_name));
}
$this->checkProtoArray($this->prefix_value);
$res += 1 * sizeof($this->prefix_value);
foreach ($this->prefix_value as $value) {
$res += $this->lengthString(strlen($value));
}
if (isset($this->value_prefix)) {
$res += 3;
}
return $res;
}
public function outputPartial($out) {
if (isset($this->index_name)) {
$out->putVarInt32(66);
$out->putPrefixedString($this->index_name);
}
$this->checkProtoArray($this->prefix_value);
foreach ($this->prefix_value as $value) {
$out->putVarInt32(74);
$out->putPrefixedString($value);
}
if (isset($this->value_prefix)) {
$out->putVarInt32(160);
$out->putBoolean($this->value_prefix);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 60: return;
case 66:
$length = $d->getVarInt32();
$this->setIndexName(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 74:
$length = $d->getVarInt32();
$this->addPrefixValue(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 160:
$this->setValuePrefix($d->getBoolean());
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
if (!isset($this->index_name)) return 'index_name';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasIndexName()) {
$this->setIndexName($x->getIndexName());
}
foreach ($x->getPrefixValueList() as $v) {
$this->addPrefixValue($v);
}
if ($x->hasValuePrefix()) {
$this->setValuePrefix($x->getValuePrefix());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->index_name) !== isset($x->index_name)) return false;
if (isset($this->index_name) && $this->index_name !== $x->index_name) return false;
if (sizeof($this->prefix_value) !== sizeof($x->prefix_value)) return false;
foreach (array_map(null, $this->prefix_value, $x->prefix_value) as $v) {
if ($v[0] !== $v[1]) return false;
}
if (isset($this->value_prefix) !== isset($x->value_prefix)) return false;
if (isset($this->value_prefix) && $this->value_prefix !== $x->value_prefix) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->index_name)) {
$res .= $prefix . "index_name: " . $this->debugFormatString($this->index_name) . "\n";
}
foreach ($this->prefix_value as $value) {
$res .= $prefix . "prefix_value: " . $this->debugFormatString($value) . "\n";
}
if (isset($this->value_prefix)) {
$res .= $prefix . "value_prefix: " . $this->debugFormatBool($this->value_prefix) . "\n";
}
return $res;
}
}
}
namespace google\appengine_datastore_v3\CompiledQuery {
class EntityFilter extends \google\net\ProtocolMessage {
public function getDistinct() {
if (!isset($this->distinct)) {
return false;
}
return $this->distinct;
}
public function setDistinct($val) {
$this->distinct = $val;
return $this;
}
public function clearDistinct() {
unset($this->distinct);
return $this;
}
public function hasDistinct() {
return isset($this->distinct);
}
public function getKind() {
if (!isset($this->kind)) {
return '';
}
return $this->kind;
}
public function setKind($val) {
$this->kind = $val;
return $this;