Class TimeSeries (0.1.0)

public final class TimeSeries extends GeneratedMessageV3 implements TimeSeriesOrBuilder

A collection of data points that describes the time-varying values of a resource. A time series is identified by its ID. Next : 13

Protobuf type google.cloud.capacityplanner.v1beta.TimeSeries

Implements

TimeSeriesOrBuilder

Static Fields

CLOUD_RESOURCE_TYPE_FIELD_NUMBER

public static final int CLOUD_RESOURCE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

CONFIDENTIAL_MODE_FIELD_NUMBER

public static final int CONFIDENTIAL_MODE_FIELD_NUMBER
Field Value
Type Description
int

DISK_TYPE_FIELD_NUMBER

public static final int DISK_TYPE_FIELD_NUMBER
Field Value
Type Description
int

GPU_TYPE_FIELD_NUMBER

public static final int GPU_TYPE_FIELD_NUMBER
Field Value
Type Description
int

IS_SPOT_FIELD_NUMBER

public static final int IS_SPOT_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
Type Description
int

LOCATION_TYPE_FIELD_NUMBER

public static final int LOCATION_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_FAMILY_FIELD_NUMBER

public static final int MACHINE_FAMILY_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_SHAPE_FIELD_NUMBER

public static final int MACHINE_SHAPE_FIELD_NUMBER
Field Value
Type Description
int

POINTS_FIELD_NUMBER

public static final int POINTS_FIELD_NUMBER
Field Value
Type Description
int

TPU_TYPE_FIELD_NUMBER

public static final int TPU_TYPE_FIELD_NUMBER
Field Value
Type Description
int

UNIT_FIELD_NUMBER

public static final int UNIT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TimeSeries getDefaultInstance()
Returns
Type Description
TimeSeries

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TimeSeries.Builder newBuilder()
Returns
Type Description
TimeSeries.Builder

newBuilder(TimeSeries prototype)

public static TimeSeries.Builder newBuilder(TimeSeries prototype)
Parameter
Name Description
prototype TimeSeries
Returns
Type Description
TimeSeries.Builder

parseDelimitedFrom(InputStream input)

public static TimeSeries parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TimeSeries
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeSeries parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeSeries
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TimeSeries parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TimeSeries
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TimeSeries parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeSeries
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TimeSeries parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TimeSeries
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TimeSeries parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeSeries
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TimeSeries parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TimeSeries
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeSeries parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeSeries
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TimeSeries parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TimeSeries
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TimeSeries parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeSeries
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TimeSeries parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TimeSeries
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TimeSeries parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TimeSeries
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TimeSeries> parser()
Returns
Type Description
Parser<TimeSeries>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCloudResourceType()

public 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
String

The cloudResourceType.

getCloudResourceTypeBytes()

public 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
ByteString

The bytes for cloudResourceType.

getConfidentialMode()

public boolean getConfidentialMode()

Optional. The confidential mode for disk.

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

Returns
Type Description
boolean

The confidentialMode.

getDefaultInstanceForType()

public TimeSeries getDefaultInstanceForType()
Returns
Type Description
TimeSeries

getDiskType()

public String getDiskType()

The disk type for the time series values to return.

string disk_type = 6;

Returns
Type Description
String

The diskType.

getDiskTypeBytes()

public ByteString getDiskTypeBytes()

The disk type for the time series values to return.

string disk_type = 6;

Returns
Type Description
ByteString

The bytes for diskType.

getGpuType()

public String getGpuType()

The GPU type of the time series.

string gpu_type = 7;

Returns
Type Description
String

The gpuType.

getGpuTypeBytes()

public ByteString getGpuTypeBytes()

The GPU type of the time series.

string gpu_type = 7;

Returns
Type Description
ByteString

The bytes for gpuType.

getIsSpot()

public boolean getIsSpot()

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

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

Returns
Type Description
boolean

The isSpot.

getLocation()

public String getLocation()

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

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

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

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

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

Returns
Type Description
ByteString

The bytes for location.

getLocationType()

public 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
TimeSeries.LocationType

The locationType.

getLocationTypeValue()

public 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
int

The enum numeric value on the wire for locationType.

getMachineFamily()

public 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
String

The machineFamily.

getMachineFamilyBytes()

public 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
ByteString

The bytes for machineFamily.

getMachineShape()

public MachineShape getMachineShape()

The machine shape of the time series.

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

Returns
Type Description
MachineShape

The machineShape.

getMachineShapeOrBuilder()

public MachineShapeOrBuilder getMachineShapeOrBuilder()

The machine shape of the time series.

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

Returns
Type Description
MachineShapeOrBuilder

getParserForType()

public Parser<TimeSeries> getParserForType()
Returns
Type Description
Parser<TimeSeries>
Overrides

getPoints(int index)

public 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 int
Returns
Type Description
Point

getPointsCount()

public 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
int

getPointsList()

public 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
List<Point>

getPointsOrBuilder(int index)

public 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 int
Returns
Type Description
PointOrBuilder

getPointsOrBuilderList()

public 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
List<? extends com.google.cloud.capacityplanner.v1beta.PointOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTpuType()

public String getTpuType()

The TPU type of the time series.

string tpu_type = 10;

Returns
Type Description
String

The tpuType.

getTpuTypeBytes()

public ByteString getTpuTypeBytes()

The TPU type of the time series.

string tpu_type = 10;

Returns
Type Description
ByteString

The bytes for tpuType.

getUnit()

public String getUnit()

The units in which the values are reported.

string unit = 5;

Returns
Type Description
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

The units in which the values are reported.

string unit = 5;

Returns
Type Description
ByteString

The bytes for unit.

hasMachineShape()

public boolean hasMachineShape()

The machine shape of the time series.

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

Returns
Type Description
boolean

Whether the machineShape field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TimeSeries.Builder newBuilderForType()
Returns
Type Description
TimeSeries.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TimeSeries.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TimeSeries.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TimeSeries.Builder toBuilder()
Returns
Type Description
TimeSeries.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException