# Interface ResourceMaintenance.ResourceOrBuilder (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.ResourceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getLocation()

    public abstract String getLocation()

Output only. The location of the resource.
Format:
`us-central1`

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

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

### getLocationBytes()

    public abstract ByteString getLocationBytes()

Output only. The location of the resource.
Format:
`us-central1`

`string location = 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 location. |

### getResourceName()

    public abstract String getResourceName()

Output only. Name is the reference to the consumer resource affected by
the maintenance. Available values can be found here:
<https://cloud.google.com/asset-inventory/docs/asset-names>

`string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

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

### getResourceNameBytes()

    public abstract ByteString getResourceNameBytes()

Output only. Name is the reference to the consumer resource affected by
the maintenance. Available values can be found here:
<https://cloud.google.com/asset-inventory/docs/asset-names>

`string resource_name = 1 [(.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 resourceName. |

### getType()

    public abstract String getType()

Output only. The type of the resource.
Available values can be found here:
<https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types>
Please note that not all the resource types will have their maintenances
reported.

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

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

### getTypeBytes()

    public abstract ByteString getTypeBytes()

Output only. The type of the resource.
Available values can be found here:
<https://cloud.google.com/asset-inventory/docs/asset-types#supported_resource_types>
Please note that not all the resource types will have their maintenances
reported.

`string type = 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 type. |