# Interface UpdateSubscriptionRequestOrBuilder (0.2.0)

    public interface UpdateSubscriptionRequestOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getSubscription()

    public abstract Subscription getSubscription()

Required. The subscription to update.
The subscription's `name` field is used to identify the subscription to
update. Format:
projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}

`
.google.devicesandservices.health.v4.Subscription subscription = 1 [(.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.Subscription` | The subscription. |

### getSubscriptionOrBuilder()

    public abstract SubscriptionOrBuilder getSubscriptionOrBuilder()

Required. The subscription to update.
The subscription's `name` field is used to identify the subscription to
update. Format:
projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}

`
.google.devicesandservices.health.v4.Subscription subscription = 1 [(.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.SubscriptionOrBuilder` |   |

### getUpdateMask()

    public abstract FieldMask getUpdateMask()

Optional. The list of fields to update.

`.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### getUpdateMaskOrBuilder()

    public abstract FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. The list of fields to update.

`.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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

### hasSubscription()

    public abstract boolean hasSubscription()

Required. The subscription to update.
The subscription's `name` field is used to identify the subscription to
update. Format:
projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}

`
.google.devicesandservices.health.v4.Subscription subscription = 1 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasUpdateMask()

    public abstract boolean hasUpdateMask()

Optional. The list of fields to update.

`.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
`

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