Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,240 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Address extends \Google\Model
{
/**
* @var string
*/
public $city;
/**
* @var string
*/
public $country;
/**
* @var string
*/
public $countryCode;
/**
* @var string
*/
public $extendedAddress;
/**
* @var string
*/
public $formattedType;
/**
* @var string
*/
public $formattedValue;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $poBox;
/**
* @var string
*/
public $postalCode;
/**
* @var string
*/
public $region;
/**
* @var string
*/
public $streetAddress;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setCity($city)
{
$this->city = $city;
}
/**
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* @param string
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* @param string
*/
public function setCountryCode($countryCode)
{
$this->countryCode = $countryCode;
}
/**
* @return string
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* @param string
*/
public function setExtendedAddress($extendedAddress)
{
$this->extendedAddress = $extendedAddress;
}
/**
* @return string
*/
public function getExtendedAddress()
{
return $this->extendedAddress;
}
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param string
*/
public function setFormattedValue($formattedValue)
{
$this->formattedValue = $formattedValue;
}
/**
* @return string
*/
public function getFormattedValue()
{
return $this->formattedValue;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setPoBox($poBox)
{
$this->poBox = $poBox;
}
/**
* @return string
*/
public function getPoBox()
{
return $this->poBox;
}
/**
* @param string
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* @param string
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* @param string
*/
public function setStreetAddress($streetAddress)
{
$this->streetAddress = $streetAddress;
}
/**
* @return string
*/
public function getStreetAddress()
{
return $this->streetAddress;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Address::class, 'Google_Service_PeopleService_Address');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class AgeRangeType extends \Google\Model
{
/**
* @var string
*/
public $ageRange;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @param string
*/
public function setAgeRange($ageRange)
{
$this->ageRange = $ageRange;
}
/**
* @return string
*/
public function getAgeRange()
{
return $this->ageRange;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgeRangeType::class, 'Google_Service_PeopleService_AgeRangeType');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class BatchCreateContactsRequest extends \Google\Collection
{
protected $collection_key = 'sources';
protected $contactsType = ContactToCreate::class;
protected $contactsDataType = 'array';
/**
* @var string
*/
public $readMask;
/**
* @var string[]
*/
public $sources;
/**
* @param ContactToCreate[]
*/
public function setContacts($contacts)
{
$this->contacts = $contacts;
}
/**
* @return ContactToCreate[]
*/
public function getContacts()
{
return $this->contacts;
}
/**
* @param string
*/
public function setReadMask($readMask)
{
$this->readMask = $readMask;
}
/**
* @return string
*/
public function getReadMask()
{
return $this->readMask;
}
/**
* @param string[]
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return string[]
*/
public function getSources()
{
return $this->sources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateContactsRequest::class, 'Google_Service_PeopleService_BatchCreateContactsRequest');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class BatchCreateContactsResponse extends \Google\Collection
{
protected $collection_key = 'createdPeople';
protected $createdPeopleType = PersonResponse::class;
protected $createdPeopleDataType = 'array';
/**
* @param PersonResponse[]
*/
public function setCreatedPeople($createdPeople)
{
$this->createdPeople = $createdPeople;
}
/**
* @return PersonResponse[]
*/
public function getCreatedPeople()
{
return $this->createdPeople;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateContactsResponse::class, 'Google_Service_PeopleService_BatchCreateContactsResponse');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class BatchDeleteContactsRequest extends \Google\Collection
{
protected $collection_key = 'resourceNames';
/**
* @var string[]
*/
public $resourceNames;
/**
* @param string[]
*/
public function setResourceNames($resourceNames)
{
$this->resourceNames = $resourceNames;
}
/**
* @return string[]
*/
public function getResourceNames()
{
return $this->resourceNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeleteContactsRequest::class, 'Google_Service_PeopleService_BatchDeleteContactsRequest');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class BatchGetContactGroupsResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $responsesType = ContactGroupResponse::class;
protected $responsesDataType = 'array';
/**
* @param ContactGroupResponse[]
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return ContactGroupResponse[]
*/
public function getResponses()
{
return $this->responses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchGetContactGroupsResponse::class, 'Google_Service_PeopleService_BatchGetContactGroupsResponse');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class BatchUpdateContactsRequest extends \Google\Collection
{
protected $collection_key = 'sources';
protected $contactsType = Person::class;
protected $contactsDataType = 'map';
/**
* @var string
*/
public $readMask;
/**
* @var string[]
*/
public $sources;
/**
* @var string
*/
public $updateMask;
/**
* @param Person[]
*/
public function setContacts($contacts)
{
$this->contacts = $contacts;
}
/**
* @return Person[]
*/
public function getContacts()
{
return $this->contacts;
}
/**
* @param string
*/
public function setReadMask($readMask)
{
$this->readMask = $readMask;
}
/**
* @return string
*/
public function getReadMask()
{
return $this->readMask;
}
/**
* @param string[]
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return string[]
*/
public function getSources()
{
return $this->sources;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdateContactsRequest::class, 'Google_Service_PeopleService_BatchUpdateContactsRequest');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class BatchUpdateContactsResponse extends \Google\Model
{
protected $updateResultType = PersonResponse::class;
protected $updateResultDataType = 'map';
/**
* @param PersonResponse[]
*/
public function setUpdateResult($updateResult)
{
$this->updateResult = $updateResult;
}
/**
* @return PersonResponse[]
*/
public function getUpdateResult()
{
return $this->updateResult;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdateContactsResponse::class, 'Google_Service_PeopleService_BatchUpdateContactsResponse');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Biography extends \Google\Model
{
/**
* @var string
*/
public $contentType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Biography::class, 'Google_Service_PeopleService_Biography');
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Birthday extends \Google\Model
{
protected $dateType = Date::class;
protected $dateDataType = '';
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $text;
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Birthday::class, 'Google_Service_PeopleService_Birthday');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class BraggingRights extends \Google\Model
{
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BraggingRights::class, 'Google_Service_PeopleService_BraggingRights');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class CalendarUrl extends \Google\Model
{
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalendarUrl::class, 'Google_Service_PeopleService_CalendarUrl');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ClientData extends \Google\Model
{
/**
* @var string
*/
public $key;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientData::class, 'Google_Service_PeopleService_ClientData');
@@ -0,0 +1,185 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ContactGroup extends \Google\Collection
{
protected $collection_key = 'memberResourceNames';
protected $clientDataType = GroupClientData::class;
protected $clientDataDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $formattedName;
/**
* @var string
*/
public $groupType;
/**
* @var int
*/
public $memberCount;
/**
* @var string[]
*/
public $memberResourceNames;
protected $metadataType = ContactGroupMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $resourceName;
/**
* @param GroupClientData[]
*/
public function setClientData($clientData)
{
$this->clientData = $clientData;
}
/**
* @return GroupClientData[]
*/
public function getClientData()
{
return $this->clientData;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setFormattedName($formattedName)
{
$this->formattedName = $formattedName;
}
/**
* @return string
*/
public function getFormattedName()
{
return $this->formattedName;
}
/**
* @param string
*/
public function setGroupType($groupType)
{
$this->groupType = $groupType;
}
/**
* @return string
*/
public function getGroupType()
{
return $this->groupType;
}
/**
* @param int
*/
public function setMemberCount($memberCount)
{
$this->memberCount = $memberCount;
}
/**
* @return int
*/
public function getMemberCount()
{
return $this->memberCount;
}
/**
* @param string[]
*/
public function setMemberResourceNames($memberResourceNames)
{
$this->memberResourceNames = $memberResourceNames;
}
/**
* @return string[]
*/
public function getMemberResourceNames()
{
return $this->memberResourceNames;
}
/**
* @param ContactGroupMetadata
*/
public function setMetadata(ContactGroupMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return ContactGroupMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactGroup::class, 'Google_Service_PeopleService_ContactGroup');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ContactGroupMembership extends \Google\Model
{
/**
* @var string
*/
public $contactGroupId;
/**
* @var string
*/
public $contactGroupResourceName;
/**
* @param string
*/
public function setContactGroupId($contactGroupId)
{
$this->contactGroupId = $contactGroupId;
}
/**
* @return string
*/
public function getContactGroupId()
{
return $this->contactGroupId;
}
/**
* @param string
*/
public function setContactGroupResourceName($contactGroupResourceName)
{
$this->contactGroupResourceName = $contactGroupResourceName;
}
/**
* @return string
*/
public function getContactGroupResourceName()
{
return $this->contactGroupResourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactGroupMembership::class, 'Google_Service_PeopleService_ContactGroupMembership');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ContactGroupMetadata extends \Google\Model
{
/**
* @var bool
*/
public $deleted;
/**
* @var string
*/
public $updateTime;
/**
* @param bool
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactGroupMetadata::class, 'Google_Service_PeopleService_ContactGroupMetadata');
@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ContactGroupResponse extends \Google\Model
{
protected $contactGroupType = ContactGroup::class;
protected $contactGroupDataType = '';
/**
* @var string
*/
public $requestedResourceName;
protected $statusType = Status::class;
protected $statusDataType = '';
/**
* @param ContactGroup
*/
public function setContactGroup(ContactGroup $contactGroup)
{
$this->contactGroup = $contactGroup;
}
/**
* @return ContactGroup
*/
public function getContactGroup()
{
return $this->contactGroup;
}
/**
* @param string
*/
public function setRequestedResourceName($requestedResourceName)
{
$this->requestedResourceName = $requestedResourceName;
}
/**
* @return string
*/
public function getRequestedResourceName()
{
return $this->requestedResourceName;
}
/**
* @param Status
*/
public function setStatus(Status $status)
{
$this->status = $status;
}
/**
* @return Status
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactGroupResponse::class, 'Google_Service_PeopleService_ContactGroupResponse');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ContactToCreate extends \Google\Model
{
protected $contactPersonType = Person::class;
protected $contactPersonDataType = '';
/**
* @param Person
*/
public function setContactPerson(Person $contactPerson)
{
$this->contactPerson = $contactPerson;
}
/**
* @return Person
*/
public function getContactPerson()
{
return $this->contactPerson;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactToCreate::class, 'Google_Service_PeopleService_ContactToCreate');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class CopyOtherContactToMyContactsGroupRequest extends \Google\Collection
{
protected $collection_key = 'sources';
/**
* @var string
*/
public $copyMask;
/**
* @var string
*/
public $readMask;
/**
* @var string[]
*/
public $sources;
/**
* @param string
*/
public function setCopyMask($copyMask)
{
$this->copyMask = $copyMask;
}
/**
* @return string
*/
public function getCopyMask()
{
return $this->copyMask;
}
/**
* @param string
*/
public function setReadMask($readMask)
{
$this->readMask = $readMask;
}
/**
* @return string
*/
public function getReadMask()
{
return $this->readMask;
}
/**
* @param string[]
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return string[]
*/
public function getSources()
{
return $this->sources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CopyOtherContactToMyContactsGroupRequest::class, 'Google_Service_PeopleService_CopyOtherContactToMyContactsGroupRequest');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class CoverPhoto extends \Google\Model
{
/**
* @var bool
*/
public $default;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $url;
/**
* @param bool
*/
public function setDefault($default)
{
$this->default = $default;
}
/**
* @return bool
*/
public function getDefault()
{
return $this->default;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CoverPhoto::class, 'Google_Service_PeopleService_CoverPhoto');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class CreateContactGroupRequest extends \Google\Model
{
protected $contactGroupType = ContactGroup::class;
protected $contactGroupDataType = '';
/**
* @var string
*/
public $readGroupFields;
/**
* @param ContactGroup
*/
public function setContactGroup(ContactGroup $contactGroup)
{
$this->contactGroup = $contactGroup;
}
/**
* @return ContactGroup
*/
public function getContactGroup()
{
return $this->contactGroup;
}
/**
* @param string
*/
public function setReadGroupFields($readGroupFields)
{
$this->readGroupFields = $readGroupFields;
}
/**
* @return string
*/
public function getReadGroupFields()
{
return $this->readGroupFields;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateContactGroupRequest::class, 'Google_Service_PeopleService_CreateContactGroupRequest');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Date extends \Google\Model
{
/**
* @var int
*/
public $day;
/**
* @var int
*/
public $month;
/**
* @var int
*/
public $year;
/**
* @param int
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* @param int
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* @param int
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_PeopleService_Date');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class DeleteContactPhotoResponse extends \Google\Model
{
protected $personType = Person::class;
protected $personDataType = '';
/**
* @param Person
*/
public function setPerson(Person $person)
{
$this->person = $person;
}
/**
* @return Person
*/
public function getPerson()
{
return $this->person;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteContactPhotoResponse::class, 'Google_Service_PeopleService_DeleteContactPhotoResponse');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class DomainMembership extends \Google\Model
{
/**
* @var bool
*/
public $inViewerDomain;
/**
* @param bool
*/
public function setInViewerDomain($inViewerDomain)
{
$this->inViewerDomain = $inViewerDomain;
}
/**
* @return bool
*/
public function getInViewerDomain()
{
return $this->inViewerDomain;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainMembership::class, 'Google_Service_PeopleService_DomainMembership');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class EmailAddress extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EmailAddress::class, 'Google_Service_PeopleService_EmailAddress');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Event extends \Google\Model
{
protected $dateType = Date::class;
protected $dateDataType = '';
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @param Date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Event::class, 'Google_Service_PeopleService_Event');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ExternalId extends \Google\Model
{
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalId::class, 'Google_Service_PeopleService_ExternalId');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class FieldMetadata extends \Google\Model
{
/**
* @var bool
*/
public $primary;
protected $sourceType = Source::class;
protected $sourceDataType = '';
/**
* @var bool
*/
public $sourcePrimary;
/**
* @var bool
*/
public $verified;
/**
* @param bool
*/
public function setPrimary($primary)
{
$this->primary = $primary;
}
/**
* @return bool
*/
public function getPrimary()
{
return $this->primary;
}
/**
* @param Source
*/
public function setSource(Source $source)
{
$this->source = $source;
}
/**
* @return Source
*/
public function getSource()
{
return $this->source;
}
/**
* @param bool
*/
public function setSourcePrimary($sourcePrimary)
{
$this->sourcePrimary = $sourcePrimary;
}
/**
* @return bool
*/
public function getSourcePrimary()
{
return $this->sourcePrimary;
}
/**
* @param bool
*/
public function setVerified($verified)
{
$this->verified = $verified;
}
/**
* @return bool
*/
public function getVerified()
{
return $this->verified;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FieldMetadata::class, 'Google_Service_PeopleService_FieldMetadata');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class FileAs extends \Google\Model
{
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileAs::class, 'Google_Service_PeopleService_FileAs');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Gender extends \Google\Model
{
/**
* @var string
*/
public $addressMeAs;
/**
* @var string
*/
public $formattedValue;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setAddressMeAs($addressMeAs)
{
$this->addressMeAs = $addressMeAs;
}
/**
* @return string
*/
public function getAddressMeAs()
{
return $this->addressMeAs;
}
/**
* @param string
*/
public function setFormattedValue($formattedValue)
{
$this->formattedValue = $formattedValue;
}
/**
* @return string
*/
public function getFormattedValue()
{
return $this->formattedValue;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Gender::class, 'Google_Service_PeopleService_Gender');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class GetPeopleResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $responsesType = PersonResponse::class;
protected $responsesDataType = 'array';
/**
* @param PersonResponse[]
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return PersonResponse[]
*/
public function getResponses()
{
return $this->responses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetPeopleResponse::class, 'Google_Service_PeopleService_GetPeopleResponse');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class GroupClientData extends \Google\Model
{
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GroupClientData::class, 'Google_Service_PeopleService_GroupClientData');
@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ImClient extends \Google\Model
{
/**
* @var string
*/
public $formattedProtocol;
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $protocol;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $username;
/**
* @param string
*/
public function setFormattedProtocol($formattedProtocol)
{
$this->formattedProtocol = $formattedProtocol;
}
/**
* @return string
*/
public function getFormattedProtocol()
{
return $this->formattedProtocol;
}
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return string
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImClient::class, 'Google_Service_PeopleService_ImClient');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Interest extends \Google\Model
{
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Interest::class, 'Google_Service_PeopleService_Interest');
@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ListConnectionsResponse extends \Google\Collection
{
protected $collection_key = 'connections';
protected $connectionsType = Person::class;
protected $connectionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $nextSyncToken;
/**
* @var int
*/
public $totalItems;
/**
* @var int
*/
public $totalPeople;
/**
* @param Person[]
*/
public function setConnections($connections)
{
$this->connections = $connections;
}
/**
* @return Person[]
*/
public function getConnections()
{
return $this->connections;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setNextSyncToken($nextSyncToken)
{
$this->nextSyncToken = $nextSyncToken;
}
/**
* @return string
*/
public function getNextSyncToken()
{
return $this->nextSyncToken;
}
/**
* @param int
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
/**
* @param int
*/
public function setTotalPeople($totalPeople)
{
$this->totalPeople = $totalPeople;
}
/**
* @return int
*/
public function getTotalPeople()
{
return $this->totalPeople;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListConnectionsResponse::class, 'Google_Service_PeopleService_ListConnectionsResponse');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ListContactGroupsResponse extends \Google\Collection
{
protected $collection_key = 'contactGroups';
protected $contactGroupsType = ContactGroup::class;
protected $contactGroupsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $nextSyncToken;
/**
* @var int
*/
public $totalItems;
/**
* @param ContactGroup[]
*/
public function setContactGroups($contactGroups)
{
$this->contactGroups = $contactGroups;
}
/**
* @return ContactGroup[]
*/
public function getContactGroups()
{
return $this->contactGroups;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setNextSyncToken($nextSyncToken)
{
$this->nextSyncToken = $nextSyncToken;
}
/**
* @return string
*/
public function getNextSyncToken()
{
return $this->nextSyncToken;
}
/**
* @param int
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListContactGroupsResponse::class, 'Google_Service_PeopleService_ListContactGroupsResponse');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ListDirectoryPeopleResponse extends \Google\Collection
{
protected $collection_key = 'people';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $nextSyncToken;
protected $peopleType = Person::class;
protected $peopleDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setNextSyncToken($nextSyncToken)
{
$this->nextSyncToken = $nextSyncToken;
}
/**
* @return string
*/
public function getNextSyncToken()
{
return $this->nextSyncToken;
}
/**
* @param Person[]
*/
public function setPeople($people)
{
$this->people = $people;
}
/**
* @return Person[]
*/
public function getPeople()
{
return $this->people;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListDirectoryPeopleResponse::class, 'Google_Service_PeopleService_ListDirectoryPeopleResponse');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ListOtherContactsResponse extends \Google\Collection
{
protected $collection_key = 'otherContacts';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string
*/
public $nextSyncToken;
protected $otherContactsType = Person::class;
protected $otherContactsDataType = 'array';
/**
* @var int
*/
public $totalSize;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string
*/
public function setNextSyncToken($nextSyncToken)
{
$this->nextSyncToken = $nextSyncToken;
}
/**
* @return string
*/
public function getNextSyncToken()
{
return $this->nextSyncToken;
}
/**
* @param Person[]
*/
public function setOtherContacts($otherContacts)
{
$this->otherContacts = $otherContacts;
}
/**
* @return Person[]
*/
public function getOtherContacts()
{
return $this->otherContacts;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOtherContactsResponse::class, 'Google_Service_PeopleService_ListOtherContactsResponse');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Locale extends \Google\Model
{
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locale::class, 'Google_Service_PeopleService_Locale');
@@ -0,0 +1,168 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Location extends \Google\Model
{
/**
* @var string
*/
public $buildingId;
/**
* @var bool
*/
public $current;
/**
* @var string
*/
public $deskCode;
/**
* @var string
*/
public $floor;
/**
* @var string
*/
public $floorSection;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setBuildingId($buildingId)
{
$this->buildingId = $buildingId;
}
/**
* @return string
*/
public function getBuildingId()
{
return $this->buildingId;
}
/**
* @param bool
*/
public function setCurrent($current)
{
$this->current = $current;
}
/**
* @return bool
*/
public function getCurrent()
{
return $this->current;
}
/**
* @param string
*/
public function setDeskCode($deskCode)
{
$this->deskCode = $deskCode;
}
/**
* @return string
*/
public function getDeskCode()
{
return $this->deskCode;
}
/**
* @param string
*/
public function setFloor($floor)
{
$this->floor = $floor;
}
/**
* @return string
*/
public function getFloor()
{
return $this->floor;
}
/**
* @param string
*/
public function setFloorSection($floorSection)
{
$this->floorSection = $floorSection;
}
/**
* @return string
*/
public function getFloorSection()
{
return $this->floorSection;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_PeopleService_Location');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Membership extends \Google\Model
{
protected $contactGroupMembershipType = ContactGroupMembership::class;
protected $contactGroupMembershipDataType = '';
protected $domainMembershipType = DomainMembership::class;
protected $domainMembershipDataType = '';
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @param ContactGroupMembership
*/
public function setContactGroupMembership(ContactGroupMembership $contactGroupMembership)
{
$this->contactGroupMembership = $contactGroupMembership;
}
/**
* @return ContactGroupMembership
*/
public function getContactGroupMembership()
{
return $this->contactGroupMembership;
}
/**
* @param DomainMembership
*/
public function setDomainMembership(DomainMembership $domainMembership)
{
$this->domainMembership = $domainMembership;
}
/**
* @return DomainMembership
*/
public function getDomainMembership()
{
return $this->domainMembership;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Membership::class, 'Google_Service_PeopleService_Membership');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class MiscKeyword extends \Google\Model
{
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MiscKeyword::class, 'Google_Service_PeopleService_MiscKeyword');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ModifyContactGroupMembersRequest extends \Google\Collection
{
protected $collection_key = 'resourceNamesToRemove';
/**
* @var string[]
*/
public $resourceNamesToAdd;
/**
* @var string[]
*/
public $resourceNamesToRemove;
/**
* @param string[]
*/
public function setResourceNamesToAdd($resourceNamesToAdd)
{
$this->resourceNamesToAdd = $resourceNamesToAdd;
}
/**
* @return string[]
*/
public function getResourceNamesToAdd()
{
return $this->resourceNamesToAdd;
}
/**
* @param string[]
*/
public function setResourceNamesToRemove($resourceNamesToRemove)
{
$this->resourceNamesToRemove = $resourceNamesToRemove;
}
/**
* @return string[]
*/
public function getResourceNamesToRemove()
{
return $this->resourceNamesToRemove;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModifyContactGroupMembersRequest::class, 'Google_Service_PeopleService_ModifyContactGroupMembersRequest');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ModifyContactGroupMembersResponse extends \Google\Collection
{
protected $collection_key = 'notFoundResourceNames';
/**
* @var string[]
*/
public $canNotRemoveLastContactGroupResourceNames;
/**
* @var string[]
*/
public $notFoundResourceNames;
/**
* @param string[]
*/
public function setCanNotRemoveLastContactGroupResourceNames($canNotRemoveLastContactGroupResourceNames)
{
$this->canNotRemoveLastContactGroupResourceNames = $canNotRemoveLastContactGroupResourceNames;
}
/**
* @return string[]
*/
public function getCanNotRemoveLastContactGroupResourceNames()
{
return $this->canNotRemoveLastContactGroupResourceNames;
}
/**
* @param string[]
*/
public function setNotFoundResourceNames($notFoundResourceNames)
{
$this->notFoundResourceNames = $notFoundResourceNames;
}
/**
* @return string[]
*/
public function getNotFoundResourceNames()
{
return $this->notFoundResourceNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModifyContactGroupMembersResponse::class, 'Google_Service_PeopleService_ModifyContactGroupMembersResponse');
@@ -0,0 +1,294 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Name extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $displayNameLastFirst;
/**
* @var string
*/
public $familyName;
/**
* @var string
*/
public $givenName;
/**
* @var string
*/
public $honorificPrefix;
/**
* @var string
*/
public $honorificSuffix;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $middleName;
/**
* @var string
*/
public $phoneticFamilyName;
/**
* @var string
*/
public $phoneticFullName;
/**
* @var string
*/
public $phoneticGivenName;
/**
* @var string
*/
public $phoneticHonorificPrefix;
/**
* @var string
*/
public $phoneticHonorificSuffix;
/**
* @var string
*/
public $phoneticMiddleName;
/**
* @var string
*/
public $unstructuredName;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setDisplayNameLastFirst($displayNameLastFirst)
{
$this->displayNameLastFirst = $displayNameLastFirst;
}
/**
* @return string
*/
public function getDisplayNameLastFirst()
{
return $this->displayNameLastFirst;
}
/**
* @param string
*/
public function setFamilyName($familyName)
{
$this->familyName = $familyName;
}
/**
* @return string
*/
public function getFamilyName()
{
return $this->familyName;
}
/**
* @param string
*/
public function setGivenName($givenName)
{
$this->givenName = $givenName;
}
/**
* @return string
*/
public function getGivenName()
{
return $this->givenName;
}
/**
* @param string
*/
public function setHonorificPrefix($honorificPrefix)
{
$this->honorificPrefix = $honorificPrefix;
}
/**
* @return string
*/
public function getHonorificPrefix()
{
return $this->honorificPrefix;
}
/**
* @param string
*/
public function setHonorificSuffix($honorificSuffix)
{
$this->honorificSuffix = $honorificSuffix;
}
/**
* @return string
*/
public function getHonorificSuffix()
{
return $this->honorificSuffix;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setMiddleName($middleName)
{
$this->middleName = $middleName;
}
/**
* @return string
*/
public function getMiddleName()
{
return $this->middleName;
}
/**
* @param string
*/
public function setPhoneticFamilyName($phoneticFamilyName)
{
$this->phoneticFamilyName = $phoneticFamilyName;
}
/**
* @return string
*/
public function getPhoneticFamilyName()
{
return $this->phoneticFamilyName;
}
/**
* @param string
*/
public function setPhoneticFullName($phoneticFullName)
{
$this->phoneticFullName = $phoneticFullName;
}
/**
* @return string
*/
public function getPhoneticFullName()
{
return $this->phoneticFullName;
}
/**
* @param string
*/
public function setPhoneticGivenName($phoneticGivenName)
{
$this->phoneticGivenName = $phoneticGivenName;
}
/**
* @return string
*/
public function getPhoneticGivenName()
{
return $this->phoneticGivenName;
}
/**
* @param string
*/
public function setPhoneticHonorificPrefix($phoneticHonorificPrefix)
{
$this->phoneticHonorificPrefix = $phoneticHonorificPrefix;
}
/**
* @return string
*/
public function getPhoneticHonorificPrefix()
{
return $this->phoneticHonorificPrefix;
}
/**
* @param string
*/
public function setPhoneticHonorificSuffix($phoneticHonorificSuffix)
{
$this->phoneticHonorificSuffix = $phoneticHonorificSuffix;
}
/**
* @return string
*/
public function getPhoneticHonorificSuffix()
{
return $this->phoneticHonorificSuffix;
}
/**
* @param string
*/
public function setPhoneticMiddleName($phoneticMiddleName)
{
$this->phoneticMiddleName = $phoneticMiddleName;
}
/**
* @return string
*/
public function getPhoneticMiddleName()
{
return $this->phoneticMiddleName;
}
/**
* @param string
*/
public function setUnstructuredName($unstructuredName)
{
$this->unstructuredName = $unstructuredName;
}
/**
* @return string
*/
public function getUnstructuredName()
{
return $this->unstructuredName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Name::class, 'Google_Service_PeopleService_Name');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Nickname extends \Google\Model
{
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Nickname::class, 'Google_Service_PeopleService_Nickname');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Occupation extends \Google\Model
{
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Occupation::class, 'Google_Service_PeopleService_Occupation');
@@ -0,0 +1,308 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Organization extends \Google\Model
{
/**
* @var string
*/
public $costCenter;
/**
* @var bool
*/
public $current;
/**
* @var string
*/
public $department;
/**
* @var string
*/
public $domain;
protected $endDateType = Date::class;
protected $endDateDataType = '';
/**
* @var string
*/
public $formattedType;
/**
* @var int
*/
public $fullTimeEquivalentMillipercent;
/**
* @var string
*/
public $jobDescription;
/**
* @var string
*/
public $location;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $phoneticName;
protected $startDateType = Date::class;
protected $startDateDataType = '';
/**
* @var string
*/
public $symbol;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setCostCenter($costCenter)
{
$this->costCenter = $costCenter;
}
/**
* @return string
*/
public function getCostCenter()
{
return $this->costCenter;
}
/**
* @param bool
*/
public function setCurrent($current)
{
$this->current = $current;
}
/**
* @return bool
*/
public function getCurrent()
{
return $this->current;
}
/**
* @param string
*/
public function setDepartment($department)
{
$this->department = $department;
}
/**
* @return string
*/
public function getDepartment()
{
return $this->department;
}
/**
* @param string
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* @param Date
*/
public function setEndDate(Date $endDate)
{
$this->endDate = $endDate;
}
/**
* @return Date
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param int
*/
public function setFullTimeEquivalentMillipercent($fullTimeEquivalentMillipercent)
{
$this->fullTimeEquivalentMillipercent = $fullTimeEquivalentMillipercent;
}
/**
* @return int
*/
public function getFullTimeEquivalentMillipercent()
{
return $this->fullTimeEquivalentMillipercent;
}
/**
* @param string
*/
public function setJobDescription($jobDescription)
{
$this->jobDescription = $jobDescription;
}
/**
* @return string
*/
public function getJobDescription()
{
return $this->jobDescription;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPhoneticName($phoneticName)
{
$this->phoneticName = $phoneticName;
}
/**
* @return string
*/
public function getPhoneticName()
{
return $this->phoneticName;
}
/**
* @param Date
*/
public function setStartDate(Date $startDate)
{
$this->startDate = $startDate;
}
/**
* @return Date
*/
public function getStartDate()
{
return $this->startDate;
}
/**
* @param string
*/
public function setSymbol($symbol)
{
$this->symbol = $symbol;
}
/**
* @return string
*/
public function getSymbol()
{
return $this->symbol;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organization::class, 'Google_Service_PeopleService_Organization');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class PeopleEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PeopleEmpty::class, 'Google_Service_PeopleService_PeopleEmpty');
@@ -0,0 +1,641 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Person extends \Google\Collection
{
protected $collection_key = 'userDefined';
protected $addressesType = Address::class;
protected $addressesDataType = 'array';
/**
* @var string
*/
public $ageRange;
protected $ageRangesType = AgeRangeType::class;
protected $ageRangesDataType = 'array';
protected $biographiesType = Biography::class;
protected $biographiesDataType = 'array';
protected $birthdaysType = Birthday::class;
protected $birthdaysDataType = 'array';
protected $braggingRightsType = BraggingRights::class;
protected $braggingRightsDataType = 'array';
protected $calendarUrlsType = CalendarUrl::class;
protected $calendarUrlsDataType = 'array';
protected $clientDataType = ClientData::class;
protected $clientDataDataType = 'array';
protected $coverPhotosType = CoverPhoto::class;
protected $coverPhotosDataType = 'array';
protected $emailAddressesType = EmailAddress::class;
protected $emailAddressesDataType = 'array';
/**
* @var string
*/
public $etag;
protected $eventsType = Event::class;
protected $eventsDataType = 'array';
protected $externalIdsType = ExternalId::class;
protected $externalIdsDataType = 'array';
protected $fileAsesType = FileAs::class;
protected $fileAsesDataType = 'array';
protected $gendersType = Gender::class;
protected $gendersDataType = 'array';
protected $imClientsType = ImClient::class;
protected $imClientsDataType = 'array';
protected $interestsType = Interest::class;
protected $interestsDataType = 'array';
protected $localesType = Locale::class;
protected $localesDataType = 'array';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
protected $membershipsType = Membership::class;
protected $membershipsDataType = 'array';
protected $metadataType = PersonMetadata::class;
protected $metadataDataType = '';
protected $miscKeywordsType = MiscKeyword::class;
protected $miscKeywordsDataType = 'array';
protected $namesType = Name::class;
protected $namesDataType = 'array';
protected $nicknamesType = Nickname::class;
protected $nicknamesDataType = 'array';
protected $occupationsType = Occupation::class;
protected $occupationsDataType = 'array';
protected $organizationsType = Organization::class;
protected $organizationsDataType = 'array';
protected $phoneNumbersType = PhoneNumber::class;
protected $phoneNumbersDataType = 'array';
protected $photosType = Photo::class;
protected $photosDataType = 'array';
protected $relationsType = Relation::class;
protected $relationsDataType = 'array';
protected $relationshipInterestsType = RelationshipInterest::class;
protected $relationshipInterestsDataType = 'array';
protected $relationshipStatusesType = RelationshipStatus::class;
protected $relationshipStatusesDataType = 'array';
protected $residencesType = Residence::class;
protected $residencesDataType = 'array';
/**
* @var string
*/
public $resourceName;
protected $sipAddressesType = SipAddress::class;
protected $sipAddressesDataType = 'array';
protected $skillsType = Skill::class;
protected $skillsDataType = 'array';
protected $taglinesType = Tagline::class;
protected $taglinesDataType = 'array';
protected $urlsType = Url::class;
protected $urlsDataType = 'array';
protected $userDefinedType = UserDefined::class;
protected $userDefinedDataType = 'array';
/**
* @param Address[]
*/
public function setAddresses($addresses)
{
$this->addresses = $addresses;
}
/**
* @return Address[]
*/
public function getAddresses()
{
return $this->addresses;
}
/**
* @param string
*/
public function setAgeRange($ageRange)
{
$this->ageRange = $ageRange;
}
/**
* @return string
*/
public function getAgeRange()
{
return $this->ageRange;
}
/**
* @param AgeRangeType[]
*/
public function setAgeRanges($ageRanges)
{
$this->ageRanges = $ageRanges;
}
/**
* @return AgeRangeType[]
*/
public function getAgeRanges()
{
return $this->ageRanges;
}
/**
* @param Biography[]
*/
public function setBiographies($biographies)
{
$this->biographies = $biographies;
}
/**
* @return Biography[]
*/
public function getBiographies()
{
return $this->biographies;
}
/**
* @param Birthday[]
*/
public function setBirthdays($birthdays)
{
$this->birthdays = $birthdays;
}
/**
* @return Birthday[]
*/
public function getBirthdays()
{
return $this->birthdays;
}
/**
* @param BraggingRights[]
*/
public function setBraggingRights($braggingRights)
{
$this->braggingRights = $braggingRights;
}
/**
* @return BraggingRights[]
*/
public function getBraggingRights()
{
return $this->braggingRights;
}
/**
* @param CalendarUrl[]
*/
public function setCalendarUrls($calendarUrls)
{
$this->calendarUrls = $calendarUrls;
}
/**
* @return CalendarUrl[]
*/
public function getCalendarUrls()
{
return $this->calendarUrls;
}
/**
* @param ClientData[]
*/
public function setClientData($clientData)
{
$this->clientData = $clientData;
}
/**
* @return ClientData[]
*/
public function getClientData()
{
return $this->clientData;
}
/**
* @param CoverPhoto[]
*/
public function setCoverPhotos($coverPhotos)
{
$this->coverPhotos = $coverPhotos;
}
/**
* @return CoverPhoto[]
*/
public function getCoverPhotos()
{
return $this->coverPhotos;
}
/**
* @param EmailAddress[]
*/
public function setEmailAddresses($emailAddresses)
{
$this->emailAddresses = $emailAddresses;
}
/**
* @return EmailAddress[]
*/
public function getEmailAddresses()
{
return $this->emailAddresses;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param Event[]
*/
public function setEvents($events)
{
$this->events = $events;
}
/**
* @return Event[]
*/
public function getEvents()
{
return $this->events;
}
/**
* @param ExternalId[]
*/
public function setExternalIds($externalIds)
{
$this->externalIds = $externalIds;
}
/**
* @return ExternalId[]
*/
public function getExternalIds()
{
return $this->externalIds;
}
/**
* @param FileAs[]
*/
public function setFileAses($fileAses)
{
$this->fileAses = $fileAses;
}
/**
* @return FileAs[]
*/
public function getFileAses()
{
return $this->fileAses;
}
/**
* @param Gender[]
*/
public function setGenders($genders)
{
$this->genders = $genders;
}
/**
* @return Gender[]
*/
public function getGenders()
{
return $this->genders;
}
/**
* @param ImClient[]
*/
public function setImClients($imClients)
{
$this->imClients = $imClients;
}
/**
* @return ImClient[]
*/
public function getImClients()
{
return $this->imClients;
}
/**
* @param Interest[]
*/
public function setInterests($interests)
{
$this->interests = $interests;
}
/**
* @return Interest[]
*/
public function getInterests()
{
return $this->interests;
}
/**
* @param Locale[]
*/
public function setLocales($locales)
{
$this->locales = $locales;
}
/**
* @return Locale[]
*/
public function getLocales()
{
return $this->locales;
}
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param Membership[]
*/
public function setMemberships($memberships)
{
$this->memberships = $memberships;
}
/**
* @return Membership[]
*/
public function getMemberships()
{
return $this->memberships;
}
/**
* @param PersonMetadata
*/
public function setMetadata(PersonMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return PersonMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param MiscKeyword[]
*/
public function setMiscKeywords($miscKeywords)
{
$this->miscKeywords = $miscKeywords;
}
/**
* @return MiscKeyword[]
*/
public function getMiscKeywords()
{
return $this->miscKeywords;
}
/**
* @param Name[]
*/
public function setNames($names)
{
$this->names = $names;
}
/**
* @return Name[]
*/
public function getNames()
{
return $this->names;
}
/**
* @param Nickname[]
*/
public function setNicknames($nicknames)
{
$this->nicknames = $nicknames;
}
/**
* @return Nickname[]
*/
public function getNicknames()
{
return $this->nicknames;
}
/**
* @param Occupation[]
*/
public function setOccupations($occupations)
{
$this->occupations = $occupations;
}
/**
* @return Occupation[]
*/
public function getOccupations()
{
return $this->occupations;
}
/**
* @param Organization[]
*/
public function setOrganizations($organizations)
{
$this->organizations = $organizations;
}
/**
* @return Organization[]
*/
public function getOrganizations()
{
return $this->organizations;
}
/**
* @param PhoneNumber[]
*/
public function setPhoneNumbers($phoneNumbers)
{
$this->phoneNumbers = $phoneNumbers;
}
/**
* @return PhoneNumber[]
*/
public function getPhoneNumbers()
{
return $this->phoneNumbers;
}
/**
* @param Photo[]
*/
public function setPhotos($photos)
{
$this->photos = $photos;
}
/**
* @return Photo[]
*/
public function getPhotos()
{
return $this->photos;
}
/**
* @param Relation[]
*/
public function setRelations($relations)
{
$this->relations = $relations;
}
/**
* @return Relation[]
*/
public function getRelations()
{
return $this->relations;
}
/**
* @param RelationshipInterest[]
*/
public function setRelationshipInterests($relationshipInterests)
{
$this->relationshipInterests = $relationshipInterests;
}
/**
* @return RelationshipInterest[]
*/
public function getRelationshipInterests()
{
return $this->relationshipInterests;
}
/**
* @param RelationshipStatus[]
*/
public function setRelationshipStatuses($relationshipStatuses)
{
$this->relationshipStatuses = $relationshipStatuses;
}
/**
* @return RelationshipStatus[]
*/
public function getRelationshipStatuses()
{
return $this->relationshipStatuses;
}
/**
* @param Residence[]
*/
public function setResidences($residences)
{
$this->residences = $residences;
}
/**
* @return Residence[]
*/
public function getResidences()
{
return $this->residences;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* @param SipAddress[]
*/
public function setSipAddresses($sipAddresses)
{
$this->sipAddresses = $sipAddresses;
}
/**
* @return SipAddress[]
*/
public function getSipAddresses()
{
return $this->sipAddresses;
}
/**
* @param Skill[]
*/
public function setSkills($skills)
{
$this->skills = $skills;
}
/**
* @return Skill[]
*/
public function getSkills()
{
return $this->skills;
}
/**
* @param Tagline[]
*/
public function setTaglines($taglines)
{
$this->taglines = $taglines;
}
/**
* @return Tagline[]
*/
public function getTaglines()
{
return $this->taglines;
}
/**
* @param Url[]
*/
public function setUrls($urls)
{
$this->urls = $urls;
}
/**
* @return Url[]
*/
public function getUrls()
{
return $this->urls;
}
/**
* @param UserDefined[]
*/
public function setUserDefined($userDefined)
{
$this->userDefined = $userDefined;
}
/**
* @return UserDefined[]
*/
public function getUserDefined()
{
return $this->userDefined;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Person::class, 'Google_Service_PeopleService_Person');
@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class PersonMetadata extends \Google\Collection
{
protected $collection_key = 'sources';
/**
* @var bool
*/
public $deleted;
/**
* @var string[]
*/
public $linkedPeopleResourceNames;
/**
* @var string
*/
public $objectType;
/**
* @var string[]
*/
public $previousResourceNames;
protected $sourcesType = Source::class;
protected $sourcesDataType = 'array';
/**
* @param bool
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* @param string[]
*/
public function setLinkedPeopleResourceNames($linkedPeopleResourceNames)
{
$this->linkedPeopleResourceNames = $linkedPeopleResourceNames;
}
/**
* @return string[]
*/
public function getLinkedPeopleResourceNames()
{
return $this->linkedPeopleResourceNames;
}
/**
* @param string
*/
public function setObjectType($objectType)
{
$this->objectType = $objectType;
}
/**
* @return string
*/
public function getObjectType()
{
return $this->objectType;
}
/**
* @param string[]
*/
public function setPreviousResourceNames($previousResourceNames)
{
$this->previousResourceNames = $previousResourceNames;
}
/**
* @return string[]
*/
public function getPreviousResourceNames()
{
return $this->previousResourceNames;
}
/**
* @param Source[]
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return Source[]
*/
public function getSources()
{
return $this->sources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PersonMetadata::class, 'Google_Service_PeopleService_PersonMetadata');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class PersonResponse extends \Google\Model
{
/**
* @var int
*/
public $httpStatusCode;
protected $personType = Person::class;
protected $personDataType = '';
/**
* @var string
*/
public $requestedResourceName;
protected $statusType = Status::class;
protected $statusDataType = '';
/**
* @param int
*/
public function setHttpStatusCode($httpStatusCode)
{
$this->httpStatusCode = $httpStatusCode;
}
/**
* @return int
*/
public function getHttpStatusCode()
{
return $this->httpStatusCode;
}
/**
* @param Person
*/
public function setPerson(Person $person)
{
$this->person = $person;
}
/**
* @return Person
*/
public function getPerson()
{
return $this->person;
}
/**
* @param string
*/
public function setRequestedResourceName($requestedResourceName)
{
$this->requestedResourceName = $requestedResourceName;
}
/**
* @return string
*/
public function getRequestedResourceName()
{
return $this->requestedResourceName;
}
/**
* @param Status
*/
public function setStatus(Status $status)
{
$this->status = $status;
}
/**
* @return Status
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PersonResponse::class, 'Google_Service_PeopleService_PersonResponse');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class PhoneNumber extends \Google\Model
{
/**
* @var string
*/
public $canonicalForm;
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setCanonicalForm($canonicalForm)
{
$this->canonicalForm = $canonicalForm;
}
/**
* @return string
*/
public function getCanonicalForm()
{
return $this->canonicalForm;
}
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhoneNumber::class, 'Google_Service_PeopleService_PhoneNumber');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Photo extends \Google\Model
{
/**
* @var bool
*/
public $default;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $url;
/**
* @param bool
*/
public function setDefault($default)
{
$this->default = $default;
}
/**
* @return bool
*/
public function getDefault()
{
return $this->default;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Photo::class, 'Google_Service_PeopleService_Photo');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class ProfileMetadata extends \Google\Collection
{
protected $collection_key = 'userTypes';
/**
* @var string
*/
public $objectType;
/**
* @var string[]
*/
public $userTypes;
/**
* @param string
*/
public function setObjectType($objectType)
{
$this->objectType = $objectType;
}
/**
* @return string
*/
public function getObjectType()
{
return $this->objectType;
}
/**
* @param string[]
*/
public function setUserTypes($userTypes)
{
$this->userTypes = $userTypes;
}
/**
* @return string[]
*/
public function getUserTypes()
{
return $this->userTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProfileMetadata::class, 'Google_Service_PeopleService_ProfileMetadata');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Relation extends \Google\Model
{
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $person;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setPerson($person)
{
$this->person = $person;
}
/**
* @return string
*/
public function getPerson()
{
return $this->person;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Relation::class, 'Google_Service_PeopleService_Relation');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class RelationshipInterest extends \Google\Model
{
/**
* @var string
*/
public $formattedValue;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setFormattedValue($formattedValue)
{
$this->formattedValue = $formattedValue;
}
/**
* @return string
*/
public function getFormattedValue()
{
return $this->formattedValue;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RelationshipInterest::class, 'Google_Service_PeopleService_RelationshipInterest');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class RelationshipStatus extends \Google\Model
{
/**
* @var string
*/
public $formattedValue;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setFormattedValue($formattedValue)
{
$this->formattedValue = $formattedValue;
}
/**
* @return string
*/
public function getFormattedValue()
{
return $this->formattedValue;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RelationshipStatus::class, 'Google_Service_PeopleService_RelationshipStatus');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Residence extends \Google\Model
{
/**
* @var bool
*/
public $current;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param bool
*/
public function setCurrent($current)
{
$this->current = $current;
}
/**
* @return bool
*/
public function getCurrent()
{
return $this->current;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Residence::class, 'Google_Service_PeopleService_Residence');
@@ -0,0 +1,176 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService\Resource;
use Google\Service\PeopleService\BatchGetContactGroupsResponse;
use Google\Service\PeopleService\ContactGroup;
use Google\Service\PeopleService\CreateContactGroupRequest;
use Google\Service\PeopleService\ListContactGroupsResponse;
use Google\Service\PeopleService\PeopleEmpty;
use Google\Service\PeopleService\UpdateContactGroupRequest;
/**
* The "contactGroups" collection of methods.
* Typical usage is:
* <code>
* $peopleService = new Google\Service\PeopleService(...);
* $contactGroups = $peopleService->contactGroups;
* </code>
*/
class ContactGroups extends \Google\Service\Resource
{
/**
* Get a list of contact groups owned by the authenticated user by specifying a
* list of contact group resource names. (contactGroups.batchGet)
*
* @param array $optParams Optional parameters.
*
* @opt_param string groupFields Optional. A field mask to restrict which fields
* on the group are returned. Defaults to `metadata`, `groupType`,
* `memberCount`, and `name` if not set or set to empty. Valid fields are: *
* clientData * groupType * memberCount * metadata * name
* @opt_param int maxMembers Optional. Specifies the maximum number of members
* to return for each group. Defaults to 0 if not set, which will return zero
* members.
* @opt_param string resourceNames Required. The resource names of the contact
* groups to get. There is a maximum of 200 resource names.
* @return BatchGetContactGroupsResponse
* @throws \Google\Service\Exception
*/
public function batchGet($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('batchGet', [$params], BatchGetContactGroupsResponse::class);
}
/**
* Create a new contact group owned by the authenticated user. Created contact
* group names must be unique to the users contact groups. Attempting to create
* a group with a duplicate name will return a HTTP 409 error. Mutate requests
* for the same user should be sent sequentially to avoid increased latency and
* failures. (contactGroups.create)
*
* @param CreateContactGroupRequest $postBody
* @param array $optParams Optional parameters.
* @return ContactGroup
* @throws \Google\Service\Exception
*/
public function create(CreateContactGroupRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ContactGroup::class);
}
/**
* Delete an existing contact group owned by the authenticated user by
* specifying a contact group resource name. Mutate requests for the same user
* should be sent sequentially to avoid increased latency and failures.
* (contactGroups.delete)
*
* @param string $resourceName Required. The resource name of the contact group
* to delete.
* @param array $optParams Optional parameters.
*
* @opt_param bool deleteContacts Optional. Set to true to also delete the
* contacts in the specified group.
* @return PeopleEmpty
* @throws \Google\Service\Exception
*/
public function delete($resourceName, $optParams = [])
{
$params = ['resourceName' => $resourceName];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], PeopleEmpty::class);
}
/**
* Get a specific contact group owned by the authenticated user by specifying a
* contact group resource name. (contactGroups.get)
*
* @param string $resourceName Required. The resource name of the contact group
* to get.
* @param array $optParams Optional parameters.
*
* @opt_param string groupFields Optional. A field mask to restrict which fields
* on the group are returned. Defaults to `metadata`, `groupType`,
* `memberCount`, and `name` if not set or set to empty. Valid fields are: *
* clientData * groupType * memberCount * metadata * name
* @opt_param int maxMembers Optional. Specifies the maximum number of members
* to return. Defaults to 0 if not set, which will return zero members.
* @return ContactGroup
* @throws \Google\Service\Exception
*/
public function get($resourceName, $optParams = [])
{
$params = ['resourceName' => $resourceName];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ContactGroup::class);
}
/**
* List all contact groups owned by the authenticated user. Members of the
* contact groups are not populated. (contactGroups.listContactGroups)
*
* @param array $optParams Optional parameters.
*
* @opt_param string groupFields Optional. A field mask to restrict which fields
* on the group are returned. Defaults to `metadata`, `groupType`,
* `memberCount`, and `name` if not set or set to empty. Valid fields are: *
* clientData * groupType * memberCount * metadata * name
* @opt_param int pageSize Optional. The maximum number of resources to return.
* Valid values are between 1 and 1000, inclusive. Defaults to 30 if not set or
* set to 0.
* @opt_param string pageToken Optional. The next_page_token value returned from
* a previous call to
* [ListContactGroups](/people/api/rest/v1/contactgroups/list). Requests the
* next page of resources.
* @opt_param string syncToken Optional. A sync token, returned by a previous
* call to `contactgroups.list`. Only resources changed since the sync token was
* created will be returned.
* @return ListContactGroupsResponse
* @throws \Google\Service\Exception
*/
public function listContactGroups($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListContactGroupsResponse::class);
}
/**
* Update the name of an existing contact group owned by the authenticated user.
* Updated contact group names must be unique to the users contact groups.
* Attempting to create a group with a duplicate name will return a HTTP 409
* error. Mutate requests for the same user should be sent sequentially to avoid
* increased latency and failures. (contactGroups.update)
*
* @param string $resourceName The resource name for the contact group, assigned
* by the server. An ASCII string, in the form of
* `contactGroups/{contact_group_id}`.
* @param UpdateContactGroupRequest $postBody
* @param array $optParams Optional parameters.
* @return ContactGroup
* @throws \Google\Service\Exception
*/
public function update($resourceName, UpdateContactGroupRequest $postBody, $optParams = [])
{
$params = ['resourceName' => $resourceName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], ContactGroup::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactGroups::class, 'Google_Service_PeopleService_Resource_ContactGroups');
@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService\Resource;
use Google\Service\PeopleService\ModifyContactGroupMembersRequest;
use Google\Service\PeopleService\ModifyContactGroupMembersResponse;
/**
* The "members" collection of methods.
* Typical usage is:
* <code>
* $peopleService = new Google\Service\PeopleService(...);
* $members = $peopleService->contactGroups_members;
* </code>
*/
class ContactGroupsMembers extends \Google\Service\Resource
{
/**
* Modify the members of a contact group owned by the authenticated user. The
* only system contact groups that can have members added are
* `contactGroups/myContacts` and `contactGroups/starred`. Other system contact
* groups are deprecated and can only have contacts removed. (members.modify)
*
* @param string $resourceName Required. The resource name of the contact group
* to modify.
* @param ModifyContactGroupMembersRequest $postBody
* @param array $optParams Optional parameters.
* @return ModifyContactGroupMembersResponse
* @throws \Google\Service\Exception
*/
public function modify($resourceName, ModifyContactGroupMembersRequest $postBody, $optParams = [])
{
$params = ['resourceName' => $resourceName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('modify', [$params], ModifyContactGroupMembersResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ContactGroupsMembers::class, 'Google_Service_PeopleService_Resource_ContactGroupsMembers');
@@ -0,0 +1,152 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService\Resource;
use Google\Service\PeopleService\CopyOtherContactToMyContactsGroupRequest;
use Google\Service\PeopleService\ListOtherContactsResponse;
use Google\Service\PeopleService\Person;
use Google\Service\PeopleService\SearchResponse;
/**
* The "otherContacts" collection of methods.
* Typical usage is:
* <code>
* $peopleService = new Google\Service\PeopleService(...);
* $otherContacts = $peopleService->otherContacts;
* </code>
*/
class OtherContacts extends \Google\Service\Resource
{
/**
* Copies an "Other contact" to a new contact in the user's "myContacts" group
* Mutate requests for the same user should be sent sequentially to avoid
* increased latency and failures.
* (otherContacts.copyOtherContactToMyContactsGroup)
*
* @param string $resourceName Required. The resource name of the "Other
* contact" to copy.
* @param CopyOtherContactToMyContactsGroupRequest $postBody
* @param array $optParams Optional parameters.
* @return Person
* @throws \Google\Service\Exception
*/
public function copyOtherContactToMyContactsGroup($resourceName, CopyOtherContactToMyContactsGroupRequest $postBody, $optParams = [])
{
$params = ['resourceName' => $resourceName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('copyOtherContactToMyContactsGroup', [$params], Person::class);
}
/**
* List all "Other contacts", that is contacts that are not in a contact group.
* "Other contacts" are typically auto created contacts from interactions. Sync
* tokens expire 7 days after the full sync. A request with an expired sync
* token will get an error with an [google.rpc.ErrorInfo](https://cloud.google.c
* om/apis/design/errors#error_info) with reason "EXPIRED_SYNC_TOKEN". In the
* case of such an error clients should make a full sync request without a
* `sync_token`. The first page of a full sync request has an additional quota.
* If the quota is exceeded, a 429 error will be returned. This quota is fixed
* and can not be increased. When the `sync_token` is specified, resources
* deleted since the last sync will be returned as a person with
* `PersonMetadata.deleted` set to true. When the `page_token` or `sync_token`
* is specified, all other request parameters must match the first call. Writes
* may have a propagation delay of several minutes for sync requests.
* Incremental syncs are not intended for read-after-write use cases. See
* example usage at [List the user's other contacts that have
* changed](/people/v1/other-
* contacts#list_the_users_other_contacts_that_have_changed).
* (otherContacts.listOtherContacts)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The number of "Other contacts" to include
* in the response. Valid values are between 1 and 1000, inclusive. Defaults to
* 100 if not set or set to 0.
* @opt_param string pageToken Optional. A page token, received from a previous
* response `next_page_token`. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `otherContacts.list` must
* match the first call that provided the page token.
* @opt_param string readMask Required. A field mask to restrict which fields on
* each person are returned. Multiple fields can be specified by separating them
* with commas. What values are valid depend on what ReadSourceType is used. If
* READ_SOURCE_TYPE_CONTACT is used, valid values are: * emailAddresses *
* metadata * names * phoneNumbers * photos If READ_SOURCE_TYPE_PROFILE is used,
* valid values are: * addresses * ageRanges * biographies * birthdays *
* calendarUrls * clientData * coverPhotos * emailAddresses * events *
* externalIds * genders * imClients * interests * locales * locations *
* memberships * metadata * miscKeywords * names * nicknames * occupations *
* organizations * phoneNumbers * photos * relations * sipAddresses * skills *
* urls * userDefined
* @opt_param bool requestSyncToken Optional. Whether the response should return
* `next_sync_token` on the last page of results. It can be used to get
* incremental changes since the last request by setting it on the request
* `sync_token`. More details about sync behavior at `otherContacts.list`.
* @opt_param string sources Optional. A mask of what source types to return.
* Defaults to READ_SOURCE_TYPE_CONTACT if not set. Possible values for this
* field are: * READ_SOURCE_TYPE_CONTACT *
* READ_SOURCE_TYPE_CONTACT,READ_SOURCE_TYPE_PROFILE Specifying
* READ_SOURCE_TYPE_PROFILE without specifying READ_SOURCE_TYPE_CONTACT is not
* permitted.
* @opt_param string syncToken Optional. A sync token, received from a previous
* response `next_sync_token` Provide this to retrieve only the resources
* changed since the last request. When syncing, all other parameters provided
* to `otherContacts.list` must match the first call that provided the sync
* token. More details about sync behavior at `otherContacts.list`.
* @return ListOtherContactsResponse
* @throws \Google\Service\Exception
*/
public function listOtherContacts($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOtherContactsResponse::class);
}
/**
* Provides a list of contacts in the authenticated user's other contacts that
* matches the search query. The query matches on a contact's `names`,
* `emailAddresses`, and `phoneNumbers` fields that are from the OTHER_CONTACT
* source. **IMPORTANT**: Before searching, clients should send a warmup request
* with an empty query to update the cache. See
* https://developers.google.com/people/v1/other-
* contacts#search_the_users_other_contacts (otherContacts.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The number of results to return. Defaults
* to 10 if field is not set, or set to 0. Values greater than 30 will be capped
* to 30.
* @opt_param string query Required. The plain-text query for the request. The
* query is used to match prefix phrases of the fields on a person. For example,
* a person with name "foo name" matches queries such as "f", "fo", "foo", "foo
* n", "nam", etc., but not "oo n".
* @opt_param string readMask Required. A field mask to restrict which fields on
* each person are returned. Multiple fields can be specified by separating them
* with commas. Valid values are: * emailAddresses * metadata * names *
* phoneNumbers
* @return SearchResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OtherContacts::class, 'Google_Service_PeopleService_Resource_OtherContacts');
@@ -0,0 +1,435 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService\Resource;
use Google\Service\PeopleService\BatchCreateContactsRequest;
use Google\Service\PeopleService\BatchCreateContactsResponse;
use Google\Service\PeopleService\BatchDeleteContactsRequest;
use Google\Service\PeopleService\BatchUpdateContactsRequest;
use Google\Service\PeopleService\BatchUpdateContactsResponse;
use Google\Service\PeopleService\DeleteContactPhotoResponse;
use Google\Service\PeopleService\GetPeopleResponse;
use Google\Service\PeopleService\ListDirectoryPeopleResponse;
use Google\Service\PeopleService\PeopleEmpty;
use Google\Service\PeopleService\Person;
use Google\Service\PeopleService\SearchDirectoryPeopleResponse;
use Google\Service\PeopleService\SearchResponse;
use Google\Service\PeopleService\UpdateContactPhotoRequest;
use Google\Service\PeopleService\UpdateContactPhotoResponse;
/**
* The "people" collection of methods.
* Typical usage is:
* <code>
* $peopleService = new Google\Service\PeopleService(...);
* $people = $peopleService->people;
* </code>
*/
class People extends \Google\Service\Resource
{
/**
* Create a batch of new contacts and return the PersonResponses for the newly
* Mutate requests for the same user should be sent sequentially to avoid
* increased latency and failures. (people.batchCreateContacts)
*
* @param BatchCreateContactsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchCreateContactsResponse
* @throws \Google\Service\Exception
*/
public function batchCreateContacts(BatchCreateContactsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchCreateContacts', [$params], BatchCreateContactsResponse::class);
}
/**
* Delete a batch of contacts. Any non-contact data will not be deleted. Mutate
* requests for the same user should be sent sequentially to avoid increased
* latency and failures. (people.batchDeleteContacts)
*
* @param BatchDeleteContactsRequest $postBody
* @param array $optParams Optional parameters.
* @return PeopleEmpty
* @throws \Google\Service\Exception
*/
public function batchDeleteContacts(BatchDeleteContactsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDeleteContacts', [$params], PeopleEmpty::class);
}
/**
* Update a batch of contacts and return a map of resource names to
* PersonResponses for the updated contacts. Mutate requests for the same user
* should be sent sequentially to avoid increased latency and failures.
* (people.batchUpdateContacts)
*
* @param BatchUpdateContactsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchUpdateContactsResponse
* @throws \Google\Service\Exception
*/
public function batchUpdateContacts(BatchUpdateContactsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchUpdateContacts', [$params], BatchUpdateContactsResponse::class);
}
/**
* Create a new contact and return the person resource for that contact. The
* request returns a 400 error if more than one field is specified on a field
* that is a singleton for contact sources: * biographies * birthdays * genders
* * names Mutate requests for the same user should be sent sequentially to
* avoid increased latency and failures. (people.createContact)
*
* @param Person $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string personFields Required. A field mask to restrict which
* fields on each person are returned. Multiple fields can be specified by
* separating them with commas. Defaults to all fields if not set. Valid values
* are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
* clientData * coverPhotos * emailAddresses * events * externalIds * genders *
* imClients * interests * locales * locations * memberships * metadata *
* miscKeywords * names * nicknames * occupations * organizations * phoneNumbers
* * photos * relations * sipAddresses * skills * urls * userDefined
* @opt_param string sources Optional. A mask of what source types to return.
* Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
* @return Person
* @throws \Google\Service\Exception
*/
public function createContact(Person $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createContact', [$params], Person::class);
}
/**
* Delete a contact person. Any non-contact data will not be deleted. Mutate
* requests for the same user should be sent sequentially to avoid increased
* latency and failures. (people.deleteContact)
*
* @param string $resourceName Required. The resource name of the contact to
* delete.
* @param array $optParams Optional parameters.
* @return PeopleEmpty
* @throws \Google\Service\Exception
*/
public function deleteContact($resourceName, $optParams = [])
{
$params = ['resourceName' => $resourceName];
$params = array_merge($params, $optParams);
return $this->call('deleteContact', [$params], PeopleEmpty::class);
}
/**
* Delete a contact's photo. Mutate requests for the same user should be done
* sequentially to avoid // lock contention. (people.deleteContactPhoto)
*
* @param string $resourceName Required. The resource name of the contact whose
* photo will be deleted.
* @param array $optParams Optional parameters.
*
* @opt_param string personFields Optional. A field mask to restrict which
* fields on the person are returned. Multiple fields can be specified by
* separating them with commas. Defaults to empty if not set, which will skip
* the post mutate get. Valid values are: * addresses * ageRanges * biographies
* * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses *
* events * externalIds * genders * imClients * interests * locales * locations
* * memberships * metadata * miscKeywords * names * nicknames * occupations *
* organizations * phoneNumbers * photos * relations * sipAddresses * skills *
* urls * userDefined
* @opt_param string sources Optional. A mask of what source types to return.
* Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
* @return DeleteContactPhotoResponse
* @throws \Google\Service\Exception
*/
public function deleteContactPhoto($resourceName, $optParams = [])
{
$params = ['resourceName' => $resourceName];
$params = array_merge($params, $optParams);
return $this->call('deleteContactPhoto', [$params], DeleteContactPhotoResponse::class);
}
/**
* Provides information about a person by specifying a resource name. Use
* `people/me` to indicate the authenticated user. The request returns a 400
* error if 'personFields' is not specified. (people.get)
*
* @param string $resourceName Required. The resource name of the person to
* provide information about. - To get information about the authenticated user,
* specify `people/me`. - To get information about a google account, specify
* `people/{account_id}`. - To get information about a contact, specify the
* resource name that identifies the contact as returned by
* `people.connections.list`.
* @param array $optParams Optional parameters.
*
* @opt_param string personFields Required. A field mask to restrict which
* fields on the person are returned. Multiple fields can be specified by
* separating them with commas. Valid values are: * addresses * ageRanges *
* biographies * birthdays * calendarUrls * clientData * coverPhotos *
* emailAddresses * events * externalIds * genders * imClients * interests *
* locales * locations * memberships * metadata * miscKeywords * names *
* nicknames * occupations * organizations * phoneNumbers * photos * relations *
* sipAddresses * skills * urls * userDefined
* @opt_param string requestMask.includeField Required. Comma-separated list of
* person fields to be included in the response. Each path should start with
* `person.`: for example, `person.names` or `person.photos`.
* @opt_param string sources Optional. A mask of what source types to return.
* Defaults to READ_SOURCE_TYPE_PROFILE and READ_SOURCE_TYPE_CONTACT if not set.
* @return Person
* @throws \Google\Service\Exception
*/
public function get($resourceName, $optParams = [])
{
$params = ['resourceName' => $resourceName];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Person::class);
}
/**
* Provides information about a list of specific people by specifying a list of
* requested resource names. Use `people/me` to indicate the authenticated user.
* The request returns a 400 error if 'personFields' is not specified.
* (people.getBatchGet)
*
* @param array $optParams Optional parameters.
*
* @opt_param string personFields Required. A field mask to restrict which
* fields on each person are returned. Multiple fields can be specified by
* separating them with commas. Valid values are: * addresses * ageRanges *
* biographies * birthdays * calendarUrls * clientData * coverPhotos *
* emailAddresses * events * externalIds * genders * imClients * interests *
* locales * locations * memberships * metadata * miscKeywords * names *
* nicknames * occupations * organizations * phoneNumbers * photos * relations *
* sipAddresses * skills * urls * userDefined
* @opt_param string requestMask.includeField Required. Comma-separated list of
* person fields to be included in the response. Each path should start with
* `person.`: for example, `person.names` or `person.photos`.
* @opt_param string resourceNames Required. The resource names of the people to
* provide information about. It's repeatable. The URL query parameter should be
* resourceNames=&resourceNames=&... - To get information about the
* authenticated user, specify `people/me`. - To get information about a google
* account, specify `people/{account_id}`. - To get information about a contact,
* specify the resource name that identifies the contact as returned by
* `people.connections.list`. There is a maximum of 200 resource names.
* @opt_param string sources Optional. A mask of what source types to return.
* Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
* @return GetPeopleResponse
* @throws \Google\Service\Exception
*/
public function getBatchGet($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getBatchGet', [$params], GetPeopleResponse::class);
}
/**
* Provides a list of domain profiles and domain contacts in the authenticated
* user's domain directory. When the `sync_token` is specified, resources
* deleted since the last sync will be returned as a person with
* `PersonMetadata.deleted` set to true. When the `page_token` or `sync_token`
* is specified, all other request parameters must match the first call. Writes
* may have a propagation delay of several minutes for sync requests.
* Incremental syncs are not intended for read-after-write use cases. See
* example usage at [List the directory people that have
* changed](/people/v1/directory#list_the_directory_people_that_have_changed).
* (people.listDirectoryPeople)
*
* @param array $optParams Optional parameters.
*
* @opt_param string mergeSources Optional. Additional data to merge into the
* directory sources if they are connected through verified join keys such as
* email addresses or phone numbers.
* @opt_param int pageSize Optional. The number of people to include in the
* response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if
* not set or set to 0.
* @opt_param string pageToken Optional. A page token, received from a previous
* response `next_page_token`. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to
* `people.listDirectoryPeople` must match the first call that provided the page
* token.
* @opt_param string readMask Required. A field mask to restrict which fields on
* each person are returned. Multiple fields can be specified by separating them
* with commas. Valid values are: * addresses * ageRanges * biographies *
* birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events
* * externalIds * genders * imClients * interests * locales * locations *
* memberships * metadata * miscKeywords * names * nicknames * occupations *
* organizations * phoneNumbers * photos * relations * sipAddresses * skills *
* urls * userDefined
* @opt_param bool requestSyncToken Optional. Whether the response should return
* `next_sync_token`. It can be used to get incremental changes since the last
* request by setting it on the request `sync_token`. More details about sync
* behavior at `people.listDirectoryPeople`.
* @opt_param string sources Required. Directory sources to return.
* @opt_param string syncToken Optional. A sync token, received from a previous
* response `next_sync_token` Provide this to retrieve only the resources
* changed since the last request. When syncing, all other parameters provided
* to `people.listDirectoryPeople` must match the first call that provided the
* sync token. More details about sync behavior at `people.listDirectoryPeople`.
* @return ListDirectoryPeopleResponse
* @throws \Google\Service\Exception
*/
public function listDirectoryPeople($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('listDirectoryPeople', [$params], ListDirectoryPeopleResponse::class);
}
/**
* Provides a list of contacts in the authenticated user's grouped contacts that
* matches the search query. The query matches on a contact's `names`,
* `nickNames`, `emailAddresses`, `phoneNumbers`, and `organizations` fields
* that are from the CONTACT source. **IMPORTANT**: Before searching, clients
* should send a warmup request with an empty query to update the cache. See
* https://developers.google.com/people/v1/contacts#search_the_users_contacts
* (people.searchContacts)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The number of results to return. Defaults
* to 10 if field is not set, or set to 0. Values greater than 30 will be capped
* to 30.
* @opt_param string query Required. The plain-text query for the request. The
* query is used to match prefix phrases of the fields on a person. For example,
* a person with name "foo name" matches queries such as "f", "fo", "foo", "foo
* n", "nam", etc., but not "oo n".
* @opt_param string readMask Required. A field mask to restrict which fields on
* each person are returned. Multiple fields can be specified by separating them
* with commas. Valid values are: * addresses * ageRanges * biographies *
* birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events
* * externalIds * genders * imClients * interests * locales * locations *
* memberships * metadata * miscKeywords * names * nicknames * occupations *
* organizations * phoneNumbers * photos * relations * sipAddresses * skills *
* urls * userDefined
* @opt_param string sources Optional. A mask of what source types to return.
* Defaults to READ_SOURCE_TYPE_CONTACT if not set.
* @return SearchResponse
* @throws \Google\Service\Exception
*/
public function searchContacts($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('searchContacts', [$params], SearchResponse::class);
}
/**
* Provides a list of domain profiles and domain contacts in the authenticated
* user's domain directory that match the search query.
* (people.searchDirectoryPeople)
*
* @param array $optParams Optional parameters.
*
* @opt_param string mergeSources Optional. Additional data to merge into the
* directory sources if they are connected through verified join keys such as
* email addresses or phone numbers.
* @opt_param int pageSize Optional. The number of people to include in the
* response. Valid values are between 1 and 500, inclusive. Defaults to 100 if
* not set or set to 0.
* @opt_param string pageToken Optional. A page token, received from a previous
* response `next_page_token`. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `SearchDirectoryPeople`
* must match the first call that provided the page token.
* @opt_param string query Required. Prefix query that matches fields in the
* person. Does NOT use the read_mask for determining what fields to match.
* @opt_param string readMask Required. A field mask to restrict which fields on
* each person are returned. Multiple fields can be specified by separating them
* with commas. Valid values are: * addresses * ageRanges * biographies *
* birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events
* * externalIds * genders * imClients * interests * locales * locations *
* memberships * metadata * miscKeywords * names * nicknames * occupations *
* organizations * phoneNumbers * photos * relations * sipAddresses * skills *
* urls * userDefined
* @opt_param string sources Required. Directory sources to return.
* @return SearchDirectoryPeopleResponse
* @throws \Google\Service\Exception
*/
public function searchDirectoryPeople($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('searchDirectoryPeople', [$params], SearchDirectoryPeopleResponse::class);
}
/**
* Update contact data for an existing contact person. Any non-contact data will
* not be modified. Any non-contact data in the person to update will be
* ignored. All fields specified in the `update_mask` will be replaced. The
* server returns a 400 error if `person.metadata.sources` is not specified for
* the contact to be updated or if there is no contact source. The server
* returns a 400 error with reason `"failedPrecondition"` if
* `person.metadata.sources.etag` is different than the contact's etag, which
* indicates the contact has changed since its data was read. Clients should get
* the latest person and merge their updates into the latest person. The server
* returns a 400 error if `memberships` are being updated and there are no
* contact group memberships specified on the person. The server returns a 400
* error if more than one field is specified on a field that is a singleton for
* contact sources: * biographies * birthdays * genders * names Mutate requests
* for the same user should be sent sequentially to avoid increased latency and
* failures. (people.updateContact)
*
* @param string $resourceName The resource name for the person, assigned by the
* server. An ASCII string in the form of `people/{person_id}`.
* @param Person $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string personFields Optional. A field mask to restrict which
* fields on each person are returned. Multiple fields can be specified by
* separating them with commas. Defaults to all fields if not set. Valid values
* are: * addresses * ageRanges * biographies * birthdays * calendarUrls *
* clientData * coverPhotos * emailAddresses * events * externalIds * genders *
* imClients * interests * locales * locations * memberships * metadata *
* miscKeywords * names * nicknames * occupations * organizations * phoneNumbers
* * photos * relations * sipAddresses * skills * urls * userDefined
* @opt_param string sources Optional. A mask of what source types to return.
* Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
* @opt_param string updatePersonFields Required. A field mask to restrict which
* fields on the person are updated. Multiple fields can be specified by
* separating them with commas. All updated fields will be replaced. Valid
* values are: * addresses * biographies * birthdays * calendarUrls * clientData
* * emailAddresses * events * externalIds * genders * imClients * interests *
* locales * locations * memberships * miscKeywords * names * nicknames *
* occupations * organizations * phoneNumbers * relations * sipAddresses * urls
* * userDefined
* @return Person
* @throws \Google\Service\Exception
*/
public function updateContact($resourceName, Person $postBody, $optParams = [])
{
$params = ['resourceName' => $resourceName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateContact', [$params], Person::class);
}
/**
* Update a contact's photo. Mutate requests for the same user should be sent
* sequentially to avoid increased latency and failures.
* (people.updateContactPhoto)
*
* @param string $resourceName Required. Person resource name
* @param UpdateContactPhotoRequest $postBody
* @param array $optParams Optional parameters.
* @return UpdateContactPhotoResponse
* @throws \Google\Service\Exception
*/
public function updateContactPhoto($resourceName, UpdateContactPhotoRequest $postBody, $optParams = [])
{
$params = ['resourceName' => $resourceName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateContactPhoto', [$params], UpdateContactPhotoResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(People::class, 'Google_Service_PeopleService_Resource_People');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService\Resource;
use Google\Service\PeopleService\ListConnectionsResponse;
/**
* The "connections" collection of methods.
* Typical usage is:
* <code>
* $peopleService = new Google\Service\PeopleService(...);
* $connections = $peopleService->people_connections;
* </code>
*/
class PeopleConnections extends \Google\Service\Resource
{
/**
* Provides a list of the authenticated user's contacts. Sync tokens expire 7
* days after the full sync. A request with an expired sync token will get an
* error with an [google.rpc.ErrorInfo](https://cloud.google.com/apis/design/err
* ors#error_info) with reason "EXPIRED_SYNC_TOKEN". In the case of such an
* error clients should make a full sync request without a `sync_token`. The
* first page of a full sync request has an additional quota. If the quota is
* exceeded, a 429 error will be returned. This quota is fixed and can not be
* increased. When the `sync_token` is specified, resources deleted since the
* last sync will be returned as a person with `PersonMetadata.deleted` set to
* true. When the `page_token` or `sync_token` is specified, all other request
* parameters must match the first call. Writes may have a propagation delay of
* several minutes for sync requests. Incremental syncs are not intended for
* read-after-write use cases. See example usage at [List the user's contacts
* that have
* changed](/people/v1/contacts#list_the_users_contacts_that_have_changed).
* (connections.listPeopleConnections)
*
* @param string $resourceName Required. The resource name to return connections
* for. Only `people/me` is valid.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The number of connections to include in the
* response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if
* not set or set to 0.
* @opt_param string pageToken Optional. A page token, received from a previous
* response `next_page_token`. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `people.connections.list`
* must match the first call that provided the page token.
* @opt_param string personFields Required. A field mask to restrict which
* fields on each person are returned. Multiple fields can be specified by
* separating them with commas. Valid values are: * addresses * ageRanges *
* biographies * birthdays * calendarUrls * clientData * coverPhotos *
* emailAddresses * events * externalIds * genders * imClients * interests *
* locales * locations * memberships * metadata * miscKeywords * names *
* nicknames * occupations * organizations * phoneNumbers * photos * relations *
* sipAddresses * skills * urls * userDefined
* @opt_param string requestMask.includeField Required. Comma-separated list of
* person fields to be included in the response. Each path should start with
* `person.`: for example, `person.names` or `person.photos`.
* @opt_param bool requestSyncToken Optional. Whether the response should return
* `next_sync_token` on the last page of results. It can be used to get
* incremental changes since the last request by setting it on the request
* `sync_token`. More details about sync behavior at `people.connections.list`.
* @opt_param string sortOrder Optional. The order in which the connections
* should be sorted. Defaults to `LAST_MODIFIED_ASCENDING`.
* @opt_param string sources Optional. A mask of what source types to return.
* Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set.
* @opt_param string syncToken Optional. A sync token, received from a previous
* response `next_sync_token` Provide this to retrieve only the resources
* changed since the last request. When syncing, all other parameters provided
* to `people.connections.list` must match the first call that provided the sync
* token. More details about sync behavior at `people.connections.list`.
* @return ListConnectionsResponse
* @throws \Google\Service\Exception
*/
public function listPeopleConnections($resourceName, $optParams = [])
{
$params = ['resourceName' => $resourceName];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListConnectionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PeopleConnections::class, 'Google_Service_PeopleService_Resource_PeopleConnections');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class SearchDirectoryPeopleResponse extends \Google\Collection
{
protected $collection_key = 'people';
/**
* @var string
*/
public $nextPageToken;
protected $peopleType = Person::class;
protected $peopleDataType = 'array';
/**
* @var int
*/
public $totalSize;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Person[]
*/
public function setPeople($people)
{
$this->people = $people;
}
/**
* @return Person[]
*/
public function getPeople()
{
return $this->people;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchDirectoryPeopleResponse::class, 'Google_Service_PeopleService_SearchDirectoryPeopleResponse');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class SearchResponse extends \Google\Collection
{
protected $collection_key = 'results';
protected $resultsType = SearchResult::class;
protected $resultsDataType = 'array';
/**
* @param SearchResult[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return SearchResult[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchResponse::class, 'Google_Service_PeopleService_SearchResponse');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class SearchResult extends \Google\Model
{
protected $personType = Person::class;
protected $personDataType = '';
/**
* @param Person
*/
public function setPerson(Person $person)
{
$this->person = $person;
}
/**
* @return Person
*/
public function getPerson()
{
return $this->person;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchResult::class, 'Google_Service_PeopleService_SearchResult');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class SipAddress extends \Google\Model
{
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SipAddress::class, 'Google_Service_PeopleService_SipAddress');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Skill extends \Google\Model
{
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Skill::class, 'Google_Service_PeopleService_Skill');
@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Source extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $id;
protected $profileMetadataType = ProfileMetadata::class;
protected $profileMetadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param ProfileMetadata
*/
public function setProfileMetadata(ProfileMetadata $profileMetadata)
{
$this->profileMetadata = $profileMetadata;
}
/**
* @return ProfileMetadata
*/
public function getProfileMetadata()
{
return $this->profileMetadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Source::class, 'Google_Service_PeopleService_Source');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_PeopleService_Status');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Tagline extends \Google\Model
{
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tagline::class, 'Google_Service_PeopleService_Tagline');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class UpdateContactGroupRequest extends \Google\Model
{
protected $contactGroupType = ContactGroup::class;
protected $contactGroupDataType = '';
/**
* @var string
*/
public $readGroupFields;
/**
* @var string
*/
public $updateGroupFields;
/**
* @param ContactGroup
*/
public function setContactGroup(ContactGroup $contactGroup)
{
$this->contactGroup = $contactGroup;
}
/**
* @return ContactGroup
*/
public function getContactGroup()
{
return $this->contactGroup;
}
/**
* @param string
*/
public function setReadGroupFields($readGroupFields)
{
$this->readGroupFields = $readGroupFields;
}
/**
* @return string
*/
public function getReadGroupFields()
{
return $this->readGroupFields;
}
/**
* @param string
*/
public function setUpdateGroupFields($updateGroupFields)
{
$this->updateGroupFields = $updateGroupFields;
}
/**
* @return string
*/
public function getUpdateGroupFields()
{
return $this->updateGroupFields;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateContactGroupRequest::class, 'Google_Service_PeopleService_UpdateContactGroupRequest');
@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class UpdateContactPhotoRequest extends \Google\Collection
{
protected $collection_key = 'sources';
/**
* @var string
*/
public $personFields;
/**
* @var string
*/
public $photoBytes;
/**
* @var string[]
*/
public $sources;
/**
* @param string
*/
public function setPersonFields($personFields)
{
$this->personFields = $personFields;
}
/**
* @return string
*/
public function getPersonFields()
{
return $this->personFields;
}
/**
* @param string
*/
public function setPhotoBytes($photoBytes)
{
$this->photoBytes = $photoBytes;
}
/**
* @return string
*/
public function getPhotoBytes()
{
return $this->photoBytes;
}
/**
* @param string[]
*/
public function setSources($sources)
{
$this->sources = $sources;
}
/**
* @return string[]
*/
public function getSources()
{
return $this->sources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateContactPhotoRequest::class, 'Google_Service_PeopleService_UpdateContactPhotoRequest');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class UpdateContactPhotoResponse extends \Google\Model
{
protected $personType = Person::class;
protected $personDataType = '';
/**
* @param Person
*/
public function setPerson(Person $person)
{
$this->person = $person;
}
/**
* @return Person
*/
public function getPerson()
{
return $this->person;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateContactPhotoResponse::class, 'Google_Service_PeopleService_UpdateContactPhotoResponse');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class Url extends \Google\Model
{
/**
* @var string
*/
public $formattedType;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setFormattedType($formattedType)
{
$this->formattedType = $formattedType;
}
/**
* @return string
*/
public function getFormattedType()
{
return $this->formattedType;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Url::class, 'Google_Service_PeopleService_Url');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PeopleService;
class UserDefined extends \Google\Model
{
/**
* @var string
*/
public $key;
protected $metadataType = FieldMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param FieldMetadata
*/
public function setMetadata(FieldMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return FieldMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserDefined::class, 'Google_Service_PeopleService_UserDefined');