Contacts


**Deprecated.** Instead, use the [People API
advanced service](https://developers.google.com/apps-script/advanced/people)

This service allows scripts to access and modify Google Contacts, both for
individual contacts and for groups.

## Classes

| Name | Brief description |
|---|---|
| `https://developers.google.com/apps-script/reference/contacts/address-field` | Address field in a contact. |
| `https://developers.google.com/apps-script/reference/contacts/company-field` | Company field in a Contact. |
| `https://developers.google.com/apps-script/reference/contacts/contact` | A Contact contains the name, address, and various contact details of a contact. |
| `https://developers.google.com/apps-script/reference/contacts/contact-group` | A ContactGroup is is a group of contacts. |
| `https://developers.google.com/apps-script/reference/contacts/contacts-app` | This class allows users to access their own Google Contacts and create, remove, and update contacts listed therein. |
| `https://developers.google.com/apps-script/reference/contacts/custom-field` | A custom field in a Contact. |
| `https://developers.google.com/apps-script/reference/contacts/date-field` | A date field in a Contact. |
| `https://developers.google.com/apps-script/reference/contacts/email-field` | An email field in a Contact. |
| `https://developers.google.com/apps-script/reference/contacts/extended-field` | An enum for extended contacts fields. |
| `https://developers.google.com/apps-script/reference/contacts/field` | An enum for contacts fields. |
| `https://developers.google.com/apps-script/reference/contacts/gender` | An enum for contact gender. |
| `https://developers.google.com/apps-script/reference/contacts/im-field` | An instant messaging field in a Contact. |
| `https://developers.google.com/apps-script/reference/contacts/phone-field` | A phone number field in a Contact. |
| `https://developers.google.com/apps-script/reference/contacts/priority` | An enum for contact priority. |
| `https://developers.google.com/apps-script/reference/contacts/sensitivity` | An enum for contact sensitivity. |
| `https://developers.google.com/apps-script/reference/contacts/url-field` | A URL field in a Contact. |

## `https://developers.google.com/apps-script/reference/contacts/address-field`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/contacts/address-field#getAddress()` | `String` | Get the address for this field. |
| `https://developers.google.com/apps-script/reference/contacts/address-field#getLabel()` | `Object` | Gets the label for this field. |
| `https://developers.google.com/apps-script/reference/contacts/address-field#isPrimary()` | `Boolean` | Gets whether this is the primary field value. |
| `https://developers.google.com/apps-script/reference/contacts/address-field#setAddress(String)` | `https://developers.google.com/apps-script/reference/contacts/address-field` | Sets the address of this field. |
| `https://developers.google.com/apps-script/reference/contacts/address-field#setAsPrimary()` | `https://developers.google.com/apps-script/reference/contacts/address-field` | Sets this field to primary. |
| `https://developers.google.com/apps-script/reference/contacts/address-field#setLabel(Field)` | `https://developers.google.com/apps-script/reference/contacts/address-field` | Sets the label of this field. |
| `https://developers.google.com/apps-script/reference/contacts/address-field#setLabel(String)` | `https://developers.google.com/apps-script/reference/contacts/address-field` | Sets the label of this field. |

## `https://developers.google.com/apps-script/reference/contacts/company-field`

## `https://developers.google.com/apps-script/reference/contacts/contact`

## `https://developers.google.com/apps-script/reference/contacts/contact-group`

## `https://developers.google.com/apps-script/reference/contacts/contacts-app`

## `https://developers.google.com/apps-script/reference/contacts/custom-field`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/contacts/custom-field#getLabel()` | `Object` | Gets the label for this field. |
| `https://developers.google.com/apps-script/reference/contacts/custom-field#setLabel(String)` | `https://developers.google.com/apps-script/reference/contacts/custom-field` | Sets the label of this field. |

## `https://developers.google.com/apps-script/reference/contacts/date-field`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/contacts/date-field#getLabel()` | `Object` | Gets the label for this field. |
| `https://developers.google.com/apps-script/reference/contacts/date-field#setLabel(String)` | `https://developers.google.com/apps-script/reference/contacts/date-field` | Sets the label of this field. |

## `https://developers.google.com/apps-script/reference/contacts/email-field`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/contacts/email-field#getAddress()` | `String` | Get the address for this field. |
| `https://developers.google.com/apps-script/reference/contacts/email-field#getLabel()` | `Object` | Gets the label for this field. |
| `https://developers.google.com/apps-script/reference/contacts/email-field#isPrimary()` | `Boolean` | Gets whether this is the primary field value. |
| `https://developers.google.com/apps-script/reference/contacts/email-field#setAddress(String)` | `https://developers.google.com/apps-script/reference/contacts/email-field` | Sets the address of this field. |
| `https://developers.google.com/apps-script/reference/contacts/email-field#setAsPrimary()` | `https://developers.google.com/apps-script/reference/contacts/email-field` | Sets this field to primary. |
| `https://developers.google.com/apps-script/reference/contacts/email-field#setLabel(Field)` | `https://developers.google.com/apps-script/reference/contacts/email-field` | Sets the label of this field. |
| `https://developers.google.com/apps-script/reference/contacts/email-field#setLabel(String)` | `https://developers.google.com/apps-script/reference/contacts/email-field` | Sets the label of this field. |

## `https://developers.google.com/apps-script/reference/contacts/extended-field`

## `https://developers.google.com/apps-script/reference/contacts/field`

## `https://developers.google.com/apps-script/reference/contacts/gender`

## `https://developers.google.com/apps-script/reference/contacts/im-field`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/contacts/im-field#getAddress()` | `String` | Get the address for this field. |
| `https://developers.google.com/apps-script/reference/contacts/im-field#getLabel()` | `Object` | Gets the label for this field. |
| `https://developers.google.com/apps-script/reference/contacts/im-field#isPrimary()` | `Boolean` | Gets whether this is the primary field value. |
| `https://developers.google.com/apps-script/reference/contacts/im-field#setAddress(String)` | `https://developers.google.com/apps-script/reference/contacts/im-field` | Sets the address of this field. |
| `https://developers.google.com/apps-script/reference/contacts/im-field#setAsPrimary()` | `https://developers.google.com/apps-script/reference/contacts/im-field` | Sets this field to primary. |
| `https://developers.google.com/apps-script/reference/contacts/im-field#setLabel(Field)` | `https://developers.google.com/apps-script/reference/contacts/im-field` | Sets the label of this field. |
| `https://developers.google.com/apps-script/reference/contacts/im-field#setLabel(String)` | `https://developers.google.com/apps-script/reference/contacts/im-field` | Sets the label of this field. |

## `https://developers.google.com/apps-script/reference/contacts/phone-field`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/contacts/phone-field#getLabel()` | `Object` | Gets the label for this field. |
| `https://developers.google.com/apps-script/reference/contacts/phone-field#isPrimary()` | `Boolean` | Gets whether this is the primary field value. |
| `https://developers.google.com/apps-script/reference/contacts/phone-field#setAsPrimary()` | `https://developers.google.com/apps-script/reference/contacts/phone-field` | Sets this field to primary. |
| `https://developers.google.com/apps-script/reference/contacts/phone-field#setLabel(Field)` | `https://developers.google.com/apps-script/reference/contacts/phone-field` | Sets the label of this field. |
| `https://developers.google.com/apps-script/reference/contacts/phone-field#setLabel(String)` | `https://developers.google.com/apps-script/reference/contacts/phone-field` | Sets the label of this field. |

## `https://developers.google.com/apps-script/reference/contacts/priority`

## `https://developers.google.com/apps-script/reference/contacts/sensitivity`

## `https://developers.google.com/apps-script/reference/contacts/url-field`

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/contacts/url-field#getAddress()` | `String` | Get the address for this field. |
| `https://developers.google.com/apps-script/reference/contacts/url-field#getLabel()` | `Object` | Gets the label for this field. |
| `https://developers.google.com/apps-script/reference/contacts/url-field#isPrimary()` | `Boolean` | Gets whether this is the primary field value. |
| `https://developers.google.com/apps-script/reference/contacts/url-field#setAddress(String)` | `https://developers.google.com/apps-script/reference/contacts/url-field` | Sets the address of this field. |
| `https://developers.google.com/apps-script/reference/contacts/url-field#setAsPrimary()` | `https://developers.google.com/apps-script/reference/contacts/url-field` | Sets this field to primary. |
| `https://developers.google.com/apps-script/reference/contacts/url-field#setLabel(Field)` | `https://developers.google.com/apps-script/reference/contacts/url-field` | Sets the label of this field. |
| `https://developers.google.com/apps-script/reference/contacts/url-field#setLabel(String)` | `https://developers.google.com/apps-script/reference/contacts/url-field` | Sets the label of this field. |