📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/PeopleService
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Address.php
▶ Open 📄 View Source
🐘 AgeRangeType.php
▶ Open 📄 View Source
🐘 BatchCreateContactsRequest.php
▶ Open 📄 View Source
🐘 BatchCreateContactsResponse.php
▶ Open 📄 View Source
🐘 BatchDeleteContactsRequest.php
▶ Open 📄 View Source
🐘 BatchGetContactGroupsResponse.php
▶ Open 📄 View Source
🐘 BatchUpdateContactsRequest.php
▶ Open 📄 View Source
🐘 BatchUpdateContactsResponse.php
▶ Open 📄 View Source
🐘 Biography.php
▶ Open 📄 View Source
🐘 Birthday.php
▶ Open 📄 View Source
🐘 BraggingRights.php
▶ Open 📄 View Source
🐘 CalendarUrl.php
▶ Open 📄 View Source
🐘 ClientData.php
▶ Open 📄 View Source
🐘 ContactGroup.php
▶ Open 📄 View Source
🐘 ContactGroupMembership.php
▶ Open 📄 View Source
🐘 ContactGroupMetadata.php
▶ Open 📄 View Source
🐘 ContactGroupResponse.php
▶ Open 📄 View Source
🐘 ContactToCreate.php
▶ Open 📄 View Source
🐘 CopyOtherContactToMyContactsGroupRequest.php
▶ Open 📄 View Source
🐘 CoverPhoto.php
▶ Open 📄 View Source
🐘 CreateContactGroupRequest.php
▶ Open 📄 View Source
🐘 Date.php
▶ Open 📄 View Source
🐘 DeleteContactPhotoResponse.php
▶ Open 📄 View Source
🐘 DomainMembership.php
▶ Open 📄 View Source
🐘 EmailAddress.php
▶ Open 📄 View Source
🐘 Event.php
▶ Open 📄 View Source
🐘 ExternalId.php
▶ Open 📄 View Source
🐘 FieldMetadata.php
▶ Open 📄 View Source
🐘 FileAs.php
▶ Open 📄 View Source
🐘 Gender.php
▶ Open 📄 View Source
🐘 GetPeopleResponse.php
▶ Open 📄 View Source
🐘 GroupClientData.php
▶ Open 📄 View Source
🐘 ImClient.php
▶ Open 📄 View Source
🐘 Interest.php
▶ Open 📄 View Source
🐘 ListConnectionsResponse.php
▶ Open 📄 View Source
🐘 ListContactGroupsResponse.php
▶ Open 📄 View Source
🐘 ListDirectoryPeopleResponse.php
▶ Open 📄 View Source
🐘 ListOtherContactsResponse.php
▶ Open 📄 View Source
🐘 Locale.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 Membership.php
▶ Open 📄 View Source
🐘 MiscKeyword.php
▶ Open 📄 View Source
🐘 ModifyContactGroupMembersRequest.php
▶ Open 📄 View Source
🐘 ModifyContactGroupMembersResponse.php
▶ Open 📄 View Source
🐘 Name.php
▶ Open 📄 View Source
🐘 Nickname.php
▶ Open 📄 View Source
🐘 Occupation.php
▶ Open 📄 View Source
🐘 Organization.php
▶ Open 📄 View Source
🐘 PeopleEmpty.php
▶ Open 📄 View Source
🐘 Person.php
▶ Open 📄 View Source
🐘 PersonMetadata.php
▶ Open 📄 View Source
🐘 PersonResponse.php
▶ Open 📄 View Source
🐘 PhoneNumber.php
▶ Open 📄 View Source
🐘 Photo.php
▶ Open 📄 View Source
🐘 ProfileMetadata.php
▶ Open 📄 View Source
🐘 Relation.php
▶ Open 📄 View Source
🐘 RelationshipInterest.php
▶ Open 📄 View Source
🐘 RelationshipStatus.php
▶ Open 📄 View Source
🐘 Residence.php
▶ Open 📄 View Source
🐘 SearchDirectoryPeopleResponse.php
▶ Open 📄 View Source
🐘 SearchResponse.php
▶ Open 📄 View Source
🐘 SearchResult.php
▶ Open 📄 View Source
🐘 SipAddress.php
▶ Open 📄 View Source
🐘 Skill.php
▶ Open 📄 View Source
🐘 Source.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Tagline.php
▶ Open 📄 View Source
🐘 UpdateContactGroupRequest.php
▶ Open 📄 View Source
🐘 UpdateContactPhotoRequest.php
▶ Open 📄 View Source
🐘 UpdateContactPhotoResponse.php
▶ Open 📄 View Source
🐘 Url.php
▶ Open 📄 View Source
🐘 UserDefined.php
▶ Open 📄 View Source

📄 Source: ContactGroup.php

<?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
{
  /**
   * Unspecified.
   */
  public const GROUP_TYPE_GROUP_TYPE_UNSPECIFIED = 'GROUP_TYPE_UNSPECIFIED';
  /**
   * User defined contact group.
   */
  public const GROUP_TYPE_USER_CONTACT_GROUP = 'USER_CONTACT_GROUP';
  /**
   * System defined contact group.
   */
  public const GROUP_TYPE_SYSTEM_CONTACT_GROUP = 'SYSTEM_CONTACT_GROUP';
  protected $collection_key = 'memberResourceNames';
  protected $clientDataType = GroupClientData::class;
  protected $clientDataDataType = 'array';
  /**
   * The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
   * resource. Used for web cache validation.
   *
   * @var string
   */
  public $etag;
  /**
   * Output only. The name translated and formatted in the viewer's account
   * locale or the `Accept-Language` HTTP header locale for system groups names.
   * Group names set by the owner are the same as name.
   *
   * @var string
   */
  public $formattedName;
  /**
   * Output only. The contact group type.
   *
   * @var string
   */
  public $groupType;
  /**
   * Output only. The total number of contacts in the group irrespective of max
   * members in specified in the request.
   *
   * @var int
   */
  public $memberCount;
  /**
   * Output only. The list of contact person resource names that are members of
   * the contact group. The field is only populated for GET requests and will
   * only return as many members as `maxMembers` in the get request.
   *
   * @var string[]
   */
  public $memberResourceNames;
  protected $metadataType = ContactGroupMetadata::class;
  protected $metadataDataType = '';
  /**
   * The contact group name set by the group owner or a system provided name for
   * system groups. For
   * [`contactGroups.create`](/people/api/rest/v1/contactGroups/create) or
   * [`contactGroups.update`](/people/api/rest/v1/contactGroups/update) the name
   * must be unique to the users contact groups. Attempting to create a group
   * with a duplicate name will return a HTTP 409 error.
   *
   * @var string
   */
  public $name;
  /**
   * The resource name for the contact group, assigned by the server. An ASCII
   * string, in the form of `contactGroups/{contact_group_id}`.
   *
   * @var string
   */
  public $resourceName;

  /**
   * The group's client data.
   *
   * @param GroupClientData[] $clientData
   */
  public function setClientData($clientData)
  {
    $this->clientData = $clientData;
  }
  /**
   * @return GroupClientData[]
   */
  public function getClientData()
  {
    return $this->clientData;
  }
  /**
   * The [HTTP entity tag](https://en.wikipedia.org/wiki/HTTP_ETag) of the
   * resource. Used for web cache validation.
   *
   * @param string $etag
   */
  public function setEtag($etag)
  {
    $this->etag = $etag;
  }
  /**
   * @return string
   */
  public function getEtag()
  {
    return $this->etag;
  }
  /**
   * Output only. The name translated and formatted in the viewer's account
   * locale or the `Accept-Language` HTTP header locale for system groups names.
   * Group names set by the owner are the same as name.
   *
   * @param string $formattedName
   */
  public function setFormattedName($formattedName)
  {
    $this->formattedName = $formattedName;
  }
  /**
   * @return string
   */
  public function getFormattedName()
  {
    return $this->formattedName;
  }
  /**
   * Output only. The contact group type.
   *
   * Accepted values: GROUP_TYPE_UNSPECIFIED, USER_CONTACT_GROUP,
   * SYSTEM_CONTACT_GROUP
   *
   * @param self::GROUP_TYPE_* $groupType
   */
  public function setGroupType($groupType)
  {
    $this->groupType = $groupType;
  }
  /**
   * @return self::GROUP_TYPE_*
   */
  public function getGroupType()
  {
    return $this->groupType;
  }
  /**
   * Output only. The total number of contacts in the group irrespective of max
   * members in specified in the request.
   *
   * @param int $memberCount
   */
  public function setMemberCount($memberCount)
  {
    $this->memberCount = $memberCount;
  }
  /**
   * @return int
   */
  public function getMemberCount()
  {
    return $this->memberCount;
  }
  /**
   * Output only. The list of contact person resource names that are members of
   * the contact group. The field is only populated for GET requests and will
   * only return as many members as `maxMembers` in the get request.
   *
   * @param string[] $memberResourceNames
   */
  public function setMemberResourceNames($memberResourceNames)
  {
    $this->memberResourceNames = $memberResourceNames;
  }
  /**
   * @return string[]
   */
  public function getMemberResourceNames()
  {
    return $this->memberResourceNames;
  }
  /**
   * Output only. Metadata about the contact group.
   *
   * @param ContactGroupMetadata $metadata
   */
  public function setMetadata(ContactGroupMetadata $metadata)
  {
    $this->metadata = $metadata;
  }
  /**
   * @return ContactGroupMetadata
   */
  public function getMetadata()
  {
    return $this->metadata;
  }
  /**
   * The contact group name set by the group owner or a system provided name for
   * system groups. For
   * [`contactGroups.create`](/people/api/rest/v1/contactGroups/create) or
   * [`contactGroups.update`](/people/api/rest/v1/contactGroups/update) the name
   * must be unique to the users contact groups. Attempting to create a group
   * with a duplicate name will return a HTTP 409 error.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * The resource name for the contact group, assigned by the server. An ASCII
   * string, in the form of `contactGroups/{contact_group_id}`.
   *
   * @param string $resourceName
   */
  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');
← Back