# Interface CreateSubscriberPayloadOrBuilder (0.2.0)

    public interface CreateSubscriberPayloadOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEndpointAuthorization()

    public abstract EndpointAuthorization getEndpointAuthorization()

Required. Authorization mechanism for the subscriber endpoint.
The `secret` within this message is crucial for endpoint verification
and for securing webhook notifications.

`
.google.devicesandservices.health.v4.EndpointAuthorization endpoint_authorization = 3 [(.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 the subscriber endpoint.
The `secret` within this message is crucial for endpoint verification
and for securing webhook notifications.

`
.google.devicesandservices.health.v4.EndpointAuthorization endpoint_authorization = 3 [(.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 the `CreateSubscriber` call.
See CreateSubscriber RPC documentation for verification details.

`string endpoint_uri = 1 [(.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 the `CreateSubscriber` call.
See CreateSubscriber RPC documentation for verification details.

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

### getSubscriberConfigs(int index)

    public abstract SubscriberConfig getSubscriberConfigs(int index)

Optional. Configuration for the subscriber.

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

### hasEndpointAuthorization()

    public abstract boolean hasEndpointAuthorization()

Required. Authorization mechanism for the subscriber endpoint.
The `secret` within this message is crucial for endpoint verification
and for securing webhook notifications.

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

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