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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static TimeSeries.Builder newBuilder()
newBuilder(TimeSeries prototype)
public static TimeSeries.Builder newBuilder(TimeSeries prototype)
public static TimeSeries parseDelimitedFrom(InputStream input)
public static TimeSeries parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static TimeSeries parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TimeSeries parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static TimeSeries parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimeSeries parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TimeSeries parseFrom(CodedInputStream input)
public static TimeSeries parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TimeSeries parseFrom(InputStream input)
public static TimeSeries parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static TimeSeries parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TimeSeries parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<TimeSeries> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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()
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];
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;
getMachineShapeOrBuilder()
public MachineShapeOrBuilder getMachineShapeOrBuilder()
The machine shape of the time series.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;
getParserForType()
public Parser<TimeSeries> getParserForType()
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;
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
|
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()
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public TimeSeries.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TimeSeries.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
| Returns |
| Type |
Description |
Object |
|
Overrides
toBuilder()
public TimeSeries.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides