public static final class TimeSeries.Builder extends GeneratedMessageV3.Builder<TimeSeries.Builder> implements TimeSeriesOrBuilderA 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TimeSeries.BuilderImplements
TimeSeriesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllPoints(Iterable<? extends Point> values)
public TimeSeries.Builder addAllPoints(Iterable<? extends Point> values)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 |
values |
Iterable<? extends com.google.cloud.capacityplanner.v1beta.Point> |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
addPoints(Point value)
public TimeSeries.Builder addPoints(Point value)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 |
value |
Point |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
addPoints(Point.Builder builderForValue)
public TimeSeries.Builder addPoints(Point.Builder builderForValue)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 |
builderForValue |
Point.Builder |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
addPoints(int index, Point value)
public TimeSeries.Builder addPoints(int index, Point value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Point |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
addPoints(int index, Point.Builder builderForValue)
public TimeSeries.Builder addPoints(int index, Point.Builder builderForValue)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Point.Builder |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
addPointsBuilder()
public Point.Builder addPointsBuilder()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 |
Point.Builder |
|
addPointsBuilder(int index)
public Point.Builder addPointsBuilder(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.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TimeSeries.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
build()
public TimeSeries build()| Returns | |
|---|---|
| Type | Description |
TimeSeries |
|
buildPartial()
public TimeSeries buildPartial()| Returns | |
|---|---|
| Type | Description |
TimeSeries |
|
clear()
public TimeSeries.Builder clear()| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
clearCloudResourceType()
public TimeSeries.Builder clearCloudResourceType()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 |
TimeSeries.Builder |
This builder for chaining. |
clearConfidentialMode()
public TimeSeries.Builder clearConfidentialMode()Optional. The confidential mode for disk.
bool confidential_mode = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
clearDiskType()
public TimeSeries.Builder clearDiskType()The disk type for the time series values to return.
string disk_type = 6;
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TimeSeries.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
clearGpuType()
public TimeSeries.Builder clearGpuType()The GPU type of the time series.
string gpu_type = 7;
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
clearIsSpot()
public TimeSeries.Builder clearIsSpot()Optional. The location of the usage data in time series.
bool is_spot = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
clearLocation()
public TimeSeries.Builder clearLocation()Optional. The location of the usage data in time series.
string location = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
clearLocationType()
public TimeSeries.Builder clearLocationType()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.Builder |
This builder for chaining. |
clearMachineFamily()
public TimeSeries.Builder clearMachineFamily()The machine family for the time series values to return. Possible values include "n1" and "n2d".
string machine_family = 2;
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
clearMachineShape()
public TimeSeries.Builder clearMachineShape()The machine shape of the time series.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public TimeSeries.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
clearPoints()
public TimeSeries.Builder clearPoints()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 |
TimeSeries.Builder |
|
clearTpuType()
public TimeSeries.Builder clearTpuType()The TPU type of the time series.
string tpu_type = 10;
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
clearUnit()
public TimeSeries.Builder clearUnit()The units in which the values are reported.
string unit = 5;
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
clone()
public TimeSeries.Builder clone()| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
getMachineShapeBuilder()
public MachineShape.Builder getMachineShapeBuilder()The machine shape of the time series.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;
| Returns | |
|---|---|
| Type | Description |
MachineShape.Builder |
|
getMachineShapeOrBuilder()
public MachineShapeOrBuilder getMachineShapeOrBuilder()The machine shape of the time series.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;
| Returns | |
|---|---|
| Type | Description |
MachineShapeOrBuilder |
|
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 |
|
getPointsBuilder(int index)
public Point.Builder getPointsBuilder(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.Builder |
|
getPointsBuilderList()
public List<Point.Builder> getPointsBuilderList()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<Builder> |
|
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> |
|
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TimeSeries other)
public TimeSeries.Builder mergeFrom(TimeSeries other)| Parameter | |
|---|---|
| Name | Description |
other |
TimeSeries |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TimeSeries.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TimeSeries.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
mergeMachineShape(MachineShape value)
public TimeSeries.Builder mergeMachineShape(MachineShape value)The machine shape of the time series.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
MachineShape |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TimeSeries.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
removePoints(int index)
public TimeSeries.Builder removePoints(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 |
TimeSeries.Builder |
|
setCloudResourceType(String value)
public TimeSeries.Builder setCloudResourceType(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cloudResourceType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setCloudResourceTypeBytes(ByteString value)
public TimeSeries.Builder setCloudResourceTypeBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cloudResourceType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setConfidentialMode(boolean value)
public TimeSeries.Builder setConfidentialMode(boolean value)Optional. The confidential mode for disk.
bool confidential_mode = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe confidentialMode to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setDiskType(String value)
public TimeSeries.Builder setDiskType(String value)The disk type for the time series values to return.
string disk_type = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe diskType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setDiskTypeBytes(ByteString value)
public TimeSeries.Builder setDiskTypeBytes(ByteString value)The disk type for the time series values to return.
string disk_type = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for diskType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TimeSeries.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
setGpuType(String value)
public TimeSeries.Builder setGpuType(String value)The GPU type of the time series.
string gpu_type = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gpuType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setGpuTypeBytes(ByteString value)
public TimeSeries.Builder setGpuTypeBytes(ByteString value)The GPU type of the time series.
string gpu_type = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gpuType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setIsSpot(boolean value)
public TimeSeries.Builder setIsSpot(boolean value)Optional. The location of the usage data in time series.
bool is_spot = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe isSpot to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setLocation(String value)
public TimeSeries.Builder setLocation(String value)Optional. The location of the usage data in time series.
string location = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe location to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public TimeSeries.Builder setLocationBytes(ByteString value)Optional. The location of the usage data in time series.
string location = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setLocationType(TimeSeries.LocationType value)
public TimeSeries.Builder setLocationType(TimeSeries.LocationType value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
TimeSeries.LocationTypeThe locationType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setLocationTypeValue(int value)
public TimeSeries.Builder setLocationTypeValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for locationType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setMachineFamily(String value)
public TimeSeries.Builder setMachineFamily(String value)The machine family for the time series values to return. Possible values include "n1" and "n2d".
string machine_family = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineFamily to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setMachineFamilyBytes(ByteString value)
public TimeSeries.Builder setMachineFamilyBytes(ByteString value)The machine family for the time series values to return. Possible values include "n1" and "n2d".
string machine_family = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineFamily to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setMachineShape(MachineShape value)
public TimeSeries.Builder setMachineShape(MachineShape value)The machine shape of the time series.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
MachineShape |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
setMachineShape(MachineShape.Builder builderForValue)
public TimeSeries.Builder setMachineShape(MachineShape.Builder builderForValue)The machine shape of the time series.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MachineShape.Builder |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
setPoints(int index, Point value)
public TimeSeries.Builder setPoints(int index, Point value)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Point |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
setPoints(int index, Point.Builder builderForValue)
public TimeSeries.Builder setPoints(int index, Point.Builder builderForValue)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;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Point.Builder |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TimeSeries.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|
setTpuType(String value)
public TimeSeries.Builder setTpuType(String value)The TPU type of the time series.
string tpu_type = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tpuType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setTpuTypeBytes(ByteString value)
public TimeSeries.Builder setTpuTypeBytes(ByteString value)The TPU type of the time series.
string tpu_type = 10;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tpuType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setUnit(String value)
public TimeSeries.Builder setUnit(String value)The units in which the values are reported.
string unit = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setUnitBytes(ByteString value)
public TimeSeries.Builder setUnitBytes(ByteString value)The units in which the values are reported.
string unit = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for unit to set. |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TimeSeries.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
TimeSeries.Builder |
|