# Interface SubscriberConfigOrBuilder (0.2.0)

    public interface SubscriberConfigOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getDataTypes(int index)

    public abstract String getDataTypes(int index)

Required. See [Google Health API data
types](https://developers.google.com/health/data-types) for the list of
supported data types. Values should be in kebab-case.

`
repeated string data_types = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dataTypes at the given index. |

### getDataTypesBytes(int index)

    public abstract ByteString getDataTypesBytes(int index)

Required. See [Google Health API data
types](https://developers.google.com/health/data-types) for the list of
supported data types. Values should be in kebab-case.

`
repeated string data_types = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the dataTypes at the given index. |

### getDataTypesCount()

    public abstract int getDataTypesCount()

Required. See [Google Health API data
types](https://developers.google.com/health/data-types) for the list of
supported data types. Values should be in kebab-case.

`
repeated string data_types = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getDataTypesList()

    public abstract List<String> getDataTypesList()

Required. See [Google Health API data
types](https://developers.google.com/health/data-types) for the list of
supported data types. Values should be in kebab-case.

`
repeated string data_types = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the dataTypes. |

### getSubscriptionCreatePolicy()

    public abstract SubscriberConfig.SubscriptionCreatePolicy getSubscriptionCreatePolicy()

Required. Policy for subscription creation.

`
.google.devicesandservices.health.v4.SubscriberConfig.SubscriptionCreatePolicy subscription_create_policy = 2 [(.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.SubscriberConfig.SubscriptionCreatePolicy` | The subscriptionCreatePolicy. |

### getSubscriptionCreatePolicyValue()

    public abstract int getSubscriptionCreatePolicyValue()

Required. Policy for subscription creation.

`
.google.devicesandservices.health.v4.SubscriberConfig.SubscriptionCreatePolicy subscription_create_policy = 2 [(.google.api.field_behavior) = REQUIRED];
`

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