App Engine Python SDK version 1.9.12
[gae.git] / python / php / sdk / google / appengine / api / user_service_pb.php
blobb2c3aac206b875b2b57cdf35777b78070d7dd866
1 <?php
2 /**
3 * Copyright 2007 Google Inc.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 # Generated by the protocol buffer compiler. DO NOT EDIT!
18 # source: google/appengine/api/user_service.proto
20 namespace dummy {
21 require_once 'google/appengine/runtime/proto/ProtocolMessage.php';
23 namespace google\appengine\UserServiceError {
24 class ErrorCode {
25 const OK = 0;
26 const REDIRECT_URL_TOO_LONG = 1;
27 const NOT_ALLOWED = 2;
28 const OAUTH_INVALID_TOKEN = 3;
29 const OAUTH_INVALID_REQUEST = 4;
30 const OAUTH_ERROR = 5;
33 namespace google\appengine {
34 class UserServiceError extends \google\net\ProtocolMessage {
35 public function clear() {
37 public function byteSizePartial() {
38 $res = 0;
39 return $res;
41 public function outputPartial($out) {
43 public function tryMerge($d) {
44 while($d->avail() > 0) {
45 $tt = $d->getVarInt32();
46 switch ($tt) {
47 case 0:
48 throw new \google\net\ProtocolBufferDecodeError();
49 break;
50 default:
51 $d->skipData($tt);
55 public function checkInitialized() {
56 return null;
58 public function mergeFrom($x) {
59 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
61 public function equals($x) {
62 if ($x === $this) { return true; }
63 return true;
65 public function shortDebugString($prefix = "") {
66 $res = '';
67 return $res;
71 namespace google\appengine {
72 class CreateLoginURLRequest extends \google\net\ProtocolMessage {
73 public function getDestinationUrl() {
74 if (!isset($this->destination_url)) {
75 return '';
77 return $this->destination_url;
79 public function setDestinationUrl($val) {
80 $this->destination_url = $val;
81 return $this;
83 public function clearDestinationUrl() {
84 unset($this->destination_url);
85 return $this;
87 public function hasDestinationUrl() {
88 return isset($this->destination_url);
90 public function getAuthDomain() {
91 if (!isset($this->auth_domain)) {
92 return '';
94 return $this->auth_domain;
96 public function setAuthDomain($val) {
97 $this->auth_domain = $val;
98 return $this;
100 public function clearAuthDomain() {
101 unset($this->auth_domain);
102 return $this;
104 public function hasAuthDomain() {
105 return isset($this->auth_domain);
107 public function getFederatedIdentity() {
108 if (!isset($this->federated_identity)) {
109 return '';
111 return $this->federated_identity;
113 public function setFederatedIdentity($val) {
114 $this->federated_identity = $val;
115 return $this;
117 public function clearFederatedIdentity() {
118 unset($this->federated_identity);
119 return $this;
121 public function hasFederatedIdentity() {
122 return isset($this->federated_identity);
124 public function clear() {
125 $this->clearDestinationUrl();
126 $this->clearAuthDomain();
127 $this->clearFederatedIdentity();
129 public function byteSizePartial() {
130 $res = 0;
131 if (isset($this->destination_url)) {
132 $res += 1;
133 $res += $this->lengthString(strlen($this->destination_url));
135 if (isset($this->auth_domain)) {
136 $res += 1;
137 $res += $this->lengthString(strlen($this->auth_domain));
139 if (isset($this->federated_identity)) {
140 $res += 1;
141 $res += $this->lengthString(strlen($this->federated_identity));
143 return $res;
145 public function outputPartial($out) {
146 if (isset($this->destination_url)) {
147 $out->putVarInt32(10);
148 $out->putPrefixedString($this->destination_url);
150 if (isset($this->auth_domain)) {
151 $out->putVarInt32(18);
152 $out->putPrefixedString($this->auth_domain);
154 if (isset($this->federated_identity)) {
155 $out->putVarInt32(26);
156 $out->putPrefixedString($this->federated_identity);
159 public function tryMerge($d) {
160 while($d->avail() > 0) {
161 $tt = $d->getVarInt32();
162 switch ($tt) {
163 case 10:
164 $length = $d->getVarInt32();
165 $this->setDestinationUrl(substr($d->buffer(), $d->pos(), $length));
166 $d->skip($length);
167 break;
168 case 18:
169 $length = $d->getVarInt32();
170 $this->setAuthDomain(substr($d->buffer(), $d->pos(), $length));
171 $d->skip($length);
172 break;
173 case 26:
174 $length = $d->getVarInt32();
175 $this->setFederatedIdentity(substr($d->buffer(), $d->pos(), $length));
176 $d->skip($length);
177 break;
178 case 0:
179 throw new \google\net\ProtocolBufferDecodeError();
180 break;
181 default:
182 $d->skipData($tt);
186 public function checkInitialized() {
187 if (!isset($this->destination_url)) return 'destination_url';
188 return null;
190 public function mergeFrom($x) {
191 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
192 if ($x->hasDestinationUrl()) {
193 $this->setDestinationUrl($x->getDestinationUrl());
195 if ($x->hasAuthDomain()) {
196 $this->setAuthDomain($x->getAuthDomain());
198 if ($x->hasFederatedIdentity()) {
199 $this->setFederatedIdentity($x->getFederatedIdentity());
202 public function equals($x) {
203 if ($x === $this) { return true; }
204 if (isset($this->destination_url) !== isset($x->destination_url)) return false;
205 if (isset($this->destination_url) && $this->destination_url !== $x->destination_url) return false;
206 if (isset($this->auth_domain) !== isset($x->auth_domain)) return false;
207 if (isset($this->auth_domain) && $this->auth_domain !== $x->auth_domain) return false;
208 if (isset($this->federated_identity) !== isset($x->federated_identity)) return false;
209 if (isset($this->federated_identity) && $this->federated_identity !== $x->federated_identity) return false;
210 return true;
212 public function shortDebugString($prefix = "") {
213 $res = '';
214 if (isset($this->destination_url)) {
215 $res .= $prefix . "destination_url: " . $this->debugFormatString($this->destination_url) . "\n";
217 if (isset($this->auth_domain)) {
218 $res .= $prefix . "auth_domain: " . $this->debugFormatString($this->auth_domain) . "\n";
220 if (isset($this->federated_identity)) {
221 $res .= $prefix . "federated_identity: " . $this->debugFormatString($this->federated_identity) . "\n";
223 return $res;
227 namespace google\appengine {
228 class CreateLoginURLResponse extends \google\net\ProtocolMessage {
229 public function getLoginUrl() {
230 if (!isset($this->login_url)) {
231 return '';
233 return $this->login_url;
235 public function setLoginUrl($val) {
236 $this->login_url = $val;
237 return $this;
239 public function clearLoginUrl() {
240 unset($this->login_url);
241 return $this;
243 public function hasLoginUrl() {
244 return isset($this->login_url);
246 public function clear() {
247 $this->clearLoginUrl();
249 public function byteSizePartial() {
250 $res = 0;
251 if (isset($this->login_url)) {
252 $res += 1;
253 $res += $this->lengthString(strlen($this->login_url));
255 return $res;
257 public function outputPartial($out) {
258 if (isset($this->login_url)) {
259 $out->putVarInt32(10);
260 $out->putPrefixedString($this->login_url);
263 public function tryMerge($d) {
264 while($d->avail() > 0) {
265 $tt = $d->getVarInt32();
266 switch ($tt) {
267 case 10:
268 $length = $d->getVarInt32();
269 $this->setLoginUrl(substr($d->buffer(), $d->pos(), $length));
270 $d->skip($length);
271 break;
272 case 0:
273 throw new \google\net\ProtocolBufferDecodeError();
274 break;
275 default:
276 $d->skipData($tt);
280 public function checkInitialized() {
281 if (!isset($this->login_url)) return 'login_url';
282 return null;
284 public function mergeFrom($x) {
285 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
286 if ($x->hasLoginUrl()) {
287 $this->setLoginUrl($x->getLoginUrl());
290 public function equals($x) {
291 if ($x === $this) { return true; }
292 if (isset($this->login_url) !== isset($x->login_url)) return false;
293 if (isset($this->login_url) && $this->login_url !== $x->login_url) return false;
294 return true;
296 public function shortDebugString($prefix = "") {
297 $res = '';
298 if (isset($this->login_url)) {
299 $res .= $prefix . "login_url: " . $this->debugFormatString($this->login_url) . "\n";
301 return $res;
305 namespace google\appengine {
306 class CreateLogoutURLRequest extends \google\net\ProtocolMessage {
307 public function getDestinationUrl() {
308 if (!isset($this->destination_url)) {
309 return '';
311 return $this->destination_url;
313 public function setDestinationUrl($val) {
314 $this->destination_url = $val;
315 return $this;
317 public function clearDestinationUrl() {
318 unset($this->destination_url);
319 return $this;
321 public function hasDestinationUrl() {
322 return isset($this->destination_url);
324 public function getAuthDomain() {
325 if (!isset($this->auth_domain)) {
326 return '';
328 return $this->auth_domain;
330 public function setAuthDomain($val) {
331 $this->auth_domain = $val;
332 return $this;
334 public function clearAuthDomain() {
335 unset($this->auth_domain);
336 return $this;
338 public function hasAuthDomain() {
339 return isset($this->auth_domain);
341 public function clear() {
342 $this->clearDestinationUrl();
343 $this->clearAuthDomain();
345 public function byteSizePartial() {
346 $res = 0;
347 if (isset($this->destination_url)) {
348 $res += 1;
349 $res += $this->lengthString(strlen($this->destination_url));
351 if (isset($this->auth_domain)) {
352 $res += 1;
353 $res += $this->lengthString(strlen($this->auth_domain));
355 return $res;
357 public function outputPartial($out) {
358 if (isset($this->destination_url)) {
359 $out->putVarInt32(10);
360 $out->putPrefixedString($this->destination_url);
362 if (isset($this->auth_domain)) {
363 $out->putVarInt32(18);
364 $out->putPrefixedString($this->auth_domain);
367 public function tryMerge($d) {
368 while($d->avail() > 0) {
369 $tt = $d->getVarInt32();
370 switch ($tt) {
371 case 10:
372 $length = $d->getVarInt32();
373 $this->setDestinationUrl(substr($d->buffer(), $d->pos(), $length));
374 $d->skip($length);
375 break;
376 case 18:
377 $length = $d->getVarInt32();
378 $this->setAuthDomain(substr($d->buffer(), $d->pos(), $length));
379 $d->skip($length);
380 break;
381 case 0:
382 throw new \google\net\ProtocolBufferDecodeError();
383 break;
384 default:
385 $d->skipData($tt);
389 public function checkInitialized() {
390 if (!isset($this->destination_url)) return 'destination_url';
391 return null;
393 public function mergeFrom($x) {
394 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
395 if ($x->hasDestinationUrl()) {
396 $this->setDestinationUrl($x->getDestinationUrl());
398 if ($x->hasAuthDomain()) {
399 $this->setAuthDomain($x->getAuthDomain());
402 public function equals($x) {
403 if ($x === $this) { return true; }
404 if (isset($this->destination_url) !== isset($x->destination_url)) return false;
405 if (isset($this->destination_url) && $this->destination_url !== $x->destination_url) return false;
406 if (isset($this->auth_domain) !== isset($x->auth_domain)) return false;
407 if (isset($this->auth_domain) && $this->auth_domain !== $x->auth_domain) return false;
408 return true;
410 public function shortDebugString($prefix = "") {
411 $res = '';
412 if (isset($this->destination_url)) {
413 $res .= $prefix . "destination_url: " . $this->debugFormatString($this->destination_url) . "\n";
415 if (isset($this->auth_domain)) {
416 $res .= $prefix . "auth_domain: " . $this->debugFormatString($this->auth_domain) . "\n";
418 return $res;
422 namespace google\appengine {
423 class CreateLogoutURLResponse extends \google\net\ProtocolMessage {
424 public function getLogoutUrl() {
425 if (!isset($this->logout_url)) {
426 return '';
428 return $this->logout_url;
430 public function setLogoutUrl($val) {
431 $this->logout_url = $val;
432 return $this;
434 public function clearLogoutUrl() {
435 unset($this->logout_url);
436 return $this;
438 public function hasLogoutUrl() {
439 return isset($this->logout_url);
441 public function clear() {
442 $this->clearLogoutUrl();
444 public function byteSizePartial() {
445 $res = 0;
446 if (isset($this->logout_url)) {
447 $res += 1;
448 $res += $this->lengthString(strlen($this->logout_url));
450 return $res;
452 public function outputPartial($out) {
453 if (isset($this->logout_url)) {
454 $out->putVarInt32(10);
455 $out->putPrefixedString($this->logout_url);
458 public function tryMerge($d) {
459 while($d->avail() > 0) {
460 $tt = $d->getVarInt32();
461 switch ($tt) {
462 case 10:
463 $length = $d->getVarInt32();
464 $this->setLogoutUrl(substr($d->buffer(), $d->pos(), $length));
465 $d->skip($length);
466 break;
467 case 0:
468 throw new \google\net\ProtocolBufferDecodeError();
469 break;
470 default:
471 $d->skipData($tt);
475 public function checkInitialized() {
476 if (!isset($this->logout_url)) return 'logout_url';
477 return null;
479 public function mergeFrom($x) {
480 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
481 if ($x->hasLogoutUrl()) {
482 $this->setLogoutUrl($x->getLogoutUrl());
485 public function equals($x) {
486 if ($x === $this) { return true; }
487 if (isset($this->logout_url) !== isset($x->logout_url)) return false;
488 if (isset($this->logout_url) && $this->logout_url !== $x->logout_url) return false;
489 return true;
491 public function shortDebugString($prefix = "") {
492 $res = '';
493 if (isset($this->logout_url)) {
494 $res .= $prefix . "logout_url: " . $this->debugFormatString($this->logout_url) . "\n";
496 return $res;
500 namespace google\appengine {
501 class GetOAuthUserRequest extends \google\net\ProtocolMessage {
502 private $scopes = array();
503 public function getScope() {
504 if (!isset($this->scope)) {
505 return '';
507 return $this->scope;
509 public function setScope($val) {
510 $this->scope = $val;
511 return $this;
513 public function clearScope() {
514 unset($this->scope);
515 return $this;
517 public function hasScope() {
518 return isset($this->scope);
520 public function getScopesSize() {
521 return sizeof($this->scopes);
523 public function getScopesList() {
524 return $this->scopes;
526 public function getScopes($idx) {
527 return $this->scopes[$idx];
529 public function setScopes($idx, $val) {
530 $this->scopes[$idx] = $val;
531 return $this;
533 public function addScopes($val) {
534 $this->scopes[] = $val;
535 return $this;
537 public function clearScopes() {
538 $this->scopes = array();
540 public function getRequestWriterPermission() {
541 if (!isset($this->request_writer_permission)) {
542 return false;
544 return $this->request_writer_permission;
546 public function setRequestWriterPermission($val) {
547 $this->request_writer_permission = $val;
548 return $this;
550 public function clearRequestWriterPermission() {
551 unset($this->request_writer_permission);
552 return $this;
554 public function hasRequestWriterPermission() {
555 return isset($this->request_writer_permission);
557 public function clear() {
558 $this->clearScope();
559 $this->clearScopes();
560 $this->clearRequestWriterPermission();
562 public function byteSizePartial() {
563 $res = 0;
564 if (isset($this->scope)) {
565 $res += 1;
566 $res += $this->lengthString(strlen($this->scope));
568 $this->checkProtoArray($this->scopes);
569 $res += 1 * sizeof($this->scopes);
570 foreach ($this->scopes as $value) {
571 $res += $this->lengthString(strlen($value));
573 if (isset($this->request_writer_permission)) {
574 $res += 2;
576 return $res;
578 public function outputPartial($out) {
579 if (isset($this->scope)) {
580 $out->putVarInt32(10);
581 $out->putPrefixedString($this->scope);
583 $this->checkProtoArray($this->scopes);
584 foreach ($this->scopes as $value) {
585 $out->putVarInt32(18);
586 $out->putPrefixedString($value);
588 if (isset($this->request_writer_permission)) {
589 $out->putVarInt32(24);
590 $out->putBoolean($this->request_writer_permission);
593 public function tryMerge($d) {
594 while($d->avail() > 0) {
595 $tt = $d->getVarInt32();
596 switch ($tt) {
597 case 10:
598 $length = $d->getVarInt32();
599 $this->setScope(substr($d->buffer(), $d->pos(), $length));
600 $d->skip($length);
601 break;
602 case 18:
603 $length = $d->getVarInt32();
604 $this->addScopes(substr($d->buffer(), $d->pos(), $length));
605 $d->skip($length);
606 break;
607 case 24:
608 $this->setRequestWriterPermission($d->getBoolean());
609 break;
610 case 0:
611 throw new \google\net\ProtocolBufferDecodeError();
612 break;
613 default:
614 $d->skipData($tt);
618 public function checkInitialized() {
619 return null;
621 public function mergeFrom($x) {
622 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
623 if ($x->hasScope()) {
624 $this->setScope($x->getScope());
626 foreach ($x->getScopesList() as $v) {
627 $this->addScopes($v);
629 if ($x->hasRequestWriterPermission()) {
630 $this->setRequestWriterPermission($x->getRequestWriterPermission());
633 public function equals($x) {
634 if ($x === $this) { return true; }
635 if (isset($this->scope) !== isset($x->scope)) return false;
636 if (isset($this->scope) && $this->scope !== $x->scope) return false;
637 if (sizeof($this->scopes) !== sizeof($x->scopes)) return false;
638 foreach (array_map(null, $this->scopes, $x->scopes) as $v) {
639 if ($v[0] !== $v[1]) return false;
641 if (isset($this->request_writer_permission) !== isset($x->request_writer_permission)) return false;
642 if (isset($this->request_writer_permission) && $this->request_writer_permission !== $x->request_writer_permission) return false;
643 return true;
645 public function shortDebugString($prefix = "") {
646 $res = '';
647 if (isset($this->scope)) {
648 $res .= $prefix . "scope: " . $this->debugFormatString($this->scope) . "\n";
650 foreach ($this->scopes as $value) {
651 $res .= $prefix . "scopes: " . $this->debugFormatString($value) . "\n";
653 if (isset($this->request_writer_permission)) {
654 $res .= $prefix . "request_writer_permission: " . $this->debugFormatBool($this->request_writer_permission) . "\n";
656 return $res;
660 namespace google\appengine {
661 class GetOAuthUserResponse extends \google\net\ProtocolMessage {
662 private $scopes = array();
663 public function getEmail() {
664 if (!isset($this->email)) {
665 return '';
667 return $this->email;
669 public function setEmail($val) {
670 $this->email = $val;
671 return $this;
673 public function clearEmail() {
674 unset($this->email);
675 return $this;
677 public function hasEmail() {
678 return isset($this->email);
680 public function getUserId() {
681 if (!isset($this->user_id)) {
682 return '';
684 return $this->user_id;
686 public function setUserId($val) {
687 $this->user_id = $val;
688 return $this;
690 public function clearUserId() {
691 unset($this->user_id);
692 return $this;
694 public function hasUserId() {
695 return isset($this->user_id);
697 public function getAuthDomain() {
698 if (!isset($this->auth_domain)) {
699 return '';
701 return $this->auth_domain;
703 public function setAuthDomain($val) {
704 $this->auth_domain = $val;
705 return $this;
707 public function clearAuthDomain() {
708 unset($this->auth_domain);
709 return $this;
711 public function hasAuthDomain() {
712 return isset($this->auth_domain);
714 public function getUserOrganization() {
715 if (!isset($this->user_organization)) {
716 return '';
718 return $this->user_organization;
720 public function setUserOrganization($val) {
721 $this->user_organization = $val;
722 return $this;
724 public function clearUserOrganization() {
725 unset($this->user_organization);
726 return $this;
728 public function hasUserOrganization() {
729 return isset($this->user_organization);
731 public function getIsAdmin() {
732 if (!isset($this->is_admin)) {
733 return false;
735 return $this->is_admin;
737 public function setIsAdmin($val) {
738 $this->is_admin = $val;
739 return $this;
741 public function clearIsAdmin() {
742 unset($this->is_admin);
743 return $this;
745 public function hasIsAdmin() {
746 return isset($this->is_admin);
748 public function getClientId() {
749 if (!isset($this->client_id)) {
750 return '';
752 return $this->client_id;
754 public function setClientId($val) {
755 $this->client_id = $val;
756 return $this;
758 public function clearClientId() {
759 unset($this->client_id);
760 return $this;
762 public function hasClientId() {
763 return isset($this->client_id);
765 public function getScopesSize() {
766 return sizeof($this->scopes);
768 public function getScopesList() {
769 return $this->scopes;
771 public function getScopes($idx) {
772 return $this->scopes[$idx];
774 public function setScopes($idx, $val) {
775 $this->scopes[$idx] = $val;
776 return $this;
778 public function addScopes($val) {
779 $this->scopes[] = $val;
780 return $this;
782 public function clearScopes() {
783 $this->scopes = array();
785 public function getIsProjectWriter() {
786 if (!isset($this->is_project_writer)) {
787 return false;
789 return $this->is_project_writer;
791 public function setIsProjectWriter($val) {
792 $this->is_project_writer = $val;
793 return $this;
795 public function clearIsProjectWriter() {
796 unset($this->is_project_writer);
797 return $this;
799 public function hasIsProjectWriter() {
800 return isset($this->is_project_writer);
802 public function clear() {
803 $this->clearEmail();
804 $this->clearUserId();
805 $this->clearAuthDomain();
806 $this->clearUserOrganization();
807 $this->clearIsAdmin();
808 $this->clearClientId();
809 $this->clearScopes();
810 $this->clearIsProjectWriter();
812 public function byteSizePartial() {
813 $res = 0;
814 if (isset($this->email)) {
815 $res += 1;
816 $res += $this->lengthString(strlen($this->email));
818 if (isset($this->user_id)) {
819 $res += 1;
820 $res += $this->lengthString(strlen($this->user_id));
822 if (isset($this->auth_domain)) {
823 $res += 1;
824 $res += $this->lengthString(strlen($this->auth_domain));
826 if (isset($this->user_organization)) {
827 $res += 1;
828 $res += $this->lengthString(strlen($this->user_organization));
830 if (isset($this->is_admin)) {
831 $res += 2;
833 if (isset($this->client_id)) {
834 $res += 1;
835 $res += $this->lengthString(strlen($this->client_id));
837 $this->checkProtoArray($this->scopes);
838 $res += 1 * sizeof($this->scopes);
839 foreach ($this->scopes as $value) {
840 $res += $this->lengthString(strlen($value));
842 if (isset($this->is_project_writer)) {
843 $res += 2;
845 return $res;
847 public function outputPartial($out) {
848 if (isset($this->email)) {
849 $out->putVarInt32(10);
850 $out->putPrefixedString($this->email);
852 if (isset($this->user_id)) {
853 $out->putVarInt32(18);
854 $out->putPrefixedString($this->user_id);
856 if (isset($this->auth_domain)) {
857 $out->putVarInt32(26);
858 $out->putPrefixedString($this->auth_domain);
860 if (isset($this->user_organization)) {
861 $out->putVarInt32(34);
862 $out->putPrefixedString($this->user_organization);
864 if (isset($this->is_admin)) {
865 $out->putVarInt32(40);
866 $out->putBoolean($this->is_admin);
868 if (isset($this->client_id)) {
869 $out->putVarInt32(50);
870 $out->putPrefixedString($this->client_id);
872 $this->checkProtoArray($this->scopes);
873 foreach ($this->scopes as $value) {
874 $out->putVarInt32(58);
875 $out->putPrefixedString($value);
877 if (isset($this->is_project_writer)) {
878 $out->putVarInt32(64);
879 $out->putBoolean($this->is_project_writer);
882 public function tryMerge($d) {
883 while($d->avail() > 0) {
884 $tt = $d->getVarInt32();
885 switch ($tt) {
886 case 10:
887 $length = $d->getVarInt32();
888 $this->setEmail(substr($d->buffer(), $d->pos(), $length));
889 $d->skip($length);
890 break;
891 case 18:
892 $length = $d->getVarInt32();
893 $this->setUserId(substr($d->buffer(), $d->pos(), $length));
894 $d->skip($length);
895 break;
896 case 26:
897 $length = $d->getVarInt32();
898 $this->setAuthDomain(substr($d->buffer(), $d->pos(), $length));
899 $d->skip($length);
900 break;
901 case 34:
902 $length = $d->getVarInt32();
903 $this->setUserOrganization(substr($d->buffer(), $d->pos(), $length));
904 $d->skip($length);
905 break;
906 case 40:
907 $this->setIsAdmin($d->getBoolean());
908 break;
909 case 50:
910 $length = $d->getVarInt32();
911 $this->setClientId(substr($d->buffer(), $d->pos(), $length));
912 $d->skip($length);
913 break;
914 case 58:
915 $length = $d->getVarInt32();
916 $this->addScopes(substr($d->buffer(), $d->pos(), $length));
917 $d->skip($length);
918 break;
919 case 64:
920 $this->setIsProjectWriter($d->getBoolean());
921 break;
922 case 0:
923 throw new \google\net\ProtocolBufferDecodeError();
924 break;
925 default:
926 $d->skipData($tt);
930 public function checkInitialized() {
931 if (!isset($this->email)) return 'email';
932 if (!isset($this->user_id)) return 'user_id';
933 if (!isset($this->auth_domain)) return 'auth_domain';
934 return null;
936 public function mergeFrom($x) {
937 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
938 if ($x->hasEmail()) {
939 $this->setEmail($x->getEmail());
941 if ($x->hasUserId()) {
942 $this->setUserId($x->getUserId());
944 if ($x->hasAuthDomain()) {
945 $this->setAuthDomain($x->getAuthDomain());
947 if ($x->hasUserOrganization()) {
948 $this->setUserOrganization($x->getUserOrganization());
950 if ($x->hasIsAdmin()) {
951 $this->setIsAdmin($x->getIsAdmin());
953 if ($x->hasClientId()) {
954 $this->setClientId($x->getClientId());
956 foreach ($x->getScopesList() as $v) {
957 $this->addScopes($v);
959 if ($x->hasIsProjectWriter()) {
960 $this->setIsProjectWriter($x->getIsProjectWriter());
963 public function equals($x) {
964 if ($x === $this) { return true; }
965 if (isset($this->email) !== isset($x->email)) return false;
966 if (isset($this->email) && $this->email !== $x->email) return false;
967 if (isset($this->user_id) !== isset($x->user_id)) return false;
968 if (isset($this->user_id) && $this->user_id !== $x->user_id) return false;
969 if (isset($this->auth_domain) !== isset($x->auth_domain)) return false;
970 if (isset($this->auth_domain) && $this->auth_domain !== $x->auth_domain) return false;
971 if (isset($this->user_organization) !== isset($x->user_organization)) return false;
972 if (isset($this->user_organization) && $this->user_organization !== $x->user_organization) return false;
973 if (isset($this->is_admin) !== isset($x->is_admin)) return false;
974 if (isset($this->is_admin) && $this->is_admin !== $x->is_admin) return false;
975 if (isset($this->client_id) !== isset($x->client_id)) return false;
976 if (isset($this->client_id) && $this->client_id !== $x->client_id) return false;
977 if (sizeof($this->scopes) !== sizeof($x->scopes)) return false;
978 foreach (array_map(null, $this->scopes, $x->scopes) as $v) {
979 if ($v[0] !== $v[1]) return false;
981 if (isset($this->is_project_writer) !== isset($x->is_project_writer)) return false;
982 if (isset($this->is_project_writer) && $this->is_project_writer !== $x->is_project_writer) return false;
983 return true;
985 public function shortDebugString($prefix = "") {
986 $res = '';
987 if (isset($this->email)) {
988 $res .= $prefix . "email: " . $this->debugFormatString($this->email) . "\n";
990 if (isset($this->user_id)) {
991 $res .= $prefix . "user_id: " . $this->debugFormatString($this->user_id) . "\n";
993 if (isset($this->auth_domain)) {
994 $res .= $prefix . "auth_domain: " . $this->debugFormatString($this->auth_domain) . "\n";
996 if (isset($this->user_organization)) {
997 $res .= $prefix . "user_organization: " . $this->debugFormatString($this->user_organization) . "\n";
999 if (isset($this->is_admin)) {
1000 $res .= $prefix . "is_admin: " . $this->debugFormatBool($this->is_admin) . "\n";
1002 if (isset($this->client_id)) {
1003 $res .= $prefix . "client_id: " . $this->debugFormatString($this->client_id) . "\n";
1005 foreach ($this->scopes as $value) {
1006 $res .= $prefix . "scopes: " . $this->debugFormatString($value) . "\n";
1008 if (isset($this->is_project_writer)) {
1009 $res .= $prefix . "is_project_writer: " . $this->debugFormatBool($this->is_project_writer) . "\n";
1011 return $res;
1015 namespace google\appengine {
1016 class CheckOAuthSignatureRequest extends \google\net\ProtocolMessage {
1017 public function clear() {
1019 public function byteSizePartial() {
1020 $res = 0;
1021 return $res;
1023 public function outputPartial($out) {
1025 public function tryMerge($d) {
1026 while($d->avail() > 0) {
1027 $tt = $d->getVarInt32();
1028 switch ($tt) {
1029 case 0:
1030 throw new \google\net\ProtocolBufferDecodeError();
1031 break;
1032 default:
1033 $d->skipData($tt);
1037 public function checkInitialized() {
1038 return null;
1040 public function mergeFrom($x) {
1041 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
1043 public function equals($x) {
1044 if ($x === $this) { return true; }
1045 return true;
1047 public function shortDebugString($prefix = "") {
1048 $res = '';
1049 return $res;
1053 namespace google\appengine {
1054 class CheckOAuthSignatureResponse extends \google\net\ProtocolMessage {
1055 public function getOauthConsumerKey() {
1056 if (!isset($this->oauth_consumer_key)) {
1057 return '';
1059 return $this->oauth_consumer_key;
1061 public function setOauthConsumerKey($val) {
1062 $this->oauth_consumer_key = $val;
1063 return $this;
1065 public function clearOauthConsumerKey() {
1066 unset($this->oauth_consumer_key);
1067 return $this;
1069 public function hasOauthConsumerKey() {
1070 return isset($this->oauth_consumer_key);
1072 public function clear() {
1073 $this->clearOauthConsumerKey();
1075 public function byteSizePartial() {
1076 $res = 0;
1077 if (isset($this->oauth_consumer_key)) {
1078 $res += 1;
1079 $res += $this->lengthString(strlen($this->oauth_consumer_key));
1081 return $res;
1083 public function outputPartial($out) {
1084 if (isset($this->oauth_consumer_key)) {
1085 $out->putVarInt32(10);
1086 $out->putPrefixedString($this->oauth_consumer_key);
1089 public function tryMerge($d) {
1090 while($d->avail() > 0) {
1091 $tt = $d->getVarInt32();
1092 switch ($tt) {
1093 case 10:
1094 $length = $d->getVarInt32();
1095 $this->setOauthConsumerKey(substr($d->buffer(), $d->pos(), $length));
1096 $d->skip($length);
1097 break;
1098 case 0:
1099 throw new \google\net\ProtocolBufferDecodeError();
1100 break;
1101 default:
1102 $d->skipData($tt);
1106 public function checkInitialized() {
1107 if (!isset($this->oauth_consumer_key)) return 'oauth_consumer_key';
1108 return null;
1110 public function mergeFrom($x) {
1111 if ($x === $this) { throw new \IllegalArgumentException('Cannot copy message to itself'); }
1112 if ($x->hasOauthConsumerKey()) {
1113 $this->setOauthConsumerKey($x->getOauthConsumerKey());
1116 public function equals($x) {
1117 if ($x === $this) { return true; }
1118 if (isset($this->oauth_consumer_key) !== isset($x->oauth_consumer_key)) return false;
1119 if (isset($this->oauth_consumer_key) && $this->oauth_consumer_key !== $x->oauth_consumer_key) return false;
1120 return true;
1122 public function shortDebugString($prefix = "") {
1123 $res = '';
1124 if (isset($this->oauth_consumer_key)) {
1125 $res .= $prefix . "oauth_consumer_key: " . $this->debugFormatString($this->oauth_consumer_key) . "\n";
1127 return $res;