# Interface SubscriberOrBuilder (0.2.0)

    public interface SubscriberOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The time at which the subscriber was created.

`.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which the subscriber was created.

`.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getEndpointAuthorization()

    public abstract EndpointAuthorization getEndpointAuthorization()

Required. Authorization mechanism for a subscriber endpoint.
This is required to ensure the endpoint can be verified.

`
.google.devicesandservices.health.v4.EndpointAuthorization endpoint_authorization = 7 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.EndpointAuthorization` | The endpointAuthorization. |

### getEndpointAuthorizationOrBuilder()

    public abstract EndpointAuthorizationOrBuilder getEndpointAuthorizationOrBuilder()

Required. Authorization mechanism for a subscriber endpoint.
This is required to ensure the endpoint can be verified.

`
.google.devicesandservices.health.v4.EndpointAuthorization endpoint_authorization = 7 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.EndpointAuthorizationOrBuilder` |   |

### getEndpointUri()

    public abstract String getEndpointUri()

Required. The full HTTPS URI where update notifications will be sent.
The URI must be a valid URL and use HTTPS as the scheme.
This endpoint will be verified during CreateSubscriber and UpdateSubscriber
calls. See RPC documentation for verification details.

`string endpoint_uri = 2 [(.google.api.field_behavior) = REQUIRED];`

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

### getEndpointUriBytes()

    public abstract ByteString getEndpointUriBytes()

Required. The full HTTPS URI where update notifications will be sent.
The URI must be a valid URL and use HTTPS as the scheme.
This endpoint will be verified during CreateSubscriber and UpdateSubscriber
calls. See RPC documentation for verification details.

`string endpoint_uri = 2 [(.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 endpointUri. |

### getName()

    public abstract String getName()

Identifier. The resource name of the Subscriber.
Format: projects/{project}/subscribers/{subscriber}
The {project} ID is a Google Cloud Project ID or Project Number.
The {subscriber} ID is user-settable (4-36 characters, matching
/[a-z](https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/[a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or
system-generated otherwise (e.g., a UUID).
Example (User-settable subscriber ID):
projects/my-project/subscribers/my-sub-123
Example (System-generated subscriber ID):
projects/my-project/subscribers/a1b2c3d4-e5f6-7890-1234-567890abcdef

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

Identifier. The resource name of the Subscriber.
Format: projects/{project}/subscribers/{subscriber}
The {project} ID is a Google Cloud Project ID or Project Number.
The {subscriber} ID is user-settable (4-36 characters, matching
/[a-z](https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/[a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or
system-generated otherwise (e.g., a UUID).
Example (User-settable subscriber ID):
projects/my-project/subscribers/my-sub-123
Example (System-generated subscriber ID):
projects/my-project/subscribers/a1b2c3d4-e5f6-7890-1234-567890abcdef

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

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

### getState()

    public abstract Subscriber.State getState()

Output only. The state of the subscriber.

`
.google.devicesandservices.health.v4.Subscriber.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.Subscriber.State` | The state. |

### getStateValue()

    public abstract int getStateValue()

Output only. The state of the subscriber.

`
.google.devicesandservices.health.v4.Subscriber.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for state. |

### getSubscriberConfigs(int index)

    public abstract SubscriberConfig getSubscriberConfigs(int index)

Optional. Configuration for the subscriber.

`
repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.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-health/latest/com.google.devicesandservices.health.v4.SubscriberConfig` |   |

### getSubscriberConfigsCount()

    public abstract int getSubscriberConfigsCount()

Optional. Configuration for the subscriber.

`
repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getSubscriberConfigsList()

    public abstract List<SubscriberConfig> getSubscriberConfigsList()

Optional. Configuration for the subscriber.

`
repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.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-health/latest/com.google.devicesandservices.health.v4.SubscriberConfig>` |   |

### getSubscriberConfigsOrBuilder(int index)

    public abstract SubscriberConfigOrBuilder getSubscriberConfigsOrBuilder(int index)

Optional. Configuration for the subscriber.

`
repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.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-health/latest/com.google.devicesandservices.health.v4.SubscriberConfigOrBuilder` |   |

### getSubscriberConfigsOrBuilderList()

    public abstract List<? extends SubscriberConfigOrBuilder> getSubscriberConfigsOrBuilderList()

Optional. Configuration for the subscriber.

`
repeated .google.devicesandservices.health.v4.SubscriberConfig subscriber_configs = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.devicesandservices.health.v4.SubscriberConfigOrBuilder>` |   |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. The time at which the subscriber was last updated.

`.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time at which the subscriber was last updated.

`.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The time at which the subscriber was created.

`.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### hasEndpointAuthorization()

    public abstract boolean hasEndpointAuthorization()

Required. Authorization mechanism for a subscriber endpoint.
This is required to ensure the endpoint can be verified.

`
.google.devicesandservices.health.v4.EndpointAuthorization endpoint_authorization = 7 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. The time at which the subscriber was last updated.

`.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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