# Interface ContactOrBuilder (0.48.0)

0.48.0 (latest) 0.46.0 0.43.0 0.42.0 0.40.0 0.38.0 0.37.0 0.36.0 0.35.0 0.33.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.25.0 0.23.0 0.22.0 0.19.0 0.18.0 0.17.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface ContactOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEmail()

    public abstract String getEmail()

Required. Email of the contact.

`string email = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The email. |

### getEmailBytes()

    public abstract ByteString getEmailBytes()

Required. Email of the contact.

`string email = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for email. |

### getFamilyName()

    public abstract String getFamilyName()

Optional. Family name of the contact.

`string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The familyName. |

### getFamilyNameBytes()

    public abstract ByteString getFamilyNameBytes()

Optional. Family name of the contact.

`string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for familyName. |

### getGivenName()

    public abstract String getGivenName()

Required. Given name of the contact.

`string given_name = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The givenName. |

### getGivenNameBytes()

    public abstract ByteString getGivenNameBytes()

Required. Given name of the contact.

`string given_name = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for givenName. |

### getPhone()

    public abstract String getPhone()

Required. Phone number of the contact.

`string phone = 4 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The phone. |

### getPhoneBytes()

    public abstract ByteString getPhoneBytes()

Required. Phone number of the contact.

`string phone = 4 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for phone. |

### getReachableTimes(int index)

    public abstract TimePeriod getReachableTimes(int index)

Optional. The time periods when the contact is reachable.
If this field is empty, the contact is reachable at all times.

`
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod` |   |

### getReachableTimesCount()

    public abstract int getReachableTimesCount()

Optional. The time periods when the contact is reachable.
If this field is empty, the contact is reachable at all times.

`
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getReachableTimesList()

    public abstract List<TimePeriod> getReachableTimesList()

Optional. The time periods when the contact is reachable.
If this field is empty, the contact is reachable at all times.

`
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriod>` |   |

### getReachableTimesOrBuilder(int index)

    public abstract TimePeriodOrBuilder getReachableTimesOrBuilder(int index)

Optional. The time periods when the contact is reachable.
If this field is empty, the contact is reachable at all times.

`
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder` |   |

### getReachableTimesOrBuilderList()

    public abstract List<? extends TimePeriodOrBuilder> getReachableTimesOrBuilderList()

Optional. The time periods when the contact is reachable.
If this field is empty, the contact is reachable at all times.

`
repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.gdchardwaremanagement.v1alpha.TimePeriodOrBuilder>` |   |

### getTimeZone()

    public abstract TimeZone getTimeZone()

Optional. Time zone of the contact.

`.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.TimeZone` | The timeZone. |

### getTimeZoneOrBuilder()

    public abstract TimeZoneOrBuilder getTimeZoneOrBuilder()

Optional. Time zone of the contact.

`.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.type.TimeZoneOrBuilder` |   |

### hasTimeZone()

    public abstract boolean hasTimeZone()

Optional. Time zone of the contact.

`.google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the timeZone field is set. |