# Interface TimeSeriesOrBuilder (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 TimeSeriesOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCloudResourceType()

    public abstract String getCloudResourceType()

The resource for the time series values to return. Possible values include
"gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu",
"gce-tpu" and "gce-vm".

`string cloud_resource_type = 3;`

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

### getCloudResourceTypeBytes()

    public abstract ByteString getCloudResourceTypeBytes()

The resource for the time series values to return. Possible values include
"gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk", "gce-gpu",
"gce-tpu" and "gce-vm".

`string cloud_resource_type = 3;`

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

### getConfidentialMode()

    public abstract boolean getConfidentialMode()

Optional. The confidential mode for disk.

`bool confidential_mode = 12 [(.google.api.field_behavior) = OPTIONAL];`

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

### getDiskType()

    public abstract String getDiskType()

The disk type for the time series values to return.

`string disk_type = 6;`

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

### getDiskTypeBytes()

    public abstract ByteString getDiskTypeBytes()

The disk type for the time series values to return.

`string disk_type = 6;`

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

### getGpuType()

    public abstract String getGpuType()

The GPU type of the time series.

`string gpu_type = 7;`

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

### getGpuTypeBytes()

    public abstract ByteString getGpuTypeBytes()

The GPU type of the time series.

`string gpu_type = 7;`

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

### getIsSpot()

    public abstract boolean getIsSpot()

Optional. The location of the usage data in time series.

`bool is_spot = 11 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLocation()

    public abstract String getLocation()

Optional. The location of the usage data in time series.

`string location = 9 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLocationBytes()

    public abstract ByteString getLocationBytes()

Optional. The location of the usage data in time series.

`string location = 9 [(.google.api.field_behavior) = OPTIONAL];`

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

### getLocationType()

    public abstract TimeSeries.LocationType getLocationType()

Required. The type of location that the time series is summarizing.

`
.google.cloud.capacityplanner.v1beta.TimeSeries.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.TimeSeries.LocationType` | The locationType. |

### getLocationTypeValue()

    public abstract int getLocationTypeValue()

Required. The type of location that the time series is summarizing.

`
.google.cloud.capacityplanner.v1beta.TimeSeries.LocationType location_type = 1 [(.google.api.field_behavior) = REQUIRED];
`

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

### getMachineFamily()

    public abstract String getMachineFamily()

The machine family for the time series values to return. Possible values
include "n1" and "n2d".

`string machine_family = 2;`

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

### getMachineFamilyBytes()

    public abstract ByteString getMachineFamilyBytes()

The machine family for the time series values to return. Possible values
include "n1" and "n2d".

`string machine_family = 2;`

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

### getMachineShape()

    public abstract MachineShape getMachineShape()

The machine shape of the time series.

`.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;`

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

### getMachineShapeOrBuilder()

    public abstract MachineShapeOrBuilder getMachineShapeOrBuilder()

The machine shape of the time series.

`.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;`

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

### getPoints(int index)

    public abstract Point getPoints(int index)

The data points of this time series. When listing time series, points are
returned in chronological order.

`repeated .google.cloud.capacityplanner.v1beta.Point points = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getPointsCount()

    public abstract int getPointsCount()

The data points of this time series. When listing time series, points are
returned in chronological order.

`repeated .google.cloud.capacityplanner.v1beta.Point points = 4;`

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

### getPointsList()

    public abstract List<Point> getPointsList()

The data points of this time series. When listing time series, points are
returned in chronological order.

`repeated .google.cloud.capacityplanner.v1beta.Point points = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.Point>` |   |

### getPointsOrBuilder(int index)

    public abstract PointOrBuilder getPointsOrBuilder(int index)

The data points of this time series. When listing time series, points are
returned in chronological order.

`repeated .google.cloud.capacityplanner.v1beta.Point points = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

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

### getPointsOrBuilderList()

    public abstract List<? extends PointOrBuilder> getPointsOrBuilderList()

The data points of this time series. When listing time series, points are
returned in chronological order.

`repeated .google.cloud.capacityplanner.v1beta.Point points = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.capacityplanner.v1beta.PointOrBuilder>` |   |

### getTpuType()

    public abstract String getTpuType()

The TPU type of the time series.

`string tpu_type = 10;`

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

### getTpuTypeBytes()

    public abstract ByteString getTpuTypeBytes()

The TPU type of the time series.

`string tpu_type = 10;`

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

### getUnit()

    public abstract String getUnit()

The units in which the values are reported.

`string unit = 5;`

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

### getUnitBytes()

    public abstract ByteString getUnitBytes()

The units in which the values are reported.

`string unit = 5;`

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

### hasMachineShape()

    public abstract boolean hasMachineShape()

The machine shape of the time series.

`.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;`

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