# Interface ResourceMaintenance.MaintenanceOrBuilder (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 static interface ResourceMaintenance.MaintenanceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCategory()

    public abstract MaintenanceCategory getCategory()

Output only. The category of the maintenance.

`
.google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getCategoryValue()

    public abstract int getCategoryValue()

Output only. The category of the maintenance.

`
.google.cloud.maintenance.api.v1.MaintenanceCategory category = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

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

### getDescription()

    public abstract String getDescription()

Output only. The description of the maintenance.

`string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Output only. The description of the maintenance.

`string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getMaintenanceName()

    public abstract String getMaintenanceName()

Maintenance is the name of the corresponding maintenance resource
following the standard naming scheme: `"{maintenance-id}"`

`string maintenance_name = 1;`

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

### getMaintenanceNameBytes()

    public abstract ByteString getMaintenanceNameBytes()

Maintenance is the name of the corresponding maintenance resource
following the standard naming scheme: `"{maintenance-id}"`

`string maintenance_name = 1;`

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

### getTitle()

    public abstract String getTitle()

Output only. The title of the maintenance.

`string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getTitleBytes()

    public abstract ByteString getTitleBytes()

Output only. The title of the maintenance.

`string title = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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