# Interface CreateSubscriberRequestOrBuilder (0.2.0)

    public interface CreateSubscriberRequestOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getParent()

    public abstract String getParent()

Required. The parent resource where this subscriber will be created.
Format: projects/{project}
Example: projects/my-project-123

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

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

### getParentBytes()

    public abstract ByteString getParentBytes()

Required. The parent resource where this subscriber will be created.
Format: projects/{project}
Example: projects/my-project-123

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

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

### getSubscriber()

    public abstract CreateSubscriberPayload getSubscriber()

Required. The subscriber to create.

`
.google.devicesandservices.health.v4.CreateSubscriberPayload subscriber = 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.CreateSubscriberPayload` | The subscriber. |

### getSubscriberId()

    public abstract String getSubscriberId()

Optional. The ID to use for the subscriber, which will become the final
component of the subscriber's resource name.

This value should be 4-36 characters, and valid characters
are /[a-z](https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/[a-z0-9-]{2,34}[a-z0-9])/.

`string subscriber_id = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getSubscriberIdBytes()

    public abstract ByteString getSubscriberIdBytes()

Optional. The ID to use for the subscriber, which will become the final
component of the subscriber's resource name.

This value should be 4-36 characters, and valid characters
are /[a-z](https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/[a-z0-9-]{2,34}[a-z0-9])/.

`string subscriber_id = 3 [(.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 subscriberId. |

### getSubscriberOrBuilder()

    public abstract CreateSubscriberPayloadOrBuilder getSubscriberOrBuilder()

Required. The subscriber to create.

`
.google.devicesandservices.health.v4.CreateSubscriberPayload subscriber = 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.CreateSubscriberPayloadOrBuilder` |   |

### hasSubscriber()

    public abstract boolean hasSubscriber()

Required. The subscriber to create.

`
.google.devicesandservices.health.v4.CreateSubscriberPayload subscriber = 2 [(.google.api.field_behavior) = REQUIRED];
`

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