# Interface MaintenanceControlOrBuilder (0.27.0)

0.27.0 (latest) 0.25.0 0.22.0 0.21.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.12.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.4.0 0.2.0 0.1.0

    public interface MaintenanceControlOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getControl()

    public abstract MaintenanceControl.Control getControl()

The control of the resource maintenance.

`.google.cloud.maintenance.api.v1.MaintenanceControl.Control control = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/com.google.cloud.maintenance.api.v1.MaintenanceControl.Control` | The control. |

### getControlValue()

    public abstract int getControlValue()

The control of the resource maintenance.

`.google.cloud.maintenance.api.v1.MaintenanceControl.Control control = 1;`

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

### getDocumentation()

    public abstract String getDocumentation()

Link to Service Producer documentation about maintenance control. Provided
only when `isCustom` is `true`.

`string documentation = 3;`

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

### getDocumentationBytes()

    public abstract ByteString getDocumentationBytes()

Link to Service Producer documentation about maintenance control. Provided
only when `isCustom` is `true`.

`string documentation = 3;`

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

### getIsCustom()

    public abstract boolean getIsCustom()

Indicates whether the control is available only in Service Producer API
(not through Unified Maintenance).

`bool is_custom = 2;`

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