# Interface AllocationOrBuilder (0.16.0)

0.16.0 (latest) 0.14.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public interface AllocationOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAllocation()

    public abstract String getAllocation()

The reservation resource name.

`string allocation = 5;`

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

### getAllocationBytes()

    public abstract ByteString getAllocationBytes()

The reservation resource name.

`string allocation = 5;`

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

### getAutoDeleteTime()

    public abstract Timestamp getAutoDeleteTime()

Absolute time in future when the reservation will be
auto-deleted by Compute Engine.

`.google.protobuf.Timestamp auto_delete_time = 9;`

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

### getAutoDeleteTimeOrBuilder()

    public abstract TimestampOrBuilder getAutoDeleteTimeOrBuilder()

Absolute time in future when the reservation will be
auto-deleted by Compute Engine.

`.google.protobuf.Timestamp auto_delete_time = 9;`

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

### getCreateTime()

    public abstract Timestamp getCreateTime()

The creation timestamp for this allocation.

`.google.protobuf.Timestamp create_time = 2;`

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

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

The creation timestamp for this allocation.

`.google.protobuf.Timestamp create_time = 2;`

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

### getDescription()

    public abstract String getDescription()

A description while creating reservation.

`string description = 4;`

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

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

A description while creating reservation.

`string description = 4;`

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

### getId()

    public abstract long getId()

The unique identifier for the resource. This identifier is
defined by the server.

`int64 id = 1;`

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

### getOwnerProjectId()

    public abstract String getOwnerProjectId()

`string owner_project_id = 10;`

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

### getOwnerProjectIdBytes()

    public abstract ByteString getOwnerProjectIdBytes()

`string owner_project_id = 10;`

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

### getShareSettings()

    public abstract Allocation.ShareSettings getShareSettings()

Specify share-settings to create a shared reservation.

`.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings` | The shareSettings. |

### getShareSettingsOrBuilder()

    public abstract Allocation.ShareSettingsOrBuilder getShareSettingsOrBuilder()

Specify share-settings to create a shared reservation.

`.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.Allocation.ShareSettingsOrBuilder` |   |

### getSpecificAllocation()

    public abstract Allocation.SpecificSKUAllocation getSpecificAllocation()

Reservation for instances with specific machine shapes.

`
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation` | The specificAllocation. |

### getSpecificAllocationOrBuilder()

    public abstract Allocation.SpecificSKUAllocationOrBuilder getSpecificAllocationOrBuilder()

Reservation for instances with specific machine shapes.

`
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocationOrBuilder` |   |

### getStatus()

    public abstract Allocation.Status getStatus()

The status of the reservation.

`.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.Allocation.Status` | The status. |

### getStatusValue()

    public abstract int getStatusValue()

The status of the reservation.

`.google.cloud.capacityplanner.v1beta.Allocation.Status status = 7;`

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

### getTypeCase()

    public abstract Allocation.TypeCase getTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.Allocation.TypeCase` |   |

### getZone()

    public abstract String getZone()

Zone in which the reservation resides.

`string zone = 3;`

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

### getZoneBytes()

    public abstract ByteString getZoneBytes()

Zone in which the reservation resides.

`string zone = 3;`

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

### hasAutoDeleteTime()

    public abstract boolean hasAutoDeleteTime()

Absolute time in future when the reservation will be
auto-deleted by Compute Engine.

`.google.protobuf.Timestamp auto_delete_time = 9;`

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

### hasCreateTime()

    public abstract boolean hasCreateTime()

The creation timestamp for this allocation.

`.google.protobuf.Timestamp create_time = 2;`

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

### hasShareSettings()

    public abstract boolean hasShareSettings()

Specify share-settings to create a shared reservation.

`.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings share_settings = 8;`

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

### hasSpecificAllocation()

    public abstract boolean hasSpecificAllocation()

Reservation for instances with specific machine shapes.

`
.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation specific_allocation = 6;
`

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