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
21 require_once 'google/appengine/runtime/proto/ProtocolMessage.php';
23 namespace google\appengine\UserServiceError
{
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() {
41 public function outputPartial($out) {
43 public function tryMerge($d) {
44 while($d->avail() > 0) {
45 $tt = $d->getVarInt32();
48 throw new \google\net\
ProtocolBufferDecodeError();
55 public function checkInitialized() {
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; }
65 public function shortDebugString($prefix = "") {
71 namespace google\appengine
{
72 class CreateLoginURLRequest
extends \google\net\ProtocolMessage
{
73 public function getDestinationUrl() {
74 if (!isset($this->destination_url
)) {
77 return $this->destination_url
;
79 public function setDestinationUrl($val) {
80 $this->destination_url
= $val;
83 public function clearDestinationUrl() {
84 unset($this->destination_url
);
87 public function hasDestinationUrl() {
88 return isset($this->destination_url
);
90 public function getAuthDomain() {
91 if (!isset($this->auth_domain
)) {
94 return $this->auth_domain
;
96 public function setAuthDomain($val) {
97 $this->auth_domain
= $val;
100 public function clearAuthDomain() {
101 unset($this->auth_domain
);
104 public function hasAuthDomain() {
105 return isset($this->auth_domain
);
107 public function getFederatedIdentity() {
108 if (!isset($this->federated_identity
)) {
111 return $this->federated_identity
;
113 public function setFederatedIdentity($val) {
114 $this->federated_identity
= $val;
117 public function clearFederatedIdentity() {
118 unset($this->federated_identity
);
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() {
131 if (isset($this->destination_url
)) {
133 $res +
= $this->lengthString(strlen($this->destination_url
));
135 if (isset($this->auth_domain
)) {
137 $res +
= $this->lengthString(strlen($this->auth_domain
));
139 if (isset($this->federated_identity
)) {
141 $res +
= $this->lengthString(strlen($this->federated_identity
));
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();
164 $length = $d->getVarInt32();
165 $this->setDestinationUrl(substr($d->buffer(), $d->pos(), $length));
169 $length = $d->getVarInt32();
170 $this->setAuthDomain(substr($d->buffer(), $d->pos(), $length));
174 $length = $d->getVarInt32();
175 $this->setFederatedIdentity(substr($d->buffer(), $d->pos(), $length));
179 throw new \google\net\
ProtocolBufferDecodeError();
186 public function checkInitialized() {
187 if (!isset($this->destination_url
)) return 'destination_url';
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;
212 public function shortDebugString($prefix = "") {
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";
227 namespace google\appengine
{
228 class CreateLoginURLResponse
extends \google\net\ProtocolMessage
{
229 public function getLoginUrl() {
230 if (!isset($this->login_url
)) {
233 return $this->login_url
;
235 public function setLoginUrl($val) {
236 $this->login_url
= $val;
239 public function clearLoginUrl() {
240 unset($this->login_url
);
243 public function hasLoginUrl() {
244 return isset($this->login_url
);
246 public function clear() {
247 $this->clearLoginUrl();
249 public function byteSizePartial() {
251 if (isset($this->login_url
)) {
253 $res +
= $this->lengthString(strlen($this->login_url
));
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();
268 $length = $d->getVarInt32();
269 $this->setLoginUrl(substr($d->buffer(), $d->pos(), $length));
273 throw new \google\net\
ProtocolBufferDecodeError();
280 public function checkInitialized() {
281 if (!isset($this->login_url
)) return 'login_url';
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;
296 public function shortDebugString($prefix = "") {
298 if (isset($this->login_url
)) {
299 $res .= $prefix . "login_url: " . $this->debugFormatString($this->login_url
) . "\n";
305 namespace google\appengine
{
306 class CreateLogoutURLRequest
extends \google\net\ProtocolMessage
{
307 public function getDestinationUrl() {
308 if (!isset($this->destination_url
)) {
311 return $this->destination_url
;
313 public function setDestinationUrl($val) {
314 $this->destination_url
= $val;
317 public function clearDestinationUrl() {
318 unset($this->destination_url
);
321 public function hasDestinationUrl() {
322 return isset($this->destination_url
);
324 public function getAuthDomain() {
325 if (!isset($this->auth_domain
)) {
328 return $this->auth_domain
;
330 public function setAuthDomain($val) {
331 $this->auth_domain
= $val;
334 public function clearAuthDomain() {
335 unset($this->auth_domain
);
338 public function hasAuthDomain() {
339 return isset($this->auth_domain
);
341 public function clear() {
342 $this->clearDestinationUrl();
343 $this->clearAuthDomain();
345 public function byteSizePartial() {
347 if (isset($this->destination_url
)) {
349 $res +
= $this->lengthString(strlen($this->destination_url
));
351 if (isset($this->auth_domain
)) {
353 $res +
= $this->lengthString(strlen($this->auth_domain
));
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();
372 $length = $d->getVarInt32();
373 $this->setDestinationUrl(substr($d->buffer(), $d->pos(), $length));
377 $length = $d->getVarInt32();
378 $this->setAuthDomain(substr($d->buffer(), $d->pos(), $length));
382 throw new \google\net\
ProtocolBufferDecodeError();
389 public function checkInitialized() {
390 if (!isset($this->destination_url
)) return 'destination_url';
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;
410 public function shortDebugString($prefix = "") {
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";
422 namespace google\appengine
{
423 class CreateLogoutURLResponse
extends \google\net\ProtocolMessage
{
424 public function getLogoutUrl() {
425 if (!isset($this->logout_url
)) {
428 return $this->logout_url
;
430 public function setLogoutUrl($val) {
431 $this->logout_url
= $val;
434 public function clearLogoutUrl() {
435 unset($this->logout_url
);
438 public function hasLogoutUrl() {
439 return isset($this->logout_url
);
441 public function clear() {
442 $this->clearLogoutUrl();
444 public function byteSizePartial() {
446 if (isset($this->logout_url
)) {
448 $res +
= $this->lengthString(strlen($this->logout_url
));
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();
463 $length = $d->getVarInt32();
464 $this->setLogoutUrl(substr($d->buffer(), $d->pos(), $length));
468 throw new \google\net\
ProtocolBufferDecodeError();
475 public function checkInitialized() {
476 if (!isset($this->logout_url
)) return 'logout_url';
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;
491 public function shortDebugString($prefix = "") {
493 if (isset($this->logout_url
)) {
494 $res .= $prefix . "logout_url: " . $this->debugFormatString($this->logout_url
) . "\n";
500 namespace google\appengine
{
501 class GetOAuthUserRequest
extends \google\net\ProtocolMessage
{
502 private $scopes = array();
503 public function getScope() {
504 if (!isset($this->scope
)) {
509 public function setScope($val) {
513 public function clearScope() {
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;
533 public function addScopes($val) {
534 $this->scopes
[] = $val;
537 public function clearScopes() {
538 $this->scopes
= array();
540 public function getRequestWriterPermission() {
541 if (!isset($this->request_writer_permission
)) {
544 return $this->request_writer_permission
;
546 public function setRequestWriterPermission($val) {
547 $this->request_writer_permission
= $val;
550 public function clearRequestWriterPermission() {
551 unset($this->request_writer_permission
);
554 public function hasRequestWriterPermission() {
555 return isset($this->request_writer_permission
);
557 public function clear() {
559 $this->clearScopes();
560 $this->clearRequestWriterPermission();
562 public function byteSizePartial() {
564 if (isset($this->scope
)) {
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
)) {
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();
598 $length = $d->getVarInt32();
599 $this->setScope(substr($d->buffer(), $d->pos(), $length));
603 $length = $d->getVarInt32();
604 $this->addScopes(substr($d->buffer(), $d->pos(), $length));
608 $this->setRequestWriterPermission($d->getBoolean());
611 throw new \google\net\
ProtocolBufferDecodeError();
618 public function checkInitialized() {
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;
645 public function shortDebugString($prefix = "") {
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";
660 namespace google\appengine
{
661 class GetOAuthUserResponse
extends \google\net\ProtocolMessage
{
662 private $scopes = array();
663 public function getEmail() {
664 if (!isset($this->email
)) {
669 public function setEmail($val) {
673 public function clearEmail() {
677 public function hasEmail() {
678 return isset($this->email
);
680 public function getUserId() {
681 if (!isset($this->user_id
)) {
684 return $this->user_id
;
686 public function setUserId($val) {
687 $this->user_id
= $val;
690 public function clearUserId() {
691 unset($this->user_id
);
694 public function hasUserId() {
695 return isset($this->user_id
);
697 public function getAuthDomain() {
698 if (!isset($this->auth_domain
)) {
701 return $this->auth_domain
;
703 public function setAuthDomain($val) {
704 $this->auth_domain
= $val;
707 public function clearAuthDomain() {
708 unset($this->auth_domain
);
711 public function hasAuthDomain() {
712 return isset($this->auth_domain
);
714 public function getUserOrganization() {
715 if (!isset($this->user_organization
)) {
718 return $this->user_organization
;
720 public function setUserOrganization($val) {
721 $this->user_organization
= $val;
724 public function clearUserOrganization() {
725 unset($this->user_organization
);
728 public function hasUserOrganization() {
729 return isset($this->user_organization
);
731 public function getIsAdmin() {
732 if (!isset($this->is_admin
)) {
735 return $this->is_admin
;
737 public function setIsAdmin($val) {
738 $this->is_admin
= $val;
741 public function clearIsAdmin() {
742 unset($this->is_admin
);
745 public function hasIsAdmin() {
746 return isset($this->is_admin
);
748 public function getClientId() {
749 if (!isset($this->client_id
)) {
752 return $this->client_id
;
754 public function setClientId($val) {
755 $this->client_id
= $val;
758 public function clearClientId() {
759 unset($this->client_id
);
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;
778 public function addScopes($val) {
779 $this->scopes
[] = $val;
782 public function clearScopes() {
783 $this->scopes
= array();
785 public function getIsProjectWriter() {
786 if (!isset($this->is_project_writer
)) {
789 return $this->is_project_writer
;
791 public function setIsProjectWriter($val) {
792 $this->is_project_writer
= $val;
795 public function clearIsProjectWriter() {
796 unset($this->is_project_writer
);
799 public function hasIsProjectWriter() {
800 return isset($this->is_project_writer
);
802 public function clear() {
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() {
814 if (isset($this->email
)) {
816 $res +
= $this->lengthString(strlen($this->email
));
818 if (isset($this->user_id
)) {
820 $res +
= $this->lengthString(strlen($this->user_id
));
822 if (isset($this->auth_domain
)) {
824 $res +
= $this->lengthString(strlen($this->auth_domain
));
826 if (isset($this->user_organization
)) {
828 $res +
= $this->lengthString(strlen($this->user_organization
));
830 if (isset($this->is_admin
)) {
833 if (isset($this->client_id
)) {
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
)) {
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();
887 $length = $d->getVarInt32();
888 $this->setEmail(substr($d->buffer(), $d->pos(), $length));
892 $length = $d->getVarInt32();
893 $this->setUserId(substr($d->buffer(), $d->pos(), $length));
897 $length = $d->getVarInt32();
898 $this->setAuthDomain(substr($d->buffer(), $d->pos(), $length));
902 $length = $d->getVarInt32();
903 $this->setUserOrganization(substr($d->buffer(), $d->pos(), $length));
907 $this->setIsAdmin($d->getBoolean());
910 $length = $d->getVarInt32();
911 $this->setClientId(substr($d->buffer(), $d->pos(), $length));
915 $length = $d->getVarInt32();
916 $this->addScopes(substr($d->buffer(), $d->pos(), $length));
920 $this->setIsProjectWriter($d->getBoolean());
923 throw new \google\net\
ProtocolBufferDecodeError();
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';
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;
985 public function shortDebugString($prefix = "") {
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";
1015 namespace google\appengine
{
1016 class CheckOAuthSignatureRequest
extends \google\net\ProtocolMessage
{
1017 public function clear() {
1019 public function byteSizePartial() {
1023 public function outputPartial($out) {
1025 public function tryMerge($d) {
1026 while($d->avail() > 0) {
1027 $tt = $d->getVarInt32();
1030 throw new \google\net\
ProtocolBufferDecodeError();
1037 public function checkInitialized() {
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; }
1047 public function shortDebugString($prefix = "") {
1053 namespace google\appengine
{
1054 class CheckOAuthSignatureResponse
extends \google\net\ProtocolMessage
{
1055 public function getOauthConsumerKey() {
1056 if (!isset($this->oauth_consumer_key
)) {
1059 return $this->oauth_consumer_key
;
1061 public function setOauthConsumerKey($val) {
1062 $this->oauth_consumer_key
= $val;
1065 public function clearOauthConsumerKey() {
1066 unset($this->oauth_consumer_key
);
1069 public function hasOauthConsumerKey() {
1070 return isset($this->oauth_consumer_key
);
1072 public function clear() {
1073 $this->clearOauthConsumerKey();
1075 public function byteSizePartial() {
1077 if (isset($this->oauth_consumer_key
)) {
1079 $res +
= $this->lengthString(strlen($this->oauth_consumer_key
));
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();
1094 $length = $d->getVarInt32();
1095 $this->setOauthConsumerKey(substr($d->buffer(), $d->pos(), $length));
1099 throw new \google\net\
ProtocolBufferDecodeError();
1106 public function checkInitialized() {
1107 if (!isset($this->oauth_consumer_key
)) return 'oauth_consumer_key';
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;
1122 public function shortDebugString($prefix = "") {
1124 if (isset($this->oauth_consumer_key
)) {
1125 $res .= $prefix . "oauth_consumer_key: " . $this->debugFormatString($this->oauth_consumer_key
) . "\n";