blob: 20a3c957429b7bca59265b62534727e105e66dab [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/entity.proto
namespace dummy {
require_once 'google/appengine/runtime/proto/ProtocolMessage.php';
}
namespace storage_onestore_v3\PropertyValue {
class PointValue extends \google\net\ProtocolMessage {
public function getX() {
if (!isset($this->x)) {
return 0.0;
}
return $this->x;
}
public function setX($val) {
$this->x = $val;
return $this;
}
public function clearX() {
unset($this->x);
return $this;
}
public function hasX() {
return isset($this->x);
}
public function getY() {
if (!isset($this->y)) {
return 0.0;
}
return $this->y;
}
public function setY($val) {
$this->y = $val;
return $this;
}
public function clearY() {
unset($this->y);
return $this;
}
public function hasY() {
return isset($this->y);
}
public function clear() {
$this->clearX();
$this->clearY();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->x)) {
$res += 9;
}
if (isset($this->y)) {
$res += 9;
}
return $res;
}
public function outputPartial($out) {
if (isset($this->x)) {
$out->putVarInt32(49);
$out->putDouble($this->x);
}
if (isset($this->y)) {
$out->putVarInt32(57);
$out->putDouble($this->y);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 44: return;
case 49:
$this->setX($d->getDouble());
break;
case 57:
$this->setY($d->getDouble());
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
if (!isset($this->x)) return 'x';
if (!isset($this->y)) return 'y';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasX()) {
$this->setX($x->getX());
}
if ($x->hasY()) {
$this->setY($x->getY());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->x) !== isset($x->x)) return false;
if (isset($this->x) && $this->x !== $x->x) return false;
if (isset($this->y) !== isset($x->y)) return false;
if (isset($this->y) && $this->y !== $x->y) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->x)) {
$res .= $prefix . "x: " . $this->debugFormatDouble($this->x) . "\n";
}
if (isset($this->y)) {
$res .= $prefix . "y: " . $this->debugFormatDouble($this->y) . "\n";
}
return $res;
}
}
}
namespace storage_onestore_v3\PropertyValue {
class UserValue extends \google\net\ProtocolMessage {
public function getEmail() {
if (!isset($this->email)) {
return '';
}
return $this->email;
}
public function setEmail($val) {
$this->email = $val;
return $this;
}
public function clearEmail() {
unset($this->email);
return $this;
}
public function hasEmail() {
return isset($this->email);
}
public function getAuthDomain() {
if (!isset($this->auth_domain)) {
return '';
}
return $this->auth_domain;
}
public function setAuthDomain($val) {
$this->auth_domain = $val;
return $this;
}
public function clearAuthDomain() {
unset($this->auth_domain);
return $this;
}
public function hasAuthDomain() {
return isset($this->auth_domain);
}
public function getNickname() {
if (!isset($this->nickname)) {
return '';
}
return $this->nickname;
}
public function setNickname($val) {
$this->nickname = $val;
return $this;
}
public function clearNickname() {
unset($this->nickname);
return $this;
}
public function hasNickname() {
return isset($this->nickname);
}
public function getGaiaid() {
if (!isset($this->gaiaid)) {
return "0";
}
return $this->gaiaid;
}
public function setGaiaid($val) {
if (is_double($val)) {
$this->gaiaid = sprintf('%0.0F', $val);
} else {
$this->gaiaid = $val;
}
return $this;
}
public function clearGaiaid() {
unset($this->gaiaid);
return $this;
}
public function hasGaiaid() {
return isset($this->gaiaid);
}
public function getObfuscatedGaiaid() {
if (!isset($this->obfuscated_gaiaid)) {
return '';
}
return $this->obfuscated_gaiaid;
}
public function setObfuscatedGaiaid($val) {
$this->obfuscated_gaiaid = $val;
return $this;
}
public function clearObfuscatedGaiaid() {
unset($this->obfuscated_gaiaid);
return $this;
}
public function hasObfuscatedGaiaid() {
return isset($this->obfuscated_gaiaid);
}
public function getFederatedIdentity() {
if (!isset($this->federated_identity)) {
return '';
}
return $this->federated_identity;
}
public function setFederatedIdentity($val) {
$this->federated_identity = $val;
return $this;
}
public function clearFederatedIdentity() {
unset($this->federated_identity);
return $this;
}
public function hasFederatedIdentity() {
return isset($this->federated_identity);
}
public function getFederatedProvider() {
if (!isset($this->federated_provider)) {
return '';
}
return $this->federated_provider;
}
public function setFederatedProvider($val) {
$this->federated_provider = $val;
return $this;
}
public function clearFederatedProvider() {
unset($this->federated_provider);
return $this;
}
public function hasFederatedProvider() {
return isset($this->federated_provider);
}
public function clear() {
$this->clearEmail();
$this->clearAuthDomain();
$this->clearNickname();
$this->clearGaiaid();
$this->clearObfuscatedGaiaid();
$this->clearFederatedIdentity();
$this->clearFederatedProvider();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->email)) {
$res += 1;
$res += $this->lengthString(strlen($this->email));
}
if (isset($this->auth_domain)) {
$res += 1;
$res += $this->lengthString(strlen($this->auth_domain));
}
if (isset($this->nickname)) {
$res += 1;
$res += $this->lengthString(strlen($this->nickname));
}
if (isset($this->gaiaid)) {
$res += 2;
$res += $this->lengthVarInt64($this->gaiaid);
}
if (isset($this->obfuscated_gaiaid)) {
$res += 2;
$res += $this->lengthString(strlen($this->obfuscated_gaiaid));
}
if (isset($this->federated_identity)) {
$res += 2;
$res += $this->lengthString(strlen($this->federated_identity));
}
if (isset($this->federated_provider)) {
$res += 2;
$res += $this->lengthString(strlen($this->federated_provider));
}
return $res;
}
public function outputPartial($out) {
if (isset($this->email)) {
$out->putVarInt32(74);
$out->putPrefixedString($this->email);
}
if (isset($this->auth_domain)) {
$out->putVarInt32(82);
$out->putPrefixedString($this->auth_domain);
}
if (isset($this->nickname)) {
$out->putVarInt32(90);
$out->putPrefixedString($this->nickname);
}
if (isset($this->gaiaid)) {
$out->putVarInt32(144);
$out->putVarInt64($this->gaiaid);
}
if (isset($this->obfuscated_gaiaid)) {
$out->putVarInt32(154);
$out->putPrefixedString($this->obfuscated_gaiaid);
}
if (isset($this->federated_identity)) {
$out->putVarInt32(170);
$out->putPrefixedString($this->federated_identity);
}
if (isset($this->federated_provider)) {
$out->putVarInt32(178);
$out->putPrefixedString($this->federated_provider);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 68: return;
case 74:
$length = $d->getVarInt32();
$this->setEmail(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 82:
$length = $d->getVarInt32();
$this->setAuthDomain(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 90:
$length = $d->getVarInt32();
$this->setNickname(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 144:
$this->setGaiaid($d->getVarInt64());
break;
case 154:
$length = $d->getVarInt32();
$this->setObfuscatedGaiaid(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 170:
$length = $d->getVarInt32();
$this->setFederatedIdentity(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 178:
$length = $d->getVarInt32();
$this->setFederatedProvider(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() {
if (!isset($this->email)) return 'email';
if (!isset($this->auth_domain)) return 'auth_domain';
if (!isset($this->gaiaid)) return 'gaiaid';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasEmail()) {
$this->setEmail($x->getEmail());
}
if ($x->hasAuthDomain()) {
$this->setAuthDomain($x->getAuthDomain());
}
if ($x->hasNickname()) {
$this->setNickname($x->getNickname());
}
if ($x->hasGaiaid()) {
$this->setGaiaid($x->getGaiaid());
}
if ($x->hasObfuscatedGaiaid()) {
$this->setObfuscatedGaiaid($x->getObfuscatedGaiaid());
}
if ($x->hasFederatedIdentity()) {
$this->setFederatedIdentity($x->getFederatedIdentity());
}
if ($x->hasFederatedProvider()) {
$this->setFederatedProvider($x->getFederatedProvider());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->email) !== isset($x->email)) return false;
if (isset($this->email) && $this->email !== $x->email) return false;
if (isset($this->auth_domain) !== isset($x->auth_domain)) return false;
if (isset($this->auth_domain) && $this->auth_domain !== $x->auth_domain) return false;
if (isset($this->nickname) !== isset($x->nickname)) return false;
if (isset($this->nickname) && $this->nickname !== $x->nickname) return false;
if (isset($this->gaiaid) !== isset($x->gaiaid)) return false;
if (isset($this->gaiaid) && !$this->integerEquals($this->gaiaid, $x->gaiaid)) return false;
if (isset($this->obfuscated_gaiaid) !== isset($x->obfuscated_gaiaid)) return false;
if (isset($this->obfuscated_gaiaid) && $this->obfuscated_gaiaid !== $x->obfuscated_gaiaid) return false;
if (isset($this->federated_identity) !== isset($x->federated_identity)) return false;
if (isset($this->federated_identity) && $this->federated_identity !== $x->federated_identity) return false;
if (isset($this->federated_provider) !== isset($x->federated_provider)) return false;
if (isset($this->federated_provider) && $this->federated_provider !== $x->federated_provider) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->email)) {
$res .= $prefix . "email: " . $this->debugFormatString($this->email) . "\n";
}
if (isset($this->auth_domain)) {
$res .= $prefix . "auth_domain: " . $this->debugFormatString($this->auth_domain) . "\n";
}
if (isset($this->nickname)) {
$res .= $prefix . "nickname: " . $this->debugFormatString($this->nickname) . "\n";
}
if (isset($this->gaiaid)) {
$res .= $prefix . "gaiaid: " . $this->debugFormatInt64($this->gaiaid) . "\n";
}
if (isset($this->obfuscated_gaiaid)) {
$res .= $prefix . "obfuscated_gaiaid: " . $this->debugFormatString($this->obfuscated_gaiaid) . "\n";
}
if (isset($this->federated_identity)) {
$res .= $prefix . "federated_identity: " . $this->debugFormatString($this->federated_identity) . "\n";
}
if (isset($this->federated_provider)) {
$res .= $prefix . "federated_provider: " . $this->debugFormatString($this->federated_provider) . "\n";
}
return $res;
}
}
}
namespace storage_onestore_v3\PropertyValue\ReferenceValue {
class PathElement extends \google\net\ProtocolMessage {
public function getType() {
if (!isset($this->type)) {
return '';
}
return $this->type;
}
public function setType($val) {
$this->type = $val;
return $this;
}
public function clearType() {
unset($this->type);
return $this;
}
public function hasType() {
return isset($this->type);
}
public function getId() {
if (!isset($this->id)) {
return "0";
}
return $this->id;
}
public function setId($val) {
if (is_double($val)) {
$this->id = sprintf('%0.0F', $val);
} else {
$this->id = $val;
}
return $this;
}
public function clearId() {
unset($this->id);
return $this;
}
public function hasId() {
return isset($this->id);
}
public function getName() {
if (!isset($this->name)) {
return '';
}
return $this->name;
}
public function setName($val) {
$this->name = $val;
return $this;
}
public function clearName() {
unset($this->name);
return $this;
}
public function hasName() {
return isset($this->name);
}
public function clear() {
$this->clearType();
$this->clearId();
$this->clearName();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->type)) {
$res += 1;
$res += $this->lengthString(strlen($this->type));
}
if (isset($this->id)) {
$res += 2;
$res += $this->lengthVarInt64($this->id);
}
if (isset($this->name)) {
$res += 2;
$res += $this->lengthString(strlen($this->name));
}
return $res;
}
public function outputPartial($out) {
if (isset($this->type)) {
$out->putVarInt32(122);
$out->putPrefixedString($this->type);
}
if (isset($this->id)) {
$out->putVarInt32(128);
$out->putVarInt64($this->id);
}
if (isset($this->name)) {
$out->putVarInt32(138);
$out->putPrefixedString($this->name);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 116: return;
case 122:
$length = $d->getVarInt32();
$this->setType(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 128:
$this->setId($d->getVarInt64());
break;
case 138:
$length = $d->getVarInt32();
$this->setName(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() {
if (!isset($this->type)) return 'type';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasType()) {
$this->setType($x->getType());
}
if ($x->hasId()) {
$this->setId($x->getId());
}
if ($x->hasName()) {
$this->setName($x->getName());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->type) !== isset($x->type)) return false;
if (isset($this->type) && $this->type !== $x->type) return false;
if (isset($this->id) !== isset($x->id)) return false;
if (isset($this->id) && !$this->integerEquals($this->id, $x->id)) return false;
if (isset($this->name) !== isset($x->name)) return false;
if (isset($this->name) && $this->name !== $x->name) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->type)) {
$res .= $prefix . "type: " . $this->debugFormatString($this->type) . "\n";
}
if (isset($this->id)) {
$res .= $prefix . "id: " . $this->debugFormatInt64($this->id) . "\n";
}
if (isset($this->name)) {
$res .= $prefix . "name: " . $this->debugFormatString($this->name) . "\n";
}
return $res;
}
}
}
namespace storage_onestore_v3\PropertyValue {
class ReferenceValue extends \google\net\ProtocolMessage {
private $pathelement = 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 getPathElementSize() {
return sizeof($this->pathelement);
}
public function getPathElementList() {
return $this->pathelement;
}
public function mutablePathElement($idx) {
if (!isset($this->pathelement[$idx])) {
$val = new \storage_onestore_v3\PropertyValue\ReferenceValue\PathElement();
$this->pathelement[$idx] = $val;
return $val;
}
return $this->pathelement[$idx];
}
public function getPathElement($idx) {
if (isset($this->pathelement[$idx])) {
return $this->pathelement[$idx];
}
if ($idx >= end(array_keys($this->pathelement))) {
throw new \OutOfRangeException('index out of range: ' + $idx);
}
return new \storage_onestore_v3\PropertyValue\ReferenceValue\PathElement();
}
public function addPathElement() {
$val = new \storage_onestore_v3\PropertyValue\ReferenceValue\PathElement();
$this->pathelement[] = $val;
return $val;
}
public function clearPathElement() {
$this->pathelement = array();
}
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 clear() {
$this->clearApp();
$this->clearPathElement();
$this->clearNameSpace();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->app)) {
$res += 1;
$res += $this->lengthString(strlen($this->app));
}
$this->checkProtoArray($this->pathelement);
$res += 2 * sizeof($this->pathelement);
foreach ($this->pathelement as $value) {
$res += $value->byteSizePartial();
}
if (isset($this->name_space)) {
$res += 2;
$res += $this->lengthString(strlen($this->name_space));
}
return $res;
}
public function outputPartial($out) {
if (isset($this->app)) {
$out->putVarInt32(106);
$out->putPrefixedString($this->app);
}
$this->checkProtoArray($this->pathelement);
foreach ($this->pathelement as $value) {
$out->putVarInt32(115);
$value->outputPartial($out);
$out->putVarInt32(116);
}
if (isset($this->name_space)) {
$out->putVarInt32(162);
$out->putPrefixedString($this->name_space);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 100: return;
case 106:
$length = $d->getVarInt32();
$this->setApp(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 115:
$this->addPathElement()->tryMerge($d);
break;
case 162:
$length = $d->getVarInt32();
$this->setNameSpace(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() {
if (!isset($this->app)) return 'app';
foreach ($this->pathelement as $value) {
if (!$value->isInitialized()) return 'pathelement';
}
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasApp()) {
$this->setApp($x->getApp());
}
foreach ($x->getPathElementList() as $v) {
$this->addPathElement()->copyFrom($v);
}
if ($x->hasNameSpace()) {
$this->setNameSpace($x->getNameSpace());
}
}
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 (sizeof($this->pathelement) !== sizeof($x->pathelement)) return false;
foreach (array_map(null, $this->pathelement, $x->pathelement) as $v) {
if (!$v[0]->equals($v[1])) 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;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->app)) {
$res .= $prefix . "app: " . $this->debugFormatString($this->app) . "\n";
}
foreach ($this->pathelement as $value) {
$res .= $prefix . "PathElement {\n" . $value->shortDebugString($prefix . " ") . $prefix . "}\n";
}
if (isset($this->name_space)) {
$res .= $prefix . "name_space: " . $this->debugFormatString($this->name_space) . "\n";
}
return $res;
}
}
}
namespace storage_onestore_v3 {
class PropertyValue extends \google\net\ProtocolMessage {
public function getInt64Value() {
if (!isset($this->int64Value)) {
return "0";
}
return $this->int64Value;
}
public function setInt64Value($val) {
if (is_double($val)) {
$this->int64Value = sprintf('%0.0F', $val);
} else {
$this->int64Value = $val;
}
return $this;
}
public function clearInt64Value() {
unset($this->int64Value);
return $this;
}
public function hasInt64Value() {
return isset($this->int64Value);
}
public function getBooleanvalue() {
if (!isset($this->booleanValue)) {
return false;
}
return $this->booleanValue;
}
public function setBooleanvalue($val) {
$this->booleanValue = $val;
return $this;
}
public function clearBooleanvalue() {
unset($this->booleanValue);
return $this;
}
public function hasBooleanvalue() {
return isset($this->booleanValue);
}
public function getStringvalue() {
if (!isset($this->stringValue)) {
return '';
}
return $this->stringValue;
}
public function setStringvalue($val) {
$this->stringValue = $val;
return $this;
}
public function clearStringvalue() {
unset($this->stringValue);
return $this;
}
public function hasStringvalue() {
return isset($this->stringValue);
}
public function getDoublevalue() {
if (!isset($this->doubleValue)) {
return 0.0;
}
return $this->doubleValue;
}
public function setDoublevalue($val) {
$this->doubleValue = $val;
return $this;
}
public function clearDoublevalue() {
unset($this->doubleValue);
return $this;
}
public function hasDoublevalue() {
return isset($this->doubleValue);
}
public function getPointValue() {
if (!isset($this->pointvalue)) {
return new \storage_onestore_v3\PropertyValue\PointValue();
}
return $this->pointvalue;
}
public function mutablePointValue() {
if (!isset($this->pointvalue)) {
$res = new \storage_onestore_v3\PropertyValue\PointValue();
$this->pointvalue = $res;
return $res;
}
return $this->pointvalue;
}
public function clearPointValue() {
if (isset($this->pointvalue)) {
unset($this->pointvalue);
}
}
public function hasPointValue() {
return isset($this->pointvalue);
}
public function getUserValue() {
if (!isset($this->uservalue)) {
return new \storage_onestore_v3\PropertyValue\UserValue();
}
return $this->uservalue;
}
public function mutableUserValue() {
if (!isset($this->uservalue)) {
$res = new \storage_onestore_v3\PropertyValue\UserValue();
$this->uservalue = $res;
return $res;
}
return $this->uservalue;
}
public function clearUserValue() {
if (isset($this->uservalue)) {
unset($this->uservalue);
}
}
public function hasUserValue() {
return isset($this->uservalue);
}
public function getReferenceValue() {
if (!isset($this->referencevalue)) {
return new \storage_onestore_v3\PropertyValue\ReferenceValue();
}
return $this->referencevalue;
}
public function mutableReferenceValue() {
if (!isset($this->referencevalue)) {
$res = new \storage_onestore_v3\PropertyValue\ReferenceValue();
$this->referencevalue = $res;
return $res;
}
return $this->referencevalue;
}
public function clearReferenceValue() {
if (isset($this->referencevalue)) {
unset($this->referencevalue);
}
}
public function hasReferenceValue() {
return isset($this->referencevalue);
}
public function clear() {
$this->clearInt64Value();
$this->clearBooleanvalue();
$this->clearStringvalue();
$this->clearDoublevalue();
$this->clearPointValue();
$this->clearUserValue();
$this->clearReferenceValue();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->int64Value)) {
$res += 1;
$res += $this->lengthVarInt64($this->int64Value);
}
if (isset($this->booleanValue)) {
$res += 2;
}
if (isset($this->stringValue)) {
$res += 1;
$res += $this->lengthString(strlen($this->stringValue));
}
if (isset($this->doubleValue)) {
$res += 9;
}
if (isset($this->pointvalue)) {
$res += 2;
$res += $this->pointvalue->byteSizePartial();
}
if (isset($this->uservalue)) {
$res += 2;
$res += $this->uservalue->byteSizePartial();
}
if (isset($this->referencevalue)) {
$res += 2;
$res += $this->referencevalue->byteSizePartial();
}
return $res;
}
public function outputPartial($out) {
if (isset($this->int64Value)) {
$out->putVarInt32(8);
$out->putVarInt64($this->int64Value);
}
if (isset($this->booleanValue)) {
$out->putVarInt32(16);
$out->putBoolean($this->booleanValue);
}
if (isset($this->stringValue)) {
$out->putVarInt32(26);
$out->putPrefixedString($this->stringValue);
}
if (isset($this->doubleValue)) {
$out->putVarInt32(33);
$out->putDouble($this->doubleValue);
}
if (isset($this->pointvalue)) {
$out->putVarInt32(43);
$this->pointvalue->outputPartial($out);
$out->putVarInt32(44);
}
if (isset($this->uservalue)) {
$out->putVarInt32(67);
$this->uservalue->outputPartial($out);
$out->putVarInt32(68);
}
if (isset($this->referencevalue)) {
$out->putVarInt32(99);
$this->referencevalue->outputPartial($out);
$out->putVarInt32(100);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 8:
$this->setInt64Value($d->getVarInt64());
break;
case 16:
$this->setBooleanvalue($d->getBoolean());
break;
case 26:
$length = $d->getVarInt32();
$this->setStringvalue(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 33:
$this->setDoublevalue($d->getDouble());
break;
case 43:
$this->mutablePointValue()->tryMerge($d);
break;
case 67:
$this->mutableUserValue()->tryMerge($d);
break;
case 99:
$this->mutableReferenceValue()->tryMerge($d);
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
if (isset($this->pointvalue) && (!$this->pointvalue->isInitialized())) return 'pointvalue';
if (isset($this->uservalue) && (!$this->uservalue->isInitialized())) return 'uservalue';
if (isset($this->referencevalue) && (!$this->referencevalue->isInitialized())) return 'referencevalue';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasInt64Value()) {
$this->setInt64Value($x->getInt64Value());
}
if ($x->hasBooleanvalue()) {
$this->setBooleanvalue($x->getBooleanvalue());
}
if ($x->hasStringvalue()) {
$this->setStringvalue($x->getStringvalue());
}
if ($x->hasDoublevalue()) {
$this->setDoublevalue($x->getDoublevalue());
}
if ($x->hasPointValue()) {
$this->mutablePointValue()->mergeFrom($x->getPointValue());
}
if ($x->hasUserValue()) {
$this->mutableUserValue()->mergeFrom($x->getUserValue());
}
if ($x->hasReferenceValue()) {
$this->mutableReferenceValue()->mergeFrom($x->getReferenceValue());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->int64Value) !== isset($x->int64Value)) return false;
if (isset($this->int64Value) && !$this->integerEquals($this->int64Value, $x->int64Value)) return false;
if (isset($this->booleanValue) !== isset($x->booleanValue)) return false;
if (isset($this->booleanValue) && $this->booleanValue !== $x->booleanValue) return false;
if (isset($this->stringValue) !== isset($x->stringValue)) return false;
if (isset($this->stringValue) && $this->stringValue !== $x->stringValue) return false;
if (isset($this->doubleValue) !== isset($x->doubleValue)) return false;
if (isset($this->doubleValue) && $this->doubleValue !== $x->doubleValue) return false;
if (isset($this->pointvalue) !== isset($x->pointvalue)) return false;
if (isset($this->pointvalue) && !$this->pointvalue->equals($x->pointvalue)) return false;
if (isset($this->uservalue) !== isset($x->uservalue)) return false;
if (isset($this->uservalue) && !$this->uservalue->equals($x->uservalue)) return false;
if (isset($this->referencevalue) !== isset($x->referencevalue)) return false;
if (isset($this->referencevalue) && !$this->referencevalue->equals($x->referencevalue)) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->int64Value)) {
$res .= $prefix . "int64Value: " . $this->debugFormatInt64($this->int64Value) . "\n";
}
if (isset($this->booleanValue)) {
$res .= $prefix . "booleanValue: " . $this->debugFormatBool($this->booleanValue) . "\n";
}
if (isset($this->stringValue)) {
$res .= $prefix . "stringValue: " . $this->debugFormatString($this->stringValue) . "\n";
}
if (isset($this->doubleValue)) {
$res .= $prefix . "doubleValue: " . $this->debugFormatDouble($this->doubleValue) . "\n";
}
if (isset($this->pointvalue)) {
$res .= $prefix . "PointValue {\n" . $this->pointvalue->shortDebugString($prefix . " ") . $prefix . "}\n";
}
if (isset($this->uservalue)) {
$res .= $prefix . "UserValue {\n" . $this->uservalue->shortDebugString($prefix . " ") . $prefix . "}\n";
}
if (isset($this->referencevalue)) {
$res .= $prefix . "ReferenceValue {\n" . $this->referencevalue->shortDebugString($prefix . " ") . $prefix . "}\n";
}
return $res;
}
}
}
namespace storage_onestore_v3\Property {
class Meaning {
const NO_MEANING = 0;
const BLOB = 14;
const TEXT = 15;
const BYTESTRING = 16;
const ATOM_CATEGORY = 1;
const ATOM_LINK = 2;
const ATOM_TITLE = 3;
const ATOM_CONTENT = 4;
const ATOM_SUMMARY = 5;
const ATOM_AUTHOR = 6;
const GD_WHEN = 7;
const GD_EMAIL = 8;
const GEORSS_POINT = 9;
const GD_IM = 10;
const GD_PHONENUMBER = 11;
const GD_POSTALADDRESS = 12;
const GD_RATING = 13;
const BLOBKEY = 17;
const ENTITY_PROTO = 19;
const INDEX_VALUE = 18;
}
}
namespace storage_onestore_v3 {
class Property extends \google\net\ProtocolMessage {
public function getMeaning() {
if (!isset($this->meaning)) {
return 0;
}
return $this->meaning;
}
public function setMeaning($val) {
$this->meaning = $val;
return $this;
}
public function clearMeaning() {
unset($this->meaning);
return $this;
}
public function hasMeaning() {
return isset($this->meaning);
}
public function getMeaningUri() {
if (!isset($this->meaning_uri)) {
return '';
}
return $this->meaning_uri;
}
public function setMeaningUri($val) {
$this->meaning_uri = $val;
return $this;
}
public function clearMeaningUri() {
unset($this->meaning_uri);
return $this;
}
public function hasMeaningUri() {
return isset($this->meaning_uri);
}
public function getName() {
if (!isset($this->name)) {
return '';
}
return $this->name;
}
public function setName($val) {
$this->name = $val;
return $this;
}
public function clearName() {
unset($this->name);
return $this;
}
public function hasName() {
return isset($this->name);
}
public function getMultiple() {
if (!isset($this->multiple)) {
return false;
}
return $this->multiple;
}
public function setMultiple($val) {
$this->multiple = $val;
return $this;
}
public function clearMultiple() {
unset($this->multiple);
return $this;
}
public function hasMultiple() {
return isset($this->multiple);
}
public function getValue() {
if (!isset($this->value)) {
return new \storage_onestore_v3\PropertyValue();
}
return $this->value;
}
public function mutableValue() {
if (!isset($this->value)) {
$res = new \storage_onestore_v3\PropertyValue();
$this->value = $res;
return $res;
}
return $this->value;
}
public function clearValue() {
if (isset($this->value)) {
unset($this->value);
}
}
public function hasValue() {
return isset($this->value);
}
public function getEmbedded() {
if (!isset($this->embedded)) {
return false;
}
return $this->embedded;
}
public function setEmbedded($val) {
$this->embedded = $val;
return $this;
}
public function clearEmbedded() {
unset($this->embedded);
return $this;
}
public function hasEmbedded() {
return isset($this->embedded);
}
public function clear() {
$this->clearMeaning();
$this->clearMeaningUri();
$this->clearName();
$this->clearMultiple();
$this->clearValue();
$this->clearEmbedded();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->meaning)) {
$res += 1;
$res += $this->lengthVarInt64($this->meaning);
}
if (isset($this->meaning_uri)) {
$res += 1;
$res += $this->lengthString(strlen($this->meaning_uri));
}
if (isset($this->name)) {
$res += 1;
$res += $this->lengthString(strlen($this->name));
}
if (isset($this->multiple)) {
$res += 2;
}
if (isset($this->value)) {
$res += 1;
$res += $this->lengthString($this->value->byteSizePartial());
}
if (isset($this->embedded)) {
$res += 2;
}
return $res;
}
public function outputPartial($out) {
if (isset($this->meaning)) {
$out->putVarInt32(8);
$out->putVarInt32($this->meaning);
}
if (isset($this->meaning_uri)) {
$out->putVarInt32(18);
$out->putPrefixedString($this->meaning_uri);
}
if (isset($this->name)) {
$out->putVarInt32(26);
$out->putPrefixedString($this->name);
}
if (isset($this->multiple)) {
$out->putVarInt32(32);
$out->putBoolean($this->multiple);
}
if (isset($this->value)) {
$out->putVarInt32(42);
$out->putVarInt32($this->value->byteSizePartial());
$this->value->outputPartial($out);
}
if (isset($this->embedded)) {
$out->putVarInt32(48);
$out->putBoolean($this->embedded);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 8:
$this->setMeaning($d->getVarInt32());
break;
case 18:
$length = $d->getVarInt32();
$this->setMeaningUri(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 26:
$length = $d->getVarInt32();
$this->setName(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 32:
$this->setMultiple($d->getBoolean());
break;
case 42:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->mutableValue()->tryMerge($tmp);
break;
case 48:
$this->setEmbedded($d->getBoolean());
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
if (!isset($this->name)) return 'name';
if (!isset($this->multiple)) return 'multiple';
if ((!isset($this->value)) || (!$this->value->isInitialized())) return 'value';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasMeaning()) {
$this->setMeaning($x->getMeaning());
}
if ($x->hasMeaningUri()) {
$this->setMeaningUri($x->getMeaningUri());
}
if ($x->hasName()) {
$this->setName($x->getName());
}
if ($x->hasMultiple()) {
$this->setMultiple($x->getMultiple());
}
if ($x->hasValue()) {
$this->mutableValue()->mergeFrom($x->getValue());
}
if ($x->hasEmbedded()) {
$this->setEmbedded($x->getEmbedded());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->meaning) !== isset($x->meaning)) return false;
if (isset($this->meaning) && $this->meaning !== $x->meaning) return false;
if (isset($this->meaning_uri) !== isset($x->meaning_uri)) return false;
if (isset($this->meaning_uri) && $this->meaning_uri !== $x->meaning_uri) return false;
if (isset($this->name) !== isset($x->name)) return false;
if (isset($this->name) && $this->name !== $x->name) return false;
if (isset($this->multiple) !== isset($x->multiple)) return false;
if (isset($this->multiple) && $this->multiple !== $x->multiple) return false;
if (isset($this->value) !== isset($x->value)) return false;
if (isset($this->value) && !$this->value->equals($x->value)) return false;
if (isset($this->embedded) !== isset($x->embedded)) return false;
if (isset($this->embedded) && $this->embedded !== $x->embedded) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->meaning)) {
$res .= $prefix . "meaning: " . ($this->meaning) . "\n";
}
if (isset($this->meaning_uri)) {
$res .= $prefix . "meaning_uri: " . $this->debugFormatString($this->meaning_uri) . "\n";
}
if (isset($this->name)) {
$res .= $prefix . "name: " . $this->debugFormatString($this->name) . "\n";
}
if (isset($this->multiple)) {
$res .= $prefix . "multiple: " . $this->debugFormatBool($this->multiple) . "\n";
}
if (isset($this->value)) {
$res .= $prefix . "value <\n" . $this->value->shortDebugString($prefix . " ") . $prefix . ">\n";
}
if (isset($this->embedded)) {
$res .= $prefix . "embedded: " . $this->debugFormatBool($this->embedded) . "\n";
}
return $res;
}
}
}
namespace storage_onestore_v3\Path {
class Element extends \google\net\ProtocolMessage {
public function getType() {
if (!isset($this->type)) {
return '';
}
return $this->type;
}
public function setType($val) {
$this->type = $val;
return $this;
}
public function clearType() {
unset($this->type);
return $this;
}
public function hasType() {
return isset($this->type);
}
public function getId() {
if (!isset($this->id)) {
return "0";
}
return $this->id;
}
public function setId($val) {
if (is_double($val)) {
$this->id = sprintf('%0.0F', $val);
} else {
$this->id = $val;
}
return $this;
}
public function clearId() {
unset($this->id);
return $this;
}
public function hasId() {
return isset($this->id);
}
public function getName() {
if (!isset($this->name)) {
return '';
}
return $this->name;
}
public function setName($val) {
$this->name = $val;
return $this;
}
public function clearName() {
unset($this->name);
return $this;
}
public function hasName() {
return isset($this->name);
}
public function clear() {
$this->clearType();
$this->clearId();
$this->clearName();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->type)) {
$res += 1;
$res += $this->lengthString(strlen($this->type));
}
if (isset($this->id)) {
$res += 1;
$res += $this->lengthVarInt64($this->id);
}
if (isset($this->name)) {
$res += 1;
$res += $this->lengthString(strlen($this->name));
}
return $res;
}
public function outputPartial($out) {
if (isset($this->type)) {
$out->putVarInt32(18);
$out->putPrefixedString($this->type);
}
if (isset($this->id)) {
$out->putVarInt32(24);
$out->putVarInt64($this->id);
}
if (isset($this->name)) {
$out->putVarInt32(34);
$out->putPrefixedString($this->name);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 12: return;
case 18:
$length = $d->getVarInt32();
$this->setType(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 24:
$this->setId($d->getVarInt64());
break;
case 34:
$length = $d->getVarInt32();
$this->setName(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() {
if (!isset($this->type)) return 'type';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasType()) {
$this->setType($x->getType());
}
if ($x->hasId()) {
$this->setId($x->getId());
}
if ($x->hasName()) {
$this->setName($x->getName());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->type) !== isset($x->type)) return false;
if (isset($this->type) && $this->type !== $x->type) return false;
if (isset($this->id) !== isset($x->id)) return false;
if (isset($this->id) && !$this->integerEquals($this->id, $x->id)) return false;
if (isset($this->name) !== isset($x->name)) return false;
if (isset($this->name) && $this->name !== $x->name) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->type)) {
$res .= $prefix . "type: " . $this->debugFormatString($this->type) . "\n";
}
if (isset($this->id)) {
$res .= $prefix . "id: " . $this->debugFormatInt64($this->id) . "\n";
}
if (isset($this->name)) {
$res .= $prefix . "name: " . $this->debugFormatString($this->name) . "\n";
}
return $res;
}
}
}
namespace storage_onestore_v3 {
class Path extends \google\net\ProtocolMessage {
private $element = array();
public function getElementSize() {
return sizeof($this->element);
}
public function getElementList() {
return $this->element;
}
public function mutableElement($idx) {
if (!isset($this->element[$idx])) {
$val = new \storage_onestore_v3\Path\Element();
$this->element[$idx] = $val;
return $val;
}
return $this->element[$idx];
}
public function getElement($idx) {
if (isset($this->element[$idx])) {
return $this->element[$idx];
}
if ($idx >= end(array_keys($this->element))) {
throw new \OutOfRangeException('index out of range: ' + $idx);
}
return new \storage_onestore_v3\Path\Element();
}
public function addElement() {
$val = new \storage_onestore_v3\Path\Element();
$this->element[] = $val;
return $val;
}
public function clearElement() {
$this->element = array();
}
public function clear() {
$this->clearElement();
}
public function byteSizePartial() {
$res = 0;
$this->checkProtoArray($this->element);
$res += 2 * sizeof($this->element);
foreach ($this->element as $value) {
$res += $value->byteSizePartial();
}
return $res;
}
public function outputPartial($out) {
$this->checkProtoArray($this->element);
foreach ($this->element as $value) {
$out->putVarInt32(11);
$value->outputPartial($out);
$out->putVarInt32(12);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 11:
$this->addElement()->tryMerge($d);
break;
case 0:
throw new \google\net\ProtocolBufferDecodeError();
break;
default:
$d->skipData($tt);
}
};
}
public function checkInitialized() {
foreach ($this->element as $value) {
if (!$value->isInitialized()) return 'element';
}
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
foreach ($x->getElementList() as $v) {
$this->addElement()->copyFrom($v);
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (sizeof($this->element) !== sizeof($x->element)) return false;
foreach (array_map(null, $this->element, $x->element) as $v) {
if (!$v[0]->equals($v[1])) return false;
}
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
foreach ($this->element as $value) {
$res .= $prefix . "Element {\n" . $value->shortDebugString($prefix . " ") . $prefix . "}\n";
}
return $res;
}
}
}
namespace storage_onestore_v3 {
class Reference extends \google\net\ProtocolMessage {
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 getPath() {
if (!isset($this->path)) {
return new \storage_onestore_v3\Path();
}
return $this->path;
}
public function mutablePath() {
if (!isset($this->path)) {
$res = new \storage_onestore_v3\Path();
$this->path = $res;
return $res;
}
return $this->path;
}
public function clearPath() {
if (isset($this->path)) {
unset($this->path);
}
}
public function hasPath() {
return isset($this->path);
}
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 clear() {
$this->clearApp();
$this->clearPath();
$this->clearNameSpace();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->app)) {
$res += 1;
$res += $this->lengthString(strlen($this->app));
}
if (isset($this->path)) {
$res += 1;
$res += $this->lengthString($this->path->byteSizePartial());
}
if (isset($this->name_space)) {
$res += 2;
$res += $this->lengthString(strlen($this->name_space));
}
return $res;
}
public function outputPartial($out) {
if (isset($this->app)) {
$out->putVarInt32(106);
$out->putPrefixedString($this->app);
}
if (isset($this->path)) {
$out->putVarInt32(114);
$out->putVarInt32($this->path->byteSizePartial());
$this->path->outputPartial($out);
}
if (isset($this->name_space)) {
$out->putVarInt32(162);
$out->putPrefixedString($this->name_space);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 106:
$length = $d->getVarInt32();
$this->setApp(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 114:
$length = $d->getVarInt32();
$tmp = new \google\net\Decoder($d->buffer(), $d->pos(), $d->pos() + $length);
$d->skip($length);
$this->mutablePath()->tryMerge($tmp);
break;
case 162:
$length = $d->getVarInt32();
$this->setNameSpace(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() {
if (!isset($this->app)) return 'app';
if ((!isset($this->path)) || (!$this->path->isInitialized())) return 'path';
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->hasPath()) {
$this->mutablePath()->mergeFrom($x->getPath());
}
if ($x->hasNameSpace()) {
$this->setNameSpace($x->getNameSpace());
}
}
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->path) !== isset($x->path)) return false;
if (isset($this->path) && !$this->path->equals($x->path)) 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;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->app)) {
$res .= $prefix . "app: " . $this->debugFormatString($this->app) . "\n";
}
if (isset($this->path)) {
$res .= $prefix . "path <\n" . $this->path->shortDebugString($prefix . " ") . $prefix . ">\n";
}
if (isset($this->name_space)) {
$res .= $prefix . "name_space: " . $this->debugFormatString($this->name_space) . "\n";
}
return $res;
}
}
}
namespace storage_onestore_v3 {
class User extends \google\net\ProtocolMessage {
public function getEmail() {
if (!isset($this->email)) {
return '';
}
return $this->email;
}
public function setEmail($val) {
$this->email = $val;
return $this;
}
public function clearEmail() {
unset($this->email);
return $this;
}
public function hasEmail() {
return isset($this->email);
}
public function getAuthDomain() {
if (!isset($this->auth_domain)) {
return '';
}
return $this->auth_domain;
}
public function setAuthDomain($val) {
$this->auth_domain = $val;
return $this;
}
public function clearAuthDomain() {
unset($this->auth_domain);
return $this;
}
public function hasAuthDomain() {
return isset($this->auth_domain);
}
public function getNickname() {
if (!isset($this->nickname)) {
return '';
}
return $this->nickname;
}
public function setNickname($val) {
$this->nickname = $val;
return $this;
}
public function clearNickname() {
unset($this->nickname);
return $this;
}
public function hasNickname() {
return isset($this->nickname);
}
public function getGaiaid() {
if (!isset($this->gaiaid)) {
return "0";
}
return $this->gaiaid;
}
public function setGaiaid($val) {
if (is_double($val)) {
$this->gaiaid = sprintf('%0.0F', $val);
} else {
$this->gaiaid = $val;
}
return $this;
}
public function clearGaiaid() {
unset($this->gaiaid);
return $this;
}
public function hasGaiaid() {
return isset($this->gaiaid);
}
public function getObfuscatedGaiaid() {
if (!isset($this->obfuscated_gaiaid)) {
return '';
}
return $this->obfuscated_gaiaid;
}
public function setObfuscatedGaiaid($val) {
$this->obfuscated_gaiaid = $val;
return $this;
}
public function clearObfuscatedGaiaid() {
unset($this->obfuscated_gaiaid);
return $this;
}
public function hasObfuscatedGaiaid() {
return isset($this->obfuscated_gaiaid);
}
public function getFederatedIdentity() {
if (!isset($this->federated_identity)) {
return '';
}
return $this->federated_identity;
}
public function setFederatedIdentity($val) {
$this->federated_identity = $val;
return $this;
}
public function clearFederatedIdentity() {
unset($this->federated_identity);
return $this;
}
public function hasFederatedIdentity() {
return isset($this->federated_identity);
}
public function getFederatedProvider() {
if (!isset($this->federated_provider)) {
return '';
}
return $this->federated_provider;
}
public function setFederatedProvider($val) {
$this->federated_provider = $val;
return $this;
}
public function clearFederatedProvider() {
unset($this->federated_provider);
return $this;
}
public function hasFederatedProvider() {
return isset($this->federated_provider);
}
public function clear() {
$this->clearEmail();
$this->clearAuthDomain();
$this->clearNickname();
$this->clearGaiaid();
$this->clearObfuscatedGaiaid();
$this->clearFederatedIdentity();
$this->clearFederatedProvider();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->email)) {
$res += 1;
$res += $this->lengthString(strlen($this->email));
}
if (isset($this->auth_domain)) {
$res += 1;
$res += $this->lengthString(strlen($this->auth_domain));
}
if (isset($this->nickname)) {
$res += 1;
$res += $this->lengthString(strlen($this->nickname));
}
if (isset($this->gaiaid)) {
$res += 1;
$res += $this->lengthVarInt64($this->gaiaid);
}
if (isset($this->obfuscated_gaiaid)) {
$res += 1;
$res += $this->lengthString(strlen($this->obfuscated_gaiaid));
}
if (isset($this->federated_identity)) {
$res += 1;
$res += $this->lengthString(strlen($this->federated_identity));
}
if (isset($this->federated_provider)) {
$res += 1;
$res += $this->lengthString(strlen($this->federated_provider));
}
return $res;
}
public function outputPartial($out) {
if (isset($this->email)) {
$out->putVarInt32(10);
$out->putPrefixedString($this->email);
}
if (isset($this->auth_domain)) {
$out->putVarInt32(18);
$out->putPrefixedString($this->auth_domain);
}
if (isset($this->nickname)) {
$out->putVarInt32(26);
$out->putPrefixedString($this->nickname);
}
if (isset($this->gaiaid)) {
$out->putVarInt32(32);
$out->putVarInt64($this->gaiaid);
}
if (isset($this->obfuscated_gaiaid)) {
$out->putVarInt32(42);
$out->putPrefixedString($this->obfuscated_gaiaid);
}
if (isset($this->federated_identity)) {
$out->putVarInt32(50);
$out->putPrefixedString($this->federated_identity);
}
if (isset($this->federated_provider)) {
$out->putVarInt32(58);
$out->putPrefixedString($this->federated_provider);
}
}
public function tryMerge($d) {
while($d->avail() > 0) {
$tt = $d->getVarInt32();
switch ($tt) {
case 10:
$length = $d->getVarInt32();
$this->setEmail(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 18:
$length = $d->getVarInt32();
$this->setAuthDomain(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 26:
$length = $d->getVarInt32();
$this->setNickname(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 32:
$this->setGaiaid($d->getVarInt64());
break;
case 42:
$length = $d->getVarInt32();
$this->setObfuscatedGaiaid(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 50:
$length = $d->getVarInt32();
$this->setFederatedIdentity(substr($d->buffer(), $d->pos(), $length));
$d->skip($length);
break;
case 58:
$length = $d->getVarInt32();
$this->setFederatedProvider(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() {
if (!isset($this->email)) return 'email';
if (!isset($this->auth_domain)) return 'auth_domain';
if (!isset($this->gaiaid)) return 'gaiaid';
return null;
}
public function mergeFrom($x) {
if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
if ($x->hasEmail()) {
$this->setEmail($x->getEmail());
}
if ($x->hasAuthDomain()) {
$this->setAuthDomain($x->getAuthDomain());
}
if ($x->hasNickname()) {
$this->setNickname($x->getNickname());
}
if ($x->hasGaiaid()) {
$this->setGaiaid($x->getGaiaid());
}
if ($x->hasObfuscatedGaiaid()) {
$this->setObfuscatedGaiaid($x->getObfuscatedGaiaid());
}
if ($x->hasFederatedIdentity()) {
$this->setFederatedIdentity($x->getFederatedIdentity());
}
if ($x->hasFederatedProvider()) {
$this->setFederatedProvider($x->getFederatedProvider());
}
}
public function equals($x) {
if ($x === $this) { return true; }
if (isset($this->email) !== isset($x->email)) return false;
if (isset($this->email) && $this->email !== $x->email) return false;
if (isset($this->auth_domain) !== isset($x->auth_domain)) return false;
if (isset($this->auth_domain) && $this->auth_domain !== $x->auth_domain) return false;
if (isset($this->nickname) !== isset($x->nickname)) return false;
if (isset($this->nickname) && $this->nickname !== $x->nickname) return false;
if (isset($this->gaiaid) !== isset($x->gaiaid)) return false;
if (isset($this->gaiaid) && !$this->integerEquals($this->gaiaid, $x->gaiaid)) return false;
if (isset($this->obfuscated_gaiaid) !== isset($x->obfuscated_gaiaid)) return false;
if (isset($this->obfuscated_gaiaid) && $this->obfuscated_gaiaid !== $x->obfuscated_gaiaid) return false;
if (isset($this->federated_identity) !== isset($x->federated_identity)) return false;
if (isset($this->federated_identity) && $this->federated_identity !== $x->federated_identity) return false;
if (isset($this->federated_provider) !== isset($x->federated_provider)) return false;
if (isset($this->federated_provider) && $this->federated_provider !== $x->federated_provider) return false;
return true;
}
public function shortDebugString($prefix = "") {
$res = '';
if (isset($this->email)) {
$res .= $prefix . "email: " . $this->debugFormatString($this->email) . "\n";
}
if (isset($this->auth_domain)) {
$res .= $prefix . "auth_domain: " . $this->debugFormatString($this->auth_domain) . "\n";
}
if (isset($this->nickname)) {
$res .= $prefix . "nickname: " . $this->debugFormatString($this->nickname) . "\n";
}
if (isset($this->gaiaid)) {
$res .= $prefix . "gaiaid: " . $this->debugFormatInt64($this->gaiaid) . "\n";
}
if (isset($this->obfuscated_gaiaid)) {
$res .= $prefix . "obfuscated_gaiaid: " . $this->debugFormatString($this->obfuscated_gaiaid) . "\n";
}
if (isset($this->federated_identity)) {
$res .= $prefix . "federated_identity: " . $this->debugFormatString($this->federated_identity) . "\n";
}
if (isset($this->federated_provider)) {
$res .= $prefix . "federated_provider: " . $this->debugFormatString($this->federated_provider) . "\n";
}
return $res;
}
}
}
namespace storage_onestore_v3\EntityProto {
class Kind {
const GD_CONTACT = 1;
const GD_EVENT = 2;
const GD_MESSAGE = 3;
}
}
namespace storage_onestore_v3 {
class EntityProto extends \google\net\ProtocolMessage {
private $property = array();
private $raw_property = array();
public function getKind() {
if (!isset($this->kind)) {
return 1;
}
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 getKindUri() {
if (!isset($this->kind_uri)) {
return '';
}
return $this->kind_uri;
}
public function setKindUri($val) {
$this->kind_uri = $val;
return $this;
}
public function clearKindUri() {
unset($this->kind_uri);
return $this;
}
public function hasKindUri() {
return isset($this->kind_uri);
}
public function getKey() {
if (!isset($this->key)) {
return new \storage_onestore_v3\Reference();
}
return $this->key;
}
public function mutableKey() {
if (!isset($this->key)) {
$res = new \storage_onestore_v3\Reference();
$this->key = $res;
return $res;
}
return $this->key;
}
public function clearKey() {
if (isset($this->key)) {
unset($this->key);
}
}
public function hasKey() {
return isset($this->key);
}
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 getRawPropertySize() {
return sizeof($this->raw_property);
}
public function getRawPropertyList() {
return $this->raw_property;
}
public function mutableRawProperty($idx) {
if (!isset($this->raw_property[$idx])) {
$val = new \storage_onestore_v3\Property();
$this->raw_property[$idx] = $val;
return $val;
}
return $this->raw_property[$idx];
}
public function getRawProperty($idx) {
if (isset($this->raw_property[$idx])) {
return $this->raw_property[$idx];
}
if ($idx >= end(array_keys($this->raw_property))) {
throw new \OutOfRangeException('index out of range: ' + $idx);
}
return new \storage_onestore_v3\Property();
}
public function addRawProperty() {
$val = new \storage_onestore_v3\Property();
$this->raw_property[] = $val;
return $val;
}
public function clearRawProperty() {
$this->raw_property = array();
}
public function getEntityGroup() {
if (!isset($this->entity_group)) {
return new \storage_onestore_v3\Path();
}
return $this->entity_group;
}
public function mutableEntityGroup() {
if (!isset($this->entity_group)) {
$res = new \storage_onestore_v3\Path();
$this->entity_group = $res;
return $res;
}
return $this->entity_group;
}
public function clearEntityGroup() {
if (isset($this->entity_group)) {
unset($this->entity_group);
}
}
public function hasEntityGroup() {
return isset($this->entity_group);
}
public function getOwner() {
if (!isset($this->owner)) {
return new \storage_onestore_v3\User();
}
return $this->owner;
}
public function mutableOwner() {
if (!isset($this->owner)) {
$res = new \storage_onestore_v3\User();
$this->owner = $res;
return $res;
}
return $this->owner;
}
public function clearOwner() {
if (isset($this->owner)) {
unset($this->owner);
}
}
public function hasOwner() {
return isset($this->owner);
}
public function clear() {
$this->clearKind();
$this->clearKindUri();
$this->clearKey();
$this->clearProperty();
$this->clearRawProperty();
$this->clearEntityGroup();
$this->clearOwner();
}
public function byteSizePartial() {
$res = 0;
if (isset($this->kind)) {
$res += 1;
$res += $this->lengthVarInt64($this->kind);
}
if (isset($this->kind_uri)) {
$res += 1;
$res += $this->lengthString(strlen($this->kind_uri));
}
if (isset($this->key)) {
$res += 1;
$res += $this->lengthString($this->key->byteSizePartial());
}
$this->checkProtoArray($this->property);
$res += 1 * sizeof($this->property);
foreach ($this->property as $value) {
$res += $this->lengthString($value->byteSizePartial());
}
$this->checkProtoArray($this->raw_property);
$res += 1 * sizeof($this->raw_property);
foreach ($this->raw_property as $value) {
$res += $this->lengthString($value->byteSizePartial());
}
if (isset($this->entity_group)) {
$res += 2;
$res += $this->lengthString($this->entity_group->byteSizePartial());
}
if (isset($this->owner)) {
$res += 2;
$res += $this->lengthString($this->owner->byteSizePartial());
}
return $res;
}
public function outputPartial($out) {
if (isset($this->kind)) {
$out->putVarInt32(32);
$out->putVarInt32($this->kind);
}
if (isset($this->kind_uri)) {
$out->putVarInt32(42);
$out->putPrefixedString($this->kind_uri);
}
if (isset($this->key)) {
$out->putVarInt32(106);
$out->putVarInt32($this->key->byteSizePartial());
$this->key->outputPartial($out);
}
$this->checkProtoArray($this->property);